aa32356140a4429b28f6833bef14ec8093ffc3a9
[gnulib.git] / ChangeLog
1 2011-05-22  Bruno Haible  <bruno@clisp.org>
2
3         strsep: Move AC_LIBOBJ invocations to module description.
4         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
5         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
6         here...
7         * modules/strsep (configure.ac): ... to here.
8
9 2011-05-22  Bruno Haible  <bruno@clisp.org>
10
11         strptime: Move AC_LIBOBJ invocations to module description.
12         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13         gl_PREREQ_STRPTIME invocations from here...
14         * modules/strptime (configure.ac): ... to here.
15
16 2011-05-22  Bruno Haible  <bruno@clisp.org>
17
18         strpbrk: Move AC_LIBOBJ invocations to module description.
19         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
20         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
21         here...
22         * modules/strpbrk (configure.ac): ... to here.
23
24 2011-05-22  Bruno Haible  <bruno@clisp.org>
25
26         strnlen: Move AC_LIBOBJ invocations to module description.
27         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
28         invocations from here...
29         * modules/strnlen (configure.ac): ... to here.
30
31 2011-05-22  Bruno Haible  <bruno@clisp.org>
32
33         strndup: Move AC_LIBOBJ invocations to module description.
34         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
35         invocations from here...
36         * modules/strndup (configure.ac): ... to here.
37         (Depends-on): Update conditions.
38
39 2011-05-22  Bruno Haible  <bruno@clisp.org>
40
41         strncat: Move AC_LIBOBJ invocations to module description.
42         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
43         invocations from here...
44         * modules/strncat (configure.ac): ... to here.
45
46 2011-05-22  Bruno Haible  <bruno@clisp.org>
47
48         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
49         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
50         invocations from here...
51         * modules/strdup (configure.ac): ... to here.
52         * modules/strdup-posix (configure.ac): ... and here.
53
54 2011-05-22  Bruno Haible  <bruno@clisp.org>
55
56         strcspn: Move AC_LIBOBJ invocations to module description.
57         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
58         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
59         here...
60         * modules/strcspn (configure.ac): ... to here.
61
62 2011-05-22  Bruno Haible  <bruno@clisp.org>
63
64         strchrnul: Move AC_LIBOBJ invocations to module description.
65         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
66         gl_PREREQ_STRCHRNUL invocations from here...
67         * modules/strchrnul (configure.ac): ... to here.
68
69 2011-05-22  Bruno Haible  <bruno@clisp.org>
70
71         strcasestr*: Move AC_LIBOBJ invocations to module description.
72         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
73         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
74         * modules/strcasestr-simple (configure.ac): ... to here.
75         * modules/strcasestr (configure.ac): ... and here.
76
77 2011-05-22  Bruno Haible  <bruno@clisp.org>
78
79         strcase: Move AC_LIBOBJ invocations to module description.
80         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
81         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
82         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
83         gl_PREREQ_STRNCASECMP invocations from here...
84         * modules/strcase (configure.ac): ... to here.
85
86 2011-05-22  Bruno Haible  <bruno@clisp.org>
87
88         stpncpy: Move AC_LIBOBJ invocations to module description.
89         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
90         here...
91         * modules/stpncpy (configure.ac): ... to here.
92
93 2011-05-22  Bruno Haible  <bruno@clisp.org>
94
95         stpcpy: Move AC_LIBOBJ invocations to module description.
96         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
97         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
98         here...
99         * modules/stpcpy (configure.ac): ... to here.
100
101 2011-05-21  Bruno Haible  <bruno@clisp.org>
102
103         stat: Move AC_LIBOBJ invocations to module description.
104         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
105         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
106         here...
107         * modules/stat (configure.ac): ... to here.
108
109 2011-05-21  Bruno Haible  <bruno@clisp.org>
110
111         sleep: Move AC_LIBOBJ invocations to module description.
112         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
113         * modules/sleep (configure.ac): ... to here.
114
115 2011-05-21  Bruno Haible  <bruno@clisp.org>
116
117         signbit: Move AC_LIBOBJ invocations to module description.
118         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
119         * modules/signbit (configure.ac): ... to here.
120
121 2011-05-21  Bruno Haible  <bruno@clisp.org>
122
123         sigprocmask: Move AC_LIBOBJ invocations to module description.
124         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
125         gl_PREREQ_SIGPROMASK invocations from here...
126         * modules/sigprocmask (configure.ac): ... to here.
127
128 2011-05-21  Bruno Haible  <bruno@clisp.org>
129
130         sigaction: Move AC_LIBOBJ invocations to module description.
131         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
132         gl_PREREQ_SIGACTION invocations from here...
133         * modules/sigaction (configure.ac): ... to here.
134
135 2011-05-21  Bruno Haible  <bruno@clisp.org>
136
137         sig2str: Move AC_LIBOBJ invocations to module description.
138         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
139         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
140         here...
141         * modules/sig2str (configure.ac): ... to here.
142
143 2011-05-21  Bruno Haible  <bruno@clisp.org>
144
145         setlocale: Move AC_LIBOBJ invocations to module description.
146         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
147         gl_PREREQ_SETLOCALE invocations from here...
148         * modules/setlocale (configure.ac): ... to here.
149
150 2011-05-21  Bruno Haible  <bruno@clisp.org>
151
152         unsetenv: Move AC_LIBOBJ invocations to module description.
153         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
154         and gl_PREREQ_UNSETENV invocations from here...
155         * modules/unsetenv (configure.ac): ... to here.
156         (Depends-on): Update.
157
158 2011-05-21  Bruno Haible  <bruno@clisp.org>
159
160         setenv: Move AC_LIBOBJ invocations to module description.
161         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
162         here...
163         * modules/setenv (configure.ac): ... to here.
164
165 2011-05-21  Bruno Haible  <bruno@clisp.org>
166
167         selinux-h: Move AC_LIBOBJ invocations to module description.
168         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
169         AC_LIBOBJ invocation from here...
170         * modules/selinux-h (configure.ac): ... to here.
171
172 2011-05-21  Bruno Haible  <bruno@clisp.org>
173
174         select: Respect rules for use of AC_LIBOBJ.
175         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
176         here...
177         * modules/select (configure.ac): ... to here.
178
179 2011-05-21  Bruno Haible  <bruno@clisp.org>
180
181         scandir: Move AC_LIBOBJ invocations to module description.
182         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
183         invocations from here...
184         * modules/scandir (configure.ac): ... to here.
185
186 2011-05-21  Bruno Haible  <bruno@clisp.org>
187
188         rpmatch: Move AC_LIBOBJ invocations to module description.
189         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
190         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
191         here...
192         * modules/rpmatch (configure.ac): ... to here.
193
194 2011-05-21  Bruno Haible  <bruno@clisp.org>
195
196         rmdir: Respect rules for use of AC_LIBOBJ.
197         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
198         * modules/rmdir (configure.ac): ... to here.
199
200 2011-05-21  Bruno Haible  <bruno@clisp.org>
201
202         renameat: Move AC_LIBOBJ invocations to module description.
203         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
204         here...
205         * modules/renameat (configure.ac): ... to here.
206
207 2011-05-21  Bruno Haible  <bruno@clisp.org>
208
209         rename: Respect rules for use of AC_LIBOBJ.
210         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
211         here...
212         * modules/rename (configure.ac): ... to here.
213
214 2011-05-21  Bruno Haible  <bruno@clisp.org>
215
216         remove: Move AC_LIBOBJ invocations to module description.
217         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
218         here...
219         * modules/remove (configure.ac): ... to here.
220
221 2011-05-21  Bruno Haible  <bruno@clisp.org>
222
223         relocatable-lib: Move AC_LIBOBJ invocations to module description.
224         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
225         macro.
226         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
227         * modules/relocatable-lib (configure.ac): ... to here.
228         * modules/relocatable-prog-wrapper (configure.ac): Invoke
229         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
230
231 2011-05-21  Bruno Haible  <bruno@clisp.org>
232
233         relocatable-prog: Move AC_LIBOBJ invocations to module description.
234         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
235         here...
236         * modules/relocatable-prog (configure.ac): ... to here.
237
238 2011-05-21  Bruno Haible  <bruno@clisp.org>
239
240         regex: Move AC_LIBOBJ invocations to module description.
241         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
242         invocations from here...
243         * modules/regex (configure.ac): ... to here.
244
245 2011-05-21  Bruno Haible  <bruno@clisp.org>
246
247         realloc-*: Move AC_LIBOBJ invocations to module description.
248         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
249         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
250         AC_LIBOBJ invocations from here...
251         * modules/realloc-gnu (configure.ac): ... to here.
252         * modules/realloc-posix (configure.ac): ... and here.
253
254 2011-05-21  Bruno Haible  <bruno@clisp.org>
255
256         readutmp: Move AC_LIBOBJ invocations to module description.
257         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
258         * modules/readutmp (configure.ac): ... to here.
259
260 2011-05-21  Bruno Haible  <bruno@clisp.org>
261
262         readlinkat: Move AC_LIBOBJ invocations to module description.
263         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
264         here...
265         * modules/readlinkat (configure.ac): ... to here.
266
267 2011-05-21  Bruno Haible  <bruno@clisp.org>
268
269         readlink: Move AC_LIBOBJ invocations to module description.
270         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
271         gl_PREREQ_READLINK invocations from here...
272         * modules/readlink (configure.ac): ... to here.
273
274 2011-05-21  Bruno Haible  <bruno@clisp.org>
275
276         readline: Move AC_LIBOBJ invocations to module description.
277         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
278         gl_PREREQ_READLINE invocations from here...
279         * modules/readline (configure.ac): ... to here.
280
281 2011-05-21  Bruno Haible  <bruno@clisp.org>
282
283         read: Move AC_LIBOBJ invocations to module description.
284         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
285         * modules/read (configure.ac): ... to here.
286
287 2011-05-21  Bruno Haible  <bruno@clisp.org>
288
289         rawmemchr: Move AC_LIBOBJ invocations to module description.
290         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
291         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
292         from here...
293         * modules/rawmemchr (configure.ac): ... to here.
294
295 2011-05-21  Bruno Haible  <bruno@clisp.org>
296
297         random_r: Move AC_LIBOBJ invocations to module description.
298         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
299         gl_PREREQ_RANDOM_R invocations from here...
300         * modules/random_r (configure.ac): ... to here.
301
302 2011-05-21  Bruno Haible  <bruno@clisp.org>
303
304         pwrite: Move AC_LIBOBJ invocations to module description.
305         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
306         * modules/pwrite (configure.ac): ... to here.
307
308 2011-05-21  Bruno Haible  <bruno@clisp.org>
309
310         putenv: Move AC_LIBOBJ invocations to module description.
311         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
312         * modules/putenv (configure.ac): ... to here.
313
314 2011-05-21  Bruno Haible  <bruno@clisp.org>
315
316         login_tty: Move AC_LIBOBJ invocations to module description.
317         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
318         * modules/login_tty (configure.ac): ... to here.
319
320 2011-05-21  Bruno Haible  <bruno@clisp.org>
321
322         openpty: Move AC_LIBOBJ invocations to module description.
323         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
324         * modules/openpty (configure.ac): ... to here.
325
326 2011-05-21  Bruno Haible  <bruno@clisp.org>
327
328         forkpty: Move AC_LIBOBJ invocations to module description.
329         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
330         * modules/forkpty (configure.ac): ... to here.
331
332 2011-05-21  Bruno Haible  <bruno@clisp.org>
333
334         ptsname: Move AC_LIBOBJ invocations to module description.
335         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
336         invocations from here...
337         * modules/ptsname (configure.ac): ... to here.
338
339 2011-05-21  Bruno Haible  <bruno@clisp.org>
340
341         pread: Move AC_LIBOBJ invocations to module description.
342         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
343         * modules/pread (configure.ac): ... to here.
344
345 2011-05-21  Bruno Haible  <bruno@clisp.org>
346
347         posix_spawn*: Move AC_LIBOBJ invocations to module description.
348         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
349         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
350         * modules/posix_spawn (configure.ac): ... to here.
351         * modules/posix_spawnp (configure.ac): ... and here.
352
353 2011-05-21  Bruno Haible  <bruno@clisp.org>
354
355         popen: Move AC_LIBOBJ invocations to module description.
356         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
357         invocations from here...
358         * modules/popen (configure.ac): ... to here.
359
360 2011-05-21  Bruno Haible  <bruno@clisp.org>
361
362         poll: Move AC_LIBOBJ invocations to module description.
363         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
364         invocations from here...
365         * modules/poll (configure.ac): ... to here.
366
367 2011-05-21  Bruno Haible  <bruno@clisp.org>
368
369         pipe-posix: Move AC_LIBOBJ invocations to module description.
370         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
371         * modules/pipe-posix (configure.ac): ... to here.
372
373 2011-05-21  Bruno Haible  <bruno@clisp.org>
374
375         openat: Respect rules for use of AC_LIBOBJ.
376         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
377         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
378         * modules/openat (configure.ac): ... to here.
379
380 2011-05-21  Bruno Haible  <bruno@clisp.org>
381
382         obstack-printf*: Move AC_LIBOBJ invocations to module description.
383         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
384         invocation from here...
385         * modules/obstack-printf (configure.ac): ... to here.
386         * modules/obstack-printf-posix (configure.ac): ... and here.
387
388 2011-05-21  Bruno Haible  <bruno@clisp.org>
389
390         nl_langinfo: Move AC_LIBOBJ invocations to module description.
391         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
392         from here...
393         * modules/nl_langinfo (configure.ac): ... to here.
394
395 2011-05-21  Bruno Haible  <bruno@clisp.org>
396
397         nanosleep: Move AC_LIBOBJ invocations to module description.
398         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
399         gl_PREREQ_NANOSLEEP invocations from here...
400         * modules/nanosleep (configure.ac): ... to here.
401
402 2011-05-21  Bruno Haible  <bruno@clisp.org>
403
404         mountlist: Move AC_LIBOBJ invocations to module description.
405         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
406         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
407         * modules/mountlist (configure.ac): ... to here.
408
409 2011-05-21  Bruno Haible  <bruno@clisp.org>
410
411         mktime: Respect rules for use of AC_LIBOBJ.
412         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
413         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
414         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
415         (gl_FUNC_MKTIME_INTERNAL): ... and here...
416         * modules/mktime (configure.ac): ... to here.
417         * modules/mktime-internal (configure.ac): ... and here.
418         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
419
420 2011-05-21  Bruno Haible  <bruno@clisp.org>
421
422         mkstemps: Move AC_LIBOBJ invocations to module description.
423         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
424         here...
425         * modules/mkstemps (configure.ac): ... to here.
426
427 2011-05-21  Bruno Haible  <bruno@clisp.org>
428
429         mkstemp: Move AC_LIBOBJ invocations to module description.
430         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
431         gl_PREREQ_MKSTEMP invocations from here...
432         * modules/mkstemp (configure.ac): ... to here.
433
434 2011-05-21  Bruno Haible  <bruno@clisp.org>
435
436         mkostemps: Move AC_LIBOBJ invocations to module description.
437         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
438         here...
439         * modules/mkostemps (configure.ac): ... to here.
440
441 2011-05-21  Bruno Haible  <bruno@clisp.org>
442
443         mkostemp: Move AC_LIBOBJ invocations to module description.
444         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
445         gl_PREREQ_MKOSTEMP invocations from here...
446         * modules/mkostemp (configure.ac): ... to here.
447
448 2011-05-21  Bruno Haible  <bruno@clisp.org>
449
450         mknod: Move AC_LIBOBJ invocations to module description.
451         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
452         * modules/mknod (configure.ac): ... to here.
453
454 2011-05-21  Bruno Haible  <bruno@clisp.org>
455
456         mkfifoat: Move AC_LIBOBJ invocations to module description.
457         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
458         here...
459         * modules/mkfifoat (configure.ac): ... to here.
460
461 2011-05-21  Bruno Haible  <bruno@clisp.org>
462
463         mkfifo: Respect rules for use of AC_LIBOBJ.
464         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
465         here...
466         * modules/mkfifo (configure.ac): ... to here.
467
468 2011-05-21  Bruno Haible  <bruno@clisp.org>
469
470         mkdtemp: Move AC_LIBOBJ invocations to module description.
471         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
472         invocations from here...
473         * modules/mkdtemp (configure.ac): ... to here.
474
475 2011-05-21  Bruno Haible  <bruno@clisp.org>
476
477         mkdir: Move AC_LIBOBJ invocations to module description.
478         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
479         * modules/mkdir (configure.ac): ... to here.
480
481 2011-05-21  Bruno Haible  <bruno@clisp.org>
482
483         memset: Move AC_LIBOBJ invocations to module description.
484         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
485         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
486         here...
487         * modules/memset (configure.ac): ... to here.
488
489 2011-05-21  Bruno Haible  <bruno@clisp.org>
490
491         memrchr: Move AC_LIBOBJ invocations to module description.
492         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
493         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
494         here...
495         * modules/memrchr (configure.ac): ... to here.
496
497 2011-05-21  Bruno Haible  <bruno@clisp.org>
498
499         mempcpy: Move AC_LIBOBJ invocations to module description.
500         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
501         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
502         here...
503         * modules/mempcpy (configure.ac): ... to here.
504
505 2011-05-21  Bruno Haible  <bruno@clisp.org>
506
507         memmove: Move AC_LIBOBJ invocations to module description.
508         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
509         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
510         here...
511         * modules/memmove (configure.ac): ... to here.
512
513 2011-05-21  Bruno Haible  <bruno@clisp.org>
514
515         memmem*: Move AC_LIBOBJ invocations to module description.
516         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
517         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
518         here...
519         (gl_FUNC_MEMMEM): ... and here...
520         * modules/memmem-simple (configure.ac): ... to here.
521         * modules/memmem (configure.ac): ... and here.
522
523 2011-05-21  Bruno Haible  <bruno@clisp.org>
524
525         memcpy: Move AC_LIBOBJ invocations to module description.
526         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
527         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
528         here...
529         * modules/memcpy (configure.ac): ... to here.
530
531 2011-05-21  Bruno Haible  <bruno@clisp.org>
532
533         memcmp: Simplify autoconf macro.
534         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
535         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
536         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
537
538 2011-05-21  Bruno Haible  <bruno@clisp.org>
539
540         memcmp: Move AC_LIBOBJ invocations to module description.
541         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
542         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
543         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
544         * modules/memcmp (configure.ac): ... to here.
545         (Depends-on): Update conditions.
546
547 2011-05-21  Bruno Haible  <bruno@clisp.org>
548
549         memchr: Respect rules for use of AC_LIBOBJ.
550         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
551         invocations from here...
552         * modules/memchr (configure.ac): ... to here.
553
554 2011-05-21  Bruno Haible  <bruno@clisp.org>
555
556         mbtowc: Move AC_LIBOBJ invocations to module description.
557         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
558         invocations from here...
559         * modules/mbtowc (configure.ac): ... to here.
560
561 2011-05-21  Bruno Haible  <bruno@clisp.org>
562
563         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
564         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
565         gl_PREREQ_MBSRTOWCS invocations from here...
566         * modules/mbsrtowcs (configure.ac): ... to here.
567
568 2011-05-21  Bruno Haible  <bruno@clisp.org>
569
570         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
571         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
572         gl_PREREQ_MBSNRTOWCS invocations from here...
573         * modules/mbsnrtowcs (configure.ac): ... to here.
574
575 2011-05-21  Bruno Haible  <bruno@clisp.org>
576
577         mbsinit: Move AC_LIBOBJ invocations to module description.
578         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
579         invocations from here...
580         * modules/mbsinit (configure.ac): ... to here.
581
582 2011-05-21  Bruno Haible  <bruno@clisp.org>
583
584         mbrlen: Move AC_LIBOBJ invocations to module description.
585         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
586         invocations from here...
587         * modules/mbrlen (configure.ac): ... to here.
588
589 2011-05-21  Bruno Haible  <bruno@clisp.org>
590
591         mbrtowc: Respect rules for use of AC_LIBOBJ.
592         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
593         invocations from here...
594         * modules/mbrtowc (configure.ac): ... to here.
595
596 2011-05-21  Bruno Haible  <bruno@clisp.org>
597
598         malloc-*: Move AC_LIBOBJ invocations to module description.
599         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
600         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
601         AC_LIBOBJ invocations from here...
602         * modules/malloc-gnu (configure.ac): ... to here.
603         * modules/malloc-posix (configure.ac): ... and here.
604
605 2011-05-21  Bruno Haible  <bruno@clisp.org>
606
607         lstat, openat: Respect rules for use of AC_LIBOBJ.
608         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
609         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
610         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
611         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
612         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
613         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
614         here.
615         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
616
617 2011-05-21  Bruno Haible  <bruno@clisp.org>
618
619         lseek: Move AC_LIBOBJ invocations to module description.
620         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
621         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
622         * modules/lseek (configure.ac): ... to here.
623
624 2011-05-21  Bruno Haible  <bruno@clisp.org>
625
626         linkat: Move AC_LIBOBJ invocations to module description.
627         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
628         here...
629         * modules/linkat (configure.ac): ... to here.
630
631 2011-05-21  Bruno Haible  <bruno@clisp.org>
632
633         link: Respect rules for use of AC_LIBOBJ.
634         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
635         * modules/link (configure.ac): ... to here.
636
637 2011-05-21  Bruno Haible  <bruno@clisp.org>
638
639         lchown: Move AC_LIBOBJ invocations to module description.
640         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
641         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
642         * modules/lchown (configure.ac): ... to here.
643
644 2011-05-21  Bruno Haible  <bruno@clisp.org>
645
646         iswctype: Move AC_LIBOBJ invocations to module description.
647         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
648         here...
649         * modules/iswctype (configure.ac): ... to here.
650
651 2011-05-21  Bruno Haible  <bruno@clisp.org>
652
653         iswblank: Move AC_LIBOBJ invocations to module description.
654         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
655         here...
656         * modules/iswblank (configure.ac): ... to here.
657
658 2011-05-21  Bruno Haible  <bruno@clisp.org>
659
660         atanl: Move AC_LIBOBJ invocations to module description.
661         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
662         * modules/atanl (configure.ac): ... to here.
663
664 2011-05-21  Bruno Haible  <bruno@clisp.org>
665
666         acosl: Move AC_LIBOBJ invocations to module description.
667         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
668         * modules/acosl (configure.ac): ... to here.
669
670 2011-05-21  Bruno Haible  <bruno@clisp.org>
671
672         asinl: Respect rules for use of AC_LIBOBJ.
673         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
674         * modules/asinl (configure.ac): ... to here.
675
676 2011-05-21  Bruno Haible  <bruno@clisp.org>
677
678         tanl: Move AC_LIBOBJ invocations to module description.
679         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
680         * modules/tanl (configure.ac): ... to here.
681
682 2011-05-21  Bruno Haible  <bruno@clisp.org>
683
684         cosl: Move AC_LIBOBJ invocations to module description.
685         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
686         * modules/cosl (configure.ac): ... to here.
687
688 2011-05-21  Bruno Haible  <bruno@clisp.org>
689
690         sinl: Move AC_LIBOBJ invocations to module description.
691         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
692         * modules/sinl (configure.ac): ... to here.
693
694 2011-05-21  Bruno Haible  <bruno@clisp.org>
695
696         logl: Move AC_LIBOBJ invocations to module description.
697         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
698         * modules/logl (configure.ac): ... to here.
699
700 2011-05-21  Bruno Haible  <bruno@clisp.org>
701
702         expl: Move AC_LIBOBJ invocations to module description.
703         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
704         * modules/expl (configure.ac): ... to here.
705
706 2011-05-21  Bruno Haible  <bruno@clisp.org>
707
708         roundl: Move AC_LIBOBJ invocations to module description.
709         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
710         * modules/roundl (configure.ac): ... to here.
711
712 2011-05-21  Bruno Haible  <bruno@clisp.org>
713
714         round: Move AC_LIBOBJ invocations to module description.
715         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
716         * modules/round (configure.ac): ... to here.
717
718 2011-05-21  Bruno Haible  <bruno@clisp.org>
719
720         roundf: Move AC_LIBOBJ invocations to module description.
721         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
722         * modules/roundf (configure.ac): ... to here.
723
724 2011-05-21  Bruno Haible  <bruno@clisp.org>
725
726         truncl: Move AC_LIBOBJ invocations to module description.
727         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
728         * modules/truncl (configure.ac): ... to here.
729
730 2011-05-21  Bruno Haible  <bruno@clisp.org>
731
732         trunc: Move AC_LIBOBJ invocations to module description.
733         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
734         * modules/trunc (configure.ac): ... to here.
735
736 2011-05-21  Bruno Haible  <bruno@clisp.org>
737
738         truncf: Move AC_LIBOBJ invocations to module description.
739         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
740         * modules/truncf (configure.ac): ... to here.
741
742 2011-05-21  Bruno Haible  <bruno@clisp.org>
743
744         ceill: Move AC_LIBOBJ invocations to module description.
745         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
746         * modules/ceill (configure.ac): ... to here.
747
748 2011-05-21  Bruno Haible  <bruno@clisp.org>
749
750         ceil: Move AC_LIBOBJ invocations to module description.
751         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
752         * modules/ceil (configure.ac): ... to here.
753
754 2011-05-21  Bruno Haible  <bruno@clisp.org>
755
756         ceilf: Move AC_LIBOBJ invocations to module description.
757         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
758         * modules/ceilf (configure.ac): ... to here.
759
760 2011-05-21  Bruno Haible  <bruno@clisp.org>
761
762         floorl: Respect rules for use of AC_LIBOBJ.
763         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
764         * modules/floorl (configure.ac): ... to here.
765
766 2011-05-21  Bruno Haible  <bruno@clisp.org>
767
768         floor: Respect rules for use of AC_LIBOBJ.
769         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
770         * modules/floor (configure.ac): ... to here.
771
772 2011-05-21  Bruno Haible  <bruno@clisp.org>
773
774         floorf: Move AC_LIBOBJ invocations to module description.
775         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
776         * modules/floorf (configure.ac): ... to here.
777
778 2011-05-20  Bruno Haible  <bruno@clisp.org>
779
780         sqrtl: Respect rules for use of AC_LIBOBJ.
781         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
782         * modules/sqrtl (configure.ac): ... to here.
783
784 2011-05-20  Bruno Haible  <bruno@clisp.org>
785
786         ldexpl: Respect rules for use of AC_LIBOBJ.
787         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
788         * modules/ldexpl (configure.ac): ... to here.
789
790 2011-05-20  Bruno Haible  <bruno@clisp.org>
791
792         frexpl*: Respect rules for use of AC_LIBOBJ.
793         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
794         invocation from here...
795         * modules/frexpl (configure.ac): ... to here.
796         * modules/frexpl-nolibm (configure.ac): ... and here.
797
798 2011-05-20  Bruno Haible  <bruno@clisp.org>
799
800         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
801         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
802         invocation from here...
803         * modules/frexp (configure.ac): ... to here.
804         * modules/frexp-nolibm (configure.ac): ... and here.
805
806 2011-05-20  Bruno Haible  <bruno@clisp.org>
807
808         isnan: Respect rules for use of AC_LIBOBJ.
809         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
810         invocations here.
811         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
812         REPLACE_ISNAN.
813         * modules/isnand (configure.ac): Likewise.
814         * modules/isnanl (configure.ac): Likewise.
815
816 2011-05-20  Bruno Haible  <bruno@clisp.org>
817
818         isnanl*: Respect rules for use of AC_LIBOBJ.
819         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
820         invocation from here...
821         * modules/isnanl (configure.ac): ... to here.
822         * modules/isnanl-nolibm (configure.ac): ... and here.
823
824 2011-05-20  Bruno Haible  <bruno@clisp.org>
825
826         isnand*: Move AC_LIBOBJ invocations to module description.
827         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
828         invocation from here...
829         * modules/isnand (configure.ac): ... to here.
830         * modules/isnand-nolibm (configure.ac): ... and here.
831
832 2011-05-20  Bruno Haible  <bruno@clisp.org>
833
834         isnanf*: Move AC_LIBOBJ invocations to module description.
835         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
836         invocation from here...
837         * modules/isnanf (configure.ac): ... to here.
838         * modules/isnanf-nolibm (configure.ac): ... and here.
839
840 2011-05-20  Bruno Haible  <bruno@clisp.org>
841
842         isnan*: Separate the AC_LIBOBJ invocations.
843         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
844         AC_LIBOBJ invocation.
845         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
846         here.
847         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
848         AC_LIBOBJ invocation.
849         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
850         here.
851         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
852         AC_LIBOBJ invocation.
853         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
854         here.
855         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
856
857 2011-05-08  Bruno Haible  <bruno@clisp.org>
858
859         isinf: Move AC_LIBOBJ invocations to module description.
860         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
861         * modules/isinf (configure.ac): ... to here.
862
863 2011-05-08  Bruno Haible  <bruno@clisp.org>
864
865         isfinite: Move AC_LIBOBJ invocations to module description.
866         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
867         * modules/isfinite (configure.ac): ... to here.
868
869 2011-05-08  Bruno Haible  <bruno@clisp.org>
870
871         isblank: Move AC_LIBOBJ invocations to module description.
872         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
873         here...
874         * modules/isblank (configure.ac): ... to here.
875
876 2011-05-08  Bruno Haible  <bruno@clisp.org>
877
878         isapipe: Move AC_LIBOBJ invocations to module description.
879         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
880         gl_PREREQ_ISAPIPE invocations from here...
881         * modules/isapipe (configure.ac): ... to here.
882         (Depends-on): Update condition.
883
884 2011-05-08  Bruno Haible  <bruno@clisp.org>
885
886         ioctl: Move AC_LIBOBJ invocations to module description.
887         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
888         invocations from here...
889         * modules/ioctl (configure.ac): ... to here.
890         (Depends-on): Update condition.
891
892 2011-05-08  Bruno Haible  <bruno@clisp.org>
893
894         imaxdiv: Move AC_LIBOBJ invocations to module description.
895         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
896         invocations from here...
897         * modules/imaxdiv (configure.ac): ... to here.
898
899 2011-05-08  Bruno Haible  <bruno@clisp.org>
900
901         imaxabs: Move AC_LIBOBJ invocations to module description.
902         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
903         invocations from here...
904         * modules/imaxabs (configure.ac): ... to here.
905
906 2011-05-08  Bruno Haible  <bruno@clisp.org>
907
908         getaddrinfo: Move AC_LIBOBJ invocations to module description.
909         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
910         AC_LIBOBJ invocations from here...
911         * modules/getaddrinfo (configure.ac): ... to here.
912         (Depends-on): Add conditions.
913
914 2011-05-08  Bruno Haible  <bruno@clisp.org>
915
916         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
917         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
918         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
919         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
920         (gl_PREREQ_INET_PTON): ... from here.
921         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
922         gl_PREREQ_INET_PTON here.
923         (Depends-on): Update condition.
924
925 2011-05-08  Bruno Haible  <bruno@clisp.org>
926
927         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
928         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
929         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
930         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
931         (gl_PREREQ_INET_NTOP): ... from here.
932         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
933         gl_PREREQ_INET_NTOP here.
934         (Depends-on): Update condition.
935
936 2011-05-08  Bruno Haible  <bruno@clisp.org>
937
938         iconv_open: Move AC_LIBOBJ invocations to module description.
939         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
940         AC_LIBOBJ invocations from here...
941         * modules/iconv_open (configure.ac): ... to here.
942
943 2011-05-08  Bruno Haible  <bruno@clisp.org>
944
945         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
946         If module 'iconv_open' is among the main modules and module
947         'iconv_open-utf' is among the tests dependencies, then
948         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
949         return the special iconv_t values. Therefore iconv() and iconv_close()
950         must support these special iconv_t values, already in lib, not only in
951         tests.
952         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
953         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
954         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
955         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
956         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
957         (Depends-on): Add the dependencies of iconv_open-utf.
958         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
959         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
960         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
961
962 2011-05-08  Bruno Haible  <bruno@clisp.org>
963
964         group-member: Move AC_LIBOBJ invocations to module description.
965         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
966         gl_PREREQ_GROUP_MEMBER invocations from here...
967         * modules/group-member (configure.ac): ... to here.
968
969 2011-05-08  Bruno Haible  <bruno@clisp.org>
970
971         grantpt: Move AC_LIBOBJ invocations to module description.
972         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
973         invocations from here...
974         * modules/grantpt (configure.ac): ... to here.
975
976 2011-05-08  Bruno Haible  <bruno@clisp.org>
977
978         glob: Move AC_LIBOBJ invocations to module description.
979         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
980         from here...
981         * modules/glob (configure.ac): ... to here.
982
983 2011-05-08  Bruno Haible  <bruno@clisp.org>
984
985         getusershell: Move AC_LIBOBJ invocations to module description.
986         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
987         Move AC_LIBOBJ invocation from here...
988         * modules/getusershell (configure.ac): ... to here.
989         (Depends-on): Update condition.
990
991 2011-05-08  Bruno Haible  <bruno@clisp.org>
992
993         gettimeofday: Move AC_LIBOBJ invocations to module description.
994         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
995         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
996         gl_PREREQ_GETTIMEOFDAY invocations from here...
997         * modules/gettimeofday (configure.ac): ... to here.
998
999 2011-05-08  Bruno Haible  <bruno@clisp.org>
1000
1001         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
1002         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
1003         just gl_FUNC_TZSET.
1004         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
1005         (gl_FUNC_TZSET_CLOBBER): Remove actions.
1006         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
1007         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
1008
1009 2011-05-08  Bruno Haible  <bruno@clisp.org>
1010
1011         getsubopt: Move AC_LIBOBJ invocations to module description.
1012         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
1013         gl_PREREQ_GETSUBOPT invocations from here...
1014         * modules/getsubopt (configure.ac): ... to here.
1015
1016 2011-05-08  Bruno Haible  <bruno@clisp.org>
1017
1018         getpass-gnu: Move AC_LIBOBJ invocations to module description.
1019         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
1020         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
1021         * modules/getpass-gnu (configure.ac): ... to here.
1022
1023 2011-05-08  Bruno Haible  <bruno@clisp.org>
1024
1025         getpass: Move AC_LIBOBJ invocations to module description.
1026         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
1027         gl_PREREQ_GETPASS invocations from here...
1028         * modules/getpass (configure.ac): ... to here.
1029
1030 2011-05-08  Bruno Haible  <bruno@clisp.org>
1031
1032         getpagesize: Move AC_LIBOBJ invocations to module description.
1033         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
1034         from here...
1035         * modules/getpagesize (configure.ac): ... to here.
1036
1037 2011-05-08  Bruno Haible  <bruno@clisp.org>
1038
1039         getopt: Move AC_LIBOBJ invocations to module description.
1040         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
1041         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
1042         invocations from here...
1043         * modules/getopt-gnu (configure.ac): ... to here.
1044         * modules/getopt-posix (configure.ac): ... and here.
1045         (Depends-on): Update condition.
1046
1047 2011-05-08  Bruno Haible  <bruno@clisp.org>
1048
1049         getopt, argp: Respect rules for use of AC_LIBOBJ.
1050         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
1051         (gl_REPLACE_GETOPT_ALWAYS): New macro.
1052         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
1053         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
1054
1055 2011-05-08  Bruno Haible  <bruno@clisp.org>
1056
1057         getlogin_r: Move AC_LIBOBJ invocations to module description.
1058         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
1059         gl_PREREQ_GETLOGIN_R invocations from here...
1060         * modules/getlogin_r (configure.ac): ... to here.
1061
1062 2011-05-08  Bruno Haible  <bruno@clisp.org>
1063
1064         getlogin: Move AC_LIBOBJ invocations to module description.
1065         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
1066         here...
1067         * modules/getlogin (configure.ac): ... to here.
1068
1069 2011-05-08  Bruno Haible  <bruno@clisp.org>
1070
1071         getloadavg: Move AC_LIBOBJ invocations to module description.
1072         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
1073         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
1074         * modules/getloadavg (configure.ac): ... to here.
1075
1076 2011-05-08  Bruno Haible  <bruno@clisp.org>
1077
1078         gethrxtime: Move AC_LIBOBJ invocations to module description.
1079         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
1080         LIB_GETHRXTIME from here...
1081         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
1082         invocations from here...
1083         * modules/gethrxtime (configure.ac): ... to here.
1084
1085 2011-05-08  Bruno Haible  <bruno@clisp.org>
1086
1087         gethostname: Move AC_LIBOBJ invocations to module description.
1088         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
1089         gl_PREREQ_GETHOSTNAME invocations from here...
1090         * modules/gethostname (configure.ac): ... to here.
1091
1092 2011-05-08  Bruno Haible  <bruno@clisp.org>
1093
1094         getgroups: Move AC_LIBOBJ invocations to module description.
1095         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
1096         here...
1097         * modules/getgroups (configure.ac): ... to here.
1098
1099 2011-05-08  Bruno Haible  <bruno@clisp.org>
1100
1101         getdtablesize: Move AC_LIBOBJ invocations to module description.
1102         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
1103         invocation from here...
1104         * modules/getdtablesize (configure.ac): ... to here.
1105
1106 2011-05-08  Bruno Haible  <bruno@clisp.org>
1107
1108         getdomainname: Move AC_LIBOBJ invocations to module description.
1109         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
1110         gl_PREREQ_GETDOMAINNAME invocations from here...
1111         * modules/getdomainname (configure.ac): ... to here.
1112
1113 2011-05-08  Bruno Haible  <bruno@clisp.org>
1114
1115         getline: Move AC_LIBOBJ invocations to module description.
1116         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
1117         invocations from here...
1118         * modules/getline (configure.ac): ... to here.
1119
1120 2011-05-08  Bruno Haible  <bruno@clisp.org>
1121
1122         getline: Simplify.
1123         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
1124         It's already handled through the module dependency.
1125
1126 2011-05-08  Bruno Haible  <bruno@clisp.org>
1127
1128         getdelim: Move AC_LIBOBJ invocations to module description.
1129         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
1130         and gl_PREREQ_GETDELIM invocations from here...
1131         * modules/getdelim (configure.ac): ... to here.
1132         (Depends-on): Fix condition.
1133
1134 2011-05-08  Bruno Haible  <bruno@clisp.org>
1135
1136         getcwd: Move AC_LIBOBJ invocations to module description.
1137         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
1138         invocations from here...
1139         * modules/getcwd (configure.ac): ... to here.
1140
1141 2011-05-08  Bruno Haible  <bruno@clisp.org>
1142
1143         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
1144         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
1145         here...
1146         * modules/getcwd-lgpl (configure.ac): ... to here.
1147
1148 2011-05-07  Bruno Haible  <bruno@clisp.org>
1149
1150         crypto/gc: Move AC_LIBOBJ invocations to module description.
1151         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
1152         * modules/crypto/gc (configure.ac): ... to here.
1153
1154 2011-05-07  Bruno Haible  <bruno@clisp.org>
1155
1156         fwriting: Move AC_LIBOBJ invocations to module description.
1157         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
1158         here...
1159         * modules/fwriting (configure.ac): ... to here.
1160
1161 2011-05-07  Bruno Haible  <bruno@clisp.org>
1162
1163         fwritable: Move AC_LIBOBJ invocations to module description.
1164         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
1165         here...
1166         * modules/fwritable (configure.ac): ... to here.
1167
1168 2011-05-07  Bruno Haible  <bruno@clisp.org>
1169
1170         futimens: Move AC_LIBOBJ invocations to module description.
1171         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
1172         here...
1173         * modules/futimens (configure.ac): ... to here.
1174
1175 2011-05-07  Bruno Haible  <bruno@clisp.org>
1176
1177         ftruncate: Move AC_LIBOBJ invocations to module description.
1178         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
1179         gl_PREREQ_FTRUNCATE invocations from here...
1180         * modules/ftruncate (configure.ac): ... to here.
1181
1182 2011-05-07  Bruno Haible  <bruno@clisp.org>
1183
1184         fsync: Move AC_LIBOBJ invocations to module description.
1185         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
1186         invocations from here...
1187         * modules/fsync (configure.ac): ... to here.
1188
1189 2011-05-07  Bruno Haible  <bruno@clisp.org>
1190
1191         fsusage: Move AC_LIBOBJ invocations to module description.
1192         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
1193         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
1194         * modules/fsusage (configure.ac): ... to here.
1195
1196 2011-05-07  Bruno Haible  <bruno@clisp.org>
1197
1198         freopen: Move AC_LIBOBJ invocations to module description.
1199         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
1200         invocations from here...
1201         * modules/freopen (configure.ac): ... to here.
1202
1203 2011-05-07  Bruno Haible  <bruno@clisp.org>
1204
1205         free: Move AC_LIBOBJ invocations to module description.
1206         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
1207         invocations from here...
1208         * modules/free (configure.ac): ... to here.
1209
1210 2011-05-07  Bruno Haible  <bruno@clisp.org>
1211
1212         freadable: Move AC_LIBOBJ invocations to module description.
1213         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
1214         here...
1215         * modules/freadable (configure.ac): ... to here.
1216
1217 2011-05-07  Bruno Haible  <bruno@clisp.org>
1218
1219         fpurge: Move AC_LIBOBJ invocations to module description.
1220         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
1221         invocations from here...
1222         * modules/fpurge (configure.ac): ... to here.
1223
1224 2011-05-07  Bruno Haible  <bruno@clisp.org>
1225
1226         fpending: Move AC_LIBOBJ invocations to module description.
1227         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
1228         gl_FUNC_FPENDING.
1229         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
1230         invocations from here...
1231         * modules/fpending (configure.ac): ... to here.
1232
1233 2011-05-07  Bruno Haible  <bruno@clisp.org>
1234
1235         fopen: Move AC_LIBOBJ invocations to module description.
1236         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
1237         invocations from here...
1238         * modules/fopen (configure.ac): ... to here.
1239
1240 2011-05-07  Bruno Haible  <bruno@clisp.org>
1241
1242         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
1243         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
1244         gl_FUNC_FNMATCH_POSIX.
1245         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
1246         invocations from here...
1247         * modules/fnmatch (configure.ac): ... to here.
1248         * modules/fnmatch-gnu (configure.ac): ... and here.
1249
1250 2011-05-07  Bruno Haible  <bruno@clisp.org>
1251
1252         flock: Move AC_LIBOBJ invocations to module description.
1253         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
1254         invocations from here...
1255         * modules/flock (configure.ac): ... to here.
1256
1257 2011-05-07  Bruno Haible  <bruno@clisp.org>
1258
1259         fileblocks: Move AC_LIBOBJ invocations to module description.
1260         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
1261         gl_PREREQ_FILEBLOCKS invocations from here...
1262         * modules/fileblocks (configure.ac): ... to here.
1263
1264 2011-05-06  Bruno Haible  <bruno@clisp.org>
1265
1266         fflush: Move AC_LIBOBJ invocations to module description.
1267         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
1268         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
1269         invocations from here...
1270         * modules/fflush (configure.ac): ... to here.
1271
1272 2011-05-06  Bruno Haible  <bruno@clisp.org>
1273
1274         fdopendir: Move AC_LIBOBJ invocations to module description.
1275         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
1276         here...
1277         * modules/fdopendir (configure.ac): ... to here.
1278         (Depends-on): Improve conditions.
1279
1280 2011-05-06  Bruno Haible  <bruno@clisp.org>
1281
1282         _Exit: Move AC_LIBOBJ invocations to module description.
1283         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
1284         invocations from here...
1285         * modules/_Exit (configure.ac): ... to here.
1286
1287 2011-05-21  Bruno Haible  <bruno@clisp.org>
1288
1289         euidaccess: Respect rules for use of AC_LIBOBJ.
1290         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1291         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
1292         from here...
1293         * modules/euidaccess (configure.ac): ... to here.
1294
1295 2011-05-06  Bruno Haible  <bruno@clisp.org>
1296
1297         error: Move AC_LIBOBJ invocations to module description.
1298         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
1299         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
1300         invocations from here...
1301         * modules/error (configure.ac): ... to here.
1302
1303 2011-05-06  Bruno Haible  <bruno@clisp.org>
1304
1305         duplocale: Move AC_LIBOBJ invocations to module description.
1306         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
1307         gl_PREREQ_DUPLOCALE invocations from here...
1308         * modules/duplocale (configure.ac): ... to here.
1309
1310 2011-05-05  Bruno Haible  <bruno@clisp.org>
1311
1312         dirfd: Move AC_LIBOBJ invocations to module description.
1313         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
1314         gl_FUNC_DIRFD.
1315         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
1316         here...
1317         * modules/dirfd (configure.ac): ... to here.
1318         (Depends-on): Fix condition.
1319
1320 2011-05-05  Bruno Haible  <bruno@clisp.org>
1321
1322         chown: Respect rules for use of AC_LIBOBJ.
1323         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
1324         * modules/chown (configure.ac): ... to here.
1325
1326 2011-05-05  Bruno Haible  <bruno@clisp.org>
1327
1328         chdir-long: Move AC_LIBOBJ invocations to module description.
1329         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
1330         gl_PREREQ_CHDIR_LONG invocations from here...
1331         * modules/chdir-long (configure.ac): ... to here.
1332
1333 2011-05-05  Bruno Haible  <bruno@clisp.org>
1334
1335         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
1336         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
1337         from here...
1338         * modules/canonicalize-lgpl (configure.ac): ... to here.
1339
1340 2011-05-05  Bruno Haible  <bruno@clisp.org>
1341
1342         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
1343         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
1344         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
1345         REPLACE_CALLOC.
1346         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
1347         * modules/calloc-gnu (configure.ac): Likewise.
1348
1349 2011-05-05  Bruno Haible  <bruno@clisp.org>
1350
1351         btowc: Move AC_LIBOBJ invocations to module description.
1352         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
1353         invocations from here...
1354         * modules/btowc (configure.ac): ... to here.
1355
1356 2011-05-21  Bruno Haible  <bruno@clisp.org>
1357
1358         atexit: Move AC_LIBOBJ invocations to module description.
1359         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
1360         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
1361         here...
1362         * modules/atexit (configure.ac): ... to here.
1363
1364 2011-05-05  Bruno Haible  <bruno@clisp.org>
1365
1366         atoll: Move AC_LIBOBJ invocations to module description.
1367         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
1368         invocations from here...
1369         * modules/atoll (configure.ac): ... to here.
1370
1371 2011-05-05  Bruno Haible  <bruno@clisp.org>
1372
1373         argz: Move AC_LIBOBJ invocations to module description.
1374         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
1375         * modules/argz (configure.ac): ... to here.
1376
1377 2011-05-05  Bruno Haible  <bruno@clisp.org>
1378
1379         alphasort: Move AC_LIBOBJ invocations to module description.
1380         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
1381         gl_PREREQ_ALPHASORT invocations from here...
1382         * modules/alphasort (configure.ac): ... to here.
1383
1384 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1385
1386         verify: new macro verify_expr; verify_true deprecated
1387         * NEWS: Mention this.
1388         * doc/verify.texi (Compile-time Assertions): Document this.
1389         * lib/verify.h (verify_true): Deprecate.
1390         (verify_expr): New macro.
1391         * tests/test-verify.c (function): Test verify_expr.
1392
1393 2011-06-14  Jim Meyering  <meyering@redhat.com>
1394
1395         init.sh: give more portable redirection-related advice in a comment
1396         * tests/init.sh (stderr_fileno_): Update the advice in comments.
1397         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
1398         for lots of discussion.  Stefano Lattarini suggested the solution
1399         of putting "9>&2" after the command.  Reported by Bruno Haible.
1400
1401 2011-06-13  Bruno Haible  <bruno@clisp.org>
1402
1403         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
1404         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
1405         'none'.
1406
1407 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
1408
1409         ftoastr: use strtof only if HAVE_STRTOF
1410         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
1411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
1412         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
1413         * modules/ftoastr (configure.ac): Check for strtof.
1414
1415 2011-06-13  Bruno Haible  <bruno@clisp.org>
1416
1417         gnulib-tool: Addendum to 2011-06-08 commit.
1418         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
1419         and --witness-c-macro have been given, augment AM_CPPFLAGS.
1420
1421 2011-06-13  Bruno Haible  <bruno@clisp.org>
1422
1423         fseeko: Provide a non-inline replacement of fseek().
1424         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
1425         * modules/fseeko (Depends-on): Add fseek.
1426         * modules/fseek (License): Change to LGPLv2+.
1427
1428 2011-06-13  Bruno Haible  <bruno@clisp.org>
1429
1430         ftello: Provide a non-inline replacement of ftell().
1431         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
1432         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
1433         not have ftello() (such as on mingw).
1434         * modules/ftello (Depends-on): Add ftell.
1435         * modules/ftell (License): Change to LGPLv2+.
1436
1437 2011-05-07  Bruno Haible  <bruno@clisp.org>
1438
1439         ftell: Move AC_LIBOBJ invocations to module description.
1440         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
1441         * modules/ftell (configure.ac): ... to here.
1442
1443 2011-05-07  Bruno Haible  <bruno@clisp.org>
1444
1445         ftello: Respect rules for use of AC_LIBOBJ.
1446         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
1447         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
1448         here...
1449         * modules/ftello (configure.ac): ... to here.
1450
1451 2011-05-07  Bruno Haible  <bruno@clisp.org>
1452
1453         fseeko: Simplify.
1454         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
1455         (gl_FUNC_FSEEKO): Inline it here.
1456
1457 2011-05-07  Bruno Haible  <bruno@clisp.org>
1458
1459         fseek: Move AC_LIBOBJ invocations to module description.
1460         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
1461         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1462         * modules/fseek (configure.ac): ... to here.
1463
1464 2011-05-07  Bruno Haible  <bruno@clisp.org>
1465
1466         fseek: Respect rules for use of AC_LIBOBJ.
1467         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
1468         here...
1469         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
1470
1471 2011-05-07  Bruno Haible  <bruno@clisp.org>
1472
1473         fseeko: Respect rules for use of AC_LIBOBJ.
1474         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
1475         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
1476         here...
1477         * modules/fseeko (configure.ac): ... to here.
1478
1479 2011-06-13  Bruno Haible  <bruno@clisp.org>
1480
1481         gnulib-tool: Allow comments in the 'Depends-on' section.
1482         * doc/gnulib.texi (Module description): Mention comment syntax in the
1483         Depends-on section.
1484         * gnulib-tool (func_get_dependencies): Filter out comment lines.
1485
1486 2011-06-13  Bruno Haible  <bruno@clisp.org>
1487
1488         file-set.h: guard __attibute__ use, now that it's not always defined
1489         * lib/file-set.h (record_file): Use __attribute__ only with compiler
1490         versions that support it.  This fixes a coreutils build failure with
1491         the vendor cc on HP-UX 11.31.
1492
1493 2011-06-12  Bruno Haible  <bruno@clisp.org>
1494
1495         acl: Add support for HP-UX >= 11.11 JFS ACLs.
1496         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
1497         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
1498         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
1499         (acl, aclsort): New declarations.
1500         (aclv_nontrivial): New declaration.
1501         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
1502         (file_has_acl): Read also the second kind of HP-UX ACLs.
1503         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
1504         kind of HP-UX ACLs if the first kind fails.
1505         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
1506         second kind of HP-UX ACLs.
1507         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
1508         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
1509         agree.
1510         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1511         hpuxjfs.
1512         Handle hpuxjfs.
1513         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1514         hpuxjfs.
1515         Handle hpuxjfs.
1516         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1517         (func_test_same_acls): Use both lsacl and getacl.
1518         Handle hpuxjfs.
1519         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1520         (func_test_same_acls): Use both lsacl and getacl.
1521         Handle hpuxjfs.
1522
1523 2011-06-12  Bruno Haible  <bruno@clisp.org>
1524
1525         acl: Complete the 2010-08-10 fix.
1526         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
1527         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
1528         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
1529         explicitly.
1530         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
1531         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
1532
1533 2011-06-12  Bruno Haible  <bruno@clisp.org>
1534
1535         spawn-pipe tests: Comments.
1536         * tests/test-spawn-pipe-child.c (main): Update comment.
1537         Reported by James Youngman <jay@gnu.org>.
1538
1539 2011-06-11  James Youngman  <jay@gnu.org>
1540
1541         New module 'stat-size'.
1542         * modules/stat-size: New module.  Provides macros for accessing
1543         file size information in instances of struct stat.  Depends on the
1544         fileblocks module because it calls st_blocks.
1545         * lib/stat-size.h: New file, adapted from coreutils' system.h.
1546         * doc/gnulib.texi: Include stat-size.texi.
1547         * doc/stat-size.texi: Documentation for this module.
1548         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
1549         * m4/fileblocks.m4: Mention that stat-size depends on the call to
1550         AC_STRUCT_ST_BLOCKS.
1551
1552 2011-06-09  Bruno Haible  <bruno@clisp.org>
1553
1554         thread: Support pthreads-win32.
1555         * lib/glthread/thread.h (gl_thread_self): Define differently on
1556         pthreads-win32.
1557         (gl_null_thread): New declaration.
1558         (gl_thread_self_pointer): New macro.
1559         * lib/glthread/thread.c (gl_null_thread): New constant.
1560         * tests/test-lock.c: Use gl_thread_self_pointer instead of
1561         gl_thread_self.
1562         * tests/test-tls.c: Likewise.
1563         Suggested by Paul Eggert. Reported by Eric Blake.
1564
1565 2011-06-09  Bruno Haible  <bruno@clisp.org>
1566
1567         thread: Fix confusion between NULL and 0.
1568         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
1569         Reported by Paul Eggert.
1570
1571 2011-06-09  Bruno Haible  <bruno@clisp.org>
1572
1573         spawn-pipe tests: Avoid test failure on HP-UX 11.
1574         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
1575         is closed.
1576
1577 2011-06-09  Bruno Haible  <bruno@clisp.org>
1578
1579         acl tests: Fix compilation error on HP-UX 11.
1580         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
1581
1582 2011-06-09  Bruno Haible  <bruno@clisp.org>
1583
1584         rmdir: Avoid test failure on HP-UX 10.20.
1585         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
1586         EEXIST.
1587
1588 2011-06-08  Eric Blake  <eblake@redhat.com>
1589
1590         perror: fix test on mingw
1591         * modules/perror-tests (Depends-on): Add dup2.
1592
1593         strerror_r-posix: fix on MacOS
1594         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
1595         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
1596         logic bug.
1597         * lib/strerror_r.c (strerror_r): Fix the bug.
1598         * lib/strerror.c (strerror): Likewise.
1599         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1600         problem.
1601         * doc/posix-functions/strerror.texi (strerror): Likewise.
1602         * doc/posix-functions/perror.texi (perror): Likewise.
1603         * tests/test-strerror.c (main): Enhance test.
1604         * tests/test-strerror_r.c (main): Likewise.
1605
1606 2011-06-08  Bruno Haible  <bruno@clisp.org>
1607
1608         gnulib-tool: Better isolation between different gnulib-tool invocations.
1609         * gnulib-tool: New option --witness-c-macro.
1610         (witness_c_macro): New variable.
1611         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
1612         AM_CPPFLAGS define it as a C macro.
1613         (func_emit_tests_Makefile_am): Likewise.
1614         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
1615         read it from there.
1616         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
1617         m4_define, not AC_DEFUN.
1618         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
1619         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
1620         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
1621         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
1622         s|...|...|, to substitute the values of the GNULIB_* module indicator
1623         variables.
1624         * modules/dirent (Makefile.am): Likewise.
1625         * modules/fcntl-h (Makefile.am): Likewise.
1626         * modules/iconv-h (Makefile.am): Likewise.
1627         * modules/langinfo (Makefile.am): Likewise.
1628         * modules/locale (Makefile.am): Likewise.
1629         * modules/math (Makefile.am): Likewise.
1630         * modules/netdb (Makefile.am): Likewise.
1631         * modules/poll-h (Makefile.am): Likewise.
1632         * modules/pty (Makefile.am): Likewise.
1633         * modules/search (Makefile.am): Likewise.
1634         * modules/signal (Makefile.am): Likewise.
1635         * modules/spawn (Makefile.am): Likewise.
1636         * modules/stdio (Makefile.am): Likewise.
1637         * modules/stdlib (Makefile.am): Likewise.
1638         * modules/string (Makefile.am): Likewise.
1639         * modules/sys_ioctl (Makefile.am): Likewise.
1640         * modules/sys_select (Makefile.am): Likewise.
1641         * modules/sys_socket (Makefile.am): Likewise.
1642         * modules/sys_stat (Makefile.am): Likewise.
1643         * modules/sys_times (Makefile.am): Likewise.
1644         * modules/sys_utsname (Makefile.am): Likewise.
1645         * modules/sys_wait (Makefile.am): Likewise.
1646         * modules/termios (Makefile.am): Likewise.
1647         * modules/time (Makefile.am): Likewise.
1648         * modules/unistd (Makefile.am): Likewise.
1649         * modules/wchar (Makefile.am): Likewise.
1650
1651 2011-06-08  Eric Blake  <eblake@redhat.com>
1652
1653         strerror: simplify replacement
1654         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
1655         * modules/strerror (configure.ac): No prereqs needed here...
1656         * modules/strerror-override (configure.ac): ...but this needs it.
1657         (Files): Add file for needed prereq macro.
1658
1659 2011-06-08  Bruno Haible  <bruno@clisp.org>
1660
1661         strerror_r-posix: Tweaks.
1662         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
1663         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
1664         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
1665         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
1666         (gl_FUNC_STRERROR_R): ... to here.
1667         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
1668
1669 2011-06-07  Eric Blake  <eblake@redhat.com>
1670
1671         perror: document fixed bugs
1672         * doc/posix-functions/perror.texi (perror): Document recent
1673         patches.
1674
1675 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
1676
1677         stat-time: get_stat_birthtime failure is better-defined
1678         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
1679         return a timestamp whose tv_sec and tv_nsec values are both -1.
1680         Previously, the spec said only that the tv_nsec value was negative.
1681         This upward-compatible change simplifies GNU tar a bit.
1682
1683 2011-06-07  Eric Blake  <eblake@redhat.com>
1684
1685         strerror_r-posix: work around cygwin 1.7.9
1686         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
1687         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
1688         bug without replacing strerror_r.
1689         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
1690         strerror_r is buggy, but without requiring strerror_r compilation.
1691         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
1692
1693         test-perror: relax test to ignore cygwin bug
1694         * tests/test-perror2.c (main): Relax test on requiring detection
1695         of stream errors, and use unbuffered stream.
1696         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
1697         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
1698         * doc/posix-functions/fputc.texi (fputc): Likewise.
1699         * doc/posix-functions/fputs.texi (fputs): Likewise.
1700         * doc/posix-functions/fputws.texi (fputws): Likewise.
1701         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
1702         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
1703         * doc/posix-functions/getopt.texi (getopt): Likewise.
1704         * doc/posix-functions/perror.texi (perror): Likewise.
1705         * doc/posix-functions/printf.texi (printf): Likewise.
1706         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
1707         * doc/posix-functions/psignal.texi (psignal): Likewise.
1708         * doc/posix-functions/putc.texi (putc): Likewise.
1709         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
1710         Likewise.
1711         * doc/posix-functions/putchar.texi (putchar): Likewise.
1712         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
1713         Likewise.
1714         * doc/posix-functions/puts.texi (puts): Likewise.
1715         * doc/posix-functions/putwc.texi (putwc): Likewise.
1716         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
1717         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
1718         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1719         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
1720         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1721         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
1722         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
1723         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
1724
1725 2011-05-22  Bruno Haible  <bruno@clisp.org>
1726
1727         strerror: Move AC_LIBOBJ invocations to module description.
1728         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
1729         gl_PREREQ_STRERROR invocations from here...
1730         * modules/strerror (configure.ac): ... to here.
1731
1732 2011-05-21  Bruno Haible  <bruno@clisp.org>
1733
1734         perror: Use common idiom.
1735         * modules/perror (configure.ac): Reorder statements.
1736
1737 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1738
1739         tests: fix usage message in 'mktempd_'
1740         * tests/init.sh (mktempd_): In the usage message, use literal
1741         'mktempd_', not '$ME' (which is even undefined), as the name of
1742         the subroutine.
1743
1744 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1745
1746         tests init: new function 'fatal_', for hard errors
1747         Before this patch, the only way offered by tests/init.sh to
1748         properly signal a hard error was the `framework_failure_'
1749         function.  But the error message issued by that function,
1750         as its name would suggest, refers to a set-up failure in the
1751         testsuite, while hard errors can obviously also be due to
1752         other reasons.  The best way to fix this inconsistency is to
1753         introduce a new function with a more general error message.
1754         * tests/init.sh (fatal_): New function.
1755
1756 2011-06-06  Eric Blake  <eblake@redhat.com>
1757
1758         canonicalize-lgpl: use common idiom
1759         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
1760         over newer POSIX -Rf.
1761         Reported by Bruno Haible.
1762
1763         canonicalize-lgpl: work around AIX realpath bug
1764         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
1765         * doc/posix-functions/realpath.texi (realpath): Document it.
1766         Reported by Bruno Haible.
1767
1768         strerror: work around FreeBSD bug
1769         * lib/strerror.c (strerror): Special case 0.
1770         Reported by Bruno Haible.
1771
1772         strerror-override: avoid bloating errno module
1773         * modules/errno (Files, configure.ac): Move replacement strings...
1774         * modules/strerror-override: ...to new module.
1775         * modules/strerror (Depends-on): Add strerror-override.
1776         * modules/strerror_r-posix (Depends-on): Likewise.
1777         * MODULES.html.sh: Document new module.
1778         Reported by Bruno Haible.
1779
1780 2011-06-06  Bruno Haible  <bruno@clisp.org>
1781
1782         spawn-pipe tests: Rename program.
1783         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
1784         * tests/test-spawn-pipe-child.c: Update comment.
1785         * tests/test-spawn-pipe.sh: Update.
1786         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
1787
1788         spawn-pipe tests: Link the child program only against libc.
1789         * tests/test-spawn-pipe-child.c: New file, extracted from
1790         tests/test-spawn-pipe.c.
1791         (main): Expect only one argument.
1792         (is_open): New function, copied from tests/test-pipe.c.
1793         * tests/test-spawn-pipe.c: Don't include <errno.h>.
1794         (child_main): Remove function.
1795         (test_pipe): Pass only one argument to the child program.
1796         (main): Remove child process code. Expect the child program's name as
1797         first argument.
1798         * tests/test-spawn-pipe.sh: Pass the child program's name as first
1799         argument.
1800         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
1801         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
1802         test-spawn-pipe-child against no libraries.
1803
1804 2011-06-06  Bruno Haible  <bruno@clisp.org>
1805
1806         careadlinkat: Avoid mismatch between ssize_t and int.
1807         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
1808         * lib/careadlinkat.c (careadlinkatcwd): Define always.
1809
1810 2011-06-06  Jim Meyering  <meyering@redhat.com>
1811
1812         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
1813         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
1814         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
1815
1816 2011-06-05  Bruno Haible  <bruno@clisp.org>
1817
1818         ansi-c++-opt: Interoperability with libtool.
1819         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
1820         set the variable to "no", not to ":".
1821         * NEWS: Mention the change.
1822
1823 2011-06-05  Bruno Haible  <bruno@clisp.org>
1824
1825         acl: Fix test failure on AIX 7.
1826         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
1827         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
1828
1829 2011-06-05  Bruno Haible  <bruno@clisp.org>
1830
1831         pipe-filter-ii: Fix test failure on AIX and IRIX.
1832         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
1833         with EAGAIN, retry with a smaller buffer size.
1834
1835 2011-06-05  Bruno Haible  <bruno@clisp.org>
1836
1837         localename: Fix link dependencies.
1838         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
1839         * modules/localename-tests (Makefile.am): Link test-localename with
1840         $(LIBTHREAD).
1841
1842 2011-06-05  Bruno Haible  <bruno@clisp.org>
1843
1844         error: Avoid gcc warning.
1845         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
1846
1847 2011-06-05  Bruno Haible  <bruno@clisp.org>
1848
1849         unsetenv: Avoid gcc warning.
1850         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
1851
1852 2011-06-05  Bruno Haible  <bruno@clisp.org>
1853
1854         setenv: Avoid gcc warning.
1855         * lib/setenv.c (setenv): Provide declaration if system lacks it.
1856
1857 2011-06-05  Bruno Haible  <bruno@clisp.org>
1858
1859         sys_select: Ensure memset is declared also on AIX 7.
1860         * lib/sys_select.in.h: Include <string.h> also on AIX.
1861         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
1862         self-contained also on AIX 7.1.
1863
1864 2011-06-04  Jim Meyering  <meyering@redhat.com>
1865
1866         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
1867         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
1868         function name, "error".
1869         (_gl_translatable_diag_func_re): New configurable variable.
1870
1871 2011-06-04  Bruno Haible  <bruno@clisp.org>
1872
1873         getopt: Avoid gcc warning.
1874         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
1875
1876 2011-06-04  Bruno Haible  <bruno@clisp.org>
1877
1878         strerror_r: Fix comments.
1879         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
1880         commit.
1881
1882 2011-06-04  Bruno Haible  <bruno@clisp.org>
1883
1884         perror: Fix compilation error.
1885         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
1886         Undefine fprintf, not sprintf.
1887         * modules/perror (Depends-on): Remove intprops, verify.
1888
1889 2011-06-04  Bruno Haible  <bruno@clisp.org>
1890
1891         setlocale: Enable replacement on Cygwin 1.5.
1892         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
1893         Cygwin 1.5.x.
1894         * doc/posix-functions/setlocale.texi: Mention that the problem with the
1895         LC_CTYPE category also exists on Cygwin 1.5.x.
1896
1897 2011-06-04  Bruno Haible  <bruno@clisp.org>
1898
1899         strerror-override: Don't disable symbol renamings.
1900         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
1901         * lib/strerror-override.c: Include config.h.
1902         (strerror_override): Don't undefine.
1903
1904 2011-06-03  Bruno Haible  <bruno@clisp.org>
1905
1906         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
1907         * lib/localename.h: Update copyright header.
1908         * lib/localename.c: Likewise.
1909         * lib/relocatable.h: Likewise.
1910         * lib/relocatable.c: Likewise.
1911
1912 2011-06-02  Bruno Haible  <bruno@clisp.org>
1913
1914         doc: Fix a module name.
1915         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
1916
1917 2011-06-02  Bruno Haible  <bruno@clisp.org>
1918
1919         pipe2: Remove dependency on 'nonblocking' module.
1920         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
1921         O_NONBLOCK is defined by gnulib.
1922         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
1923         is zero.
1924         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
1925         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
1926         defined by gnulib.
1927         (get_nonblocking_flag): New function.
1928         (main): Test O_NONBLOCK flag only if it is nonzero.
1929         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
1930
1931 2011-06-03  Jim Meyering  <meyering@redhat.com>
1932
1933         maint: three new prohibit-header-without-use rules
1934         Prohibit use of cloexec.h, posixver.h, same.h without use.
1935         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
1936         (sc_prohibit_posixver_without_use): Likewise.
1937         (sc_prohibit_same_without_use): Likewise.
1938
1939 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1940
1941         allocator: 'die' routine is now given requested size
1942         * lib/allocator.h (struct allocator.die): New size arg.
1943         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
1944         If the actual problem is an ssize_t limitation, not a size_t or
1945         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
1946
1947 2011-06-01  Eric Blake  <eblake@redhat.com>
1948
1949         strerror: drop strerror_r dependency
1950         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
1951         * lib/strerror-override.c (strerror_override): ...to new file.
1952         * lib/strerror-override.h: Add prototype.
1953         * lib/strerror-impl.h: Delete.
1954         * lib/strerror.c (strerror): New implementation.
1955         * modules/errno (Files): Add new files.
1956         (configure.ac): Compile new file as appropriate.
1957         * modules/strerror (Files): Drop unused file.
1958         (Depends-on): Drop strerror_r-posix.
1959         * MODULES.html.sh: Document strerror_r-posix.
1960         Requested by Sam Steingold.
1961
1962         perror: call strerror_r directly
1963         * modules/perror (Files): Drop strerror-impl.h.
1964         * lib/perror.c (perror): Use our own stack buffer, rather than
1965         calling a wrapper that uses static storage.
1966         * doc/posix-functions/perror.texi (perror): Document a limitation
1967         of our replacement.
1968
1969         strerror_r: fix includes for FreeBSD
1970         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
1971         since we use abort on some platforms.
1972         Reported by Matthias Bolte.
1973
1974 2011-05-31  Bruno Haible  <bruno@clisp.org>
1975
1976         Fix link errors in tests: openat-die uses gettext-h.
1977         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
1978         against $(LIBINTL).
1979         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
1980         against $(LIBINTL).
1981         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
1982         $(LIBINTL).
1983         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
1984         against $(LIBINTL).
1985         * modules/linkat-tests (Makefile.am): Link test-linkat against
1986         $(LIBINTL).
1987         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
1988         $(LIBINTL).
1989         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
1990         against $(LIBINTL).
1991         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
1992         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
1993         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
1994         $(LIBINTL).
1995         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
1996         $(LIBINTL).
1997         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
1998         $(LIBINTL).
1999         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2000
2001 2011-05-31  Bruno Haible  <bruno@clisp.org>
2002
2003         Fix link errors in tests: wait-process uses gettext-h.
2004         * modules/nonblocking-pipe-tests (Makefile.am): Set
2005         test_nonblocking_pipe_main_LDADD.
2006         * modules/nonblocking-socket-tests (Makefile.am): Link
2007         test-nonblocking-socket-main against $(LIBINTL).
2008         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2009
2010 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2011
2012         assert-h: work around 'verify' incompatibility
2013         * lib/verify.h: Use @...@ directives, not ifdef.
2014         * modules/assert-h (assert.h): Implement the directives.
2015         (assert.h): Substitute the symbol-prefix more consistently.
2016
2017 2011-05-29  Jim Meyering  <meyering@redhat.com>
2018
2019         trim: remove three superfluous assignments
2020         * lib/trim.c (trim2): Remove three superfluous assignments
2021         and correct brace positioning.
2022
2023 2011-05-29  Bruno Haible  <bruno@clisp.org>
2024
2025         wctype-h: Avoid namespace pollution on Solaris 2.6.
2026         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
2027         identifiers.
2028         * doc/posix-headers/wctype.texi: Mention the problem.
2029         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2030
2031 2011-05-28  Jim Meyering  <meyering@redhat.com>
2032
2033         parse-datetime.y: accommodate -Wstrict-overflow
2034         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
2035         placate -Wstrict-overflow.
2036
2037         trim: avoid a warning from -O2 -Wstrict-overflow
2038         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
2039
2040 2011-05-29  Bruno Haible  <bruno@clisp.org>
2041
2042         gnulib-tool: Fix bug in yesterday's commit.
2043         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
2044         twice.
2045
2046 2011-05-29  Bruno Haible  <bruno@clisp.org>
2047
2048         Allow multiple gnulib generated include files to be combined.
2049         * gnulib-tool (func_compute_include_guard_prefix): New function.
2050         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
2051         ${gl_include_guard_prefix} references.
2052         (func_import, func_create_testdir): Invoke
2053         func_compute_include_guard_prefix.
2054         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
2055         * lib/ctype.in.h: Likewise.
2056         * lib/dirent.in.h: Likewise.
2057         * lib/errno.in.h: Likewise.
2058         * lib/fcntl.in.h: Likewise.
2059         * lib/float.in.h: Likewise.
2060         * lib/getopt.in.h: Likewise.
2061         * lib/iconv.in.h: Likewise.
2062         * lib/langinfo.in.h: Likewise.
2063         * lib/locale.in.h: Likewise.
2064         * lib/math.in.h: Likewise.
2065         * lib/netdb.in.h: Likewise.
2066         * lib/netinet_in.in.h: Likewise.
2067         * lib/poll.in.h: Likewise.
2068         * lib/pthread.in.h: Likewise.
2069         * lib/pty.in.h: Likewise.
2070         * lib/sched.in.h: Likewise.
2071         * lib/se-selinux.in.h: Likewise.
2072         * lib/search.in.h: Likewise.
2073         * lib/signal.in.h: Likewise.
2074         * lib/spawn.in.h: Likewise.
2075         * lib/stdarg.in.h: Likewise.
2076         * lib/stddef.in.h: Likewise.
2077         * lib/stdint.in.h: Likewise.
2078         * lib/stdio.in.h: Likewise.
2079         * lib/stdlib.in.h: Likewise.
2080         * lib/string.in.h: Likewise.
2081         * lib/strings.in.h: Likewise.
2082         * lib/sys_file.in.h: Likewise.
2083         * lib/sys_ioctl.in.h: Likewise.
2084         * lib/sys_select.in.h: Likewise.
2085         * lib/sys_socket.in.h: Likewise.
2086         * lib/sys_stat.in.h: Likewise.
2087         * lib/sys_time.in.h: Likewise.
2088         * lib/sys_times.in.h: Likewise.
2089         * lib/sys_uio.in.h: Likewise.
2090         * lib/sys_utsname.in.h: Likewise.
2091         * lib/sys_wait.in.h: Likewise.
2092         * lib/sysexits.in.h: Likewise.
2093         * lib/termios.in.h: Likewise.
2094         * lib/time.in.h: Likewise.
2095         * lib/unistd.in.h: Likewise.
2096         * lib/wchar.in.h: Likewise.
2097         * lib/wctype.in.h: Likewise.
2098         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
2099         * modules/ctype (Makefile.am): Likewise.
2100         * modules/dirent (Makefile.am): Likewise.
2101         * modules/errno (Makefile.am): Likewise.
2102         * modules/fcntl-h (Makefile.am): Likewise.
2103         * modules/float (Makefile.am): Likewise.
2104         * modules/getopt-posix (Makefile.am): Likewise.
2105         * modules/iconv-h (Makefile.am): Likewise.
2106         * modules/langinfo (Makefile.am): Likewise.
2107         * modules/locale (Makefile.am): Likewise.
2108         * modules/math (Makefile.am): Likewise.
2109         * modules/netdb (Makefile.am): Likewise.
2110         * modules/netinet_in (Makefile.am): Likewise.
2111         * modules/poll-h (Makefile.am): Likewise.
2112         * modules/pthread (Makefile.am): Likewise.
2113         * modules/pty (Makefile.am): Likewise.
2114         * modules/sched (Makefile.am): Likewise.
2115         * modules/search (Makefile.am): Likewise.
2116         * modules/selinux-h (Makefile.am): Likewise.
2117         * modules/signal (Makefile.am): Likewise.
2118         * modules/spawn (Makefile.am): Likewise.
2119         * modules/stdarg (Makefile.am): Likewise.
2120         * modules/stddef (Makefile.am): Likewise.
2121         * modules/stdint (Makefile.am): Likewise.
2122         * modules/stdio (Makefile.am): Likewise.
2123         * modules/stdlib (Makefile.am): Likewise.
2124         * modules/string (Makefile.am): Likewise.
2125         * modules/strings (Makefile.am): Likewise.
2126         * modules/sys_file (Makefile.am): Likewise.
2127         * modules/sys_ioctl (Makefile.am): Likewise.
2128         * modules/sys_select (Makefile.am): Likewise.
2129         * modules/sys_socket (Makefile.am): Likewise.
2130         * modules/sys_stat (Makefile.am): Likewise.
2131         * modules/sys_time (Makefile.am): Likewise.
2132         * modules/sys_times (Makefile.am): Likewise.
2133         * modules/sys_uio (Makefile.am): Likewise.
2134         * modules/sys_utsname (Makefile.am): Likewise.
2135         * modules/sys_wait (Makefile.am): Likewise.
2136         * modules/sysexits (Makefile.am): Likewise.
2137         * modules/termios (Makefile.am): Likewise.
2138         * modules/time (Makefile.am): Likewise.
2139         * modules/unistd (Makefile.am): Likewise.
2140         * modules/wchar (Makefile.am): Likewise.
2141         * modules/wctype-h (Makefile.am): Likewise.
2142         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
2143
2144 2011-05-29  Bruno Haible  <bruno@clisp.org>
2145
2146         assert-h: Allow multiple gnulib generated replacements to coexist.
2147         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
2148
2149 2011-05-29  Bruno Haible  <bruno@clisp.org>
2150
2151         argp: Allow coexistence with strerror_r-posix module.
2152         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
2153         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
2154         by gnulib's <string.h> replacement), assume it has the POSIX signature,
2155         not the glibc signature.
2156
2157 2011-05-28  Bruno Haible  <bruno@clisp.org>
2158
2159         gnulib-tool: Alternative structure of testdirs, similar to --import.
2160         * gnulib-tool: New option --single-configure.
2161         (func_usage): Document it.
2162         (single_configure): New variable.
2163         (func_modules_transitive_closure_separately,
2164         func_modules_transitive_closure_separately,
2165         func_determine_use_libtests, func_modules_add_dummy_separately,
2166         func_modules_to_filelist_separately): New functions, extracted from
2167         func_import.
2168         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
2169         (func_import): Use the new functions.
2170         (func_create_testdir): Set final_modules. Handle $single_configure =
2171         true case.
2172
2173 2011-05-28  Bruno Haible  <bruno@clisp.org>
2174
2175         getloadavg: Remove an unreliable safety check.
2176         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
2177         getloadavg.c is in place.
2178         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
2179         Reported by Sam Steingold <sds@gnu.org>.
2180
2181 2011-05-28  Bruno Haible  <bruno@clisp.org>
2182
2183         doc: Cleanup yet another file produced by texinfo.tex.
2184         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
2185
2186 2011-05-28  Bruno Haible  <bruno@clisp.org>
2187
2188         Finish the conditional dependencies mechanism.
2189         * gnulib-tool: New option --no-conditional-dependencies.
2190         (func_usage): Document it. Don't mark --conditional-dependencies as
2191         experimental.
2192         (cond_dependencies): The possible values can now be true, false, empty.
2193         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
2194         (func_import): Store setting in gnulib-cache.m4 and read it from there.
2195         * doc/gnulib-tool.texi (Conditional dependencies): New section.
2196
2197 2011-05-28  Bruno Haible  <bruno@clisp.org>
2198
2199         doc: Use a recent texinfo.tex.
2200         * doc/Makefile (tex_opts): New variable.
2201         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
2202
2203 2011-05-28  Jim Meyering  <meyering@redhat.com>
2204
2205         intprops.h: adjust comment to match code change
2206         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
2207         only once, it *may* have side effects.  Also fix an unrelated typo.
2208         (_GL_INT_SIGNED): Likewise.
2209
2210 2011-05-26  Simon Josefsson  <simon@josefsson.org>
2211
2212         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
2213
2214 2011-05-26  Bruno Haible  <bruno@clisp.org>
2215
2216         mbsrchr: Avoid collision with system function on Interix.
2217         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
2218         Reported by Markus Duft <mduft@gentoo.org>.
2219
2220 2011-05-15  James Youngman  <jay@gnu.org>
2221
2222         getopt: for ambiguous options, enumerate the possibilities.
2223         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
2224         the ambiguous options when an ambiguous prefix is given. This was
2225         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
2226         glibc change was
2227         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
2228
2229 2011-05-25  Eric Blake  <eblake@redhat.com>
2230
2231         getcwd: work around mingw bug
2232         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
2233         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2234         Reported by Matthias Bolte.
2235
2236 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2237
2238         test-intprops: disable -Wtype-limits diagnostics
2239         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
2240         diagnostics.  Otherwise, the integer overflow macros generate many
2241         diagnostics.  Reported by Jim Meyering in
2242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2243
2244         intprops: shorten, to pacify gcc -Woverlength-strings
2245         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
2246         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
2247         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
2248         likely to run afoul of C compiler limits for string constant lengths.
2249         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2250
2251 2011-05-24  Eric Blake  <eblake@redhat.com>
2252
2253         docs: document recently fixed glibc printf bug
2254         * doc/posix-functions/fprintf.texi (fprintf): Document it.
2255         * doc/posix-functions/printf.texi (printf): Likewise.
2256         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2257         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2258
2259         closein-tests: convert to init.sh
2260         * modules/closein-tests (Files): Add init.sh
2261         * tests/test-closein.sh Use it.
2262
2263         yesno-tests: convert to init.sh
2264         * modules/yesno-tests (Files): Add init.sh.
2265         * tests/test-yesno.sh: Use it.
2266
2267         atexit-tests: ensure reliable exit status
2268         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
2269         Reported by Bruno Haible.
2270
2271 2011-05-24  Bruno Haible  <bruno@clisp.org>
2272
2273         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
2274         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
2275         gl_PREREQ_STRERROR_R invocations from here...
2276         * modules/strerror_r-posix (configure.ac): ... to here.
2277
2278 2011-05-24  Eric Blake  <eblake@redhat.com>
2279
2280         strerror_r: fix missing header
2281         * lib/strerror_r.c: Avoid compiler warning about snprintf.
2282
2283         strerror_r: fix AIX test failures
2284         * lib/strerror_r.c (strerror_r): Convert silent truncation to
2285         ERANGE failure.
2286
2287         strerror_r: fix Solaris test failures
2288         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
2289         failures.
2290         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2291
2292         strerror_r: enforce POSIX recommendations
2293         * lib/strerror_r.c (safe_copy): New helper method.
2294         (strerror_r): Guarantee a non-empty string.
2295         * tests/test-strerror_r.c (main): Enhance tests to incorporate
2296         recent POSIX rulings and to match our strerror guarantees.
2297         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2298
2299 2011-05-24  Jim Meyering  <meyering@redhat.com>
2300
2301         test-perror2.c: avoid warning about unused variable
2302         * tests/test-perror2.c (main): Remove declaration of unused "fp".
2303
2304 2011-05-24  Eric Blake  <eblake@redhat.com>
2305
2306         perror: avoid spurious test failure on HP-UX
2307         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
2308
2309         tests: fix logic bug in init.sh
2310         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
2311         shell.
2312
2313 2011-05-24  Jim Meyering  <meyering@redhat.com>
2314
2315         utimensat: do not reference an out-of-scope buffer
2316         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
2317         declared in an inner scope, yet "times" would be dereferenced outside
2318         the scope in which "ts" was valid.
2319         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
2320         of ts[2] "out/up", so that the use of aliased "times" (via
2321         "times = ts;") does not end up referencing an out-of-scope "ts"
2322
2323         opendir-safer.c: don't clobber errno; don't close negative FD
2324         * lib/opendir-safer.c (opendir_safer):
2325         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
2326         file descriptor, and more importantly, don't clobber the
2327         offending errno value with EINVAL.  Before, upon failure
2328         of dup_safer, we would pass the negative file descriptor to
2329         fdopendir, which would clobber errno.
2330
2331 2011-05-23  Bruno Haible  <bruno@clisp.org>
2332
2333         idcache: Fix module description.
2334         * modules/idcache (Include): Set to "idcache.h".
2335
2336 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2337
2338         gnulib-tool: fix portability problem with MacOS sed
2339         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
2340         before the "}".  Problem reported by Leo in
2341         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
2342         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
2343         sed_extract_condition1, sed_extract_condition2.
2344
2345 2011-05-23  Bruno Haible  <bruno@clisp.org>
2346
2347         hash: Simplify autoconf macro.
2348         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
2349
2350 2011-05-23  Bruno Haible  <bruno@clisp.org>
2351
2352         getugroups: Fix module description.
2353         * modules/getugroups (Include): Set to "getugroups.h".
2354
2355 2011-05-23  Bruno Haible  <bruno@clisp.org>
2356
2357         linkat: Simplify autoconf macro.
2358         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
2359
2360 2011-05-23  Bruno Haible  <bruno@clisp.org>
2361             Eric Blake  <eblake@redhat.com>
2362
2363         linkat, renameat: Update dependencies.
2364         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
2365         * modules/linkat (Depends-on): Likewise. Remove also readlink,
2366         symlinkat.
2367
2368 2011-05-23  Jim Meyering  <meyering@redhat.com>
2369
2370         maint.mk: more tight_scope improvements
2371         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
2372         (_gl_TS_headers): Define only in if-0'd block.
2373         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
2374         sometimes we must *not* use it.  Adjust uses accordingly.
2375         (sc_tight_scope): Use much simpler grep-based test to determine
2376         whether we skip this rule.
2377
2378         maint.mk: generalize/improve the tight-scope rule
2379         * top/maint.mk: Emit a warning when the test is skipped.
2380         (_gl_TS_dir): Add $(srcdir)/ prefix.
2381         (_gl_TS_function_match): Simplify, rather than trying
2382         to enumerate common types.  Otherwise, it would fail to match an
2383         "extern unsigned char const *" declaration in idutils.
2384         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
2385         a way to support use of that type of macro.
2386         (_gl_TS_var_match): Simplify regexp.
2387         (_gl_TS_obj_files): New configurable variable.
2388         (_gl_TS_headers): Likewise.
2389
2390 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2391
2392         verify: fix bug when gnulib <assert.h> is also included
2393         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
2394         is defined, not if _GL_STATIC_ASSERT_H is not defined.
2395         Perhaps there's a better way, but this fixes the immediate problem.
2396         Problem reported by Bruno Haible in
2397         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
2398
2399 2011-05-22  Bruno Haible  <bruno@clisp.org>
2400
2401         xgetcwd: Simplify autoconf macro.
2402         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
2403
2404 2011-05-22  Bruno Haible  <bruno@clisp.org>
2405
2406         New module 'mktime-internal'.
2407         * modules/mktime-internal: New file.
2408         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
2409         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
2410         mktime_internal as a C macro if libc has __mktime_internal.
2411         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
2412         conditions.
2413         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
2414
2415 2011-05-22  Bruno Haible  <bruno@clisp.org>
2416
2417         timegm: Correct mktime replacement statements.
2418         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
2419         defining mktime as a C macro. This completes a 2009-07-28 commit.
2420
2421 2011-05-22  Bruno Haible  <bruno@clisp.org>
2422
2423         timegm: Simplify autoconf macro.
2424         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
2425
2426 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2427
2428         clock-time: change to LGPLv2+.
2429         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
2430         BSD-like but we have no mark for that; this is good enough for now.
2431
2432 2011-05-21  Bruno Haible  <bruno@clisp.org>
2433
2434         strerror_r: Fix comments.
2435         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
2436
2437 2011-05-21  Bruno Haible  <bruno@clisp.org>
2438
2439         relocatable-prog-wrapper: Fix possible link error.
2440         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
2441         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
2442         (gl_FUNC_SETENV): ... to here.
2443         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
2444         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
2445
2446 2011-05-21  Bruno Haible  <bruno@clisp.org>
2447
2448         relocatable-prog-wrapper: Assume strerror() exists.
2449         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
2450         m4/strerror.m4.
2451         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
2452         * lib/relocwrapper.c: Remove mention of strerror module.
2453         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
2454         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
2455         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
2456         C macro.
2457
2458 2011-05-21  Bruno Haible  <bruno@clisp.org>
2459
2460         select: Simplify replacement idiom.
2461         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
2462         Win32 platforms.
2463         * lib/sys_select.in.h (select): Simplify accordingly.
2464         * modules/select (Depends-on): Likewise.
2465
2466 2011-05-21  Bruno Haible  <bruno@clisp.org>
2467
2468         mkdir-p: Simplify autoconf macro.
2469         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
2470         gl_FUNC_LCHOWN.
2471
2472 2011-05-21  Eric Blake  <eblake@redhat.com>
2473
2474         strerror_r: avoid clobbering strerror on cygwin
2475         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
2476         fall back instead to sys_errlist.
2477         * modules/strerror (configure.ac): Add witness.
2478         * tests/test-strerror_r.c (main): Enhance test.
2479         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2480         * tests/test-perror2.c (main): Free memory before exit.
2481
2482 2011-05-21  Bruno Haible  <bruno@clisp.org>
2483
2484         mkdtemp: Use gnulib naming conventions.
2485         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
2486         * modules/mkdtemp (configure.ac): Update.
2487
2488 2011-05-20  Eric Blake  <eblake@redhat.com>
2489
2490         strerror_r: avoid corrupting errno on Solaris
2491         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
2492         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2493
2494         strerror_r: avoid compiler warning
2495         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
2496
2497         strerror_r: simplify AIX code
2498         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
2499
2500         test-perror: avoid spurious failure on FreeBSD
2501         * modules/perror-tests (Depends-on): Add strerror, now that
2502         strerror_r no longer pulls it in.
2503
2504 2011-05-20  Bruno Haible  <bruno@clisp.org>
2505
2506         strerror_r-posix: Remove unused dependencies.
2507         * modules/strerror_r-posix (Depends-on): Remove strerror.
2508         Reported by Eric Blake.
2509
2510 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2511
2512         intprops: remove assumption about A|B representation
2513         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
2514         is a valid integer if both A and B are.  Although this is true for
2515         all known practical hosts, the C standard doesn't guarantee it,
2516         and the code need not assume it.  Also, this change may work around
2517         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
2518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
2519
2520 2011-05-20  Eric Blake  <eblake@redhat.com>
2521
2522         perror: work around FreeBSD bug
2523         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
2524         is broken.  Move AC_LIBOBJ...
2525         * modules/perror (configure.ac): Here.
2526         * doc/posix-functions/perror.texi (perror): Document this.
2527         * tests/test-perror2.c (main): Enhance test.
2528
2529         test-perror: check for strerror interactions
2530         * tests/macros.h (STREQ): Add macro.
2531         * modules/perror-tests (Files): Add second test.
2532         * tests/test-perror2.c (main): New file.
2533         * doc/posix-functions/perror.texi (perror): Document glibc bug.
2534
2535         test-perror: rewrite to use init script
2536         * modules/perror-tests (Files): Add init.sh.
2537         * tests/test-perror.sh: Use temporary directory.
2538
2539 2011-05-20  Jim Meyering  <meyering@redhat.com>
2540
2541         maint: replace misused "a" with "an"
2542         * doc/intprops.texi: "a integer"
2543         * doc/regex.texi: "a explanation"
2544         * lib/alignof.h: "a object"
2545         * lib/argmatch.h: "a explanation"
2546         * lib/argp-help.c: "a option" and "a OPTION_DOC"
2547         * lib/stdint.in.h: "a integer"
2548         * lib/userspec.c: "a owner"
2549         * doc/gnulib.texi: Fix "a idea", and reword.
2550
2551 2011-05-19  Jim Meyering  <meyering@redhat.com>
2552
2553         maint: correct misuse of "a" and "an"
2554         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
2555         * lib/argp-help.c: "an docum...": s/an/a/
2556         * lib/argp-parse.c: "An vector": s/An/A/
2557         * lib/execute.c: "an native": s/an/a/
2558         * lib/spawn-pipe.c: Likewise.
2559         * lib/gc.h: "an Gc_rc": s/an/a/
2560         * lib/unigbrk.in.h: "an grapheme": s/an/a/
2561         * lib/fts.c: "an stat.st_dev": s/an/a/
2562
2563 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2564
2565         intprops-tests: work around HP-UX 11.23 cc bug with constants
2566         * tests/test-intprops.c (VERIFY): New macro.
2567         (main): Use it, instead of verify, to work around the compiler bug; see
2568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2569
2570         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
2571         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
2572         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
2573         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
2574         (_GL_REMAINDER_OVERFLOW): Use it.
2575
2576         intprops-tests: revert unsigned part of previous change
2577         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
2578         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
2579         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
2580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
2581
2582 2011-05-19  Bruno Haible  <bruno@clisp.org>
2583
2584         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
2585         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
2586         strerror_r() returned without filling the buffer.
2587         Reported by Eric Blake.
2588
2589 2011-05-19  Eric Blake  <eblake@redhat.com>
2590
2591         strerror_r: guarantee unchanged errno
2592         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
2593         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
2594         failure.
2595         * tests/test-strerror_r.c (main): Enhance test.
2596
2597 2011-05-19  Bruno Haible  <bruno@clisp.org>
2598
2599         strerror_r: Reorder #if blocks.
2600         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
2601         for consistency with the previous commit.
2602
2603 2011-05-19  Bruno Haible  <bruno@clisp.org>
2604
2605         perror: Avoid clobbering the strerror buffer when possible.
2606         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
2607         * lib/strerror.c: Include it.
2608         * modules/strerror (Files): Add lib/strerror-impl.h.
2609         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
2610         (my_strerror): New function, defined through lib/strerror-impl.h.
2611         (perror): Use it instead of strerror.
2612         * modules/perror (Files): Add lib/strerror-impl.h.
2613         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
2614
2615 2011-05-19  Eric Blake  <eblake@redhat.com>
2616
2617         strerror_r: fix on newer cygwin
2618         * lib/strerror_r.c (strerror_r): Cygwin now has
2619         __xpg_strerror_r, use it.
2620
2621 2011-05-19  Bruno Haible  <bruno@clisp.org>
2622
2623         strerror_r: Avoid clobbering the strerror buffer when possible.
2624         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
2625         (sys_nerr, sys_errlist): New declarations.
2626         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
2627         HP-UX, native Win32, IRIX, and 32-bit Solaris.
2628         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
2629
2630 2011-05-19  Bruno Haible  <bruno@clisp.org>
2631
2632         strerror_r: Fix test failure on mingw.
2633         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
2634         EXTEND_STRERROR_R.
2635         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
2636         macros from errno.in.h instead.
2637
2638 2011-05-19  Eric Blake  <eblake@redhat.com>
2639
2640         strerror: relax test for Solaris
2641         * tests/test-strerror.c (main): Permit Solaris behavior.
2642         * tests/test-strerror_r.c (main): Likewise.
2643
2644         strerror: enforce POSIX ruling on strerror(0)
2645         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
2646         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2647         * lib/strerror_r.c (rpl_strerror_r): Work around it.
2648         * doc/posix-functions/strerror.texi (strerror): Document it.
2649         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
2650         * tests/test-strerror.c (main): Strengthen test.
2651         * tests/test-strerror_r.c (main): Likewise.
2652
2653 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2654
2655         intprop-tests: port to older and more-pedantic compilers
2656         * modules/intprops-tests (Files): Add tests/macros.h.
2657         * tests/test-intprops.c: Include macros.h.
2658         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
2659         it's no longer documented to expand to an integer constant expression.
2660         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
2661         argument is floating point, as it's no longer documented to expand
2662         to an integer constant expression in that case.
2663         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
2664         compiler bugs reported by Bruno Haible.  See
2665         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2666         (U0, U1): New constants, to work around the same bugs.  Also,
2667         in tests, use e.g., "(unsigned int) 39" rather than "39u".
2668
2669         intprops: work around C compiler bugs
2670         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
2671         bug in Sun C 5.11 2010/08/13 and other compilers; see
2672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2673
2674         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
2675         * doc/intprops.texi (Integer Type Determination): Fix
2676         documentation for TYPE_IS_INTEGER: it returns an constant
2677         expression, not an integer constant expression.  Fix doc for
2678         TYPE_SIGNED: it returns an integer constant expression only if its
2679         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
2680         hardly worth documented that way....)
2681
2682 2011-05-18  Bruno Haible  <bruno@clisp.org>
2683
2684         strerror_r: Avoid clobbering the strerror buffer when possible.
2685         * lib/strerror_r.c (strerror_r): Merge the three implementations.
2686         Handle gnulib defined errno values here. When strerror() returns NULL
2687         or an empty string, return EINVAL.
2688         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
2689         gnulib defined errno values here.
2690         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
2691
2692 2011-05-18  Eric Blake  <eblake@redhat.com>
2693
2694         fnmatch: avoid compiler warning
2695         * lib/fnmatch_loop.c (FCT): Use correct type.
2696         Reported by Matthias Bolte.
2697
2698 2011-05-13  Jim Meyering  <meyering@redhat.com>
2699
2700         maint.mk: three new prohibit_<HDR>_without_use rules
2701         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
2702         (sc_prohibit_stdio-safer_without_use): Likewise.
2703         (sc_prohibit_xfreopen_without_use): Likewise.
2704
2705 2011-05-17  Jim Meyering  <meyering@redhat.com>
2706
2707         announce-gen: fail if the NEWS delta is empty
2708         If there's nothing noteworthy in NEWS, then either you forgot
2709         or you shouldn't be releasing.
2710         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
2711
2712 2011-05-17  Pádraig Brady <P@draigBrady.com>
2713
2714         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
2715         reserved symbols starting with double underscore from the check.
2716
2717 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
2718
2719         intprops: add doc
2720         * doc/intprops.texi: New file, documenting intprops.
2721         * doc/gnulib.texi (Particular Modules): Include it.
2722
2723         verify: add doc to gnulib manual and fix example
2724         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
2725         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
2726         (Compile-time Assertions): Fix example so it can't overflow.
2727
2728 2011-05-17  Jim Meyering  <meyering@redhat.com>
2729
2730         warnings.m4: don't usurp save_CPPFLAGS variable name
2731         * m4/warnings.m4: Prefix local temporary variable name with gl_.
2732
2733         doc: fix typo
2734         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
2735
2736 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2737             Bruno Haible  <bruno@clisp.org>
2738
2739         doc: Tweak recent change.
2740         * README (Portability guidelines): Tweak new text.
2741         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
2742         Interix 6.1.
2743
2744 2011-05-16  Eric Blake  <eblake@redhat.com>
2745
2746         inttypes: avoid autoconf warning
2747         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
2748         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2749
2750 2011-05-16  Sam Steingold <sds@gnu.org>
2751         and Eric Blake  <eblake@redhat.com>
2752
2753         vc-list-files: accept multiple directory operands
2754         * build-aux/vc-list-files: Iterate over all remaining operands.
2755
2756 2011-05-16  Bruno Haible  <bruno@clisp.org>
2757
2758         Fix confusion regarding deprecated modules.
2759         * modules/calloc (Status, Notice): Mark module as deprecated, not
2760         obsolete.
2761         * modules/fnmatch-posix (Status, Notice): Likewise.
2762         * modules/getdate (Status, Notice): Likewise.
2763         * modules/getopt (Status, Notice): Likewise.
2764         * modules/malloc (Status, Notice): Likewise.
2765         * modules/pipe (Status, Notice): Likewise.
2766         * modules/realloc (Status, Notice): Likewise.
2767         * modules/rename-dest-slash (Status, Notice): Likewise.
2768         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
2769         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
2770         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
2771         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
2772         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
2773
2774 2011-05-16  Bruno Haible  <bruno@clisp.org>
2775
2776         doc: List the target platforms.
2777         * doc/gnulib-intro.texi (Target Platforms): New section.
2778         * doc/gnulib.texi (Introduction): Update menu.
2779         * README (Portability guidelines): Refer to the new section. Update
2780         statement about oldest supported environment. Remove rationale why
2781         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
2782         unportable C89 function.
2783         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
2784         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
2785
2786 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2787
2788         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
2789
2790 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2791
2792         intprops-tests: new module
2793         * modules/intprops-tests, tests/test-intprops.c: New files.
2794
2795         intprops: add safe, portable integer overflow checking
2796         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
2797         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
2798         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
2799         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
2800         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
2801         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
2802         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
2803         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
2804         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
2805         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
2806         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
2807
2808 2011-05-12  James Youngman  <jay@gnu.org>
2809
2810         Add a test for glibc's Bugzilla bug #12378.
2811         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
2812         doesn't allow the literal matching of a lone "[" (which is
2813         required by POSIX).
2814         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
2815
2816 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
2817
2818         Sync glibc change fixing Bugzilla bug #12378.
2819         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
2820         beginning and fall back to matching as normal character if the
2821         string ends before the matching ']' is found.  This is what POSIX
2822         requires.
2823
2824 2011-05-13  Eric Blake  <eblake@redhat.com>
2825
2826         getcwd-lgpl: relax test for FreeBSD
2827         * doc/posix-functions/getcwd.texi (getcwd): Document portability
2828         issue.
2829         * tests/test-getcwd-lgpl.c (main): Relax test.
2830         Reported by Matthias Bolte.
2831
2832 2011-05-11  Eric Blake  <eblake@redhat.com>
2833
2834         test-fflush: silence compiler warning
2835         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
2836
2837 2011-05-11  Bruno Haible  <bruno@clisp.org>
2838
2839         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
2840         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
2841         * modules/canonicalize (Depends-on): Add 'nocrash'.
2842         * modules/canonicalize-lgpl (Depends-on): Likewise.
2843         * doc/posix-functions/realpath.texi: Update platforms list.
2844         Reported by Ryan Schmidt <ryandesign@macports.org>.
2845
2846 2011-05-11  Bruno Haible  <bruno@clisp.org>
2847
2848         group-member: Declare function in <unistd.h>.
2849         * lib/unistd.in.h (group_member): New declaration.
2850         * lib/group-member.h: Remove file.
2851         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
2852         * tests/test-unistd-c++.cc: Check signature of group_member.
2853         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
2854         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
2855         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
2856         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
2857         HAVE_GROUP_MEMBER.
2858         * modules/group-member (Files): Remove lib/group-member.h.
2859         (Depends-on): Add unistd. Specify conditions.
2860         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2861         (Include): Change to <unistd.h>.
2862         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
2863         HAVE_GROUP_MEMBER.
2864         * NEWS: Mention the change.
2865         * lib/euidaccess.c: Don't include group-member.h.
2866
2867 2011-05-11  Bruno Haible  <bruno@clisp.org>
2868
2869         group-member: Document module.
2870         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
2871         module.
2872
2873 2011-05-11  Bruno Haible  <bruno@clisp.org>
2874
2875         fclose: Fix mistake earlier today.
2876         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
2877
2878 2011-05-11  Eric Blake  <eblake@redhat.com>
2879
2880         fclose: preserve fflush errors
2881         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
2882         Reported by Jim Meyering.
2883
2884         bootstrap: support a prereq of 'rpcgen -' on RHEL5
2885         * build-aux/bootstrap (check_versions): When no specific version
2886         is required, merely check that the app produces an exit status
2887         that indicates its existence.
2888
2889         maint.mk: drop redundant check
2890         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
2891         the same but better.
2892
2893 2011-05-11  Bruno Haible  <bruno@clisp.org>
2894
2895         fclose: Fix possible link error.
2896         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
2897         unregister_shadow_fd. Improve comments.
2898         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
2899         Eric Blake.
2900
2901 2011-05-11  Jim Meyering  <meyering@redhat.com>
2902
2903         maint.mk: improve "can not" detection and generalize rule name
2904         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
2905         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
2906         Use the same technique as in sc_prohibit_doubled_word, so that
2907         we recognize "can not" also when the words are separated by a newline.
2908         Suggested by Eric Blake.
2909         (perl_filename_lineno_text_): Define.  Factored out of...
2910         (prohibit_doubled_word_): ...here.  Use the new definition.
2911         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
2912         (prohibit_undesirable_word_seq_RE_): New overridable variable.
2913         (ignore_undesirable_word_sequence_RE_): New overridable variable.
2914
2915 2011-05-10  Eric Blake  <eblake@redhat.com>
2916
2917         fclose: avoid double close race when possible
2918         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
2919         all but WINDOWS_SOCKETS.
2920
2921 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
2922
2923         openat: correct new comment
2924         * lib/openat-proc.c (openat_proc_name): Correct the comment.
2925
2926 2011-05-10  Jim Meyering  <meyering@redhat.com>
2927
2928         openat: add comments
2929         * lib/openat-proc.c (openat_proc_name): Add comments,
2930         mostly from Eric Blake.
2931
2932 2011-05-09  Eric Blake  <eblake@redhat.com>
2933
2934         openat: reduce syscalls in first probe of /proc
2935         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
2936         be a directory.  Simplify the probe for .. bugs.
2937         * modules/openat (Depends-on): Drop same-inode.
2938         Reported by Bastien ROUCARIES.
2939
2940 2011-05-09  Jim Meyering  <meyering@redhat.com>
2941
2942         maint.mk: change semantics/name of tight_scope variables
2943         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
2944         Rename variables to align with semantics that make them more useful.
2945
2946         maint.mk: tweak new rule's name not to impinge
2947         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
2948         (sc_tight_scope): Use new rule name rather than $@-0.
2949
2950         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
2951         * top/maint.mk (sc_tight_scope): New rule.
2952         (sc_tight_scope-0): New rule, ifdef'd out.
2953         (_gl_TS_dir): Default.
2954         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
2955         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
2956
2957 2011-05-09  Simon Josefsson  <simon@josefsson.org>
2958
2959         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
2960         Haible <bruno@clisp.org>.
2961
2962 2011-05-08  Bruno Haible  <bruno@clisp.org>
2963
2964         Comments.
2965         * m4/isnanf.m4: Add comment.
2966         * m4/isnanl.m4: Likewise.
2967
2968 2011-05-08  Bruno Haible  <bruno@clisp.org>
2969
2970         glob: Remove obsolete macro.
2971         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
2972
2973 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2974
2975         intprops: Sun C 5.11 supports __typeof__
2976         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
2977         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
2978         which is new.
2979         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
2980
2981         intprops: switch to usual gnulib indenting and naming
2982         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
2983         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
2984
2985         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
2986
2987 2011-05-08  Jim Meyering  <meyering@redhat.com>
2988
2989         maint.mk: suppress "Entering/Leaving directory" diag in announcement
2990         * top/maint.mk (release-prep): Use make's --no-print-directory
2991         option when generating the announcement.  This eliminates the
2992         pesky "make[2]: Entering/Leaving directory" diagnostics in the
2993         generated announcement template.
2994
2995 2011-05-08  Bruno Haible  <bruno@clisp.org>
2996
2997         tzset: Fix gettimeofday wrapper on Solaris 2.6.
2998         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
2999         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
3000
3001 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3002
3003         ignore-value, verify: Omit include files from lib_SOURCES.
3004         * modules/ignore-value, modules/verify (Makefile.am):
3005         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
3006         that leads Automake to duplicate use of am__objects_... variables
3007         in Makefile.in.  See
3008         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
3009
3010 2011-05-07  Bruno Haible  <bruno@clisp.org>
3011
3012         fclose: Simplify autoconf macro.
3013         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
3014         defined.
3015
3016 2011-05-07  Bruno Haible  <bruno@clisp.org>
3017
3018         canonicalize-lgpl: Fix autoconf macro ordering bug.
3019         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
3020         gl_STDLIB_H_DEFAULTS.
3021
3022 2011-05-06  Eric Blake  <eblake@redhat.com>
3023
3024         maintainer-makefile: make sc_po_check easier to tune
3025         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
3026         to probe for strings, such as an alternate location for gnulib.
3027
3028         fclose: guarantee behavior on seekable stdin
3029         * modules/fclose (Depends-on): Add fflush.
3030         * doc/posix-functions/fclose.texi (fclose): Document this.
3031         * tests/test-fclose.c (main): Make test for this unconditional.
3032
3033 2011-05-06  Bruno Haible  <bruno@clisp.org>
3034
3035         fflush, fpurge: Relicense under LGPLv2+.
3036         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
3037         * modules/fpurge (License): Likewise.
3038         With permission from Eric Blake and Jim Meyering.
3039         Suggested by Eric Blake.
3040
3041 2011-05-06  Karl Berry  <karl@gnu.org>
3042
3043         * MODULES.html.sh (func_all_modules): remove exit.
3044
3045 2011-05-06  Jim Meyering  <meyering@redhat.com>
3046
3047         maint.mk: use info-gnu@ as the default only for a stable release
3048         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
3049         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
3050         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
3051         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
3052
3053 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3054
3055         assert-h: new module, which supports C1X-style static_assert
3056         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
3057         * lib/verify.h: Revamp so that this can be copied into assert.h,
3058         while retaining the ability to use it standalone as before.
3059         Rename private identifiers so as not to encroach on the
3060         standard C namespace, since this is now used by assert.h.
3061         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
3062         the old verify_true.
3063         (_GL_VERIFY_TRUE): New macro, with much of the contents of
3064         the old verify_true.  Use _GL_VERIFY_TYPE.
3065         (_GL_VERIFY): New macro, with much of the contents of the old verify.
3066         (static_assert): New macro, if _GL_STATIC_ASSERT_H
3067         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
3068         defined when this file is copied into the replacement assert.h.
3069         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
3070         and _Static_assert is not built in.
3071         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
3072         defined, and use the new macros mentioned above.
3073         * doc/posix-headers/assert.texi: Document this.
3074
3075 2011-05-05  Bruno Haible  <bruno@clisp.org>
3076
3077         fclose, fflush: Respect rules for use of AC_LIBOBJ.
3078         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
3079         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
3080         gl_REPLACE_FCLOSE here.
3081         * modules/fflush (Depends-on): Remove fclose.
3082         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
3083         combination with module 'fclose'.
3084
3085 2011-05-05  Bruno Haible  <bruno@clisp.org>
3086
3087         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
3088         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
3089         gl_FUNC_FFLUSH.
3090         (gl_FUNC_FFLUSH): Use it.
3091         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
3092         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
3093         gl_REPLACE_FSEEKO here.
3094
3095 2011-05-05  Bruno Haible  <bruno@clisp.org>
3096
3097         tzset: Relicense under LGPL.
3098         * modules/tzset (License): Change to LGPL.
3099         No agreement needed; it's a no-op.
3100
3101         strtoimax, strtoumax: Relicense under LGPL.
3102         * modules/strtoimax (License): Change to LGPL.
3103         * modules/strtoumax (License): Likewise.
3104         With permission from Jim Meyering, Paul Eggert:
3105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
3106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
3107
3108         getgroups: Relicense under LGPL.
3109         * modules/getgroups (License): Change to LGPL.
3110         With permission from Jim Meyering, Paul Eggert, Eric Blake:
3111         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3114
3115         nanosleep: Relicense under LGPL.
3116         * modules/nanosleep (License): Change to LGPL.
3117         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
3118         Haible:
3119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3123
3124         futimens: Relicense under LGPL.
3125         * modules/futimens (License): Change to LGPL.
3126         With permission from Eric Blake:
3127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3128
3129         fflush: Relicense under LGPL.
3130         * modules/fflush (License): Change to LGPL.
3131         With permission from Eric Blake, Bruno Haible, Jim Meyering:
3132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
3135
3136         tmpfile: Relicense under LGPL.
3137         * modules/tmpfile (License): Change to LGPL.
3138         With permission from Ben Pfaff:
3139         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3140
3141         isfinite: Relicense under LGPL.
3142         * modules/isfinite (License): Change to LGPL.
3143         With permission from Ben Pfaff, Bruno Haible:
3144         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
3146
3147         acosl..tanl: Relicense under LGPL.
3148         * modules/acosl (License): Change to LGPL.
3149         * modules/asinl (License): Likewise.
3150         * modules/atanl (License): Likewise.
3151         * modules/cosl (License): Likewise.
3152         * modules/expl (License): Likewise.
3153         * modules/logl (License): Likewise.
3154         * modules/sinl (License): Likewise.
3155         * modules/sqrtl (License): Likewise.
3156         * modules/tanl (License): Likewise.
3157         Source code originally from glibc and Paolo Bonzini. Agreements:
3158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
3159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
3160
3161 2011-05-05  Bruno Haible  <bruno@clisp.org>
3162
3163         signal: Define sighandler_t.
3164         * lib/signal.in.h (sighandler_t): New type.
3165         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
3166         whether sighandler_t is defined.
3167         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
3168         * modules/signal (Depends-on): Add extensions.
3169         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
3170         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
3171         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
3172
3173 2011-05-05  Eric Blake  <eblake@redhat.com>
3174
3175         maint: remove useless REPLACE_*_H macros
3176         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
3177         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3178         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3179         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
3180         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3181         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3182         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
3183         * m4/btowc.m4: Update callers.
3184         * m4/dirfd.m4: Likewise.
3185         * m4/duplocale.m4: Likewise.
3186         * m4/fchdir.m4: Likewise.
3187         * m4/fdopendir.m4: Likewise.
3188         * m4/inet_ntop.m4: Likewise.
3189         * m4/inet_pton.m4: Likewise.
3190         * m4/ioctl.m4: Likewise.
3191         * m4/mbrlen.m4: Likewise.
3192         * m4/mbrtowc.m4: Likewise.
3193         * m4/mbsinit.m4: Likewise.
3194         * m4/mbsnrtowcs.m4: Likewise.
3195         * m4/mbsrtowcs.m4: Likewise.
3196         * m4/poll.m4: Likewise.
3197         * m4/setlocale.m4: Likewise.
3198         * m4/wcrtomb.m4: Likewise.
3199         * m4/wcsnrtombs.m4: Likewise.
3200         * m4/wcsrtombs.m4: Likewise.
3201         * m4/wctob.m4: Likewise.
3202         * m4/wcwidth.m4: Likewise.
3203         * modules/posix_spawn: Likewise.
3204         * modules/posix_spawn_file_actions_addclose: Likewise.
3205         * modules/posix_spawn_file_actions_adddup2: Likewise.
3206         * modules/posix_spawn_file_actions_addopen: Likewise.
3207         * modules/posix_spawn_file_actions_destroy: Likewise.
3208         * modules/posix_spawn_file_actions_init: Likewise.
3209         * modules/posix_spawnattr_destroy: Likewise.
3210         * modules/posix_spawnattr_getflags: Likewise.
3211         * modules/posix_spawnattr_getpgroup: Likewise.
3212         * modules/posix_spawnattr_getschedparam: Likewise.
3213         * modules/posix_spawnattr_getschedpolicy: Likewise.
3214         * modules/posix_spawnattr_getsigdefault: Likewise.
3215         * modules/posix_spawnattr_getsigmask: Likewise.
3216         * modules/posix_spawnattr_init: Likewise.
3217         * modules/posix_spawnattr_setflags: Likewise.
3218         * modules/posix_spawnattr_setpgroup: Likewise.
3219         * modules/posix_spawnattr_setschedparam: Likewise.
3220         * modules/posix_spawnattr_setschedpolicy: Likewise.
3221         * modules/posix_spawnattr_setsigdefault: Likewise.
3222         * modules/posix_spawnattr_setsigmask: Likewise.
3223         * modules/posix_spawnp: Likewise.
3224
3225 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
3226
3227         Add option to do-release-commit-and-tag to specify branch.
3228         * build-aux/do-release-commit-and-tag: Add --branch.
3229
3230 2011-05-03  Bruno Haible  <bruno@clisp.org>
3231
3232         Avoid unnecessary compilation units, through conditional dependencies.
3233         * modules/accept (Depends-on): Add conditions to the dependencies.
3234         * modules/acosl (Depends-on): Likewise.
3235         * modules/argz (Depends-on): Likewise.
3236         * modules/asinl (Depends-on): Likewise.
3237         * modules/atanl (Depends-on): Likewise.
3238         * modules/atoll (Depends-on): Likewise.
3239         * modules/bind (Depends-on): Likewise.
3240         * modules/btowc (Depends-on): Likewise.
3241         * modules/canonicalize-lgpl (Depends-on): Likewise.
3242         * modules/ceil (Depends-on): Likewise.
3243         * modules/ceilf (Depends-on): Likewise.
3244         * modules/ceill (Depends-on): Likewise.
3245         * modules/chdir-long (Depends-on): Likewise.
3246         * modules/chown (Depends-on): Likewise.
3247         * modules/close (Depends-on): Likewise.
3248         * modules/connect (Depends-on): Likewise.
3249         * modules/cosl (Depends-on): Likewise.
3250         * modules/dirfd (Depends-on): Likewise.
3251         * modules/dprintf (Depends-on): Likewise.
3252         * modules/dprintf-posix (Depends-on): Likewise.
3253         * modules/error (Depends-on): Likewise.
3254         * modules/euidaccess (Depends-on): Likewise.
3255         * modules/expl (Depends-on): Likewise.
3256         * modules/faccessat (Depends-on): Likewise.
3257         * modules/fchdir (Depends-on): Likewise.
3258         * modules/fclose (Depends-on): Likewise.
3259         * modules/fcntl (Depends-on): Likewise.
3260         * modules/fdopendir (Depends-on): Likewise.
3261         * modules/fflush (Depends-on): Likewise.
3262         * modules/floor (Depends-on): Likewise.
3263         * modules/floorf (Depends-on): Likewise.
3264         * modules/floorl (Depends-on): Likewise.
3265         * modules/fnmatch (Depends-on): Likewise.
3266         * modules/fopen (Depends-on): Likewise.
3267         * modules/fprintf-posix (Depends-on): Likewise.
3268         * modules/frexp (Depends-on): Likewise.
3269         * modules/frexp-nolibm (Depends-on): Likewise.
3270         * modules/frexpl (Depends-on): Likewise.
3271         * modules/frexpl-nolibm (Depends-on): Likewise.
3272         * modules/fseek (Depends-on): Likewise.
3273         * modules/fsusage (Depends-on): Likewise.
3274         * modules/ftell (Depends-on): Likewise.
3275         * modules/ftello (Depends-on): Likewise.
3276         * modules/futimens (Depends-on): Likewise.
3277         * modules/getcwd (Depends-on): Likewise.
3278         * modules/getcwd-lgpl (Depends-on): Likewise.
3279         * modules/getdelim (Depends-on): Likewise.
3280         * modules/getdomainname (Depends-on): Likewise.
3281         * modules/getgroups (Depends-on): Likewise.
3282         * modules/gethostname (Depends-on): Likewise.
3283         * modules/getline (Depends-on): Likewise.
3284         * modules/getlogin_r (Depends-on): Likewise.
3285         * modules/getopt-posix (Depends-on): Likewise.
3286         * modules/getpeername (Depends-on): Likewise.
3287         * modules/getsockname (Depends-on): Likewise.
3288         * modules/getsockopt (Depends-on): Likewise.
3289         * modules/getsubopt (Depends-on): Likewise.
3290         * modules/getusershell (Depends-on): Likewise.
3291         * modules/glob (Depends-on): Likewise.
3292         * modules/grantpt (Depends-on): Likewise.
3293         * modules/iconv_open (Depends-on): Likewise.
3294         * modules/iconv_open-utf (Depends-on): Likewise.
3295         * modules/inet_ntop (Depends-on): Likewise.
3296         * modules/inet_pton (Depends-on): Likewise.
3297         * modules/ioctl (Depends-on): Likewise.
3298         * modules/isapipe (Depends-on): Likewise.
3299         * modules/isfinite (Depends-on): Likewise.
3300         * modules/isinf (Depends-on): Likewise.
3301         * modules/lchown (Depends-on): Likewise.
3302         * modules/ldexpl (Depends-on): Likewise.
3303         * modules/link (Depends-on): Likewise.
3304         * modules/linkat (Depends-on): Likewise.
3305         * modules/listen (Depends-on): Likewise.
3306         * modules/logl (Depends-on): Likewise.
3307         * modules/lstat (Depends-on): Likewise.
3308         * modules/mbrlen (Depends-on): Likewise.
3309         * modules/mbrtowc (Depends-on): Likewise.
3310         * modules/mbsinit (Depends-on): Likewise.
3311         * modules/mbsnrtowcs (Depends-on): Likewise.
3312         * modules/mbsrtowcs (Depends-on): Likewise.
3313         * modules/mbtowc (Depends-on): Likewise.
3314         * modules/memcmp (Depends-on): Likewise.
3315         * modules/mkdir (Depends-on): Likewise.
3316         * modules/mkdtemp (Depends-on): Likewise.
3317         * modules/mkfifo (Depends-on): Likewise.
3318         * modules/mkfifoat (Depends-on): Likewise.
3319         * modules/mknod (Depends-on): Likewise.
3320         * modules/mkostemp (Depends-on): Likewise.
3321         * modules/mkostemps (Depends-on): Likewise.
3322         * modules/mkstemp (Depends-on): Likewise.
3323         * modules/mkstemps (Depends-on): Likewise.
3324         * modules/mktime (Depends-on): Likewise.
3325         * modules/nanosleep (Depends-on): Likewise.
3326         * modules/open (Depends-on): Likewise.
3327         * modules/openat (Depends-on): Likewise.
3328         * modules/perror (Depends-on): Likewise.
3329         * modules/poll (Depends-on): Likewise.
3330         * modules/popen (Depends-on): Likewise.
3331         * modules/posix_spawn (Depends-on): Likewise.
3332         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
3333         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
3334         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
3335         * modules/posix_spawnp (Depends-on): Likewise.
3336         * modules/pread (Depends-on): Likewise.
3337         * modules/printf-posix (Depends-on): Likewise.
3338         * modules/ptsname (Depends-on): Likewise.
3339         * modules/putenv (Depends-on): Likewise.
3340         * modules/pwrite (Depends-on): Likewise.
3341         * modules/readline (Depends-on): Likewise.
3342         * modules/readlink (Depends-on): Likewise.
3343         * modules/readlinkat (Depends-on): Likewise.
3344         * modules/recv (Depends-on): Likewise.
3345         * modules/recvfrom (Depends-on): Likewise.
3346         * modules/regex (Depends-on): Likewise.
3347         * modules/remove (Depends-on): Likewise.
3348         * modules/rename (Depends-on): Likewise.
3349         * modules/renameat (Depends-on): Likewise.
3350         * modules/rmdir (Depends-on): Likewise.
3351         * modules/round (Depends-on): Likewise.
3352         * modules/roundf (Depends-on): Likewise.
3353         * modules/roundl (Depends-on): Likewise.
3354         * modules/rpmatch (Depends-on): Likewise.
3355         * modules/select (Depends-on): Likewise.
3356         * modules/send (Depends-on): Likewise.
3357         * modules/sendto (Depends-on): Likewise.
3358         * modules/setenv (Depends-on): Likewise.
3359         * modules/setlocale (Depends-on): Likewise.
3360         * modules/setsockopt (Depends-on): Likewise.
3361         * modules/shutdown (Depends-on): Likewise.
3362         * modules/sigaction (Depends-on): Likewise.
3363         * modules/signbit (Depends-on): Likewise.
3364         * modules/sigprocmask (Depends-on): Likewise.
3365         * modules/sinl (Depends-on): Likewise.
3366         * modules/sleep (Depends-on): Likewise.
3367         * modules/snprintf (Depends-on): Likewise.
3368         * modules/snprintf-posix (Depends-on): Likewise.
3369         * modules/socket (Depends-on): Likewise.
3370         * modules/sprintf-posix (Depends-on): Likewise.
3371         * modules/sqrtl (Depends-on): Likewise.
3372         * modules/stat (Depends-on): Likewise.
3373         * modules/strchrnul (Depends-on): Likewise.
3374         * modules/strdup-posix (Depends-on): Likewise.
3375         * modules/strerror (Depends-on): Likewise.
3376         * modules/strerror_r-posix (Depends-on): Likewise.
3377         * modules/strndup (Depends-on): Likewise.
3378         * modules/strnlen (Depends-on): Likewise.
3379         * modules/strptime (Depends-on): Likewise.
3380         * modules/strsep (Depends-on): Likewise.
3381         * modules/strsignal (Depends-on): Likewise.
3382         * modules/strstr-simple (Depends-on): Likewise.
3383         * modules/strtod (Depends-on): Likewise.
3384         * modules/strtoimax (Depends-on): Likewise.
3385         * modules/strtok_r (Depends-on): Likewise.
3386         * modules/strtoumax (Depends-on): Likewise.
3387         * modules/symlink (Depends-on): Likewise.
3388         * modules/symlinkat (Depends-on): Likewise.
3389         * modules/tanl (Depends-on): Likewise.
3390         * modules/tcgetsid (Depends-on): Likewise.
3391         * modules/tmpfile (Depends-on): Likewise.
3392         * modules/trunc (Depends-on): Likewise.
3393         * modules/truncf (Depends-on): Likewise.
3394         * modules/truncl (Depends-on): Likewise.
3395         * modules/uname (Depends-on): Likewise.
3396         * modules/unlink (Depends-on): Likewise.
3397         * modules/unlockpt (Depends-on): Likewise.
3398         * modules/unsetenv (Depends-on): Likewise.
3399         * modules/usleep (Depends-on): Likewise.
3400         * modules/utimensat (Depends-on): Likewise.
3401         * modules/vasprintf (Depends-on): Likewise.
3402         * modules/vdprintf (Depends-on): Likewise.
3403         * modules/vdprintf-posix (Depends-on): Likewise.
3404         * modules/vfprintf-posix (Depends-on): Likewise.
3405         * modules/vprintf-posix (Depends-on): Likewise.
3406         * modules/vsnprintf (Depends-on): Likewise.
3407         * modules/vsnprintf-posix (Depends-on): Likewise.
3408         * modules/vsprintf-posix (Depends-on): Likewise.
3409         * modules/wcrtomb (Depends-on): Likewise.
3410         * modules/wcscasecmp (Depends-on): Likewise.
3411         * modules/wcscspn (Depends-on): Likewise.
3412         * modules/wcsdup (Depends-on): Likewise.
3413         * modules/wcsncasecmp (Depends-on): Likewise.
3414         * modules/wcsnrtombs (Depends-on): Likewise.
3415         * modules/wcspbrk (Depends-on): Likewise.
3416         * modules/wcsrtombs (Depends-on): Likewise.
3417         * modules/wcsspn (Depends-on): Likewise.
3418         * modules/wcsstr (Depends-on): Likewise.
3419         * modules/wcstok (Depends-on): Likewise.
3420         * modules/wcswidth (Depends-on): Likewise.
3421         * modules/wctob (Depends-on): Likewise.
3422         * modules/wctomb (Depends-on): Likewise.
3423         * modules/wctype (Depends-on): Likewise.
3424         * modules/wcwidth (Depends-on): Likewise.
3425         * modules/write (Depends-on): Likewise.
3426
3427 2011-05-03  Bruno Haible  <bruno@clisp.org>
3428
3429         Support for conditional dependencies.
3430         * doc/gnulib.texi (Module description): Document the syntax of
3431         conditional dependencies.
3432         * gnulib-tool: New option --conditional-dependencies.
3433         (func_usage): Document it.
3434         (cond_dependencies): New variable.
3435         (func_get_automake_snippet_conditional,
3436         func_get_automake_snippet_unconditional): New functions, extracted from
3437         func_get_automake_snippet.
3438         (func_get_automake_snippet): Use them.
3439         (sed_first_32_chars): New variable.
3440         (func_module_shellfunc_name): New function.
3441         (func_module_shellvar_name): New function.
3442         (func_module_conditional_name): New function.
3443         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
3444         func_cond_module_condition): New functions.
3445         (func_modules_transitive_closure): Add support for conditional
3446         dependencies.
3447         (func_emit_lib_Makefile_am): For a conditional module, enclose the
3448         conditional automake snippet in an automake conditional.
3449         (func_emit_autoconf_snippets): Emit shell functions that contain the
3450         code for conditional modules.
3451         (func_import, func_create_testdir): Update specification.
3452
3453 2011-05-03  Eric Blake  <eblake@redhat.com>
3454
3455         test-getaddrinfo: report error information
3456         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
3457
3458 2011-05-03  Jim Meyering  <meyering@redhat.com>
3459
3460         bootstrap: avoid build failure when $GZIP is set
3461         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
3462         program name.  If defined at all, it is supposed to list gzip options.
3463         Reported by Alan Curry in http://debbugs.gnu.org/8609
3464
3465 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
3466
3467         readme-release: new module with release instructions
3468         * modules/readme-release: New module.
3469         * top/README-release: New file, from coreutils, grep, diffutils.
3470         * MODULES.html.sh (Support for maintaining and releasing): Add it.
3471
3472 2011-05-02  Eric Blake  <eblake@redhat.com>
3473
3474         fflush: also replace fclose when fixing fflush
3475         * modules/fflush (Depends-on): Add fclose.
3476         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
3477         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
3478         memstreams with no backing fd.
3479         * doc/posix-functions/fclose.texi (fclose): Document the use of
3480         fflush module to fix the bug.
3481         * tests/test-fclose.c (main): Relax test when fclose is used in
3482         isolation.
3483
3484         fclose: add some tests
3485         * modules/fclose-tests: New test module.
3486         * tests/test-fclose.c: New file.
3487         * doc/posix-functions/fclose.texi (fclose): Document the bug.
3488
3489         fclose: reduced dependencies
3490         * modules/fclose (Depends-on): Switch from fflush/fseeko to
3491         simpler lseek.
3492         * lib/fclose.c (rpl_fclose): Likewise.
3493         Reported by Simon Josefsson.
3494
3495         exit: drop remaining clients
3496         * modules/argmatch (Depends-on): Replace exit with stdlib.
3497         * modules/copy-file (Depends-on): Likewise.
3498         * modules/execute (Depends-on): Likewise.
3499         * modules/exitfail (Depends-on): Likewise.
3500         * modules/obstack (Depends-on): Likewise.
3501         * modules/pagealign_alloc (Depends-on): Likewise.
3502         * modules/pipe-filter-gi (Depends-on): Likewise.
3503         * modules/pipe-filter-ii (Depends-on): Likewise.
3504         * modules/savewd (Depends-on): Likewise.
3505         * modules/spawn-pipe (Depends-on): Likewise.
3506         * modules/wait-process (Depends-on): Likewise.
3507         * modules/xsetenv (Depends-on): Likewise.
3508         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
3509         * modules/git-merge-changelog (Depends-on): Likewise.
3510         * modules/long-options (Depends-on): Likewise.
3511         * modules/pt_chown (Depends-on): Likewise.
3512         * modules/sysexits (Depends-on): Likewise.
3513
3514         freading: relax license from LGPLv3+ to LGPLv2+
3515         * modules/freading (License): Relax LGPL version.
3516
3517 2011-05-02  Bruno Haible  <bruno@clisp.org>
3518
3519         fchdir: Remove unused dependencies.
3520         * modules/fchdir (Depends-on): Remove include_next.
3521
3522 2011-05-02  Bruno Haible  <bruno@clisp.org>
3523
3524         gnulib-tool: Refactor.
3525         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
3526         from func_emit_autoconf_snippets.
3527         (func_emit_autoconf_snippets): Use it.
3528
3529 2011-05-02  Simon Josefsson  <simon@josefsson.org>
3530
3531         * NEWS: Document removal of 'exit'.
3532         * modules/exit: Remove file.
3533
3534 2011-05-01  Bruno Haible  <bruno@clisp.org>
3535
3536         Update DEPENDENCIES.
3537         * DEPENDENCIES (gettext): Recommend the newest release.
3538         Reported by Simon Josefsson.
3539
3540 2011-05-01  Bruno Haible  <bruno@clisp.org>
3541
3542         gnulib-tool: Reduce code duplication.
3543         * gnulib-tool (func_emit_autoconf_snippets): New function.
3544         (func_import, func_create_testdir): Use it.
3545
3546 2011-04-30  Eric Blake  <eblake@redhat.com>
3547
3548         fclose: don't fail on non-seekable input stream
3549         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
3550         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
3551         since fflush is allowed to fail in that case.
3552
3553 2011-04-30  Bruno Haible  <bruno@clisp.org>
3554
3555         dup3: cleanup
3556         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
3557
3558 2011-04-30  Bruno Haible  <bruno@clisp.org>
3559
3560         netdb: Make it work in C++ mode.
3561         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
3562         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
3563         module.
3564         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
3565         gl_MODULE_INDICATOR_FOR_TESTS.
3566         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
3567         * modules/netdb-c++-tests: New file.
3568         * tests/test-netdb-c++.cc: New file.
3569
3570 2011-04-30  Bruno Haible  <bruno@clisp.org>
3571
3572         New modules 'vfscanf', 'vscanf'.
3573         * modules/vfscanf: New file.
3574         * modules/vscanf: New file.
3575         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
3576         here.
3577         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
3578         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
3579
3580 2011-04-30  Bruno Haible  <bruno@clisp.org>
3581
3582         passfd: Add comments.
3583         * lib/passfd.c: Add comments about platforms.
3584
3585 2011-04-30  Bruno Haible  <bruno@clisp.org>
3586
3587         sys_uio: Make <sys/uio.h> self-contained.
3588         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
3589         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
3590
3591 2011-04-30  Bruno Haible  <bruno@clisp.org>
3592
3593         sys_socket: Ensure 'struct iovec' definition.
3594         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
3595         <sys/socket.h>.
3596         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
3597
3598 2011-04-30  Bruno Haible  <bruno@clisp.org>
3599
3600         sys_uio: Protect definition of 'struct iovec'.
3601         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
3602         it as a C struct.
3603
3604 2011-04-30  Bruno Haible  <bruno@clisp.org>
3605
3606         manywarnings: fix indentation
3607         * m4/manywarnings.m4: Indent by 2 spaces consistently.
3608
3609 2011-04-30  Pádraig Brady <P@draigBrady.com>
3610
3611         manywarnings: add -Wno-missing-field-initializers if needed.
3612         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
3613         option if it's needed to allow initialization with { 0, }
3614
3615 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
3616
3617         announce-gen: cosmetic improvement
3618         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
3619
3620 2011-04-29  Jim Meyering  <meyering@redhat.com>
3621
3622         vc-list-files: indent with spaces, not TABs
3623         * build-aux/vc-list-files: Convert leading TABs to spaces,
3624         to match the style of most other files in gnulib.
3625
3626         announce-gen: indent with spaces, not TABs
3627         * build-aux/announce-gen: Convert all TABs to spaces, to match
3628         the style of most other files in gnulib.
3629
3630 2011-04-29  Eric Blake  <eblake@redhat.com>
3631
3632         quotearg: avoid uninitialized variable use
3633         * lib/quotearg.c (quoting_options_from_style): Initialize
3634         remaining fields, and ensure that custom styles are only used via
3635         quoting_options rather than quoting_style.
3636
3637 2011-04-29  Jim Meyering  <meyering@redhat.com>
3638
3639         maint.mk: remove unused VC-tag variable
3640         * top/maint.mk (VC-tag): Remove unused variable.
3641
3642 2011-04-29  Bruno Haible  <bruno@clisp.org>
3643
3644         netdb: fix gai_strerror replacements
3645         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
3646         * modules/netdb: Substitute it.
3647
3648 2011-04-29  Jim Meyering  <meyering@redhat.com>
3649
3650         test-getcwd.c: avoid new set-but-not-used warning
3651         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
3652         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
3653         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
3654         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
3655
3656         test-hash.c: avoid a new shadowing warning
3657         * tests/test-hash.c (main): Don't shadow "dup".
3658
3659 2011-04-28  Eric Blake  <eblake@redhat.com>
3660
3661         getaddrinfo: fix gai_strerror signature
3662         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
3663         and work around mingw with UNICODE defined.
3664         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
3665         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
3666         * modules/netdb (Makefile.am): Substitute it.
3667         * lib/netdb.in.h (gai_strerror): Declare replacement.
3668         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
3669         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
3670         the fix.
3671
3672         getsockopt: avoid compiler warning
3673         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
3674         Reported by Matthias Bolte.
3675
3676         tests: drop unused link dependency
3677         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
3678         * modules/dirent-safer-tests (Makefile.am): Likewise.
3679         * modules/fdopendir-tests (Makefile.am): Likewise.
3680         * modules/mkfifoat-tests (Makefile.am): Likewise.
3681         * modules/openat-safer-tests (Makefile.am): Likewise.
3682         * modules/openat-tests (Makefile.am): Likewise.
3683         * modules/readlinkat-tests (Makefile.am): Likewise.
3684         * modules/symlinkat-tests (Makefile.am): Likewise.
3685         * modules/linkat-tests (Makefile.am): Likewise.
3686         (Depends-on): Switch to filenamecat-lgpl.
3687         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
3688         LIBINTL.
3689         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
3690         * tests/test-linkat.c (main): Don't require xalloc.
3691
3692         hash, mgetgroups: drop xalloc dependency
3693         * lib/hash.c (includes): Adjust includes.
3694         * lib/mgetgroups.c (includes): Likewise.
3695         (xgetgroups): Move...
3696         * lib/xgetgroups.c: ...to new file.
3697         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
3698         * modules/xgetgroups: New file, split from...
3699         * modules/mgetgroups: ...here.
3700         (Depends-on): Add xalloc-oversized.
3701         * modules/hash (Depends-on): Likewise.
3702         * modules/hash-tests (Depends-on): Drop xalloc.
3703         (test_hash_LDADD): Drop unused library.
3704         * tests/test-hash.c (main): Break xalloc dependency.
3705         (includes): Drop unused include.
3706
3707         xalloc-oversized: new module
3708         * modules/xalloc-oversized: New module.
3709         * modules/xalloc (Depends-on): Add it.
3710         * lib/xalloc.h (xalloc_oversized): Move...
3711         * lib/xalloc-oversized.h: ...into new file.
3712
3713         utimecmp: drop dependency on xmalloc
3714         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
3715         due to memory pressure.
3716         * modules/utimecmp (Depends-on): Drop xalloc.
3717
3718 2011-04-27  Eric Blake  <eblake@redhat.com>
3719
3720         getcwd: fix mingw bugs
3721         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
3722         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
3723         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
3724
3725 2011-04-27  Bruno Haible  <bruno@clisp.org>
3726
3727         mkstemps: Ensure declaration on MacOS X 10.5.
3728         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
3729         * doc/glibc-functions/mkstemps.texi: Document header file problem on
3730         MacOS X.
3731
3732 2011-04-27  Bruno Haible  <bruno@clisp.org>
3733
3734         mkstemp: More documentation.
3735         * doc/posix-functions/mkstemp.texi: Document header file problem on
3736         MacOS X.
3737
3738 2011-04-27  Bruno Haible  <bruno@clisp.org>
3739
3740         mkstemp: Tweak configure message when cross-compiling.
3741         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
3742         result as a guess.
3743
3744 2011-04-27  Bruno Haible  <bruno@clisp.org>
3745
3746         clean-temp: Clarify what it does.
3747         * lib/clean-temp.h: Add more comments.
3748         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
3749         module.
3750         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
3751         * doc/glibc-functions/mkstemps.texi: Likewise.
3752         * doc/glibc-functions/mkostemps.texi: Likewise.
3753
3754 2011-04-27  Eric Blake  <eblake@redhat.com>
3755
3756         fchdir: avoid extra chdir and fix test
3757         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
3758         getcwd-lgpl.
3759         * lib/fchdir.c (get_name): Any absolute name will do; it does not
3760         have to be canonical.
3761         (canonicalize_file_name): Drop unused macro.
3762         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
3763
3764         filenamecat-lgpl: fix licence
3765         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
3766         when it was first created.
3767
3768         linkat, renameat: add missing dependency
3769         * modules/linkat (Depends-on): Require getcwd-lgpl.
3770         * modules/renameat (Depends-on): Likewise.
3771
3772         tests: reduce dependencies
3773         * tests/test-linkat.c (main): Use lighter-weight getcwd.
3774         * tests/test-renameat.c (main): Likewise.
3775         * modules/linkat-tests (Depends-on): Relax dependency.
3776         * modules/renameat-tests (Depends-on): Likewise.
3777         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
3778         dependency explicit.
3779
3780         save-cwd: reduce default dependency
3781         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
3782         * lib/save-cwd.c: Update comments.
3783         * NEWS: Document the semantic change.
3784
3785         getcwd: enhance tests
3786         * tests/test-getcwd-lgpl.c: New file, taken from...
3787         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
3788         repeat long path stress tests from m4 probe.
3789         * modules/getcwd-lgpl-tests: New module.
3790         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
3791         * m4/getcwd-abort-bug.m4: Update comment.
3792         * m4/getcwd-path-max.m4: Likewise.
3793
3794         getcwd-lgpl: new module
3795         * modules/getcwd-lgpl: New module.
3796         * lib/getcwd-lgpl.c: New file.
3797         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3798         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3799         * modules/getcwd (configure.ac): Set C witness.
3800         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
3801
3802         getcwd: tweak comments
3803         * m4/getcwd-abort-bug.m4: Fix comments.
3804         * m4/getcwd-path-max.m4: Likewise.
3805         * m4/getcwd.m4: Likewise.
3806
3807 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3808         and Eric Blake  <eblake@redhat.com>
3809
3810         mkstemp: replace if system version uses wrong permissions
3811         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
3812         read/write mode bits set in file created by mkstemp.
3813         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
3814
3815 2011-04-27  Eric Blake  <eblake@redhat.com>
3816
3817         passfd: avoid compiler warning
3818         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
3819         Reported by Laine Stump.
3820
3821 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
3822
3823         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
3824         required by the NetBSD (and perhaps other 4.4BSD derived) join.
3825
3826 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3827         and Eric Blake  <eblake@redhat.com>
3828
3829         mkstemp: mention clean-temp module
3830         * lib/mkstemp.c: Add comment.
3831         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
3832
3833 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3834
3835         inttypes: also provide default values for 32-bit tests
3836         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
3837         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
3838
3839 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3840
3841         strtoumax: remove dependency on strtoimax
3842         This is like the strtoull change of yesterday.
3843         * modules/strtoumax (Files): Add lib/strtoimax.c.
3844         (Depends-on): Remove strtoimax and add verify.
3845
3846         inttypes-incomplete: new module
3847         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
3848         all but the PRI* and SCN* parts of gl_INTTYPES_H.
3849         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
3850         of gl_INTTYPES_H.
3851         (gl_INTTYPES_H): Rewrite in terms of these new macros.
3852         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
3853         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
3854         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
3855         * modules/strtoumax, modules/xstrtol (Depends-on):
3856         Depend on inttypes-incomplete, not inttypes.
3857         * modules/inttypes-incomplete: New module, containing the contents
3858         of the old modules/inttypes module, except that the Files: section
3859         omits m4/inttypes-pri.m4, and the configure.ac section invokes
3860         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
3861         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
3862         (Depends-on): Depend only on inttypes-incomplete.
3863         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
3864
3865         inttypes: omit now-redundant strtoimax and strtoumax work
3866         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
3867         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
3868
3869         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
3870         This supports apps that need pointers to strtoimax and strtoumax,
3871         and ports to HP-UX 11.00 64.bit, which has macros that expand to
3872         nonexistent functions.  See
3873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
3874         et seq.
3875         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
3876         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
3877         a macro.
3878         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3879
3880 2011-04-25  Simon Josefsson  <simon@josefsson.org>
3881
3882         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
3883
3884 2011-04-25  Bruno Haible  <bruno@clisp.org>
3885
3886         strtol, strtoul: Mark modules as obsolete.
3887         * modules/strtol (Status, Notice): New sections.
3888         * modules/strtoul (Status, Notice): New sections.
3889
3890 2011-04-25  Bruno Haible  <bruno@clisp.org>
3891
3892         strtod: Remove check for strtod, unless supporting old platforms.
3893         * modules/strtod-obsolete: New file.
3894         * m4/strtod-obsolete.m4: New file.
3895         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
3896         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
3897         * modules/strtod (Depends-on): Add strtod-obsolete.
3898         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
3899
3900 2011-04-25  Bruno Haible  <bruno@clisp.org>
3901
3902         strcase: Make module obsolete.
3903         * modules/strcase (Status, Notice): New sections.
3904
3905 2011-04-25  Bruno Haible  <bruno@clisp.org>
3906
3907         dup2: Remove check for dup2, unless supporting old obsolete platforms.
3908         * modules/dup2-obsolete: New file.
3909         * m4/dup2-obsolete.m4: New file.
3910         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
3911         gl_FUNC_DUP2_OBSOLETE is not also defined.
3912         * modules/dup2 (Depends-on): Add dup2-obsolete.
3913         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
3914
3915 2011-04-25  Bruno Haible  <bruno@clisp.org>
3916
3917         strnlen: Avoid memchr related link error on old obsolete platforms.
3918         * modules/memchr-obsolete: New file.
3919         * m4/memchr-obsolete.m4: New file.
3920         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
3921         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
3922         * modules/memchr (Depends-on): Add memchr-obsolete.
3923         * modules/strnlen (Depends-on): Likewise.
3924         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
3925
3926 2011-04-25  Jim Meyering  <meyering@redhat.com>
3927
3928         maint.mk: makefile_at_at_check extend and clean up
3929         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
3930         in addition to */Makefile.am.
3931         Exempt legitimate uses of @VAR@ notation, e.g.,
3932         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
3933         Remove obsolete coreutils-specific comment.
3934         Prompted by discussion here:
3935         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
3936
3937 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
3938
3939         strtoul: remove dependency on strtol
3940         This is so that 'configure' need not check for strtol merely because
3941         the application needs strtoul.
3942         * modules/strtoul (Files): Add lib/strtol.c.
3943         (Depends-on): Remove strtol.
3944
3945         strtoull: remove dependency on strtoul
3946         This is like the strtoll change.
3947         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
3948         (Depends-on): Remove strtoul.
3949
3950         strtoll: remove dependency on strtol
3951         This is so that 'configure' need not check for strtol merely because
3952         the application needs strtoll.
3953         * modules/strtoll (Files): Add lib/strtol.c.
3954         (Depends-on): Remove strtol.
3955
3956 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3957
3958         inttypes: Move some configure check to module 'imaxdiv'.
3959         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
3960         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
3961         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
3962
3963 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3964
3965         inttypes: Move some configure check to module 'imaxabs'.
3966         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
3967         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
3968         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
3969
3970 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3971
3972         inttypes: Remove configure tests that are not needed since 2009-12-31.
3973         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
3974         gl_cv_header_working_inttypes_h.
3975
3976 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3977
3978         * modules/strnlen (Depends-on): Remove memchr.
3979         The strnlen implementation doesn't need the memchr module's fixes; see
3980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
3981
3982         strtol: remove dependency on wchar
3983         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
3984         * modules/strtol (Depends-on): Remove wchar.
3985
3986 2011-04-21  Eric Blake  <eblake@redhat.com>
3987
3988         passfd: fix test regression on Linux
3989         * modules/passfd-tests (configure.ac): Correct socketpair check.
3990
3991         passfd: speed up configure and drop unused code
3992         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
3993         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
3994         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
3995         Instead of probing at configure for unix_scm_rights_bsd44_way,
3996         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
3997         check to a struct member probe.
3998         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
3999         (sendfd, recvfd): Update preprocessor checks.
4000         * modules/passfd (Files): Reflect rename, and drop unused file.
4001         (Depends-on): Drop unused dependency.
4002
4003         passfd: allow compilation on mingw
4004         * modules/sys_socket (Depends-on): Add sys_uio.
4005         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
4006         iovec and a minimal struct msghdr.
4007         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
4008         * tests/test-sys_socket.c (main): Enhance test.
4009         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
4010         guaranteed to provide what we need.
4011         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
4012         * modules/passfd-tests (Depends-on): Add sys_wait.
4013         * tests/test-passfd.c (main): Skip test on mingw, for now.
4014         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
4015         partial 'struct msghdr' implementation.
4016
4017         sys_uio: new module
4018         * modules/sys_uio: New module.
4019         * modules/sys_uio-tests: Likewise.
4020         * lib/sys_uio.in.h: New file.
4021         * m4/sys_uio_h.m4: Likewise.
4022         * tests/test-sys_uio.c: Likewise.
4023         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
4024         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
4025
4026 2011-04-20  Jim Meyering  <meyering@redhat.com>
4027
4028         useless-if-before-free: avoid false-positive
4029         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
4030         disjunct so that it too requires a terminating ";".  Without that,
4031         this script would identify as useless one statement from gcc that
4032         was not:
4033           if (aligned_ptr)
4034             free (((void **) aligned_ptr) [-1]);
4035
4036 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
4037
4038         doc: update users.txt.
4039         * users.txt: Add barcode.
4040
4041 2011-04-19  Bruno Haible  <bruno@clisp.org>
4042
4043         ioctl: Remove link dependency on native Windows.
4044         * lib/fd-hook.h: Renamed from lib/close-hook.h.
4045         (gl_close_fn, gl_ioctl_fn): New types.
4046         (struct fd_hook): Renamed from struct close_hook. Change type of
4047         private_close_fn field. Add private_ioctl_fn field.
4048         (close_hook_fn): Add parameter for primary close method.
4049         (execute_close_hooks, execute_all_close_hooks): Likewise.
4050         (ioctl_hook_fn): New type.
4051         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
4052         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4053         argument.
4054         (unregister_fd_hook): Renamed from unregister_close_hook.
4055         * lib/fd-hook.c: Renamed from lib/close-hook.c.
4056         Don't include <unistd.h>.
4057         (close): Remove undef.
4058         (anchor): Update.
4059         (execute_close_hooks): Add argument for primary close method.
4060         (execute_all_close_hooks): Likewise.
4061         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
4062         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4063         argument. Allow each argument to be NULL.
4064         (unregister_fd_hook): Renamed from unregister_close_hook.
4065         * lib/close.c (rpl_close): Pass 'close' function pointer to
4066         execute_all_close_hooks.
4067         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
4068         (primary_ioctl): New function.
4069         (ioctl): Don't call ioctlsocket here. Instead, call
4070         execute_all_ioctl_hooks.
4071         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
4072         close method.
4073         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
4074         (fd_sockets_hook): Renamed from close_sockets_hook.
4075         (gl_sockets_startup, gl_sockets_cleanup): Update.
4076         * modules/fd-hook: Renamed from modules/close-hook. Update.
4077         * modules/close (Depends-on): Add fd-hook, remove close-hook.
4078         * modules/sockets (Depends-on): Likewise.
4079         * modules/ioctl (Depends-on): Add fd-hook.
4080         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
4081         GNULIB_SOCKET.
4082
4083 2011-04-19  Bruno Haible  <bruno@clisp.org>
4084
4085         Move the support of O_NONBLOCK in open() to the 'open' module.
4086         * modules/nonblocking (Depends-on): Remove 'open'.
4087         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
4088         gl_cv_have_open_O_NONBLOCK.
4089         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
4090         O_NONBLOCK support.
4091         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
4092
4093 2011-04-17  Bruno Haible  <bruno@clisp.org>
4094
4095         pipe2: Simplify code.
4096         * lib/pipe2.c (pipe2): Reduce code duplication.
4097
4098 2011-04-17  Bruno Haible  <bruno@clisp.org>
4099
4100         nonblocking: Add comment.
4101         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
4102
4103 2011-04-17  Bruno Haible  <bruno@clisp.org>
4104
4105         nonblocking: Add tests for sockets.
4106         * tests/test-nonblocking-socket.sh: New file.
4107         * tests/test-nonblocking-socket-main.c: New file.
4108         * tests/test-nonblocking-socket-child.c: New file.
4109         * tests/test-nonblocking-socket.h: New file.
4110         * tests/socket-server.h: New file.
4111         * tests/socket-client.h: New file.
4112         * modules/nonblocking-socket-tests: New file.
4113         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
4114
4115 2011-04-17  Bruno Haible  <bruno@clisp.org>
4116
4117         nonblocking: Add tests for pipes.
4118         * tests/test-nonblocking-pipe.sh: New file.
4119         * tests/test-nonblocking-pipe-main.c: New file.
4120         * tests/test-nonblocking-pipe-child.c: New file.
4121         * tests/test-nonblocking-pipe.h: New file.
4122         * tests/test-nonblocking-writer.h: New file.
4123         * tests/test-nonblocking-reader.h: New file.
4124         * tests/test-nonblocking-misc.h: New file.
4125         * modules/nonblocking-pipe-tests: New file.
4126         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
4127
4128 2011-04-16  Bruno Haible  <bruno@clisp.org>
4129
4130         gettext: Clarify the needed programmer actions.
4131         * modules/gettext (Notice): New field.
4132         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4133
4134 2011-04-16  Bruno Haible  <bruno@clisp.org>
4135
4136         strchrnul: Tweak last commit.
4137         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
4138         bug.
4139         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
4140         as in _GL_FUNCDECL_SYS.
4141         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
4142         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
4143
4144 2011-04-15  Eric Blake  <eblake@redhat.com>
4145
4146         strchrnul: work around cygwin bug
4147         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
4148         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
4149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
4150         * modules/string (Makefile.am): Substitute it.
4151         * lib/string.in.h (strchrnul): Use it.
4152
4153 2011-04-15  Bruno Haible  <bruno@clisp.org>
4154
4155         Don't require lib/stdio-write.c when only module 'stdio' is used.
4156         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
4157         invocation.
4158         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
4159
4160 2011-04-14  Bruno Haible  <bruno@clisp.org>
4161
4162         Support non-blocking pipe I/O in read() on native Windows.
4163         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
4164         (read): New declaration.
4165         * lib/read.c: New file.
4166         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
4167         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
4168         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
4169         vscanf): New declarations.
4170         * lib/stdio-read.c: New file.
4171         * m4/read.m4: New file.
4172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
4173         REPLACE_READ.
4174         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
4175         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4176         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
4177         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
4178         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
4179         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4180         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4181         * modules/read: New file.
4182         * modules/nonblocking (Files): Add lib/stdio-read.c.
4183         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
4184         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
4185         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4186         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4187         * modules/pread (Depends-on): Add read.
4188         * modules/safe-read (Depends-on): Likewise.
4189         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
4190         gets, scanf, vfscanf, vscanf): Verify signatures.
4191         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
4192         problem with non-blocking pipes.
4193         * doc/posix-functions/fgetc.texi: Likewise.
4194         * doc/posix-functions/fgets.texi: Likewise.
4195         * doc/posix-functions/fread.texi: Likewise.
4196         * doc/posix-functions/fscanf.texi: Likewise.
4197         * doc/posix-functions/getc.texi: Likewise.
4198         * doc/posix-functions/getchar.texi: Likewise.
4199         * doc/posix-functions/gets.texi: Likewise.
4200         * doc/posix-functions/scanf.texi: Likewise.
4201         * doc/posix-functions/vfscanf.texi: Likewise.
4202         * doc/posix-functions/vscanf.texi: Likewise.
4203
4204 2011-04-14  Bruno Haible  <bruno@clisp.org>
4205
4206         Support non-blocking pipe I/O in write() on native Windows.
4207         * lib/write.c (rpl_write): Split a write request that failed merely
4208         because the byte count was larger than the pipe buffer's size.
4209         * doc/posix-functions/write.texi: Mention the problem with large byte
4210         counts.
4211
4212 2011-04-14  Bruno Haible  <bruno@clisp.org>
4213
4214         wchar: Ensure that wchar_t gets defined on uClibc.
4215         * lib/wchar.in.h: On uClibc, include <stddef.h>.
4216         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
4217
4218 2011-04-13  Bruno Haible  <bruno@clisp.org>
4219
4220         safe-write, full-read: Avoid unnecessary compilation units.
4221         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
4222         (Depends-on): Remove safe-read. Add ssize_t.
4223         * modules/full-read (Files): Add lib/full-write.c.
4224         (Depends-on): Add full-write.
4225
4226 2011-04-13  Bruno Haible  <bruno@clisp.org>
4227
4228         Support non-blocking pipe I/O and SIGPIPE in pwrite().
4229         * modules/pwrite (Depends-on): Add 'write'.
4230
4231 2011-04-13  Bruno Haible  <bruno@clisp.org>
4232
4233         Support non-blocking pipe I/O in write() on native Windows.
4234         * lib/unistd.in.h (write): Enable replacement also if
4235         GNULIB_UNISTD_H_NONBLOCKING is 1.
4236         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
4237         (rpl_write): When failing to write on a non-blocking pipe, change
4238         errno from ENOSPC to EAGAIN.
4239         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
4240         putchar, puts, vfprintf, vprintf): Enable replacement also if
4241         GNULIB_STDIO_H_NONBLOCKING is 1.
4242         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
4243         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
4244         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
4245         CALL_WITH_SIGPIPE_EMULATION.
4246         (CALL_WITH_SIGPIPE_EMULATION): Use them.
4247         * m4/nonblocking.m4: New file.
4248         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
4249         for non-blocking I/O support.
4250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4251         GNULIB_UNISTD_H_NONBLOCKING.
4252         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
4253         required for non-blocking I/O support.
4254         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
4255         * modules/nonblocking (Files): Add m4/nonblocking.m4,
4256         lib/stdio-write.c, m4/asm-underscore.m4.
4257         (Depends-on): Add stdio, unistd.
4258         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
4259         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
4260         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
4261         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
4262         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
4263         problem with non-blocking pipes.
4264         * doc/posix-functions/fputc.texi: Likewise.
4265         * doc/posix-functions/fputs.texi: Likewise.
4266         * doc/posix-functions/fwrite.texi: Likewise.
4267         * doc/posix-functions/printf.texi: Likewise.
4268         * doc/posix-functions/putc.texi: Likewise.
4269         * doc/posix-functions/putchar.texi: Likewise.
4270         * doc/posix-functions/puts.texi: Likewise.
4271         * doc/posix-functions/vfprintf.texi: Likewise.
4272         * doc/posix-functions/vprintf.texi: Likewise.
4273         * doc/posix-functions/write.texi: Likewise.
4274
4275 2011-04-10  Jim Meyering  <meyering@redhat.com>
4276
4277         maint.mk: prohibit doubled words
4278         Detect them also when they're separated by a newline.
4279         There are 3 ways to customize it:
4280           - disable the test on a per file basis, as usual with rules using
4281             $(VC_LIST_EXCEPT)
4282           - replace the default doubled-word-selecting regexp (affects all files)
4283           - ignore a particular file-vs-doubled-word match
4284         I nearly used that last one to ignore the "is is" match in
4285         coreutils' NEWS file, since the text was "ls -is is ..."
4286         To do that, I would have added this line to cfg.mk:
4287           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
4288         but it would have ignored any "is is" match in NEWS.
4289         Low probability, but still...
4290         Instead, I changed the text, slightly:
4291           -  ls -is is now consistent with ls -lis in ignoring values returned
4292           +  "ls -is" is now consistent with ls -lis in ignoring values returned
4293         * top/maint.mk (prohibit_double_word_RE_): Provide default.
4294         (prohibit_doubled_word_): Define.
4295         (sc_prohibit_doubled_word): New rule.
4296         (sc_prohibit_the_the): Remove.  Subsumed by the above.
4297
4298 2011-04-10  Jim Meyering  <meyering@redhat.com>
4299
4300         maint: fix doubled-word typo in comment
4301         * m4/gethostname.m4: s/is is/it is/
4302         * m4/getdomainname.m4: Likewise.
4303
4304 2011-04-10  Jim Meyering  <meyering@redhat.com>
4305
4306         maint: remove doubled word: s/it it/it/
4307         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
4308
4309 2011-04-10  Jim Meyering  <meyering@redhat.com>
4310
4311         maint.mk: remove useless semicolon and backslash
4312         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
4313         semicolon and backslash.
4314
4315 2011-04-10  Bruno Haible  <bruno@clisp.org>
4316
4317         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
4318         * modules/stdint-tests (Depends-on): Add wchar.
4319
4320 2011-04-10  Jim Meyering  <meyering@redhat.com>
4321
4322         maint: remove doubled words in comments, e.g., s/a a/a/
4323         * lib/strptime.c (day_of_the_week): s/the the/the/
4324         * tests/test-chown.h (test_chown): s/a a/a/
4325
4326         test-chown.h: correct a cast
4327         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
4328         when the destination is a stat.st_gid.
4329
4330 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
4331
4332         getaddrinfo: Fix test for sa_len member.
4333         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
4334         include <sys/types.h> before <sys/socket.h>.
4335
4336 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
4337
4338         maint: change "can not" to "cannot"
4339         * doc/posix-functions/iconv.texi (iconv): This one crossed line
4340         boundaries.
4341
4342 2011-04-09  Jim Meyering  <meyering@redhat.com>
4343
4344         maint: change "a a" to "a"
4345         * tests/test-lchown.h (test_lchown): s/a a/a/
4346
4347         maint.mk: prohibit \<the the\>
4348         * top/maint.mk (sc_prohibit_the_the): New rule.
4349
4350         maint: fix "the the" in comment
4351         * lib/count-one-bits.h: s/the the/the/
4352
4353         maint: change "can not" to "cannot"
4354         But do not change the occurrences in maintain.texi or in
4355         build-aux/po/Makefile.in.in, which I presume comes from gettext.
4356         * doc/gnulib-tool.texi: s/can not/cannot/
4357         * doc/posix-functions/accept.texi (accept): Likewise.
4358         * doc/posix-functions/socket.texi (socket): Likewise.
4359         * lib/mbrtowc.c: Likewise.
4360
4361         maint.mk: prohibit use of "can not"
4362         * top/maint.mk (sc_prohibit_can_not): New rule.
4363         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
4364
4365 2011-04-09  Bruno Haible  <bruno@clisp.org>
4366
4367         careadlinkat: Guard against misuse of careadlinkatcwd.
4368         * lib/careadlinkat.c: Include <stdlib.h>.
4369         (careadlinkatcwd): Check that the fd argument is as expected.
4370
4371 2011-04-09  Bruno Haible  <bruno@clisp.org>
4372
4373         careadlinkat: Use common coding style.
4374         * lib/careadlinkat.c: Move gnulib includes after system includes.
4375
4376 2011-04-09  Bruno Haible  <bruno@clisp.org>
4377
4378         careadlinkat: Clarify specification.
4379         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
4380         (careadlinkatcwd): Add comment.
4381         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
4382
4383 2011-04-09  Bruno Haible  <bruno@clisp.org>
4384
4385         areadlinkat: Avoid link error on many platforms.
4386         * modules/areadlinkat (Depends-on): Add areadlink.
4387
4388 2011-04-09  Bruno Haible  <bruno@clisp.org>
4389
4390         allocator, careadlinkat: Fix double-inclusion guard.
4391         * lib/allocator.h: Fix double-inclusion guard.
4392         * lib/careadlinkat.h: Likewise.
4393
4394 2011-04-09  Bruno Haible  <bruno@clisp.org>
4395
4396         relocatable-prog-wrapper: Update after module 'areadlink' changed.
4397         * lib/relocwrapper.c: Update dependencies hierarchy.
4398         * build-aux/install-reloc: Update list of files to be compiled.
4399         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
4400         lib/allocator.[hc].
4401
4402 2011-04-08  Eric Blake  <eblake@redhat.com>
4403
4404         strftime: silence gnulib-tool warning
4405         * modules/strftime-tests (Depends-on): Drop automatic dependency.
4406
4407 2011-04-08  Bruno Haible  <bruno@clisp.org>
4408
4409         verify: Fix syntax error with GCC 4.6 in C++ mode.
4410         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
4411         (HAVE_STATIC_ASSERT): New macro.
4412         (verify_true, verify): Use 'static_assert' if it is supported and
4413         '_Static_assert' is not supported.
4414
4415 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4416
4417         allocator: New module.
4418         * modules/allocator, lib/allocator.c: New files.
4419         * lib/allocator.h (stdlib_allocator): New decl.
4420         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
4421         Remove.  Do not include <stdlib.h>.
4422         (careadlinkat): Use stdlib_allocator instead of rolling our own.
4423         * modules/careadlinkat (Files): Remove lib/allocator.h.
4424         (Depends-on): Add allocator.
4425
4426         stdlib: let modules use system malloc, realloc
4427         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
4428         if !_GL_USE_STDLIB_ALLOC.
4429         (malloc, realloc): Limit this change to a smaller scope.
4430
4431         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
4432         (malloc, realloc): Don't #undef; no longer needed.
4433         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4434         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4435         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4436         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4437         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4438         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4439         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4440         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4441
4442         careadlinkat: rename members to avoid problem
4443         * lib/allocator.h (struct allocator): Rename members from
4444         malloc/realloc to allocate/reallocate, to avoid problems if malloc
4445         and realloc are #define'd.  Reported by Eric Blake in
4446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
4447         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
4448
4449 2011-04-08  Eric Blake  <eblake@redhat.com>
4450
4451         nonblocking: reduce dependency
4452         * tests/test-nonblocking.c: Only test sockets when in use.
4453         * modules/nonblocking-tests (Depends-on): Drop socket.
4454         (Makefile.am): Link even if sockets are not present.
4455         * modules/pipe2-tests (Makefile.am): Likewise.
4456         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
4457
4458         pipe2: fix O_NONBLOCK support on mingw
4459         * modules/pipe2 (Depends-on): Add nonblocking.
4460         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
4461         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
4462         * tests/test-nonblocking.c (main): Likewise.
4463         * modules/pipe2-tests (Makefile.am): Avoid link failure.
4464
4465         fcntl-h: fix O_ACCMODE on cygwin
4466         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
4467         * lib/fcntl.in.h (O_ACCMODE): Fix it.
4468
4469         pipe-filter: drop O_NONBLOCK workarounds
4470         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
4471         * modules/pipe-filter-ii (Depends-on): Likewise.
4472         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
4473
4474         nonblocking: provide O_NONBLOCK for mingw
4475         * modules/nonblocking (Depends-on): Add open.
4476         (configure.ac): Set new witness macro.
4477         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
4478         * modules/fcntl-h (Makefile.am): Substitute it.
4479         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
4480         nonblocking module is in use.
4481         * lib/nonblocking.c: Adjust portability test.
4482         * lib/open.c (open): Don't let native open see gnulib flag.
4483         * tests/test-fcntl-h.c (main): Enhance test.
4484         * tests/test-open.h (test_open): Likewise.
4485         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
4486
4487         careadlinkat: fix compilation error on mingw
4488         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
4489         within struct allocator.
4490
4491 2011-04-06  Eric Blake  <eblake@redhat.com>
4492
4493         binary-io: relicense under LGPLv2+
4494         * modules/binary-io (License): Relax to LGPLv2+.
4495         Requested for libvirt, and required by pipe2.
4496
4497 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4498
4499         verify: use _Static_assert if available
4500         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
4501         (verify_true, verify): Use it if available.  This generates better
4502         diagnostics with GCC 4.6.0 and later.
4503
4504 2011-04-05  Bruno Haible  <bruno@clisp.org>
4505
4506         Remove leftover generated .h files after config.status changed.
4507
4508         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
4509         GL_GENERATE_ALLOCA_H.
4510         * modules/alloca-opt (Makefile.am): Remove alloca.h if
4511         GL_GENERATE_ALLOCA_H evaluates to false.
4512
4513         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
4514         GL_GENERATE_ARGZ_H.
4515         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
4516         evaluates to false.
4517
4518         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
4519         GL_GENERATE_BYTESWAP_H.
4520         * modules/byteswap (Makefile.am): Remove byteswap.h if
4521         GL_GENERATE_BYTESWAP_H evaluates to false.
4522
4523         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
4524         GL_GENERATE_ERRNO_H.
4525         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
4526         evaluates to false.
4527
4528         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
4529         GL_GENERATE_FLOAT_H.
4530         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
4531         evaluates to false.
4532
4533         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
4534         GL_GENERATE_FNMATCH_H.
4535         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
4536         GL_GENERATE_FNMATCH_H evaluates to false.
4537
4538         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
4539         GL_GENERATE_GLOB_H.
4540         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
4541         evaluates to false.
4542
4543         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
4544         automake conditional GL_GENERATE_ICONV_H.
4545         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
4546         evaluates to false.
4547
4548         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
4549         GL_GENERATE_NETINET_IN_H.
4550         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
4551         GL_GENERATE_NETINET_IN_H evaluates to false.
4552
4553         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
4554         conditional GL_GENERATE_PTHREAD_H.
4555         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
4556         * modules/pthread (Makefile.am): Remove pthread.h if
4557         GL_GENERATE_PTHREAD_H evaluates to false.
4558
4559         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
4560         GL_GENERATE_SCHED_H.
4561         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
4562         evaluates to false.
4563
4564         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
4565         conditional GL_GENERATE_SELINUX_CONTEXT_H.
4566         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
4567         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
4568
4569         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
4570         GL_GENERATE_STDARG_H.
4571         * modules/stdarg (Makefile.am): Remove stdarg.h if
4572         GL_GENERATE_STDARG_H evaluates to false.
4573
4574         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
4575         GL_GENERATE_STDBOOL_H.
4576         * modules/stdbool (Makefile.am): Remove stdbool.h if
4577         GL_GENERATE_STDBOOL_H evaluates to false.
4578
4579         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
4580         conditional GL_GENERATE_STDDEF_H.
4581         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
4582         * modules/stddef (Makefile.am): Remove stddef.h if
4583         GL_GENERATE_STDDEF_H evaluates to false.
4584
4585         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
4586         GL_GENERATE_STDINT_H.
4587         * modules/stdint (Makefile.am): Remove stdint.h if
4588         GL_GENERATE_STDINT_H evaluates to false.
4589
4590         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
4591         GL_GENERATE_SYSEXITS_H.
4592         * modules/sysexits (Makefile.am): Remove sysexits.h if
4593         GL_GENERATE_SYSEXITS_H evaluates to false.
4594
4595         Reported by Karl Berry and Ralf Wildenhues.
4596
4597 2011-04-05  Bruno Haible  <bruno@clisp.org>
4598
4599         Ensure to rebuild generated .h files when config.status has changed.
4600         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
4601         config.status.
4602         * modules/ctype (Makefile.am): Likewise.
4603         * modules/dirent (Makefile.am): Likewise.
4604         * modules/errno (Makefile.am): Likewise.
4605         * modules/fcntl-h (Makefile.am): Likewise.
4606         * modules/float (Makefile.am): Likewise.
4607         * modules/getopt-posix (Makefile.am): Likewise.
4608         * modules/glob (Makefile.am): Likewise.
4609         * modules/iconv-h (Makefile.am): Likewise.
4610         * modules/inttypes (Makefile.am): Likewise.
4611         * modules/langinfo (Makefile.am): Likewise.
4612         * modules/locale (Makefile.am): Likewise.
4613         * modules/math (Makefile.am): Likewise.
4614         * modules/netdb (Makefile.am): Likewise.
4615         * modules/netinet_in (Makefile.am): Likewise.
4616         * modules/poll-h (Makefile.am): Likewise.
4617         * modules/pthread (Makefile.am): Likewise.
4618         * modules/pty (Makefile.am): Likewise.
4619         * modules/sched (Makefile.am): Likewise.
4620         * modules/search (Makefile.am): Likewise.
4621         * modules/selinux-h (Makefile.am): Likewise.
4622         * modules/signal (Makefile.am): Likewise.
4623         * modules/spawn (Makefile.am): Likewise.
4624         * modules/stdarg (Makefile.am): Likewise.
4625         * modules/stdbool (Makefile.am): Likewise.
4626         * modules/stddef (Makefile.am): Likewise.
4627         * modules/stdint (Makefile.am): Likewise.
4628         * modules/stdio (Makefile.am): Likewise.
4629         * modules/stdlib (Makefile.am): Likewise.
4630         * modules/string (Makefile.am): Likewise.
4631         * modules/strings (Makefile.am): Likewise.
4632         * modules/sys_file (Makefile.am): Likewise.
4633         * modules/sys_ioctl (Makefile.am): Likewise.
4634         * modules/sys_select (Makefile.am): Likewise.
4635         * modules/sys_socket (Makefile.am): Likewise.
4636         * modules/sys_stat (Makefile.am): Likewise.
4637         * modules/sys_time (Makefile.am): Likewise.
4638         * modules/sys_times (Makefile.am): Likewise.
4639         * modules/sys_utsname (Makefile.am): Likewise.
4640         * modules/sys_wait (Makefile.am): Likewise.
4641         * modules/sysexits (Makefile.am): Likewise.
4642         * modules/termios (Makefile.am): Likewise.
4643         * modules/time (Makefile.am): Likewise.
4644         * modules/unistd (Makefile.am): Likewise.
4645         * modules/wchar (Makefile.am): Likewise.
4646         * modules/wctype-h (Makefile.am): Likewise.
4647         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
4648
4649 2011-04-05  Bruno Haible  <bruno@clisp.org>
4650
4651         pipe2: Relicense under LGPLv2+.
4652         * modules/pipe2 (License): Change to LGPLv2+.
4653         Requested by Eric Blake, for libvirt.
4654
4655 2011-04-05  Bruce Korb  <bkorb@gnu.org>
4656
4657         bootstrap: compute gnulib_extra_files after updating build_aux
4658         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
4659         change build_aux or also supply gnulib_extra_files.  Handle correctly.
4660
4661 2011-04-05  Eric Blake  <eblake@redhat.com>
4662
4663         bootstrap: preserve git whitelist item sorting
4664         * build-aux/bootstrap (sort_patterns): New function.
4665         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
4666
4667 2011-04-05  Simon Josefsson  <simon@josefsson.org>
4668
4669         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
4670         sc_space_tab check.
4671
4672 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4673
4674         areadlink, areadlinkat: rewrite in terms of careadlinkat
4675         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
4676         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
4677         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
4678         (malloc, realloc): Remove #undefs.
4679         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
4680         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
4681         readlink, ssize_t, stdint, unistd.
4682         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
4683         areadlink, stdint.
4684
4685         careadlinkat: new module
4686         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
4687         * modules/careadlinkat: New files, written by me with
4688         a review and feedback from Ben Pfaff in
4689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
4690
4691 2011-04-01  Bruno Haible  <bruno@clisp.org>
4692
4693         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
4694         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
4695         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
4696         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4697         Reported by Bruce Korb <bruce.korb@gmail.com>.
4698
4699 2011-04-01  Bruno Haible  <bruno@clisp.org>
4700
4701         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
4702         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
4703         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
4704         * modules/wcpcpy (Depends-on): Add extensions.
4705         * modules/wcpncpy (Depends-on): Likewise.
4706         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
4707         systems.
4708         * doc/posix-functions/wcpncpy.texi: Likewise.
4709         * doc/posix-functions/wcwidth.texi: Likewise.
4710
4711 2011-03-31  Eric Blake  <eblake@redhat.com>
4712
4713         nonblocking: fix mingw test failures
4714         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
4715         non-blocking flag on regular file.
4716         (get_nonblocking_flag): Set errno on invalid fd.
4717         * tests/test-nonblocking.c (main): Avoid test failure on
4718         directories if fchdir is not active.
4719         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
4720
4721 2011-03-31  Bruno Haible  <bruno@clisp.org>
4722
4723         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
4724         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
4725         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
4726         Reported by Simon Josefsson <simon@josefsson.org>.
4727
4728 2011-03-31  Bruno Haible  <bruno@clisp.org>
4729         and Eric Blake  <eblake@redhat.com>
4730
4731         nonblocking: new module
4732         * modules/nonblocking: New module.
4733         * modules/nonblocking-tests: Likewise.
4734         * lib/nonblocking.h: New file.
4735         * lib/nonblocking.c: Likewise.
4736         * tests/test-nonblocking.c: New test.
4737         * lib/ioctl.c (ioctl) [mingw]: Update comment.
4738
4739 2011-03-30  Bruno Haible  <bruno@clisp.org>
4740
4741         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
4742         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
4743         instead of 'printf' format for GCC >= 4.4.
4744         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
4745         (fprintf, printf, vfprintf, vprintf): Declare with
4746         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
4747         the system's vfprintf() function.
4748         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
4749
4750 2011-03-30  Eric Blake  <eblake@redhat.com>
4751
4752         passfd: fix scoping bug
4753         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
4754         before sendmsg/recvmsg.
4755
4756         passfd: standardize coding conventions
4757         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
4758         can be learned at compile time.
4759         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
4760         ifdefs.
4761         (sendfd, recvfd): Follow gnulib code conventions.
4762
4763         passfd: fix incorrect sendmsg arguments
4764         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
4765         incorrect msg_controllen value.
4766         * modules/passfd-tests (Depends-on): Check for alarm.
4767         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
4768         Reported by Bastien ROUCARIES.
4769
4770 2011-03-30  Bruno Haible  <bruno@clisp.org>
4771
4772         c-strcasestr: Relicense under LGPLv2+.
4773         * modules/c-strcasestr (License): Change to LGPLv2+.
4774         Requested by Eric Blake, for libvirt.
4775
4776 2011-03-30  Simon Josefsson  <simon@josefsson.org>
4777
4778         * users.txt: Add libidn2.  Fix libtasn1 link.
4779
4780 2011-03-30  Jim Meyering  <meyering@redhat.com>
4781
4782         tests: readlink* ("",... fails with EINVAL on newer kernels
4783         readlink and readlinkat have typically failed with ENOENT for
4784         the invalid, empty file name,  "".  However, with the advent
4785         of linux-2.6.39, they fail with EINVAL.
4786         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
4787         when operating on the empty file name.
4788         * tests/test-readlink.h (test_readlink): Likewise.
4789
4790 2011-03-29  Bruno Haible  <bruno@clisp.org>
4791
4792         Relicense some modules under LGPLv2+, for libidn2.
4793         * modules/array-mergesort (License): Change to LGPLv2+.
4794         * modules/c-strcaseeq (License): Likewise.
4795         * modules/striconveh (License): Likewise.
4796         * modules/striconveha (License): Likewise.
4797         * modules/uniconv/base (License): Likewise.
4798         * modules/uniconv/u8-conv-from-enc (License): Likewise.
4799         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
4800         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
4801         * modules/unictype/base (License): Likewise.
4802         * modules/unictype/bidiclass-of (License): Likewise.
4803         * modules/unictype/category-M (License): Likewise.
4804         * modules/unictype/category-none (License): Likewise.
4805         * modules/unictype/category-of (License): Likewise.
4806         * modules/unictype/category-test (License): Likewise.
4807         * modules/unictype/category-test-withtable (License): Likewise.
4808         * modules/unictype/combining-class (License): Likewise.
4809         * modules/unictype/joiningtype-of (License): Likewise.
4810         * modules/unictype/scripts (License): Likewise.
4811         * modules/uninorm/base (License): Likewise.
4812         * modules/uninorm/canonical-decomposition (License): Likewise.
4813         * modules/uninorm/composition (License): Likewise.
4814         * modules/uninorm/decompose-internal (License): Likewise.
4815         * modules/uninorm/decomposition-table (License): Likewise.
4816         * modules/uninorm/nfc (License): Likewise.
4817         * modules/uninorm/nfd (License): Likewise.
4818         * modules/uninorm/u32-normalize (License): Likewise.
4819         * modules/unistr/base (License): Likewise.
4820         * modules/unistr/u32-cpy (License): Likewise.
4821         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
4822         * modules/unistr/u32-to-u8 (License): Likewise.
4823         * modules/unistr/u32-uctomb (License): Likewise.
4824         * modules/unistr/u8-check (License): Likewise.
4825         * modules/unistr/u8-mblen (License): Likewise.
4826         * modules/unistr/u8-mbtouc (License): Likewise.
4827         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
4828         * modules/unistr/u8-mbtoucr (License): Likewise.
4829         * modules/unistr/u8-prev (License): Likewise.
4830         * modules/unistr/u8-strlen (License): Likewise.
4831         * modules/unistr/u8-to-u32 (License): Likewise.
4832         * modules/unistr/u8-uctomb (License): Likewise.
4833         * modules/unitypes (License): Likewise.
4834         Requested by Simon Josefsson.
4835
4836 2011-03-29  Simon Josefsson  <simon@josefsson.org>
4837
4838         lib-symbol-visibility: Add a notice.
4839         * modules/lib-symbol-visibility (Notice): New field.
4840
4841 2011-03-29  Bruno Haible  <bruno@clisp.org>
4842
4843         getaddrinfo: Doc fix.
4844         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
4845         section "fixed in Gnulib".
4846
4847 2011-03-28  Simon Josefsson  <simon@josefsson.org>
4848
4849         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
4850         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
4851
4852 2011-03-26  Bruno Haible  <bruno@clisp.org>
4853
4854         unictype/property-byname: Reduce the number of load-time relocations.
4855         * lib/unictype/pr_byname.c: Include <stdlib.h>.
4856         (UC_PROPERTY_INDEX_*): New enumeration values.
4857         (uc_property_byname): Convert an index from the lookup table to an
4858         uc_property_t.
4859         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
4860         values.
4861
4862 2011-03-26  Bruno Haible  <bruno@clisp.org>
4863
4864         unictype/property-byname: Allow omitted word separators and aliases.
4865         * lib/unictype/pr_byname.gperf: Add property names without word
4866         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
4867         for 'space'.
4868
4869 2011-03-26  Bruno Haible  <bruno@clisp.org>
4870
4871         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
4872         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
4873         also hyphens to space.
4874         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
4875         without spaces.
4876         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
4877
4878 2011-03-26  Bruno Haible  <bruno@clisp.org>
4879
4880         unictype/joiningtype-byname: Recognize long names as well.
4881         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
4882         a long name.
4883         * lib/unictype/joiningtype_byname.c: Include <string.h>,
4884         unictype/joiningtype_byname.h.
4885         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
4886         * lib/unictype/joiningtype_byname.gperf: New file.
4887         * modules/unictype/joiningtype-byname (Files): Add
4888         lib/unictype/joiningtype_byname.gperf.
4889         (Depends-on): Add gperf.
4890         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
4891         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
4892         long names.
4893
4894         Tests for module 'unictype/joiningtype-longname'.
4895         * modules/unictype/joiningtype-longname-tests: New file.
4896         * tests/unictype/test-joiningtype_longname.c: New file.
4897
4898         New module 'unictype/joiningtype-longname'.
4899         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
4900         * lib/unictype/joiningtype_longname.c: New file.
4901         * modules/unictype/joiningtype-longname: New file.
4902         * modules/unictype/joiningtype-all (Depends-on): Add
4903         unictype/joiningtype-longname.
4904
4905 2011-03-26  Bruno Haible  <bruno@clisp.org>
4906
4907         unictype/bidiclass-byname: Recognize long names as well.
4908         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
4909         name.
4910         * lib/unictype/bidi_byname.c: Include <string.h>,
4911         unictype/bidi_byname.h.
4912         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
4913         * lib/unictype/bidi_byname.gperf: New file.
4914         * modules/unictype/bidiclass-byname (Files): Add
4915         lib/unictype/bidi_byname.gperf.
4916         (Depends-on): Add gperf.
4917         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
4918         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
4919         long names.
4920
4921         Tests for module 'unictype/bidiclass-longname'.
4922         * modules/unictype/bidiclass-longname-tests: New file.
4923         * tests/unictype/test-bidi_longname.c: New file.
4924
4925         New module 'unictype/bidiclass-longname'.
4926         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
4927         * lib/unictype/bidi_longname.c: New file.
4928         * modules/unictype/bidiclass-longname: New file.
4929         * modules/unictype/bidiclass-all (Depends-on): Add
4930         unictype/bidiclass-longname.
4931
4932 2011-03-26  Bruno Haible  <bruno@clisp.org>
4933
4934         unictype/bidi*: Rename modules.
4935         * modules/unictype/bidiclass-all: Renamed from
4936         modules/unictype/bidicategory-all.
4937         * modules/unictype/bidiclass-name: Renamed from
4938         modules/unictype/bidiclass-name.
4939         (Description): Update.
4940         * modules/unictype/bidiclass-name-tests: Renamed from
4941         modules/unictype/bidicategory-name-tests.
4942         * modules/unictype/bidiclass-byname: Renamed from
4943         modules/unictype/bidicategory-byname.
4944         (Description): Update.
4945         * modules/unictype/bidiclass-byname-tests: Renamed from
4946         modules/unictype/bidicategory-byname-tests.
4947         * modules/unictype/bidiclass-of: Renamed from
4948         modules/unictype/bidicategory-of.
4949         (Description): Update.
4950         * modules/unictype/bidiclass-of-tests: Renamed from
4951         modules/unictype/bidicategory-of-tests.
4952         * modules/unictype/bidiclass-test: Renamed from
4953         modules/unictype/bidicategory-test.
4954         (Description): Update.
4955         * modules/unictype/bidiclass-test-tests: Renamed from
4956         modules/unictype/bidicategory-test-tests.
4957         * modules/unictype/bidicategory-all: New file, a simple redirection.
4958         * modules/unictype/bidicategory-name: Likewise.
4959         * modules/unictype/bidicategory-byname: Likewise.
4960         * modules/unictype/bidicategory-of: Likewise.
4961         * modules/unictype/bidicategory-test: Likewise.
4962         * modules/unictype/property-bidi-* (Dependencies): Update.
4963         * lib/unictype/bidi_*.c: Update comment.
4964
4965 2011-03-26  Bruno Haible  <bruno@clisp.org>
4966
4967         unictype/bidi*: Rename functions, part 2.
4968         * modules/unictype/bidicategory-name (configure.ac): Update required
4969         libunistring version.
4970         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
4971
4972 2011-03-25  Bruno Haible  <bruno@clisp.org>
4973
4974         New module 'unictype/combining-class-all'.
4975         * modules/unictype/combining-class-all: New file.
4976
4977         Tests for module 'unictype/combining-class-byname'.
4978         * modules/unictype/combining-class-byname-tests: New file.
4979         * tests/unictype/test-combiningclass_byname.c: New file.
4980
4981         New module 'unictype/combining-class-byname'.
4982         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
4983         * lib/unictype/combiningclass_byname.c: New file.
4984         * lib/unictype/combiningclass_byname.gperf: New file.
4985         * modules/unictype/combining-class-byname: New file.
4986
4987         Tests for module 'unictype/combining-class-longname'.
4988         * modules/unictype/combining-class-longname-tests: New file.
4989         * tests/unictype/test-combiningclass_longname.c: New file.
4990
4991         New module 'unictype/combining-class-longname'.
4992         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
4993         * lib/unictype/combiningclass_longname.c: New file.
4994         * modules/unictype/combining-class-longname: New file.
4995
4996         Tests for module 'unictype/combining-class-name'.
4997         * modules/unictype/combining-class-name-tests: New file.
4998         * tests/unictype/test-combiningclass_name.c: New file.
4999
5000         New module 'unictype/combining-class-name'.
5001         * lib/unictype.in.h (uc_combining_class_name): New declaration.
5002         * lib/unictype/combiningclass_name.c: New file.
5003         * modules/unictype/combining-class-name: New file.
5004
5005 2011-03-25  Bruno Haible  <bruno@clisp.org>
5006
5007         unictype/combining-class: Rename source files.
5008         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
5009         of unictype/combining.h.
5010         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
5011         Update.
5012         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
5013         * modules/unictype/combining-class (Description): Fix.
5014         (Files, Makefile.am): Update.
5015         * tests/unictype/test-combiningclass.c: Renamed from
5016         tests/unictype/test-combining.c.
5017         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
5018
5019 2011-03-25  Bruno Haible  <bruno@clisp.org>
5020
5021         unictype: Update list of canonical combining classes.
5022         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
5023
5024 2011-03-25  Bruno Haible  <bruno@clisp.org>
5025
5026         unictype/category-byname: Recognize long names as well.
5027         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
5028         a long name.
5029         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
5030         unictype/categ_byname.h.
5031         (UC_CATEGORY_INDEX_*): New enumeration values.
5032         (uc_general_category_byname): Use uc_general_category_lookup and
5033         convert from index to value.
5034         * lib/unictype/categ_byname.gperf: New file.
5035         * modules/unictype/category-byname (Files): Add
5036         lib/unictype/categ_byname.gperf.
5037         (Depends-on): Add gperf.
5038         (Makefile.am): Add rule for generating unictype/categ_byname.h.
5039         * tests/unictype/test-categ_byname.c (main): Test the recognition of
5040         long names.
5041
5042         Tests for module 'unictype/category-longname'.
5043         * modules/unictype/category-longname-tests: New file.
5044         * tests/unictype/test-categ_longname.c: New file.
5045
5046         New module 'unictype/category-longname'.
5047         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
5048         * lib/unictype/categ_longname.c: New file.
5049         * modules/unictype/category-longname: New file.
5050         * modules/unictype/category-all (Depends-on): Add it.
5051
5052 2011-03-25  Bruno Haible  <bruno@clisp.org>
5053
5054         Tests for module 'unictype/category-LC'.
5055         * modules/unictype/category-LC-tests: New file.
5056         * tests/unictype/test-categ_LC.c: New file, automatically generated.
5057
5058         New module 'unictype/category-LC'.
5059         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
5060         (UC_CATEGORY_LC): New declaration.
5061         (UC_CASED_LETTER): New macro.
5062         * lib/gen-uni-tables.c (is_category_LC): New function.
5063         (output_categories): Also handle category LC.
5064         (UC_CATEGORY_MASK_LC): New enumeration value.
5065         (general_category_byname): Also handle category LC.
5066         * lib/unictype/categ_LC.c: New file.
5067         * lib/unictype/categ_LC.h: New file, automatically generated.
5068         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
5069         category LC.
5070         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
5071         * modules/unictype/category-LC: New file.
5072         * modules/unictype/category-byname (Depends-on): Add
5073         unictype/category-LC.
5074         * modules/unictype/category-all (Depends-on): Likewise.
5075
5076 2011-03-25  Eric Blake  <eblake@redhat.com>
5077
5078         xmalloc: revert yesterday's regression
5079         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
5080         realloc's underlying behavior (allowing allocation of zero-size
5081         objects, especially if malloc-gnu is also in use).
5082
5083 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
5084
5085         maint.mk: add missing version to VC-tag
5086         * top/maint.mk: git tag was missing actual tag name; add it.
5087
5088         valgrind: do leak checking, and exit with code 1 on error (not 0)
5089         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5090         to VALGRIND.
5091
5092 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
5093
5094         posix-modules: say what it does.
5095         * posix-modules: Add a line to the --help output saying what it does.
5096
5097 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5098
5099         xmalloc: Do not leak if underlying realloc is C99 compatible.
5100         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
5101         This avoids a leak on C99-based systems.  See
5102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
5103
5104 2011-03-24  Eric Blake  <eblake@redhat.com>
5105
5106         realloc: document portability problem
5107         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
5108         passing 0 size to realloc.
5109
5110 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
5111
5112         doc: update users.txt
5113         * users.txt: Add cvsps, tmpwatch
5114
5115 2011-03-23  Matt Rice  <ratmice@gmail.com>
5116
5117         doc: update users.txt
5118         * users.txt: Add gdb.
5119
5120 2011-03-23  Jim Meyering  <meyering@redhat.com>
5121
5122         doc: update users.txt
5123         Looking through matches up to the following URL (there are still
5124         several more pages), I found several projects that use gnulib:
5125         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
5126         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
5127         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
5128
5129 2011-03-22  Bruno Haible  <bruno@clisp.org>
5130
5131         unictype/bidi*: Rename functions.
5132         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
5133         uc_bidi_class, uc_is_bidi_class): New declarations.
5134         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
5135         uc_bidi_category_byname.
5136         (uc_bidi_category_byname): New function.
5137         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
5138         u_bidi_category_name.
5139         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
5140         (uc_bidi_category_name): New function.
5141         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
5142         uc_bidi_category.
5143         (uc_bidi_category): New function.
5144         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
5145         uc_is_bidi_category. Invoke uc_bidi_class.
5146         (uc_is_bidi_category): New function.
5147         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
5148         instead of uc_bidi_category_byname.
5149         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
5150         instead of uc_bidi_category_name.
5151         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
5152         uc_bidi_category.
5153         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
5154         instead of uc_is_bidi_category.
5155
5156 2011-03-21  Bruno Haible  <bruno@clisp.org>
5157
5158         New module 'unictype/joininggroup-all'.
5159         * modules/unictype/joininggroup-all: New file.
5160
5161         Tests for module 'unictype/joininggroup-of'.
5162         * modules/unictype/joininggroup-of-tests: New file.
5163         * tests/unictype/test-joininggroup_of.c: New file.
5164         * tests/unictype/test-joininggroup_of.h: New file, automatically
5165         generated by gen-uni-tables.
5166
5167         New module 'unictype/joininggroup-of'.
5168         * modules/unictype/joininggroup-of: New file.
5169         * lib/unictype/joininggroup_of.c: New file.
5170         * lib/unictype/joininggroup_of.h: New file, automatically generated by
5171         gen-uni-tables.
5172
5173         Tests for module 'unictype/joininggroup-byname'.
5174         * modules/unictype/joininggroup-byname-tests: New file.
5175         * tests/unictype/test-joininggroup_byname.c: New file.
5176
5177         New module 'unictype/joininggroup-byname'.
5178         * modules/unictype/joininggroup-byname: New file.
5179         * lib/unictype/joininggroup_byname.c: New file.
5180         * lib/unictype/joininggroup_byname.gperf: New file.
5181
5182         Tests for module 'unictype/joininggroup-name'.
5183         * modules/unictype/joininggroup-name-tests: New file.
5184         * tests/unictype/test-joininggroup_name.c: New file.
5185
5186         New module 'unictype/joininggroup-name'.
5187         * modules/unictype/joininggroup-name: New file.
5188         * lib/unictype/joininggroup_name.c: New file.
5189         * lib/unictype/joininggroup_name.h: New file.
5190
5191         New module 'unictype/joiningtype-all'.
5192         * modules/unictype/joiningtype-all: New file.
5193
5194         Tests for module 'unictype/joiningtype-of'.
5195         * modules/unictype/joiningtype-of-tests: New file.
5196         * tests/unictype/test-joiningtype_of.c: New file.
5197         * tests/unictype/test-joiningtype_of.h: New file, automatically
5198         generated by gen-uni-tables.
5199
5200         New module 'unictype/joiningtype-of'.
5201         * modules/unictype/joiningtype-of: New file.
5202         * lib/unictype/joiningtype_of.c: New file.
5203         * lib/unictype/joiningtype_of.h: New file, automatically generated by
5204         gen-uni-tables.
5205
5206         Tests for module 'unictype/joiningtype-byname'.
5207         * modules/unictype/joiningtype-byname-tests: New file.
5208         * tests/unictype/test-joiningtype_byname.c: New file.
5209
5210         New module 'unictype/joiningtype-byname'.
5211         * modules/unictype/joiningtype-byname: New file.
5212         * lib/unictype/joiningtype_byname.c: New file.
5213
5214         Tests for module 'unictype/joiningtype-name'.
5215         * modules/unictype/joiningtype-name-tests: New file.
5216         * tests/unictype/test-joiningtype_name.c: New file.
5217
5218         New module 'unictype/joiningtype-name'.
5219         * modules/unictype/joiningtype-name: New file.
5220         * lib/unictype/joiningtype_name.c: New file.
5221
5222         unictype: Add support for Arabic shaping properties.
5223         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
5224         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
5225         declarations.
5226         (UC_JOINING_GROUP_*): New enumeration values.
5227         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
5228         declarations.
5229         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
5230         (unicode_joining_type): New variable.
5231         (UC_JOINING_GROUP_*): New enumeration values.
5232         (unicode_joining_group): New variable.
5233         (fill_arabicshaping, joining_type_as_c_identifier,
5234         output_joining_type_test, output_joining_type,
5235         joining_group_as_c_identifier, output_joining_group_test,
5236         output_joining_group): New functions.
5237         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
5238         fill_arabicshaping and output_joining_type_test, output_joining_type,
5239         output_joining_group_test, output_joining_group.
5240         Reported by Simon Josefsson.
5241
5242 2011-03-21  Jim Meyering  <meyering@redhat.com>
5243
5244         strftime: fix a bug in yesterday's change
5245         * lib/strftime.c (add): Accommodate width's initial value of -1.
5246         Otherwise, nstrftime would copy uninitialized data into
5247         the result buffer.
5248
5249 2011-03-21  Jim Meyering  <meyering@redhat.com>
5250
5251         tests: add strftime-tests module
5252         * tests/test-strftime.c: New file.
5253         * modules/strftime-tests: New module.
5254
5255 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5256
5257         strftime: don't assume a byte count fits in 'int'
5258         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
5259         found this problem by static analysis, using gcc -Wstrict-overflow
5260         (GCC 4.5.2, x86-64).  This reported an optimization that depended
5261         on an integer overflow having undefined behavior, but it turns out
5262         that the argument is a size, which might not fit in 'int' anyway,
5263
5264 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5265
5266         stdio: don't require ignore_value around fwrite
5267
5268         This patch works around libc bug 11959
5269         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
5270         Without this patch, applications must often write
5271         ignore_value (fwrite (...)) even though the ignore_value is
5272         not helpful here.  It's common to write many objects, using
5273         fwrite/printf/etc., and then use ferror to detect output error.
5274
5275         I considered making this patch optional, but decided against it,
5276         because libc is obviously being inconsistent here: there is no
5277         reason libc should insist that user code must inspect fwrite
5278         return's value without also insisting that it inspect printf's,
5279         putchar's, etc.  If user code wants to have a strict style where
5280         all these functions' values are checked (so that ferror need not
5281         be checked), we could add support for that style in a new gnulib
5282         module, but in the meantime it's better to be consistent and to
5283         support common usage.
5284
5285         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
5286         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
5287         that we are compiling in checking mode, and if not C++, and
5288         if not already wrapping fwrite for some other reason.
5289         (fwrite): #define to rpl_fwrite if the latter is defined.
5290
5291 2011-03-20  Bruno Haible  <bruno@clisp.org>
5292
5293         verror: Fix compilation error introduced on 2011-02-13.
5294         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
5295         instead of __attribute__.
5296         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5297
5298 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5299             Bruno Haible  <bruno@clisp.org>
5300
5301         socklen: do not depend on sys_socket
5302         While trying to modify Emacs to use gnulib's socklen module,
5303         I discovered a circular dependency: socklen depends on sys_socket
5304         and vice versa.  Emacs can use socklen, but it does not need
5305         sys_socket because it has its own substitute for sys/socket.h.
5306         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
5307         gl_TYPE_SOCKLEN_T.
5308         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
5309         gl_PREREQ_SYS_H_SOCKET.
5310         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
5311         gl_PREREQ_SYS_H_SOCKET.
5312         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
5313         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
5314         * modules/socklen (Depends-on): Do not depend on sys_socket.
5315         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
5316
5317 2011-03-20  Jim Meyering  <meyering@redhat.com>
5318
5319         maint.mk: sort file names *after* new transformation
5320         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
5321         prefix would have led to an unwarranted failure in GNU parted.
5322         Sort after that transformation.
5323
5324 2011-03-19  Jim Meyering  <meyering@redhat.com>
5325
5326         maint.mk: fix po-file syntax-check rule
5327         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
5328         Patch by Bruno Haible.
5329
5330 2011-03-19  Bruno Haible  <bruno@clisp.org>
5331
5332         socklen: Update comment.
5333         * m4/socklen.m4: Update comment about platforms.
5334
5335 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5336             Bruno Haible  <bruno@clisp.org>
5337
5338         inet_ntop, inet_pton: Simplify.
5339         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
5340         documented to provide socklen_t and we already depend on sys_socket.
5341         * modules/inet_pton (Depends-on): Likewise.
5342         * lib/arpa_inet.in.h: Adjust comment.
5343
5344 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5345             Bruno Haible  <bruno@clisp.org>
5346
5347         netdb: Simplify.
5348         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
5349         documented to provide socklen_t and we already depend on sys_socket.
5350         * lib/netdb.in.h: Adjust comment.
5351
5352 2011-03-19  Bruno Haible  <bruno@clisp.org>
5353
5354         sys_socket, netdb: Document problem with socklen_t.
5355         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
5356         platforms.
5357         * doc/posix-headers/netdb.texi: Likewise.
5358
5359 2011-03-18  Eric Blake  <eblake@redhat.com>
5360
5361         maint.mk: let po check work in VPATH build
5362         * top/maint.mk (po_file): Allow cfg.mk override.
5363         (sc_po_check): Allow VPATH use.
5364         Reported by Jiri Denemark.
5365
5366 2011-03-16  Jim Meyering  <meyering@redhat.com>
5367
5368         maint.mk: allow fine-grained syntax-check exclusion via Make variables
5369         Before, you would have had to create one .x-sc_ file per rule in order
5370         to exempt offending files.  Now, you may instead use a Make variable --
5371         usually defined in cfg.mk -- whose name identifies the affected rule.
5372         * top/maint.mk (_sc_excl): Define.
5373         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
5374         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
5375
5376 2011-03-13  Bruno Haible  <bruno@clisp.org>
5377
5378         ignore-value tests: Avoid warnings.
5379         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
5380         empty for gcc < 3.4.
5381
5382 2011-03-13  Bruno Haible  <bruno@clisp.org>
5383
5384         passfd: Fix link error on Solaris.
5385         * modules/passfd (Description): Correct.
5386         (Depends-on): Add socketlib.
5387         (Link): New section.
5388         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
5389
5390 2011-03-13  Bruno Haible  <bruno@clisp.org>
5391
5392         passfd: Fix link error on AIX 5.2.
5393         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
5394
5395 2011-03-13  Bruno Haible  <bruno@clisp.org>
5396
5397         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
5398         * lib/sys_socket.in.h: Include <stddef.h>.
5399         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
5400         CMSG_FIRSTHDR. Remove unused variable.
5401
5402 2011-03-13  Bruno Haible  <bruno@clisp.org>
5403
5404         passfd: Fix compilation error on OpenBSD.
5405         * lib/passfd.c: Include <sys/uio.h>.
5406
5407 2011-03-13  Bruno Haible  <bruno@clisp.org>
5408
5409         passfd test: Fix warnings.
5410         * tests/test-passfd.c: Include <sys/wait.h>.
5411         (main): Fix typo.
5412
5413 2011-03-13  Bruno Haible  <bruno@clisp.org>
5414
5415         passfd module, part 4, tweaks.
5416         * tests/test-passfd.c: Reorder includes.
5417         (main): Fix perror and printf calls.
5418
5419 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5420
5421         passfd module, part 4.
5422         * modules/passfd-tests: New file.
5423         * tests/test-passfd.c: New file.
5424
5425 2011-03-13  Jim Meyering  <meyering@redhat.com>
5426
5427         Makefile: rely on GNU make; derive syntax-check rule names
5428         Rather than requiring that each sc_ rule be listed as a dependent
5429         of "check", use features of GNU make to derive the list.
5430         * Makefile (syntax-check-rules): Define.
5431         (check): Depend on the new variable, not the hard-coded list.
5432
5433 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
5434             Bruno Haible  <bruno@clisp.org>
5435
5436         passfd module, part 3.
5437         * lib/passfd.h (recvfd): Add a flags argument.
5438         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
5439         (recvfd): Add a flags argument.
5440         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
5441         exists.
5442         * modules/passfd (Depends-on): Add cloexec.
5443         Suggested by Eric Blake.
5444
5445 2011-03-13  Bruno Haible  <bruno@clisp.org>
5446
5447         passfd module, part 2, tweaks.
5448         * modules/passfd (Files): Reorder.
5449         (Depends-on): Remove errno.
5450         (Include): Remove <sys/socket.h>, <sys/un.h>.
5451         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
5452         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
5453         specification header. Include <sys/socket.h> always. Don't include
5454         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
5455         (sendfd): Clarify that it sets errno when it fails.
5456         (recvfd): Fix specification.
5457
5458 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5459
5460         passfd module, part 2.
5461         * modules/passfd: New file.
5462         * lib/passfd.h: New file.
5463         * lib/passfd.c: New file.
5464
5465 2011-03-12  Bruno Haible  <bruno@clisp.org>
5466
5467         wcswidth, mbswidth: Avoid integer overflow.
5468         * lib/wcswidth.c: Include <limits.h>.
5469         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
5470         * lib/mbswidth.c: Include <limits.h>.
5471         (mbsnwidth): Avoid 'int' overflow.
5472         Reported by Jim Meyering.
5473
5474 2011-03-12  Bruno Haible  <bruno@clisp.org>
5475
5476         futimens, utimensat: Avoid endless recursion on Solaris 10.
5477         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
5478         Solaris.
5479         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
5480         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
5481
5482 2011-03-11  Jim Meyering  <meyering@redhat.com>
5483
5484         maint.mk: relax a regexp to accommodate other formatting styles
5485         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
5486         between "ngettext" and the following "(".
5487
5488 2011-03-11  Pádraig Brady <P@draigBrady.com>
5489
5490         maint.mk: suppress a false positive warning
5491         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
5492         diagnostics are marked with ngettext.
5493
5494 2011-03-10  Eric Blake  <eblake@redhat.com>
5495
5496         wchar: add explicit dependencies, for Tru64
5497         * modules/mbmemcasecoll (Depends-on): Add wchar.
5498         * modules/mbtowc (Depends-on): Likewise.
5499         * modules/vasnprintf (Depends-on): Likewise.
5500         * modules/unistdio/u-printf-args (Depends-on): Likewise.
5501         * modules/wctomb (Depends-on): Likewise.
5502         Reported by Peter O'Gorman.
5503
5504 2011-03-08  Bruno Haible  <bruno@clisp.org>
5505
5506         passfd module, part 1, tweaks.
5507         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
5508         Improve indentation. Improve AC_MSG_CHECKING messages.
5509         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
5510         gl_SOCKET_FAMILIES.
5511
5512 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5513
5514         passfd module, part 1.
5515         * m4/afunix.m4: New file.
5516         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
5517         sockets.
5518
5519 2011-03-08  Bruno Haible  <bruno@clisp.org>
5520
5521         regex-quote: New API.
5522         * lib/regex-quote.h: Include <stdbool.h>.
5523         (struct regex_quote_spec): New type.
5524         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5525         New declarations.
5526         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5527         'const struct regex_quote_spec *' argument.
5528         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
5529         (pcre_special): New constant.
5530         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5531         New functions.
5532         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5533         'const struct regex_quote_spec *' argument.
5534         * modules/regex-quote (Depends-on): Add stdbool.
5535         * tests/test-regex-quote.c (check): Update for new API. Add test for
5536         anchored results.
5537         * NEWS: Mention the API change.
5538         Reported by Reuben Thomas and Eric Blake.
5539
5540 2011-03-06  Bruno Haible  <bruno@clisp.org>
5541
5542         regex-quote: Fix creation of POSIX extended regular expressions.
5543         * lib/regex-quote.c (ere_special): Add grouping and alternation
5544         operators.
5545
5546 2011-03-05  Bruno Haible  <bruno@clisp.org>
5547
5548         doc: Improve doc regarding autopoint vs. gnulib.
5549         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
5550         disable autopoint while running autoreconf.
5551         Suggested by Ralf Wildenhues.
5552
5553 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5554
5555         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
5556         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
5557
5558 2011-03-03  Bruce Korb  <bkorb@gnu.org>
5559
5560         parse-duration: remove xalloc.h dependency
5561         * lib/parse-duration.c (parse_period): handle NULL return from
5562         strdup instead of calling xstrdup().
5563         * modules/parse-duration: remove "xalloc" dependency
5564
5565 2011-03-03  Matthew Booth  <mbooth@redhat.com>
5566
5567         bootstrap: honor m4_base when running aclocal
5568         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
5569
5570 2011-03-02  Jim Meyering  <meyering@redhat.com>
5571
5572         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
5573         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
5574         on request from Matt Booth.
5575
5576 2011-03-01  Eric Blake  <eblake@redhat.com>
5577
5578         test-link: work on Hurd
5579         * tests/test-link.h (test_link): Hurd rejects linking directories
5580         with EISDIR instead of the POSIX-mandated EPERM.
5581
5582 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
5583
5584         stdio: simplify by moving files to printf-posix, sigpipe
5585         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
5586         since this symbol is needed only if printf is replaced.
5587         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
5588         Require gl_ASM_SYMBOL_PREFIX.
5589         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
5590         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
5591         (Depends-on): Add 'raise'.
5592         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
5593         * modules/stdio (Files): Remove lib/stdio-write.c,
5594         m4/asm-underscore.m4.
5595         (Depends-on): Remove 'raise'.
5596
5597         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
5598         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
5599         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
5600         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
5601
5602 2011-02-28  Bruno Haible  <bruno@clisp.org>
5603
5604         localcharset: Assume ANSI C behaviour of free().
5605         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
5606         calling free().
5607         Suggested by Simon Josefsson <simon@josefsson.org>.
5608
5609 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
5610             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
5611             Bruno Haible  <bruno@clisp.org>  (tiny change)
5612
5613         On Cygwin, use /proc file system instead of win32 API.
5614         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
5615         Win32 file names.
5616         (DllMain): Simplify by removing Cygwin specific code.
5617         (find_shared_library_fullname): Use Linux specific implementation also
5618         for Cygwin.
5619         (get_shared_library_fullname): Update accordingly.
5620         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
5621         Win32 file names.
5622         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
5623         Cygwin specific code.
5624
5625 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
5626             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
5627
5628         Fix OpenMP flag detection for various Fortran compilers.
5629         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
5630         OpenMP-conditional compilation construct, to force compile
5631         failure with missing OpenMP flag.
5632         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
5633
5634 2011-02-25  Eric Blake  <eblake@redhat.com>
5635
5636         strstr: expand test coverage
5637         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
5638         compilation.
5639         * tests/test-memmem.c (main): Duplicate tests.
5640         * tests/test-strcasestr.c (main): Likewise.
5641         * tests/test-c-strcasestr.c (main): Likewise.
5642
5643 2011-02-25  Jim Meyering  <meyering@redhat.com>
5644
5645         maint.mk: detect missing-NL-at-EOF, too
5646         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
5647         it also detects when a file lacks a newline at EOF.
5648         (require_exactly_one_NL_at_EOF_): Renamed from
5649         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
5650         since people may well have .x-sc_... file names tied to the
5651         existing name.  Suggested by Eric Blake.
5652
5653 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
5654
5655         dirname: move m4/dos.m4 functionality into lib/dosname.h
5656
5657         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
5658         extracts symbols from it, puts them into config.h; but it's much
5659         easier to use the symbols directly.  filename.h already does this,
5660         but it disagrees with dos.m4 in some respects.  This patch
5661         introduces a different include file dosname.h that packages up
5662         dos.m4, and then later we can work on merging filename.h and
5663         dosname.h.  Applications that need only the easy-to-configure
5664         symbols should consider including dosname.h rather than dirname.h.
5665         * NEWS: Mention incompatible changes.
5666         * m4/dos.m4: Remove.
5667         * lib/dosname.h, modules/dosname: New files.
5668         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
5669         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
5670         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
5671         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
5672         Include dosname.h, not dirname.h.
5673         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
5674         Include dosname.h, for definitions of symbols like ISSLASH
5675         that used to be in config.h.
5676         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
5677         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5678         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5679         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5680         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
5681         * modules/rmdir (Files): Likewise.
5682         * modules/stat (Files): Likewise.
5683         * modules/unlink (Files): Likewise.
5684         * modules/dirname-lgpl (Depends-on): Add dosname.
5685         * modules/lstat (Depends-on): Likewise.
5686         * modules/openat (Depends-on): Likewise.
5687         * modules/rmdir (Depends-on): Likewise.
5688         * modules/savewd (Depends-on): Likewise.
5689         * modules/stat (Depends-on): Likewise.
5690         * modules/unlink (Depends-on): Likewise.
5691         * modules/openat (Depends-on): Remove dirname-lgpl.
5692         * modules/savewd (Depends-on): Likewise.
5693         * tests/test-dirname.c: Do not use removed symbols like
5694         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
5695         the remaining symbols, e.g., ISSLASH ('\\').
5696
5697 2011-02-25  Eric Blake  <eblake@redhat.com>
5698
5699         strstr: revert patches that introduced bug and pessimization
5700         * lib/str-two-way.h: Add another reference.
5701         (two_way_short_needle, two_way_long_needle): Revert changes from
5702         2011-02-24; they pessimize search speed.
5703         (critical_factorization): Partially revert changes from
5704         2010-06-22; they violate the requirement that the left half of the
5705         needle be smaller than the period of the needle.
5706
5707 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5708
5709         filenamecat: remove unnecessary dependency on dirname-lgpl
5710         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
5711         is no direct dependency, just an indirect one via filenamecat-lgpl.
5712
5713         remove: remove unnecessary use of m4/dos.m4
5714         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
5715         * modules/remove (FILES): Remove m4/dos.m4.
5716
5717         * lib/openat-proc.c: Don't include dirname.h; not needed.
5718
5719         backupfile: remove unnecessary use of m4/dos.m4
5720         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
5721         of its symbols are used by the backupfile code.  backupfile.c does
5722         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
5723         for the rare case of programs that want all their backup file
5724         names to live within 8+3 limits, and dos.m4 doesn't address that.
5725         * modules/backupfile (Files): Remove m4/dos.m4.
5726
5727 2011-02-24  Jim Meyering  <meyering@redhat.com>
5728
5729         strstr: fix a bug whereby strstr would mistakenly return NULL
5730         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
5731         in period calculation.
5732         (two_way_long_needle): Likewise.
5733         The original problem was reported by Mike Stump in
5734         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
5735         Ralf Wildenhues provided the short needle and haystack.
5736         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
5737         Add a more involved test to trigger the bug in two_way_long_needle.
5738
5739 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5740
5741         gnulib-tool: remove use of bold display in help screen
5742         * gnulib-tool (func_usage): Do not use bold display anymore in the
5743         help screen.  That was just meant to be a temporary emphasis for a
5744         backward-incompatible change.
5745
5746 2011-02-23  Bruno Haible  <bruno@clisp.org>
5747
5748         Fix misindentation of preprocessor directives.
5749         * lib/argp-namefrob.h: Reindent preprocessor directives.
5750         * lib/getopt_int.h (struct _getopt_data): Likewise.
5751         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
5752         * lib/vasnprintf.c (decode_long_double): Likewise.
5753         * tests/test-argmatch.c: Insert blank lines, for clarity.
5754         * tests/test-exclude.c: Likewise.
5755
5756 2011-02-22  Bruno Haible  <bruno@clisp.org>
5757
5758         ioctl: Fix for MacOS X in 64-bit mode.
5759         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
5760         value.
5761         Suggested by Eric Blake.
5762         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
5763
5764 2011-02-22  Jim Meyering  <meyering@redhat.com>
5765
5766         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
5767         * Makefile (sc_cpp_indent_check): Don't limit the check to files
5768         in lib/.
5769
5770 2011-02-22  Eric Blake  <eblake@redhat.com>
5771
5772         maint: avoid any CDPATH issue
5773         * Makefile (sc_cpp_indent_check): Anchor cd argument.
5774
5775         maint: adjust cpp indentation for my modules, as well
5776         * Makefile (sc_cpp_indent_check): Add my name.
5777         * lib/fbufmode.c: Filter through cppi.
5778         * lib/fpurge.c: Likewise.
5779         * lib/freadable.c: Likewise.
5780         * lib/freading.c: Likewise.
5781         * lib/fwritable.c: Likewise.
5782         * lib/fwriting.c: Likewise.
5783         * lib/sigaction.c: Likewise.
5784
5785 2011-02-22  Jim Meyering  <meyering@redhat.com>
5786
5787         maint: adjust cpp indentation to reflect nesting depth
5788         I.e., in a block of code that begins with an unnested "#if",
5789         put one space between the "#" in column 1 and following token.
5790         For example,
5791         -#include <sys/vfs.h>
5792         +# include <sys/vfs.h>
5793         Do this only in .c files that are part of a module I maintain.
5794         * lib/linkat.c: Filter through cppi.
5795         * lib/nanosleep.c: Likewise.
5796         * lib/openat.c: Likewise.
5797         * lib/openat-die.c: Likewise.
5798         * lib/dup3.c: Likewise.
5799         * lib/fchownat.c: Likewise.
5800         * lib/flock.c: Likewise.
5801         * lib/fsync.c: Likewise.
5802         * lib/fts.c: Likewise.
5803         * lib/getpass.c: Likewise.
5804         * lib/gettimeofday.c: Likewise.
5805         * lib/userspec.c: Likewise.
5806         * Makefile (sc_cpp_indent_check): New rule, to check this.
5807
5808 2011-02-22  Bruno Haible  <bruno@clisp.org>
5809
5810         New module 'wctomb'.
5811         * lib/stdlib.in.h (wctomb): New declaration.
5812         * lib/wctomb.c: New file.
5813         * lib/wctomb-impl.h: New file.
5814         * m4/wctomb.m4: New file.
5815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
5816         REPLACE_WCTOMB.
5817         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
5818         REPLACE_WCTOMB.
5819         * modules/wctomb: New file.
5820         * tests/test-stdlib-c++.cc: Test signature of wctomb.
5821         * doc/posix-functions/wctomb.texi: Mention the new module.
5822         * modules/wctob (Depends-on): Add wctomb.
5823
5824 2011-02-22  Bruno Haible  <bruno@clisp.org>
5825
5826         New module 'mbtowc'.
5827         * lib/stdlib.in.h (mbtowc): New declaration.
5828         * lib/mbtowc.c: New file.
5829         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
5830         * m4/mbtowc.m4: New file.
5831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
5832         REPLACE_MBTOWC.
5833         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
5834         REPLACE_MBTOWC.
5835         * modules/mbtowc: New file.
5836         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
5837         * doc/posix-functions/mbtowc.texi: Mention the new module.
5838         * modules/btowc (Depends-on): Add mbtowc.
5839
5840 2011-02-22  Bruno Haible  <bruno@clisp.org>
5841
5842         wcrtomb: Add more tests for native Windows platforms.
5843         * tests/test-wcrtomb-w32-1.sh: New file.
5844         * tests/test-wcrtomb-w32-2.sh: New file.
5845         * tests/test-wcrtomb-w32-3.sh: New file.
5846         * tests/test-wcrtomb-w32-4.sh: New file.
5847         * tests/test-wcrtomb-w32-5.sh: New file.
5848         * tests/test-wcrtomb-w32.c: New file.
5849         * modules/wcrtomb-tests (Files): Add them.
5850         (Makefile.am): Arrange to run these tests.
5851         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
5852         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
5853
5854 2011-02-20  Bruno Haible  <bruno@clisp.org>
5855
5856         wcrtomb: Enhance test.
5857         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
5858
5859 2011-02-20  Bruno Haible  <bruno@clisp.org>
5860
5861         mbrtowc: Tiny optimization.
5862         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
5863
5864 2011-02-20  Jim Meyering  <meyering@redhat.com>
5865
5866         test-exclude.c: remove unmatched #endif
5867         * tests/test-exclude.c: Remove stray #endif, left over from
5868         the change of a week ago.
5869
5870 2011-02-19  Jim Meyering  <meyering@redhat.com>
5871
5872         git-version-gen: skip "-dirty" check when appropriate
5873         * build-aux/git-version-gen: Don't run any git commands when the
5874         version string comes from .tarball-version.  Prior to this, we
5875         would run git update-index --refresh even from a just-unpacked
5876         tarball directory, and that could affect a .git/ directory in a
5877         parent of the build directory.  Reported by Mike Frysinger.
5878
5879 2011-02-19  Bruno Haible  <bruno@clisp.org>
5880
5881         unictype/property-byname: Reduce the size of the 'data' segment.
5882         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
5883
5884 2011-02-19  Bruno Haible  <bruno@clisp.org>
5885
5886         unictype/scripts: Reduce the size of the 'data' segment.
5887         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
5888         '%pic'.
5889         * lib/unictype/scripts_byname.gperf: Regenerated.
5890
5891 2011-02-19  Bruno Haible  <bruno@clisp.org>
5892
5893         stdint: Update documentation.
5894         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
5895
5896 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
5897
5898         stdint: omit redundant check for wchar.h
5899         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
5900         always tests whether wchar.h exists, so remove the now-redundant test.
5901
5902 2011-02-18  Bruno Haible  <bruno@clisp.org>
5903
5904         stdint: Cut dependency to module 'wchar'.
5905         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
5906         include the necessary prerequisites.
5907         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
5908         * modules/stdint (Depends-on): Remove wchar.
5909         (Makefile.am): Substitute HAVE_WCHAR_H.
5910         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
5911
5912 2011-02-18  Eric Blake  <eblake@redhat.com>
5913
5914         longlong: skip, rather than fail, on cross-compilation
5915         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
5916         when cross-compiling; regression from 2011-02-16.
5917
5918 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5919
5920         * NEWS: Mention 2011-02-08 change to stdlib.
5921
5922 2011-02-17  Bruno Haible  <bruno@clisp.org>
5923
5924         getloadavg: Add comments about platforms.
5925         * m4/getloadavg.m4: Add comment.
5926         * lib/getloadavg.c: Likewise.
5927
5928 2011-02-17  Bruno Haible  <bruno@clisp.org>
5929
5930         getloadavg: Fix link error on Solaris 2.6.
5931         * modules/getloadavg (Link): New section.
5932         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
5933         linking test-getloadavg.
5934         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
5935         getloadavg.
5936
5937 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5938
5939         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
5940         It was 'int', but this doesn't match the IRIX 6.5 manual.
5941         Suggested by Bruno Haible in
5942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
5943
5944 2011-02-17  Bruno Haible  <bruno@clisp.org>
5945
5946         havelib: Fix comments.
5947         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
5948         change.
5949
5950 2011-02-17  Bruno Haible  <bruno@clisp.org>
5951
5952         havelib: Update config.rpath.
5953         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
5954
5955 2011-02-17  Bruno Haible  <bruno@clisp.org>
5956
5957         getloadavg test: Add some plausibility checks.
5958         * tests/test-getloadavg.c (check_avg): Print a warning when the value
5959         is improbable.
5960
5961 2011-02-16  Eric Blake  <eblake@redhat.com>
5962
5963         maintainer-makefile: make syntax-check a no-op from tarballs
5964         * top/maint.mk (no-vc-detected): New rule.
5965         (local-checks-available): Use it to avoid hanging if someone tries
5966         'make syntax-check' from a tarball.  Also append to any non-syntax
5967         checks already defined in cfg.mk.
5968
5969 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5970
5971         longlong: tune, particularly for common case of c99
5972
5973         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
5974         or running anything if c99, or if unsigned long long int does not
5975         work.  In either case, we know the answer without further tests.
5976         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
5977         it at most once, and use its results for both long long int and
5978         unsigned long long int.  This is more likely to be efficient in
5979         the common case where the program wants to check for both long
5980         long int and unsigned long long int.
5981         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
5982         since the answer is already known.
5983
5984 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5985
5986         getloadavg: set errno
5987         * lib/getloadavg.c: Set errno when returning -1.  If no other
5988         error number looks appropriate, set it to ENOSYS if the getloadavg
5989         looks like it can't possibly ever work, ENOTSUP otherwise.
5990         Suggested by Bruno Haible in
5991         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
5992
5993         getloadavg: trim unused parts and speed up 'configure'
5994         * NEWS: Document this.
5995         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
5996         always compiled if getloadavg is absent.
5997         Move test code to ...
5998         * tests/test-getloadavg.c: New file, containing previous
5999         contents of test from lib/getloadavg.c.  It also contains
6000         suggestions by Bruno Haible in
6001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
6002         * modules/getloadavg-tests: New file.
6003         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
6004         Do tests in the same order as they're needed for getloadavg.c.
6005         Omit setgid-related tests that generate symbols KMEM_GROUP,
6006         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
6007         Do only the tests that are needed to see whether the system has
6008         getloadavg, moving the other tests into ...
6009         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
6010         NLIST_NAME_UNION; nobody should be using it.  Do not define
6011         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
6012         relevant, as the user of this module shouldn't care how getloadavg
6013         is implemented.
6014
6015         getloadavg: omit unused var
6016         * lib/getloadavg.c (getloadavg): Omit unused local variable.
6017
6018 2011-02-15  Jim Meyering  <meyering@redhat.com>
6019
6020         doc: update users.txt
6021         * users.txt: Update iwhd's URL.
6022
6023 2011-02-13  Bruno Haible  <bruno@clisp.org>
6024
6025         Consistent macro naming for macros that use GCC __attribute__.
6026         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
6027         _ATTRIBUTE_NONNULL_.
6028         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
6029         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
6030         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
6031         ATTRIBUTE_DEPRECATED.
6032         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
6033         ATTRIBUTE_NORETURN.
6034         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6035         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6036         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6037         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6038         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
6039         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
6040         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
6041         ATTRIBUTE_SENTINEL.
6042         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
6043         ATTRIBUTE_RETURN_CHECK.
6044         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
6045         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
6046         ATTRIBUTE_NORETURN.
6047         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
6048         Reported by Paul Eggert.
6049
6050 2011-02-13  Bruno Haible  <bruno@clisp.org>
6051
6052         Don't interfere with a program's definition of __attribute__.
6053         * lib/argp.h (__attribute__): Remove definition.
6054         (_GL_ATTRIBUTE_FORMAT): New macro.
6055         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
6056         * lib/argp-fmtstream.h (__attribute__): Remove definition.
6057         (_GL_ATTRIBUTE_FORMAT): New macro.
6058         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
6059         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
6060         GCC 3 or newer.
6061         * lib/error.h (__attribute__): Remove definition.
6062         (_GL_ATTRIBUTE_FORMAT): New macro.
6063         (error, error_at_line): Use it.
6064         * lib/hash.h (__attribute__): Remove definition.
6065         (ATTRIBUTE_WUR): Update definition. Define always.
6066         * lib/openat.h (__attribute__): Remove definition.
6067         (ATTRIBUTE_NORETURN): Update definition. Define always.
6068         * lib/sigpipe-die.h (__attribute__): Remove definition.
6069         (ATTRIBUTE_NORETURN): Update definition. Define always.
6070         * lib/vasnprintf.h (__attribute__): Remove definition.
6071         (_GL_ATTRIBUTE_FORMAT): New macro.
6072         (asnprintf, vasnprintf): Use it.
6073         * lib/xalloc.h (__attribute__): Remove definition.
6074         (ATTRIBUTE_NORETURN): Update definition. Define always.
6075         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
6076         * lib/xmemdup0.h (__attribute__): Remove definition.
6077         (ATTRIBUTE_NORETURN): Update definition. Define always.
6078         * lib/xprintf.h (__attribute__): Remove definition.
6079         (_GL_ATTRIBUTE_FORMAT): New macro.
6080         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
6081         * lib/xstrtol.h (__attribute__): Remove definition.
6082         (ATTRIBUTE_NORETURN): Update definition. Define always.
6083         * lib/xvasprintf.h (__attribute__): Remove definition.
6084         (_GL_ATTRIBUTE_FORMAT): New macro.
6085         (xasprintf, xvasprintf): Use it.
6086         * tests/test-argmatch.c (__attribute__): Remove definition.
6087         (ATTRIBUTE_NORETURN): Update definition. Define always.
6088         * tests/test-exclude.c (__attribute__): Remove definition.
6089         (ATTRIBUTE_NORETURN): Update definition. Define always.
6090         Reported by Paul Eggert.
6091
6092 2011-02-13  Bruno Haible  <bruno@clisp.org>
6093
6094         mbrtowc: Add more tests for native Windows platforms.
6095         * tests/test-mbrtowc-w32-1.sh: New file.
6096         * tests/test-mbrtowc-w32-2.sh: New file.
6097         * tests/test-mbrtowc-w32-3.sh: New file.
6098         * tests/test-mbrtowc-w32-4.sh: New file.
6099         * tests/test-mbrtowc-w32-5.sh: New file.
6100         * tests/test-mbrtowc-w32.c: New file.
6101         * modules/mbrtowc-tests (Files): Add them.
6102         (Makefile.am): Arrange to run these tests.
6103         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
6104         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
6105
6106 2011-02-13  Bruno Haible  <bruno@clisp.org>
6107
6108         mbrtowc: Work around native Windows bug.
6109         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
6110         guess when no suitable locale for testing was found.
6111         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
6112
6113 2011-02-13  Bruno Haible  <bruno@clisp.org>
6114
6115         mbsinit: Work around mingw bug.
6116         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
6117         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
6118         Windows.
6119         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
6120
6121 2011-02-13  Bruno Haible  <bruno@clisp.org>
6122
6123         mbsinit: Don't crash for a NULL argument.
6124         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
6125         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6126
6127 2011-02-13  Bruno Haible  <bruno@clisp.org>
6128
6129         Don't interfere with a program's definition of __attribute__.
6130         * lib/stdio.in.h (__attribute__): Remove definition.
6131         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
6132         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
6133         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
6134         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
6135         * lib/string.in.h (__attribute__): Remove definition.
6136         Reported by Paul Eggert.
6137
6138 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6139
6140         stdlib: don't get in the way of non-GCC __attribute__
6141         See thread starting at
6142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
6143         Revert previous stdlib change, installing the following instead:
6144         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
6145         to get in the way of a non-GCC compiler that supports __attribute__.
6146         (_GL_ATTRIBUTE_RETURN): New macro.
6147         (_Exit): Use it instead of __attribute__.
6148
6149 2011-02-12  Bruno Haible  <bruno@clisp.org>
6150
6151         quotearg test: Avoid test failure on mingw.
6152         * tests/test-quotearg.sh: Convert the locale identifier from native
6153         Windows syntax to Unix syntax.
6154
6155 2011-02-12  Bruno Haible  <bruno@clisp.org>
6156
6157         setlocale: Prefer gnulib's override over libintl's override.
6158         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
6159         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
6160         GNULIB_defined_setlocale is set.
6161
6162 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6163
6164         stdlib: support non-GCC __attribute__
6165
6166         Fix a serious and tricky problem encountered when attempting to
6167         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
6168         5.5, but it crashed due to memory corruption on Solaris 10 with
6169         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
6170         bits that are otherwise zero.  This tagging is optional inside
6171         Emacs but is preferred and is used when __attribute__ ((__aligned
6172         (8))) works, as it does with both recent-enough GCC and with Sun C
6173         5.11.  However, Sun C 5.11 is not GCC and does not #define
6174         __GNUC__ and __GNUC_MINOR__.
6175
6176         When I added the getloadavg module to Emacs, it brought in
6177         stdlib.in.h, which contained this fragment:
6178
6179            #ifndef __attribute__
6180            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
6181            #  define __attribute__(Spec)   /* empty */
6182            # endif
6183            #endif
6184
6185         When files that include <stdlib.h> were compiled with Sun C 5.11,
6186         the above code disabled __attribute__ ((__aligned (8))), which
6187         caused variables to not be properly aligned, which eventually led
6188         to the pointer corruption mentioned above.  (This was a bit hard
6189         to diagnose, unfortunately.)
6190
6191         Several "#define __attribute__(X) /* empty */" code snippets need
6192         to be eradicated from Gnulib to work with non-GCC compilers that
6193         support __attribute__.  The Autoconf way to do this is to test for
6194         each kind of attribute that we want support for, and selectively
6195         enable that in source code.
6196
6197         Fix this problem just for stdlib.h, by adding a test for the
6198         __noreturn__ attribute, and change stdlib.in.h to use that test
6199         when needed.  This technique can be easily generalized to the
6200         other *.in.h files and attributes, and a similar technique can be
6201         used for *.h and *.c files.  This patch is enough to solve the
6202         problem for Emacs + getloadavg, and I thought I'd publish it for
6203         feedback before undertaking further, similar fixes in other
6204         modules.
6205
6206         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
6207         because it's not needed for stdlib.h.  It merely substitutes the
6208         value directly into stdlib.h.  We may well need to #define it, or
6209         similar symbols, for other modules, but it's nice to also have an
6210         option to not #define it for applications like Emacs that do not
6211         need it.
6212
6213         * lib/stdlib.in.h (__attribute__): Do not #define.
6214         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
6215         be defined only if the _Exit module is also used.
6216         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
6217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
6218         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
6219         platforms.
6220         * modules/_Exit (Files): Add m4/attribute.m4.
6221         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
6222         * m4/attribute.m4: New file.
6223
6224 2011-02-12  Bruno Haible  <bruno@clisp.org>
6225
6226         wcsrtombs: Work around bug on native Windows.
6227         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
6228         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
6229         instead of len.
6230         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
6231
6232 2011-02-12  Bruno Haible  <bruno@clisp.org>
6233
6234         mbsrtowcs: Work around bug on native Windows.
6235         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
6236         against mingw bug.
6237         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
6238
6239 2011-02-12  Bruno Haible  <bruno@clisp.org>
6240
6241         Avoid setlocale bugs in tests.
6242         * modules/btowc (Dependencies): Add setlocale.
6243         * modules/c-strcase (Dependencies): Likewise.
6244         * modules/mbmemcasecmp (Dependencies): Likewise.
6245         * modules/mbmemcasecoll (Dependencies): Likewise.
6246         * modules/mbrtowc (Dependencies): Likewise.
6247         * modules/mbscasecmp (Dependencies): Likewise.
6248         * modules/mbscasestr (Dependencies): Likewise.
6249         * modules/mbschr (Dependencies): Likewise.
6250         * modules/mbscspn (Dependencies): Likewise.
6251         * modules/mbsinit (Dependencies): Likewise.
6252         * modules/mbsncasecmp (Dependencies): Likewise.
6253         * modules/mbsnrtowcs (Dependencies): Likewise.
6254         * modules/mbspbrk (Dependencies): Likewise.
6255         * modules/mbspcasecmp (Dependencies): Likewise.
6256         * modules/mbsrchr (Dependencies): Likewise.
6257         * modules/mbsrtowcs (Dependencies): Likewise.
6258         * modules/mbsspn (Dependencies): Likewise.
6259         * modules/mbsstr (Dependencies): Likewise.
6260         * modules/nl_langinfo (Dependencies): Likewise.
6261         * modules/quotearg (Dependencies): Likewise.
6262         * modules/unicase/locale-language (Dependencies): Likewise.
6263         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
6264         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
6265         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
6266         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
6267         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
6268         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
6269         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
6270         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
6271         * modules/vasnprintf-posix (Dependencies): Likewise.
6272         * modules/wcrtomb (Dependencies): Likewise.
6273         * modules/wcsnrtombs (Dependencies): Likewise.
6274         * modules/wcsrtombs (Dependencies): Likewise.
6275
6276 2011-02-12  Bruno Haible  <bruno@clisp.org>
6277
6278         setlocale: Workaround native Windows bug.
6279         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
6280         succeeds but sets LC_CTYPE to "C", report a failure.
6281         * tests/test-setlocale2.sh: New file.
6282         * tests/test-setlocale2.c: New file.
6283         * modules/setlocale-tests (Files): Add the new files.
6284         (Makefile.am): Enable test-setlocale2.sh test.
6285         * doc/posix-functions/setlocale.texi: Mention workaround.
6286
6287 2011-02-11  Bruno Haible  <bruno@clisp.org>
6288
6289         Tests for module 'setlocale'.
6290         * modules/setlocale-tests: New file.
6291         * tests/test-setlocale1.sh: New file.
6292         * tests/test-setlocale1.c: New file.
6293
6294         New module 'setlocale'.
6295         * lib/locale.in.h (setlocale): New declaration.
6296         * lib/setlocale.c: New file, based on
6297         gettext/gettext-runtime/intl/setlocale.c.
6298         * m4/setlocale.m4: New file.
6299         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
6300         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
6301         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
6302         REPLACE_SETLOCALE.
6303         * modules/setlocale: New file.
6304         * tests/test-locale-c++.cc: Test the declaration of setlocale.
6305         * doc/posix-functions/setlocale.texi: Mention the new module.
6306
6307 2011-02-11  Bruno Haible  <bruno@clisp.org>
6308
6309         Prepare for locale dependent tests on mingw.
6310         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
6311         because it has the wrong locale encoding.
6312         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
6313         French_France.1252 instead of "fr".
6314         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
6315         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
6316         because it has the wrong locale encoding.
6317         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
6318         native Windows, try Turkish_Turkey.65001.
6319         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
6320         Chinese_China.54936.
6321
6322         Prepare for locale dependent tests on mingw.
6323         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
6324         differently.
6325         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
6326         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
6327         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6328         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6329
6330 2011-02-11  Eric Blake  <eblake@redhat.com>
6331
6332         strptime: avoid compiler warnings
6333         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
6334         compiler warnings about dead code.
6335         Reported by Daniel P. Berrange.
6336
6337 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
6338
6339         doc: update users.txt
6340         * users.txt: Add rcs.
6341
6342 2011-02-10  John W. Eaton  <jwe@gnu.org>
6343
6344         doc: update users.txt
6345         * users.txt: Add octave.
6346
6347 2011-02-10  Jim Meyering  <meyering@redhat.com>
6348
6349         doc: update users.txt
6350         * users.txt: Add iwhd.
6351
6352 2011-02-09  Bruno Haible  <bruno@clisp.org>
6353
6354         gnulib-tool: Make copyright notice adjustment more robust.
6355         * gnulib-tool (func_import): In sed_transform_main_lib_file,
6356         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
6357         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
6358         License".
6359         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
6360
6361 2011-02-06  Bruno Haible  <bruno@clisp.org>
6362
6363         New module 'towctrans'.
6364         * modules/towctrans: New file.
6365         * lib/wctype.in.h (towctrans): New declaration.
6366         * lib/towctrans.c: New file.
6367         * lib/towctrans-impl.h: New file.
6368         * m4/towctrans.m4: New file.
6369         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
6370         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
6371         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
6372         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
6373         * doc/posix-functions/towctrans.texi: Mention the new module.
6374
6375 2011-02-06  Bruno Haible  <bruno@clisp.org>
6376
6377         New module 'wctrans'.
6378         * modules/wctrans: New file.
6379         * lib/wctype.in.h (wctrans): New declaration.
6380         * lib/wctrans.c: New file.
6381         * lib/wctrans-impl.h: New file.
6382         * m4/wctrans.m4: New file.
6383         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
6384         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
6385         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
6386         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
6387         * doc/posix-functions/wctrans.texi: Mention the new module.
6388
6389 2011-02-06  Bruno Haible  <bruno@clisp.org>
6390
6391         New module 'iswctype'.
6392         * modules/iswctype: New file.
6393         * lib/wctype.in.h (iswctype): New declaration.
6394         * lib/iswctype.c: New file.
6395         * lib/iswctype-impl.h: New file.
6396         * m4/iswctype.m4: New file.
6397         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
6398         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
6399         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
6400         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
6401         * doc/posix-functions/iswctype.texi: Mention the new module and the
6402         HP-UX 11.00 problem.
6403
6404 2011-02-06  Bruno Haible  <bruno@clisp.org>
6405
6406         New module 'wctype'.
6407         * modules/wctype: Change to represent the wctype() substitute.
6408         * lib/wctype.in.h (wctype): New declaration.
6409         * lib/wctype.c: New file.
6410         * lib/wctype-impl.h: New file.
6411         * m4/wctype.m4: New file.
6412         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
6413         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
6414         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
6415         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
6416         * doc/posix-functions/wctype.texi: Mention the new module and the
6417         HP-UX 11.00 problem.
6418
6419 2011-02-06  Bruno Haible  <bruno@clisp.org>
6420
6421         wctype-h: Ensure wctype_t and wctrans_t are defined.
6422         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
6423         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6424         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6425         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
6426         HAVE_WCTRANS_T.
6427         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
6428
6429 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6430
6431         flock: fix license typo
6432
6433         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
6434         omitted.
6435
6436 2011-02-08  Bruno Haible  <bruno@clisp.org>
6437
6438         Split large sed scripts, for HP-UX sed.
6439         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
6440         to avoid HP-UX limit of 99 commands, in the near future.
6441         * modules/stdlib (Makefile.am): Likewise.
6442         * modules/unistd (Makefile.am): Likewise.
6443         * modules/wchar (Makefile.am): Likewise.
6444         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6445         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
6446         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
6447
6448 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6449             Bruno Haible  <bruno@clisp.org>
6450
6451         stdlib: improve random_r modularization
6452         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
6453         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
6454         you also need the random_r module to get this material right.
6455         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
6456         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
6457         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
6458
6459 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6460
6461         stdlib: don't depend on stdint
6462         * lib/stdlib.in.h: Don't include <stdint.h> merely because
6463         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
6464         be independent of whether stdint.h is needed.
6465         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
6466         here, instead of ...
6467         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
6468         struct random_data should be using the random_r module, not just
6469         the stdlib module (which wouldn't make sense: what package needs
6470         just struct random_data without also needing random_r?).
6471         * modules/stdlib (Depends-on): Remove stdint.
6472
6473         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
6474         See the thread rooted at
6475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
6476         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
6477         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
6478         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
6479         __VMS)); previously it was always included (via fcntl--.h).
6480         (getloadavg): Do not use c_strtod.  Instead, approximate it by
6481         hand; this is good enough for load averages.  Also, do not use
6482         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
6483         flags directly if available and don't bother otherwise.  (Packages
6484         that need the extra reliability should use the modules that define
6485         these flags on older platforms that lack them.)
6486         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
6487         fcntl-safer.
6488
6489 2011-02-08  Jim Meyering  <meyering@redhat.com>
6490
6491         di-set.h, ino-map.h: add multiple-inclusion guard
6492         Technically, the guard is required only for ino-map.h, due to its
6493         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
6494         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
6495         * lib/ino-map.h: Likewise.
6496
6497 2011-02-06  Bruno Haible  <bruno@clisp.org>
6498
6499         iswblank: Ensure declaration on glibc systems.
6500         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
6501         * modules/iswblank (Dependencies): Add 'extensions'.
6502         * doc/posix-functions/iswblank.texi: Document the glibc problem.
6503
6504 2011-02-06  Bruno Haible  <bruno@clisp.org>
6505
6506         New module 'iswblank'.
6507         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
6508         * modules/iswblank: New file.
6509         * modules/wctype-h (Files): Remove lib/iswblank.c.
6510         (Makefile.am): Substitute GNULIB_ISWBLANK.
6511         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
6512         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
6513         (gl_WCTYPE_H_DEFAULTS): New macro.
6514         (gl_WCTYPE_H): Require it. Remove iswblank related code.
6515         * modules/iswblank-tests: New file.
6516         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
6517         * tests/test-wctype-h.c (main): Remove iswblank tests.
6518         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
6519         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
6520         of 'wctype-h'.
6521         * NEWS: Mention the change.
6522         * modules/mbchar (Depends-on): Add iswblank.
6523
6524 2011-02-08  Bruno Haible  <bruno@clisp.org>
6525
6526         di-set tests: Refactor.
6527         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
6528         unnecessary includes.
6529         (ASSERT): Remove macro.
6530         (main): Make C90 compliant by avoiding variable declaration after
6531         statement.
6532         * modules/di-set-tests (Files): Add tests/macros.h.
6533
6534 2011-02-08  Bruno Haible  <bruno@clisp.org>
6535
6536         ino-map tests: Refactor.
6537         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
6538         unnecessary includes.
6539         (ASSERT): Remove macro.
6540         (main): Make C90 compliant by avoiding variable declaration after
6541         statement.
6542         * modules/ino-map-tests (Files): Add tests/macros.h.
6543
6544 2011-02-08  Jim Meyering  <meyering@redhat.com>
6545
6546         di-set: add "const" to a cast
6547         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
6548         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
6549
6550 2011-02-06  Bruno Haible  <bruno@clisp.org>
6551
6552         Rename module 'wctype' to 'wctype-h'.
6553         * modules/wctype-h: Renamed from modules/wctype.
6554         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
6555         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
6556         (Files, Depends-on, Makefile.am): Update.
6557         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
6558         (Files, Makefile.am): Update.
6559         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
6560         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
6561         * doc/posix-headers/wctype.texi: Update.
6562         * doc/posix-functions/iswalnum.texi: Update.
6563         * doc/posix-functions/iswalpha.texi: Update.
6564         * doc/posix-functions/iswblank.texi: Update.
6565         * doc/posix-functions/iswcntrl.texi: Update.
6566         * doc/posix-functions/iswdigit.texi: Update.
6567         * doc/posix-functions/iswgraph.texi: Update.
6568         * doc/posix-functions/iswlower.texi: Update.
6569         * doc/posix-functions/iswprint.texi: Update.
6570         * doc/posix-functions/iswpunct.texi: Update.
6571         * doc/posix-functions/iswspace.texi: Update.
6572         * doc/posix-functions/iswupper.texi: Update.
6573         * doc/posix-functions/iswxdigit.texi: Update.
6574         * doc/posix-functions/towlower.texi: Update.
6575         * doc/posix-functions/towupper.texi: Update.
6576         * NEWS: Mention the change.
6577         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
6578         * modules/mbchar (Dependencies): Likewise.
6579         * modules/mbswidth (Dependencies): Likewise.
6580         * modules/quotearg (Dependencies): Likewise.
6581         * modules/regex (Dependencies): Likewise.
6582         * modules/wcscasecmp (Dependencies): Likewise.
6583         * modules/wcsncasecmp (Dependencies): Likewise.
6584         * modules/wcwidth (Dependencies): Likewise.
6585
6586 2011-02-06  Bruno Haible  <bruno@clisp.org>
6587
6588         New module 'wcswidth'.
6589         * modules/wcswidth: New file.
6590         * lib/wchar.in.h (wcswidth): New declaration.
6591         * lib/wcswidth.c: New file.
6592         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
6593         * m4/wcswidth.m4: New file.
6594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
6595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
6596         REPLACE_WCSWIDTH.
6597         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
6598         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
6599         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
6600         * doc/posix-functions/wcswidth.texi: Mention the new module.
6601
6602 2011-02-06  Bruno Haible  <bruno@clisp.org>
6603
6604         New module 'wcstok'.
6605         * modules/wcstok: New file.
6606         * lib/wchar.in.h (wcstok): New declaration.
6607         * lib/wcstok.c: New file.
6608         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
6609         * m4/wcstok.m4: New file.
6610         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
6611         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
6612         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
6613         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
6614         * doc/posix-functions/wcstok.texi: Mention the new module.
6615
6616 2011-02-06  Bruno Haible  <bruno@clisp.org>
6617
6618         New module 'wcsstr'.
6619         * modules/wcsstr: New file.
6620         * lib/wchar.in.h (wcsstr): New declaration.
6621         * lib/wcsstr.c: New file.
6622         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
6623         * m4/wcsstr.m4: New file.
6624         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
6625         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
6626         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
6627         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
6628         * doc/posix-functions/wcsstr.texi: Mention the new module.
6629
6630 2011-02-06  Bruno Haible  <bruno@clisp.org>
6631
6632         New module 'wcspbrk'.
6633         * modules/wcspbrk: New file.
6634         * lib/wchar.in.h (wcspbrk): New declaration.
6635         * lib/wcspbrk.c: New file.
6636         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
6637         * m4/wcspbrk.m4: New file.
6638         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
6639         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
6640         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
6641         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
6642         * doc/posix-functions/wcspbrk.texi: Mention the new module.
6643
6644 2011-02-06  Bruno Haible  <bruno@clisp.org>
6645
6646         New module 'wcsspn'.
6647         * modules/wcsspn: New file.
6648         * lib/wchar.in.h (wcsspn): New declaration.
6649         * lib/wcsspn.c: New file.
6650         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
6651         * m4/wcsspn.m4: New file.
6652         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
6653         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
6654         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
6655         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
6656         * doc/posix-functions/wcsspn.texi: Mention the new module.
6657
6658 2011-02-06  Bruno Haible  <bruno@clisp.org>
6659
6660         New module 'wcscspn'.
6661         * modules/wcscspn: New file.
6662         * lib/wchar.in.h (wcscspn): New declaration.
6663         * lib/wcscspn.c: New file.
6664         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
6665         * m4/wcscspn.m4: New file.
6666         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
6667         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
6668         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
6669         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
6670         * doc/posix-functions/wcscspn.texi: Mention the new module.
6671
6672 2011-02-06  Bruno Haible  <bruno@clisp.org>
6673
6674         New module 'wcsrchr'.
6675         * modules/wcsrchr: New file.
6676         * lib/wchar.in.h (wcsrchr): New declaration.
6677         * lib/wcsrchr.c: New file.
6678         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
6679         * m4/wcsrchr.m4: New file.
6680         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
6681         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
6682         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
6683         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
6684         * doc/posix-functions/wcsrchr.texi: Mention the new module.
6685
6686 2011-02-06  Bruno Haible  <bruno@clisp.org>
6687
6688         New module 'wcschr'.
6689         * modules/wcschr: New file.
6690         * lib/wchar.in.h (wcschr): New declaration.
6691         * lib/wcschr.c: New file.
6692         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
6693         * m4/wcschr.m4: New file.
6694         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
6695         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
6696         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
6697         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
6698         * doc/posix-functions/wcschr.texi: Mention the new module.
6699
6700 2011-02-06  Bruno Haible  <bruno@clisp.org>
6701
6702         New module 'wcsdup'.
6703         * modules/wcsdup: New file.
6704         * lib/wchar.in.h (wcsdup): New declaration.
6705         * lib/wcsdup.c: New file.
6706         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
6707         * m4/wcsdup.m4: New file.
6708         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
6709         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
6710         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
6711         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
6712         * doc/posix-functions/wcsdup.texi: Mention the new module.
6713
6714 2011-02-06  Bruno Haible  <bruno@clisp.org>
6715
6716         New module 'wcsxfrm'.
6717         * modules/wcsxfrm: New file.
6718         * lib/wchar.in.h (wcsxfrm): New declaration.
6719         * lib/wcsxfrm.c: New file.
6720         * lib/wcsxfrm-impl.h: New file.
6721         * m4/wcsxfrm.m4: New file.
6722         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
6723         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
6724         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
6725         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
6726         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
6727
6728 2011-02-06  Bruno Haible  <bruno@clisp.org>
6729
6730         New module 'wcscoll'.
6731         * modules/wcscoll: New file.
6732         * lib/wchar.in.h (wcscoll): New declaration.
6733         * lib/wcscoll.c: New file.
6734         * lib/wcscoll-impl.h: New file.
6735         * m4/wcscoll.m4: New file.
6736         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
6737         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
6738         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
6739         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
6740         * doc/posix-functions/wcscoll.texi: Mention the new module.
6741
6742 2011-02-06  Bruno Haible  <bruno@clisp.org>
6743
6744         New module 'wcsncasecmp'.
6745         * modules/wcsncasecmp: New file.
6746         * lib/wchar.in.h (wcsncasecmp): New declaration.
6747         * lib/wcsncasecmp.c: New file.
6748         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
6749         * m4/wcsncasecmp.m4: New file.
6750         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
6751         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
6752         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
6753         HAVE_WCSNCASECMP.
6754         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
6755         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
6756
6757 2011-02-06  Bruno Haible  <bruno@clisp.org>
6758
6759         New module 'wcscasecmp'.
6760         * modules/wcscasecmp: New file.
6761         * lib/wchar.in.h (wcscasecmp): New declaration.
6762         * lib/wcscasecmp.c: New file.
6763         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
6764         * m4/wcscasecmp.m4: New file.
6765         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
6766         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
6767         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
6768         HAVE_WCSCASECMP.
6769         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
6770         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
6771
6772 2011-02-05  Bruno Haible  <bruno@clisp.org>
6773
6774         New module 'wcsncmp'.
6775         * modules/wcsncmp: New file.
6776         * lib/wchar.in.h (wcsncmp): New declaration.
6777         * lib/wcsncmp.c: New file.
6778         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
6779         * m4/wcsncmp.m4: New file.
6780         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
6781         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
6782         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
6783         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
6784         * doc/posix-functions/wcsncmp.texi: Mention the new module.
6785
6786 2011-02-05  Bruno Haible  <bruno@clisp.org>
6787
6788         New module 'wcscmp'.
6789         * modules/wcscmp: New file.
6790         * lib/wchar.in.h (wcscmp): New declaration.
6791         * lib/wcscmp.c: New file.
6792         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
6793         * m4/wcscmp.m4: New file.
6794         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
6795         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
6796         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
6797         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
6798         * doc/posix-functions/wcscmp.texi: Mention the new module.
6799
6800 2011-02-05  Bruno Haible  <bruno@clisp.org>
6801
6802         New module 'wcsncat'.
6803         * modules/wcsncat: New file.
6804         * lib/wchar.in.h (wcsncat): New declaration.
6805         * lib/wcsncat.c: New file.
6806         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
6807         * m4/wcsncat.m4: New file.
6808         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
6809         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
6810         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
6811         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
6812         * doc/posix-functions/wcsncat.texi: Mention the new module.
6813
6814 2011-02-05  Bruno Haible  <bruno@clisp.org>
6815
6816         New module 'wcscat'.
6817         * modules/wcscat: New file.
6818         * lib/wchar.in.h (wcscat): New declaration.
6819         * lib/wcscat.c: New file.
6820         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
6821         * m4/wcscat.m4: New file.
6822         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
6823         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
6824         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
6825         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
6826         * doc/posix-functions/wcscat.texi: Mention the new module.
6827
6828 2011-02-05  Bruno Haible  <bruno@clisp.org>
6829
6830         New module 'wcpncpy'.
6831         * modules/wcpncpy: New file.
6832         * lib/wchar.in.h (wcpncpy): New declaration.
6833         * lib/wcpncpy.c: New file.
6834         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
6835         * m4/wcpncpy.m4: New file.
6836         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
6837         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
6838         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
6839         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
6840         * doc/posix-functions/wcpncpy.texi: Mention the new module.
6841
6842 2011-02-05  Bruno Haible  <bruno@clisp.org>
6843
6844         New module 'wcsncpy'.
6845         * modules/wcsncpy: New file.
6846         * lib/wchar.in.h (wcsncpy): New declaration.
6847         * lib/wcsncpy.c: New file.
6848         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
6849         * m4/wcsncpy.m4: New file.
6850         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
6851         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
6852         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
6853         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
6854         * doc/posix-functions/wcsncpy.texi: Mention the new module.
6855
6856 2011-02-05  Bruno Haible  <bruno@clisp.org>
6857
6858         New module 'wcpcpy'.
6859         * modules/wcpcpy: New file.
6860         * lib/wchar.in.h (wcpcpy): New declaration.
6861         * lib/wcpcpy.c: New file.
6862         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
6863         * m4/wcpcpy.m4: New file.
6864         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
6865         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
6866         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
6867         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
6868         * doc/posix-functions/wcpcpy.texi: Mention the new module.
6869
6870 2011-02-05  Bruno Haible  <bruno@clisp.org>
6871
6872         New module 'wcscpy'.
6873         * modules/wcscpy: New file.
6874         * lib/wchar.in.h (wcscpy): New declaration.
6875         * lib/wcscpy.c: New file.
6876         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
6877         * m4/wcscpy.m4: New file.
6878         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
6879         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
6880         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
6881         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
6882         * doc/posix-functions/wcscpy.texi: Mention the new module.
6883
6884 2011-02-05  Bruno Haible  <bruno@clisp.org>
6885
6886         New module 'wcsnlen'.
6887         * modules/wcsnlen: New file.
6888         * lib/wchar.in.h (wcsnlen): New declaration.
6889         * lib/wcsnlen.c: New file.
6890         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
6891         * m4/wcsnlen.m4: New file.
6892         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
6893         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
6894         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
6895         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
6896         * doc/posix-functions/wcsnlen.texi: Mention the new module.
6897
6898 2011-02-05  Bruno Haible  <bruno@clisp.org>
6899
6900         New module 'wcslen'.
6901         * modules/wcslen: New file.
6902         * lib/wchar.in.h (wcslen): New declaration.
6903         * lib/wcslen.c: New file.
6904         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
6905         * m4/wcslen.m4: New file.
6906         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
6907         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
6908         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
6909         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
6910         * doc/posix-functions/wcslen.texi: Mention the new module.
6911
6912 2011-02-05  Bruno Haible  <bruno@clisp.org>
6913
6914         New module 'wmemset'.
6915         * modules/wmemset: New file.
6916         * lib/wchar.in.h (wmemset): New declaration.
6917         * lib/wmemset.c: New file.
6918         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
6919         * m4/wmemset.m4: New file.
6920         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
6921         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
6922         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
6923         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
6924         * doc/posix-functions/wmemset.texi: Mention the new module.
6925
6926 2011-02-05  Bruno Haible  <bruno@clisp.org>
6927
6928         New module 'wmemmove'.
6929         * modules/wmemmove: New file.
6930         * lib/wchar.in.h (wmemmove): New declaration.
6931         * lib/wmemmove.c: New file.
6932         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
6933         * m4/wmemmove.m4: New file.
6934         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
6935         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
6936         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
6937         HAVE_WMEMMOVE.
6938         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
6939         * doc/posix-functions/wmemmove.texi: Mention the new module.
6940
6941 2011-02-05  Bruno Haible  <bruno@clisp.org>
6942
6943         New module 'wmemcpy'.
6944         * modules/wmemcpy: New file.
6945         * lib/wchar.in.h (wmemcpy): New declaration.
6946         * lib/wmemcpy.c: New file.
6947         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
6948         * m4/wmemcpy.m4: New file.
6949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
6950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
6951         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
6952         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
6953         * doc/posix-functions/wmemcpy.texi: Mention the new module.
6954
6955 2011-02-05  Bruno Haible  <bruno@clisp.org>
6956
6957         New module 'wmemcmp'.
6958         * modules/wmemcmp: New file.
6959         * lib/wchar.in.h (wmemcmp): New declaration.
6960         * lib/wmemcmp.c: New file.
6961         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
6962         * m4/wmemcmp.m4: New file.
6963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
6964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
6965         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
6966         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
6967         * doc/posix-functions/wmemcmp.texi: Mention the new module.
6968
6969 2011-02-07  Jim Meyering  <meyering@redhat.com>
6970
6971         di-set, ino-map: new modules, from coreutils
6972         * lib/di-set.c: New file.
6973         * lib/di-set.h: Likewise.
6974         * lib/ino-map.c: Likewise.
6975         * lib/ino-map.h: Likewise.
6976         * modules/di-set: Likewise.
6977         * modules/di-set-tests: Likewise.
6978         * modules/ino-map: Likewise.
6979         * modules/ino-map-tests: Likewise.
6980         * tests/test-di-set.c: Likewise.
6981         * tests/test-ino-map.c: Likewise.
6982
6983 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6984
6985         getloadavg: merge minor changes from Emacs
6986
6987         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
6988         (getloadavg): Use memset, not bzero.
6989
6990         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
6991         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6992         clash (bug#86).
6993
6994 2010-11-14  Bruno Haible  <bruno@clisp.org>
6995
6996         Allow multiple gnulib generated replacements to coexist.
6997         * lib/getopt.in.h (struct option): Avoid identical redefinition.
6998         * lib/inttypes.in.h (imaxdiv_t): Likewise.
6999         * lib/langinfo.in.h (nl_item): Likewise.
7000         * lib/math.in.h (_NaN, NAN): Likewise.
7001         * lib/netdb.in.h (struct addrinfo): Likewise.
7002         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
7003         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
7004         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
7005         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
7006         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
7007         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
7008         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
7009         pthread_mutexattr_init, pthread_mutexattr_settype,
7010         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
7011         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
7012         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
7013         pthread_spin_trylock, pthread_spin_unlock): Likewise.
7014         * lib/sched.in.h (struct sched_param): Likewise.
7015         * lib/se-selinux.in.h (security_class_t, security_context_t,
7016         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
7017         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
7018         lsetfilecon, fsetfilecon, security_check_context,
7019         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
7020         Likewise.
7021         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
7022         Likewise.
7023         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
7024         _gl_function_taking_int_returning_void_t, union sigval,
7025         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
7026         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
7027         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7028         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
7029         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
7030         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
7031         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
7032         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
7033         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
7034         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
7035         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
7036         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
7037         socklen_t, rpl_fd_isset): Likewise.
7038         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
7039         * lib/sys_time.in.h (struct timeval): Likewise.
7040         * lib/sys_times.in.h (struct tms): Likewise.
7041         * lib/sys_utsname.in.h (struct utsname):
7042         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
7043         * lib/unistd.in.h (getpagesize): Likewise.
7044         * lib/wchar.in.h (mbstate_t): Likewise.
7045         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7046         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
7047         towlower, towupper): Likewise.
7048         Reported by Sam Steingold <sds@gnu.org>.
7049
7050 2011-02-05  Eric Blake  <eblake@redhat.com>
7051
7052         unsetenv: work around Haiku issues
7053         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
7054         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
7055
7056 2010-12-30  Bruce Korb  <bkorb@gnu.org>
7057
7058         libposix: avoid calling error() within libposix
7059         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
7060         is defined.
7061
7062 2011-02-05  Eric Blake  <eblake@redhat.com>
7063
7064         strerror_r-posix: port to cygwin
7065         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
7066         implementation.
7067         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
7068         * tests/test-strerror_r.c (main): Fix test.
7069         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7070         issue.
7071
7072 2011-02-05  Bruno Haible  <bruno@clisp.org>
7073
7074         New module 'wmemchr'.
7075         * modules/wmemchr: New file.
7076         * lib/wchar.in.h (wmemchr): New declaration.
7077         * lib/wmemchr.c: New file.
7078         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
7079         * m4/wmemchr.m4: New file.
7080         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
7081         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
7082         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
7083         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
7084         * doc/posix-functions/wmemchr.texi: Mention the new module.
7085
7086 2011-02-04  Eric Blake  <eblake@redhat.com>
7087
7088         fdopendir: detect FreeBSD bug
7089         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
7090         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
7091
7092 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7093
7094         stdbool: do not define HAVE_STDBOOL_H
7095         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
7096         AC_HEADER_STDBOOL.  All uses changed.  Do not define
7097         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7098         imported from the latest Autoconf git.  It was motivated by Emacs,
7099         which uses gnulib but does not need HAVE_STDBOOL_H.
7100
7101 2011-02-04  Bruno Haible  <bruno@clisp.org>
7102
7103         wcsnrtombs: Prepare for new module wwcsnrtombs.
7104         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
7105         * lib/wcsnrtombs.c: Include it.
7106         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
7107
7108         wcsrtombs: Prepare for new module wwcsrtombs.
7109         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
7110         * lib/wcsrtombs.c: Include it.
7111         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
7112
7113         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
7114         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
7115         * lib/mbsnrtowcs.c: Include it.
7116         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
7117
7118         mbsrtowcs: Prepare for new module mbsrtowwcs.
7119         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
7120         * lib/mbsrtowcs.c: Include it.
7121         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7122
7123 2011-02-04  Bruno Haible  <bruno@clisp.org>
7124
7125         vasnprintf: Reduce use of malloc for small format strings.
7126         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
7127         (arguments): Add room for the first 7 arguments.
7128         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
7129         (char_directives, u8_directives, u16_directives, u32_directives): Add
7130         room for the first 7 directives.
7131         * lib/printf-parse.c: Include <string.h>.
7132         (PRINTF_PARSE): Change memory handling code so that it uses the first
7133         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
7134         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
7135         Reported by Pádraig Brady <P@draigbrady.com>.
7136
7137 2011-01-31  Eric Blake  <eblake@redhat.com>
7138
7139         dup2: work around Haiku bug
7140         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
7141         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
7142         * doc/posix-functions/dup2.texi (dup2): Document the bug.
7143         * tests/test-dup2.c (main): Enhance test.
7144
7145 2011-01-31  Simon Josefsson  <simon@josefsson.org>
7146
7147         doc: off_t is not available in eglibc 2.11.2 stdio.h.
7148         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
7149         declared by eglibc 2.11.2.
7150         * lib/stdio.in.h: Likewise.
7151
7152 2011-01-31  Eric Blake  <eblake@redhat.com>
7153
7154         ignore-value: add missing test dependency
7155         * tests/test-ignore-value.c: Revert previous change; stdio.h
7156         provides off_t.
7157         * modules/ignore-value-tests (Depends-on): Add missing dependency.
7158
7159 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7160
7161         mktime: clarify long_int width checking
7162         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
7163         the top level, to make it clearer that the assumption about
7164         long_int width is being checked.  See
7165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
7166
7167 2011-01-30  Simon Josefsson  <simon@josefsson.org>
7168
7169         ignore-value: Fix self-test.
7170         * tests/test-ignore-value.c: Include sys/types.h for off_t.
7171
7172 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7173
7174         TYPE_MAXIMUM: avoid theoretically undefined behavior
7175         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
7176         negative number, which the C Standard says has undefined behavior.
7177         In practice this is not a problem, but might as well do it by the book.
7178         Reported by Rich Felker and Eric Blake; see
7179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
7180         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
7181         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7182         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7183         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
7184         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7185         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
7186
7187         mktime: #undef mktime before #defining it
7188         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
7189
7190         mktime: systematically normalize tm_isdst comparisons
7191         * lib/mktime.c (isdst_differ): New function.
7192         (__mktime_internal): Use it systematically for all isdst comparisons.
7193         This completes the fix for libc BZ #6723, and removes the need for
7194         normalizing tm_isdst.  See
7195         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
7196         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
7197
7198         mktime: fix some integer overflow issues and sidestep the rest
7199
7200         This was prompted by a bug report by Benjamin Lindner for MinGW
7201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
7202         His bug is due to signed integer overflow (0 - INT_MIN), and I
7203         I scanned through mktime.c looking for other integer overflow
7204         problems, fixing all the bugs I found.
7205
7206         Although the C Standard says the resulting code is still not safe
7207         in the presence of integer overflow, in practice it should be good
7208         enough for all real-world two's-complement implementations, except
7209         for debugging environments that deliberately trap on integer
7210         overflow (e.g., gcc -ftrapv).
7211
7212         * lib/mktime.c (WRAPV): New macro.
7213         (SHR): Also check that long_int and time_t shift right in the
7214         usual way, before using the fast-but-unportable method.
7215         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
7216         used.  The code already assumed two's complement, so there's
7217         no need to test for alternatives.  All uses removed.
7218         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
7219         the C standard.  Problem reported by Rich Felker in
7220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
7221         (twos_complement_arithmetic): Also check long_int and time_t.
7222         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
7223         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
7224         (__mktime_internal): Avoid integer overflow with unary subtraction
7225         in two instances where -1 - X is an adequate replacement for -X,
7226         since the calculations are approximate.
7227
7228 2011-01-29  Eric Blake  <eblake@redhat.com>
7229
7230         mktime: avoid infinite loop
7231         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
7232         type; behavior is still undefined but portable to all known targets.
7233         Reported by Rich Felker.
7234
7235 2011-01-29  Simon Josefsson  <simon@josefsson.org>
7236
7237         rename, unlink, same-inode: Relicense.
7238         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
7239         * modules/unlink (License): Likewise.
7240         * modules/same-inode (License): Likewise.
7241
7242 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7243
7244         mktime: avoid problems on NetBSD 5 / i386
7245         * lib/mktime.c (long_int): New type.  This works around a problem
7246         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
7247         but time_t is 64 bits, and where I expect the existing code is
7248         wrong in some cases.
7249         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
7250         (ydhms_diff): Bring back the compile-time check for wide-enough
7251         year and yday.
7252
7253         mktime: fix misspelling in comment
7254         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
7255         This merges all recent glibc changes of importance.
7256
7257 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7258
7259         move-if-change: cope with concurrent mv of identical file.
7260         * build-aux/move-if-change (CMPPROG): Accept environment
7261         variable as an override for `cmp'.
7262         (usage): Document CMPPROG.
7263         Adjust comparison to drop stdout.  Cope with failure of mv if
7264         the target file exists and is identical to the source, for
7265         parallel builds.
7266         Report from H.J. Lu against binutils in PR binutils/12283.
7267
7268 2011-01-28  Bruce Korb  <bkorb@gnu.org>
7269
7270         * users.txt: Mention sharutils.
7271
7272 2011-01-28  Simon Josefsson  <simon@josefsson.org>
7273
7274         * users.txt: Mention OATH Toolkit.
7275
7276 2011-01-27  Bruno Haible  <bruno@clisp.org>
7277
7278         Prepare for supporting FreeBSD 10.
7279         * build-aux/config.libpath: Remove handling of freebsd1*.
7280
7281 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
7282
7283         Prepare for supporting FreeBSD 10.
7284         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
7285         match FreeBSD 10.0.
7286
7287 2011-01-27  Bruno Haible  <bruno@clisp.org>
7288
7289         vma-iter, get-rusage-as: Add OpenBSD support.
7290         * modules/vma-iter (configure.ac): Test for mquery.
7291         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
7292         * lib/vma-iter.c: Include <sys/mman.h>.
7293         (vma_iterate): Add an implementation based on mquery().
7294         * lib/resource-ext.h (get_rusage_as): Update comments.
7295         * lib/get-rusage-as.c: Likewise.
7296         * lib/get-rusage-data.c: Likewise.
7297
7298 2011-01-26  Karl Berry  <karl@gnu.org>
7299
7300         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
7301         variables to make it easier to override the makeinfo program used.
7302
7303 2011-01-26  Eric Blake  <eblake@redhat.com>
7304
7305         fcntl: work around Haiku F_DUPFD bugs
7306         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
7307         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
7308         cloexec bit on duplication.
7309         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
7310
7311 2011-01-26  Bruno Haible  <bruno@clisp.org>
7312
7313         Enable memory leak tests on AIX.
7314         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
7315         * tests/test-fprintf-posix3.c (main): Likewise.
7316
7317 2011-01-26  Bruno Haible  <bruno@clisp.org>
7318
7319         Tests for module 'get-rusage-data'.
7320         * modules/get-rusage-data-tests: New file.
7321         * tests/test-get-rusage-data.c: New file.
7322
7323         New module 'get-rusage-data'.
7324         * lib/resource-ext.h (get_rusage_data): New declaration.
7325         * lib/get-rusage-data.c: New file.
7326         * modules/get-rusage-data: New file.
7327
7328 2011-01-25  Bruno Haible  <bruno@clisp.org>
7329
7330         get-rusage-as: Allow for easier testing.
7331         * lib/resource-ext.h (get_rusage_as): Add comment.
7332         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
7333         (main): New function for interactive testing.
7334
7335 2011-01-25  Bruno Haible  <bruno@clisp.org>
7336
7337         vma-iter: Treat Haiku like BeOS.
7338         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
7339         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
7340
7341 2011-01-25  Eric Blake  <eblake@redhat.com>
7342
7343         c-stack: fix regression on cygwin when libsigsegv is present
7344         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
7345
7346 2011-01-24  Bruno Haible  <bruno@clisp.org>
7347
7348         vma-iter: Avoid empty intervals.
7349         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
7350         on an empty interval.
7351
7352 2011-01-24  Jim Meyering  <meyering@redhat.com>
7353
7354         u64: remove unnecessary #include
7355         * lib/u64.h: Don't include <stddef.h>.  It was not used.
7356
7357 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7358
7359         Allow the user to avoid the HAVE_RAW_DECL_* macros.
7360         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
7361
7362 2011-01-23  Bruno Haible  <bruno@clisp.org>
7363
7364         New module 'vma-iter'.
7365         * lib/vma-iter.h: New file.
7366         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
7367         * modules/vma-iter: New file.
7368         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
7369         for get_rusage_as_via_iterator.
7370         (vma_iterate_callback): New function.
7371         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
7372         * modules/get-rusage-as (Depends-on): Add vma-iter.
7373
7374 2011-01-23  Bruno Haible  <bruno@clisp.org>
7375
7376         uninorm: Tweak includes.
7377         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
7378         Reported by Jim Meyering.
7379
7380 2011-01-23  Bruno Haible  <bruno@clisp.org>
7381
7382         get-rusage-as: Improve on NetBSD.
7383         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
7384         /proc, like on FreeBSD.
7385
7386 2011-01-23  Jim Meyering  <meyering@redhat.com>
7387
7388         xreadlink.h: remove unnecessary #include
7389         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
7390
7391         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
7392         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
7393
7394 2011-01-23  Bruno Haible  <bruno@clisp.org>
7395
7396         get-rusage-as: Fix bug.
7397         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
7398         original limit when aborting the first loop.
7399
7400 2011-01-23  Bruno Haible  <bruno@clisp.org>
7401
7402         wctype: Ensure valid C syntax.
7403         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
7404         unconditionally, instead of gl_NEXT_HEADERS conditionally.
7405
7406 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7407
7408         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
7409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
7410         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
7411         as they are needed only for configure's test case.
7412         This removes two unnecessary symbols from config.h.
7413
7414         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
7415         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
7416         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
7417         AC_CHECK_HEADERS_ONCE on a header that we also invoke
7418         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
7419         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
7420         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
7421         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7422         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7423         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7424         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7425         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7426         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7427         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7428         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7429         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7430         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7431         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7432
7433 2011-01-21  Eric Blake  <eblake@redhat.com>
7434
7435         maintainer-makefile: work with older git for submodule check
7436         * top/maint.mk (public-submodule-commit): Rewrite to avoid
7437         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
7438         Reported by Matthias Bolte.
7439
7440         bootstrap: minor portability fixes
7441         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
7442         (usage): Omit leading capital and trailing . on help phrases, per
7443         GNU Coding Standards.
7444         (check_versions, top level): Prefix messages with script name.
7445
7446 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
7447
7448         bootstrap: support --no-git option
7449         * build-aux/bootstrap: Add --no-git option, to be used when
7450         --gnulib-srcdir points to the exact desired checkout.
7451
7452 2011-01-21  Eric Blake  <eblake@redhat.com>
7453
7454         strerror_r-posix: work with glibc 2.13
7455         * lib/strerror_r.c (strerror_r): Fix return type.
7456
7457 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7458             Bruno Haible  <bruno@clisp.org>
7459
7460         uN_strstr: New unit tests.
7461         * modules/unistr/u8-strstr-tests: New file.
7462         * modules/unistr/u16-strstr-tests: New file.
7463         * modules/unistr/u32-strstr-tests: New file.
7464         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
7465         * tests/unistr/test-u8-strstr.c: New file.
7466         * tests/unistr/test-u16-strstr.c: New file.
7467         * tests/unistr/test-u32-strstr.c: New file.
7468
7469 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7470             Bruno Haible  <bruno@clisp.org>
7471
7472         Make uN_strstr functions O(n) worst-case.
7473         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
7474         16-bit and 32-bit unit cases, use the unibyte algorithm from
7475         lib/mbsstr.c.
7476         * lib/unistr/u8-strstr.c: Include <string.h>.
7477         (UNIT_IS_UINT8_T): New macro.
7478         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
7479         (U_STRLEN, U_STRNLEN): New macros.
7480         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
7481         (U_STRLEN, U_STRNLEN): New macros.
7482         * modules/unistr/u8-strstr (Depends-on): Add strstr.
7483         (configure.ac): Update required libunistring version.
7484         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
7485         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
7486         malloca.
7487         (configure.ac): Update required libunistring version.
7488         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
7489         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
7490         malloca.
7491         (configure.ac): Update required libunistring version.
7492
7493 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7494             Bruno Haible  <bruno@clisp.org>
7495
7496         Prepare for faster uN_strstr functions.
7497         * lib/str-kmp.h: Support definable UNITs.
7498         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
7499         needle_len argument.
7500         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
7501         * lib/mbscasestr.c (mbscasestr): Likewise.
7502
7503 2011-01-21  Pádraig Brady <P@draigBrady.com>
7504
7505         malloca-tests: make faster by unsetting MALLOC_PERTURB_
7506         * tests/test-malloca.c (main): Unset the environment variable
7507         to greatly speed up the test.
7508         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
7509         * modules/malloca-tests: Depend on unsetenv.
7510
7511 2011-01-21  Pádraig Brady <P@draigBrady.com>
7512
7513         ignore-value: remove stdint dependency
7514         * lib/ignore-value.h: Remove <stdint.h>
7515         * modules/ignore-value: Remove stdint dependency.
7516
7517 2011-01-21  Jim Meyering  <meyering@redhat.com>
7518
7519         maint.mk: adjust variable name to be consistent with other gl_ vars
7520         * top/maint.mk (gl_public_submodule_commit): Rename the variable
7521         to be lower case.
7522
7523 2011-01-20  Jim Meyering  <meyering@redhat.com>
7524
7525         maint.mk: make "check" depend on public-submodule-commit by default
7526         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
7527
7528 2011-01-20  Bruno Haible  <bruno@clisp.org>
7529
7530         mbfile, mbiter: Complete change from 2008-12-21.
7531         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
7532         * m4/mbiter.m4 (gl_MBITER): Likewise.
7533
7534 2011-01-20  Jim Meyering  <meyering@redhat.com>
7535
7536         init.sh: insert space between each function name and "()"
7537         * tests/init.sh: Make it a little easier to see that a function's
7538         name is "warn_", and not "warn" when looking at the first part of
7539         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
7540
7541 2011-01-20  Jim Meyering  <meyering@redhat.com>
7542
7543         mountlist: clean up code formatting
7544         * lib/mountlist.c (read_file_system_list): Split a long line,
7545         correct bracing style, use NULL in place of "(struct statfs *)0",
7546         don't parenthesize return value, add spaces around "=" and after
7547         ";-in-for-stmt".
7548
7549 2011-01-14  Markus Duft <mduft@gentoo.org>
7550
7551         mountlist: add support for Interix
7552         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
7553         Apply statvfs to all entries of /dev/fs.
7554         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
7555         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
7556
7557 2011-01-20  Jim Meyering  <meyering@redhat.com>
7558
7559         maint.mk: improve the public-submodule-commit rule
7560         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
7561         to suppress printing of its commands... unless V=1.
7562         Add git submodule's --quiet option to suppress printing of e.g.,
7563         "Entering gnulib" output.
7564         "cd" into $(srcdir) before running git submodule.
7565
7566 2011-01-20  Bruno Haible  <bruno@clisp.org>
7567
7568         include_next: Fix bug introduced on 2011-01-18.
7569         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
7570         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
7571         ac_cv_header_... variable if the second argument is not 'check'.
7572         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
7573         gl_NEXT_HEADERS_INTERNAL.
7574
7575 2011-01-20  Bruno Haible  <bruno@clisp.org>
7576
7577         Allow the user to avoid the GNULIB_TEST_* macros.
7578         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
7579         Suggested by Paul Eggert.
7580
7581 2011-01-14  Jim Meyering  <meyering@redhat.com>
7582
7583         bootstrap: avoid failure when there is no .gitmodules file
7584         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
7585         has been assigned to, even when its value is the empty string.
7586         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
7587         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
7588         Reported by John W. Eaton <jwe@gnu.org>.
7589
7590 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
7591
7592         assume <ctype.h>, ..., <time.h> exist
7593         For years gnulib has been assuming the existence of the headers
7594         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
7595         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
7596         them, since they don't appear to be needed.
7597         * README (Portability guidelines): Document this.
7598         * lib/flock.c: Assume <fcntl.h> exists.
7599         * lib/regex_internal.h: Assume <locale.h> exists.
7600         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
7601         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
7602         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
7603         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
7604         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
7605         * m4/regex.m4 (gl_REGEX): Likewise.
7606         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
7607         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
7608         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
7609         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
7610         * tests/test-argp.c: Likewise.
7611         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
7612
7613         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
7614         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
7615         AA_APPLE_UNIVERSAL_BUILD.  See
7616         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
7617         * NEWS: Document this.
7618
7619 2011-01-19  Eric Blake  <eblake@redhat.com>
7620
7621         c-stack: assume stack overflow if SA_SIGINFO unsupported
7622         * lib/c-stack.c (SIGACTION_WORKS): Rename...
7623         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
7624         sigaction will work.
7625         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
7626         behavior match Linux.
7627         * tests/test-c-stack.c (main): Prefer NULL for pointers.
7628
7629         stdbool-tests: accomodate Haiku
7630         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
7631
7632         binary-io: fix O_TEXT on Haiku
7633         * modules/binary-io (Depends-on): Add fcntl-h.
7634         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
7635         than blindly undefining O_TEXT.
7636         Reported by Scott McCreary.
7637
7638 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7639
7640         include_next: do not check for standard headers like stddef.h
7641
7642         I found this problem when modifying Emacs to use gnulib.
7643         I noticed that it added HAVE_STDDEF_H to config.h, even though
7644         gnulib always assumes <stddef.h> exists as per README and this
7645         symbol is unnecessary.
7646         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
7647         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
7648         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
7649         faster for headers like stddef.h that are known to exist.
7650         (gl_CHECK_NEXT_HEADERS): Use it.
7651         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
7652         rather than gl_CHECK_NEXT_HEADERS.
7653         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
7654         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
7655
7656 2011-01-18  Eric Blake  <eblake@redhat.com>
7657
7658         ansi-c++-opt: skip C++ dependency style if C++ is unused
7659         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
7660         tests when we know C++ compilation is not desired.
7661         Reported by Scott McCreary.
7662
7663 2011-01-18  Bruno Haible  <bruno@clisp.org>
7664
7665         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
7666         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
7667         (main): Perform test also when getrlimit and setrlimit don't exist or
7668         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
7669         limiting the address space size using setrlimit, compare the address
7670         space size before and after the the test.
7671         * tests/test-dprintf-posix2.c: Likewise.
7672         * tests/test-fprintf-posix3.sh: Update skip messages.
7673         * tests/test-dprintf-posix2.sh: Likewise.
7674         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
7675         * modules/dprintf-posix-tests (Depends-on): Likewise.
7676         Reported by Bruce Korb <bkorb@gnu.org> and
7677         Gary V. Vaughan <gary@gnu.org>.
7678
7679 2011-01-18  Bruno Haible  <bruno@clisp.org>
7680
7681         get-rusage-as: Improvement for Cygwin.
7682         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
7683         areas that are merely reserved.
7684
7685 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7686
7687         strftime: remove dependencies on multibyte modules
7688
7689         strftime depended on mbrlen, mbsinit, and wchar, but these modules
7690         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
7691         only if __osf__ is defined, and I suspect OSF doesn't need these
7692         other modules.  If my guess is wrong, we'll need to come up with a
7693         variant of strftime that doesn't need the multibyte modules.
7694
7695         I discovered this problem when attempting modify Emacs to use the
7696         strftime module.  With the previous gnulib, this caused Emacs to
7697         need 31 new files, ranging from lib/config.charset to
7698         m4/wint_t.m4.  This was overkill and I expect would be offputting
7699         to the Emacs maintainers.  After this change, only 6 new files are
7700         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
7701         stdbool.m4, and tm_gmtoff.m4.
7702
7703         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
7704         Suggested by Bruno Haible in
7705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
7706         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
7707         and do not check for wchar.h.
7708         * modules/strftime (Files): Remove m4/mbstate_t.m4.
7709         (Depends-on): Remove mbrlen, mbsinit, wchar.
7710
7711 2011-01-18  Bruno Haible  <bruno@clisp.org>
7712
7713         Tests for module 'get-rusage-as'.
7714         * modules/get-rusage-as-tests: New file.
7715         * tests/test-get-rusage-as.c: New file.
7716
7717         New module 'get-rusage-as'.
7718         * modules/get-rusage-as: New file.
7719         * lib/resource-ext.h: New file.
7720         * lib/get-rusage-as.c: New file.
7721
7722 2011-01-17  Eric Blake  <eblake@redhat.com>
7723
7724         sigaction: relax license from LGPLv3+ to LGPLv2+
7725         * modules/sigaction (License): Relax to LGPLv2+.
7726
7727 2011-01-14  Bruno Haible  <bruno@clisp.org>
7728
7729         filemode: Make function declarations usable in C++ mode.
7730         * lib/filemode.h: Enclose function declarations in extern "C" block.
7731         Reported by John W. Eaton <jwe@gnu.org>.
7732
7733 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
7734
7735         save-cwd: no longer include "xgetcwd.h"
7736         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
7737         This avoids a compilation failure in projects that use save-cwd
7738         without also using the xgetcwd module.
7739
7740 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7741
7742         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
7743         This is so that a program like Emacs, which needs only dtoastr,
7744         does not have to bother with distributing and compiling ftoastr
7745         and ldtoastr.
7746         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
7747         * modules/dtoastr, modules/ldtoastr: New files.
7748         * modules/ftoastr: Now works just for 'float'.
7749         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
7750         (Makefile.am): Remove ftoastr.h (not needed and no effect),
7751         dtoastr.c, ldtoastr.c.
7752
7753 2011-01-11  Jim Meyering  <meyering@redhat.com>
7754
7755         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
7756         There is no need to work around the lack of the fchdir function,
7757         since gnulib can now provide a replacement when required.
7758         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
7759         * modules/save-cwd (Depends-on): Add fchdir.
7760
7761 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7762
7763         openat, save-cwd: avoid xmalloc
7764
7765         This removes a direct (but undocumented) dependency of openat on
7766         xalloc, along with an indirect dependency via save-cwd.  It also
7767         removes a dependency of save-cwd on xgetcwd, and thereby
7768         indirectly on xalloc.  This change causes the openat substitute
7769         to fall back on save_cwd when memory is tight, and for save_cwd to
7770         fail instead of dying when memory is tight, but that's good enough.
7771         Problem and initial idea for fix reported by Bastien Roucaries in
7772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
7773
7774         * lib/openat-proc.c: Include stdlib.h (for malloc), not
7775         xalloc.h (for xmalloc).
7776         (openat_proc_name): Use malloc, not xmalloc.
7777         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
7778         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
7779
7780         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
7781         This avoids heap allocation for file names whose lengths are in
7782         the range 512..1023, with the upper bound increasing to at most
7783         4031 depending on the platform's PATH_MAX.  (We do not want
7784         pathmax.h here as it might supply a non-constant PATH_MAX.)
7785         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
7786         Perhaps they should be moved to malloca.h?
7787         (OPENAT_BUFFER_SIZE): Use them.
7788
7789 2011-01-10  Bruno Haible  <bruno@clisp.org>
7790
7791         doc: Update users.txt.
7792         * users.txt: Add recutils.
7793
7794 2011-01-09  Karl Berry  <karl@gnu.org>
7795
7796         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
7797
7798         * doc/configmake.texi: New file.
7799         * doc/gnulib.texi: Include it.
7800         * modules/configmake: Move documentation from here.
7801
7802 2011-01-09  Bruno Haible  <bruno@clisp.org>
7803
7804         Update to Unicode 6.0.0.
7805         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
7806         (get_lbp): Update for Unicode 6.0.0.
7807         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
7808         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
7809         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
7810         U+11001, U+11038..U+11046. Remove U+06DE.
7811         (uc_width): Fix bounds of planes.
7812         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7813         lib/uniwidth/width.c.
7814         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
7815         trailing whitespace removed.
7816         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
7817         without comments, but with the original copyright notice.
7818         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
7819         * lib/unicase/ignorable.h: Likewise.
7820         * lib/unicase/tocasefold.h: Likewise.
7821         * lib/unicase/tolower.h: Likewise.
7822         * lib/unicase/totitle.h: Likewise.
7823         * lib/unicase/toupper.h: Likewise.
7824         * lib/unictype/bidi_of.h: Likewise.
7825         * lib/unictype/blocks.h: Likewise.
7826         * lib/unictype/categ_C.h: Likewise.
7827         * lib/unictype/categ_Cn.h: Likewise.
7828         * lib/unictype/categ_L.h: Likewise.
7829         * lib/unictype/categ_Ll.h: Likewise.
7830         * lib/unictype/categ_Lm.h: Likewise.
7831         * lib/unictype/categ_Lo.h: Likewise.
7832         * lib/unictype/categ_Lu.h: Likewise.
7833         * lib/unictype/categ_M.h: Likewise.
7834         * lib/unictype/categ_Mc.h: Likewise.
7835         * lib/unictype/categ_Me.h: Likewise.
7836         * lib/unictype/categ_Mn.h: Likewise.
7837         * lib/unictype/categ_N.h: Likewise.
7838         * lib/unictype/categ_Nd.h: Likewise.
7839         * lib/unictype/categ_No.h: Likewise.
7840         * lib/unictype/categ_P.h: Likewise.
7841         * lib/unictype/categ_Po.h: Likewise.
7842         * lib/unictype/categ_S.h: Likewise.
7843         * lib/unictype/categ_Sc.h: Likewise.
7844         * lib/unictype/categ_Sk.h: Likewise.
7845         * lib/unictype/categ_Sm.h: Likewise.
7846         * lib/unictype/categ_So.h: Likewise.
7847         * lib/unictype/categ_of.h: Likewise.
7848         * lib/unictype/combining.h: Likewise.
7849         * lib/unictype/ctype_alnum.h: Likewise.
7850         * lib/unictype/ctype_alpha.h: Likewise.
7851         * lib/unictype/ctype_graph.h: Likewise.
7852         * lib/unictype/ctype_lower.h: Likewise.
7853         * lib/unictype/ctype_print.h: Likewise.
7854         * lib/unictype/ctype_punct.h: Likewise.
7855         * lib/unictype/ctype_upper.h: Likewise.
7856         * lib/unictype/decdigit.h: Likewise.
7857         * lib/unictype/digit.h: Likewise.
7858         * lib/unictype/numeric.h: Likewise.
7859         * lib/unictype/pr_alphabetic.h: Likewise.
7860         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7861         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7862         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7863         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7864         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7865         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7866         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7867         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7868         * lib/unictype/pr_case_ignorable.h: Likewise.
7869         * lib/unictype/pr_cased.h: Likewise.
7870         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
7871         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
7872         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
7873         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
7874         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
7875         * lib/unictype/pr_combining.h: Likewise.
7876         * lib/unictype/pr_composite.h: Likewise.
7877         * lib/unictype/pr_currency_symbol.h: Likewise.
7878         * lib/unictype/pr_decimal_digit.h: Likewise.
7879         * lib/unictype/pr_deprecated.h: Likewise.
7880         * lib/unictype/pr_format_control.h: Likewise.
7881         * lib/unictype/pr_grapheme_base.h: Likewise.
7882         * lib/unictype/pr_grapheme_extend.h: Likewise.
7883         * lib/unictype/pr_grapheme_link.h: Likewise.
7884         * lib/unictype/pr_id_continue.h: Likewise.
7885         * lib/unictype/pr_id_start.h: Likewise.
7886         * lib/unictype/pr_ideographic.h: Likewise.
7887         * lib/unictype/pr_lowercase.h: Likewise.
7888         * lib/unictype/pr_math.h: Likewise.
7889         * lib/unictype/pr_numeric.h: Likewise.
7890         * lib/unictype/pr_other_alphabetic.h: Likewise.
7891         * lib/unictype/pr_other_id_continue.h: Likewise.
7892         * lib/unictype/pr_other_math.h: Likewise.
7893         * lib/unictype/pr_punctuation.h: Likewise.
7894         * lib/unictype/pr_sentence_terminal.h: Likewise.
7895         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7896         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7897         * lib/unictype/pr_unified_ideograph.h: Likewise.
7898         * lib/unictype/pr_uppercase.h: Likewise.
7899         * lib/unictype/pr_xid_continue.h: Likewise.
7900         * lib/unictype/pr_xid_start.h: Likewise.
7901         * lib/unictype/scripts.h: Likewise.
7902         * lib/unictype/scripts_byname.gperf: Likewise.
7903         * lib/unictype/sy_java_ident.h: Likewise.
7904         * lib/unigbrk/gbrkprop.h: Likewise.
7905         * lib/unilbrk/lbrkprop1.h: Likewise.
7906         * lib/unilbrk/lbrkprop2.h: Likewise.
7907         * lib/uninorm/decomposition-table2.h: Likewise.
7908         * lib/uniwbrk/wbrkprop.h: Likewise.
7909         * tests/unicase/test-cased.c: Likewise.
7910         * tests/unicase/test-ignorable.c: Likewise.
7911         * tests/unicase/test-uc_tolower.c: Likewise.
7912         * tests/unicase/test-uc_totitle.c: Likewise.
7913         * tests/unicase/test-uc_toupper.c: Likewise.
7914         * tests/unictype/test-categ_C.c: Likewise.
7915         * tests/unictype/test-categ_Cn.c: Likewise.
7916         * tests/unictype/test-categ_L.c: Likewise.
7917         * tests/unictype/test-categ_Ll.c: Likewise.
7918         * tests/unictype/test-categ_Lm.c: Likewise.
7919         * tests/unictype/test-categ_Lo.c: Likewise.
7920         * tests/unictype/test-categ_Lu.c: Likewise.
7921         * tests/unictype/test-categ_M.c: Likewise.
7922         * tests/unictype/test-categ_Mc.c: Likewise.
7923         * tests/unictype/test-categ_Me.c: Likewise.
7924         * tests/unictype/test-categ_Mn.c: Likewise.
7925         * tests/unictype/test-categ_N.c: Likewise.
7926         * tests/unictype/test-categ_Nd.c: Likewise.
7927         * tests/unictype/test-categ_No.c: Likewise.
7928         * tests/unictype/test-categ_P.c: Likewise.
7929         * tests/unictype/test-categ_Po.c: Likewise.
7930         * tests/unictype/test-categ_S.c: Likewise.
7931         * tests/unictype/test-categ_Sc.c: Likewise.
7932         * tests/unictype/test-categ_Sk.c: Likewise.
7933         * tests/unictype/test-categ_Sm.c: Likewise.
7934         * tests/unictype/test-categ_So.c: Likewise.
7935         * tests/unictype/test-ctype_alnum.c: Likewise.
7936         * tests/unictype/test-ctype_alpha.c: Likewise.
7937         * tests/unictype/test-ctype_graph.c: Likewise.
7938         * tests/unictype/test-ctype_lower.c: Likewise.
7939         * tests/unictype/test-ctype_print.c: Likewise.
7940         * tests/unictype/test-ctype_punct.c: Likewise.
7941         * tests/unictype/test-ctype_upper.c: Likewise.
7942         * tests/unictype/test-decdigit.h: Likewise.
7943         * tests/unictype/test-digit.h: Likewise.
7944         * tests/unictype/test-numeric.h: Likewise.
7945         * tests/unictype/test-pr_alphabetic.c: Likewise.
7946         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7947         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7948         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7949         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7950         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7951         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7952         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7953         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7954         * tests/unictype/test-pr_case_ignorable.c: Likewise.
7955         * tests/unictype/test-pr_cased.c: Likewise.
7956         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
7957         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
7958         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
7959         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
7960         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
7961         * tests/unictype/test-pr_combining.c: Likewise.
7962         * tests/unictype/test-pr_composite.c: Likewise.
7963         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7964         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7965         * tests/unictype/test-pr_deprecated.c: Likewise.
7966         * tests/unictype/test-pr_format_control.c: Likewise.
7967         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7968         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7969         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7970         * tests/unictype/test-pr_id_continue.c: Likewise.
7971         * tests/unictype/test-pr_id_start.c: Likewise.
7972         * tests/unictype/test-pr_ideographic.c: Likewise.
7973         * tests/unictype/test-pr_lowercase.c: Likewise.
7974         * tests/unictype/test-pr_math.c: Likewise.
7975         * tests/unictype/test-pr_numeric.c: Likewise.
7976         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7977         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7978         * tests/unictype/test-pr_other_math.c: Likewise.
7979         * tests/unictype/test-pr_punctuation.c: Likewise.
7980         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7981         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7982         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7983         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7984         * tests/unictype/test-pr_uppercase.c: Likewise.
7985         * tests/unictype/test-pr_xid_continue.c: Likewise.
7986         * tests/unictype/test-pr_xid_start.c: Likewise.
7987         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7988         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7989         changes.
7990         * lib/unictype/categ_Cc.h: Likewise.
7991         * lib/unictype/categ_Cf.h: Likewise.
7992         * lib/unictype/categ_Co.h: Likewise.
7993         * lib/unictype/categ_Cs.h: Likewise.
7994         * lib/unictype/categ_Lt.h: Likewise.
7995         * lib/unictype/categ_Nl.h: Likewise.
7996         * lib/unictype/categ_Pc.h: Likewise.
7997         * lib/unictype/categ_Pd.h: Likewise.
7998         * lib/unictype/categ_Pe.h: Likewise.
7999         * lib/unictype/categ_Pf.h: Likewise.
8000         * lib/unictype/categ_Pi.h: Likewise.
8001         * lib/unictype/categ_Ps.h: Likewise.
8002         * lib/unictype/categ_Z.h: Likewise.
8003         * lib/unictype/categ_Zl.h: Likewise.
8004         * lib/unictype/categ_Zp.h: Likewise.
8005         * lib/unictype/categ_Zs.h: Likewise.
8006         * lib/unictype/ctype_blank.h: Likewise.
8007         * lib/unictype/ctype_cntrl.h: Likewise.
8008         * lib/unictype/ctype_digit.h: Likewise.
8009         * lib/unictype/ctype_space.h: Likewise.
8010         * lib/unictype/ctype_xdigit.h: Likewise.
8011         * lib/unictype/mirror.h: Likewise.
8012         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8013         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8014         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8015         * lib/unictype/pr_bidi_control.h: Likewise.
8016         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8017         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8018         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8019         * lib/unictype/pr_bidi_pdf.h: Likewise.
8020         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8021         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8022         * lib/unictype/pr_dash.h: Likewise.
8023         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8024         * lib/unictype/pr_diacritic.h: Likewise.
8025         * lib/unictype/pr_extender.h: Likewise.
8026         * lib/unictype/pr_hex_digit.h: Likewise.
8027         * lib/unictype/pr_hyphen.h: Likewise.
8028         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8029         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8030         * lib/unictype/pr_ignorable_control.h: Likewise.
8031         * lib/unictype/pr_iso_control.h: Likewise.
8032         * lib/unictype/pr_join_control.h: Likewise.
8033         * lib/unictype/pr_left_of_pair.h: Likewise.
8034         * lib/unictype/pr_line_separator.h: Likewise.
8035         * lib/unictype/pr_logical_order_exception.h: Likewise.
8036         * lib/unictype/pr_non_break.h: Likewise.
8037         * lib/unictype/pr_not_a_character.h: Likewise.
8038         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8039         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8040         * lib/unictype/pr_other_id_start.h: Likewise.
8041         * lib/unictype/pr_other_lowercase.h: Likewise.
8042         * lib/unictype/pr_other_uppercase.h: Likewise.
8043         * lib/unictype/pr_paired_punctuation.h: Likewise.
8044         * lib/unictype/pr_paragraph_separator.h: Likewise.
8045         * lib/unictype/pr_pattern_syntax.h: Likewise.
8046         * lib/unictype/pr_pattern_white_space.h: Likewise.
8047         * lib/unictype/pr_private_use.h: Likewise.
8048         * lib/unictype/pr_quotation_mark.h: Likewise.
8049         * lib/unictype/pr_radical.h: Likewise.
8050         * lib/unictype/pr_soft_dotted.h: Likewise.
8051         * lib/unictype/pr_space.h: Likewise.
8052         * lib/unictype/pr_titlecase.h: Likewise.
8053         * lib/unictype/pr_variation_selector.h: Likewise.
8054         * lib/unictype/pr_white_space.h: Likewise.
8055         * lib/unictype/pr_zero_width.h: Likewise.
8056         * lib/unictype/sy_c_ident.h: Likewise.
8057         * lib/unictype/sy_c_whitespace.h: Likewise.
8058         * lib/unictype/sy_java_whitespace.h: Likewise.
8059         * lib/uninorm/composition-table.gperf: Likewise.
8060         * lib/uninorm/decomposition-table1.h: Likewise.
8061         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
8062         LB8.
8063         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8064         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8065         * modules/unictype/*: Bump version number of expected libunistring
8066         version.
8067
8068 2011-01-09  Bruno Haible  <bruno@clisp.org>
8069
8070         Update to Unicode 5.2.0.
8071         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
8072         trailing whitespace removed.
8073
8074 2011-01-09  Bruno Haible  <bruno@clisp.org>
8075
8076         New Unicode character properties, from Unicode 5.2.0.
8077         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
8078         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
8079         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
8080         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
8081         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
8082         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
8083         uc_is_property_cased, uc_is_property_case_ignorable,
8084         uc_is_property_changes_when_lowercased,
8085         uc_is_property_changes_when_uppercased,
8086         uc_is_property_changes_when_titlecased,
8087         uc_is_property_changes_when_casefolded,
8088         uc_is_property_changes_when_casemapped): New declarations.
8089         * lib/unictype/pr_byname.gperf: Add the new properties.
8090         * modules/unictype/property-byname (Depends-on): Depend on the new
8091         properties modules.
8092         * modules/unictype/property-all (Depends-on): Likewise.
8093         * MODULES.html.sh (Unicode string functions): Add
8094         unictype/property-case-ignorable, unictype/property-cased,
8095         unictype/property-changes-when-casefolded,
8096         unictype/property-changes-when-casemapped,
8097         unictype/property-changes-when-lowercased,
8098         unictype/property-changes-when-titlecased,
8099         unictype/property-changes-when-uppercased.
8100
8101         New module 'unictype/property-changes-when-casemapped'.
8102         * modules/unictype/property-changes-when-casemapped: New file.
8103         * lib/unictype/pr_changes_when_casemapped.c: New file.
8104         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
8105         generated by gen-uni-tables.
8106         * modules/unictype/property-changes-when-casemapped-tests: New file.
8107         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
8108         automatically generated by gen-uni-tables.
8109
8110         New module 'unictype/property-changes-when-casefolded'.
8111         * modules/unictype/property-changes-when-casefolded: New file.
8112         * lib/unictype/pr_changes_when_casefolded.c: New file.
8113         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
8114         generated by gen-uni-tables.
8115         * modules/unictype/property-changes-when-casefolded-tests: New file.
8116         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
8117         automatically generated by gen-uni-tables.
8118
8119         New module 'unictype/property-changes-when-titlecased'.
8120         * modules/unictype/property-changes-when-titlecased: New file.
8121         * lib/unictype/pr_changes_when_titlecased.c: New file.
8122         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
8123         generated by gen-uni-tables.
8124         * modules/unictype/property-changes-when-titlecased-tests: New file.
8125         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
8126         automatically generated by gen-uni-tables.
8127
8128         New module 'unictype/property-changes-when-uppercased'.
8129         * modules/unictype/property-changes-when-uppercased: New file.
8130         * lib/unictype/pr_changes_when_uppercased.c: New file.
8131         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
8132         generated by gen-uni-tables.
8133         * modules/unictype/property-changes-when-uppercased-tests: New file.
8134         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
8135         automatically generated by gen-uni-tables.
8136
8137         New module 'unictype/property-changes-when-lowercased'.
8138         * modules/unictype/property-changes-when-lowercased: New file.
8139         * lib/unictype/pr_changes_when_lowercased.c: New file.
8140         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
8141         generated by gen-uni-tables.
8142         * modules/unictype/property-changes-when-lowercased-tests: New file.
8143         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
8144         automatically generated by gen-uni-tables.
8145
8146         New module 'unictype/property-case-ignorable'.
8147         * modules/unictype/property-case-ignorable: New file.
8148         * lib/unictype/pr_case_ignorable.c: New file.
8149         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
8150         by gen-uni-tables.
8151         * modules/unictype/property-case-ignorable-tests: New file.
8152         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
8153         generated by gen-uni-tables.
8154
8155         New module 'unictype/property-cased'.
8156         * modules/unictype/property-cased: New file.
8157         * lib/unictype/pr_cased.c: New file.
8158         * lib/unictype/pr_cased.h: New file, automatically generated by
8159         gen-uni-tables.
8160         * modules/unictype/property-cased-tests: New file.
8161         * tests/unictype/test-pr_cased.c: New file, automatically generated by
8162         gen-uni-tables.
8163
8164 2011-01-09  Bruno Haible  <bruno@clisp.org>
8165
8166         Update to Unicode 5.2.0.
8167         * lib/gen-uni-tables.c (output_predicate, output_category,
8168         output_combclass, output_bidi_category, output_decimal_digit_test,
8169         output_decimal_digit, output_digit_test, output_digit,
8170         output_numeric_test, output_numeric, output_mirror, output_scripts,
8171         output_scripts_byname, output_blocks, output_ident_category): Fix
8172         comment header.
8173         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
8174         get_wbp.
8175         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
8176         items.
8177         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
8178         Changes_When_Lowercased, Changes_When_Uppercased,
8179         Changes_When_Titlecased, Changes_When_Casefolded,
8180         Changes_When_Casemapped.
8181         (is_property_alphabetic, is_property_default_ignorable_code_point):
8182         Update for Unicode 5.2.0.
8183         (is_property_cased, is_property_case_ignorable,
8184         is_property_changes_when_lowercased,
8185         is_property_changes_when_uppercased,
8186         is_property_changes_when_titlecased,
8187         is_property_changes_when_casefolded,
8188         is_property_changes_when_casemapped): New functions.
8189         (output_properties): Output also the properties cased, case_ignorable,
8190         changes_when_lowercased, changes_when_uppercased,
8191         changes_when_titlecased, changes_when_casefolded,
8192         changes_when_casemapped.
8193         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
8194         Unicode TR#11 revision 17 -> 19.
8195         (LBP_CP): New enumeration value.
8196         (LBP_*): Adjust values accordingly.
8197         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8198         TR#14 revision 22 -> 24.
8199         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
8200         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
8201         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8202         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
8203         is_WBP_MIDLETTER.
8204         (output_composition_tables): Allow for 24 bits instead of 16 bits in
8205         the code1 and code2 of each composition rule.
8206         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
8207         * lib/unicase/ignorable.h: Likewise.
8208         * lib/unicase/tocasefold.h: Likewise.
8209         * lib/unicase/tolower.h: Likewise.
8210         * lib/unicase/totitle.h: Likewise.
8211         * lib/unicase/toupper.h: Likewise.
8212         * lib/unictype/bidi_of.h: Likewise.
8213         * lib/unictype/blocks.h: Likewise.
8214         * lib/unictype/categ_C.h: Likewise.
8215         * lib/unictype/categ_Cf.h: Likewise.
8216         * lib/unictype/categ_Cn.h: Likewise.
8217         * lib/unictype/categ_L.h: Likewise.
8218         * lib/unictype/categ_Ll.h: Likewise.
8219         * lib/unictype/categ_Lm.h: Likewise.
8220         * lib/unictype/categ_Lo.h: Likewise.
8221         * lib/unictype/categ_Lu.h: Likewise.
8222         * lib/unictype/categ_M.h: Likewise.
8223         * lib/unictype/categ_Mc.h: Likewise.
8224         * lib/unictype/categ_Mn.h: Likewise.
8225         * lib/unictype/categ_N.h: Likewise.
8226         * lib/unictype/categ_Nd.h: Likewise.
8227         * lib/unictype/categ_Nl.h: Likewise.
8228         * lib/unictype/categ_No.h: Likewise.
8229         * lib/unictype/categ_P.h: Likewise.
8230         * lib/unictype/categ_Pd.h: Likewise.
8231         * lib/unictype/categ_Po.h: Likewise.
8232         * lib/unictype/categ_S.h: Likewise.
8233         * lib/unictype/categ_Sc.h: Likewise.
8234         * lib/unictype/categ_So.h: Likewise.
8235         * lib/unictype/categ_of.h: Likewise.
8236         * lib/unictype/combining.h: Likewise.
8237         * lib/unictype/ctype_alnum.h: Likewise.
8238         * lib/unictype/ctype_alpha.h: Likewise.
8239         * lib/unictype/ctype_graph.h: Likewise.
8240         * lib/unictype/ctype_lower.h: Likewise.
8241         * lib/unictype/ctype_print.h: Likewise.
8242         * lib/unictype/ctype_punct.h: Likewise.
8243         * lib/unictype/ctype_upper.h: Likewise.
8244         * lib/unictype/decdigit.h: Likewise.
8245         * lib/unictype/digit.h: Likewise.
8246         * lib/unictype/numeric.h: Likewise.
8247         * lib/unictype/pr_alphabetic.h: Likewise.
8248         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8249         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8250         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8251         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8252         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8253         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8254         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8255         * lib/unictype/pr_combining.h: Likewise.
8256         * lib/unictype/pr_composite.h: Likewise.
8257         * lib/unictype/pr_currency_symbol.h: Likewise.
8258         * lib/unictype/pr_dash.h: Likewise.
8259         * lib/unictype/pr_decimal_digit.h: Likewise.
8260         * lib/unictype/pr_deprecated.h: Likewise.
8261         * lib/unictype/pr_diacritic.h: Likewise.
8262         * lib/unictype/pr_extender.h: Likewise.
8263         * lib/unictype/pr_grapheme_base.h: Likewise.
8264         * lib/unictype/pr_grapheme_extend.h: Likewise.
8265         * lib/unictype/pr_grapheme_link.h: Likewise.
8266         * lib/unictype/pr_id_continue.h: Likewise.
8267         * lib/unictype/pr_id_start.h: Likewise.
8268         * lib/unictype/pr_ideographic.h: Likewise.
8269         * lib/unictype/pr_ignorable_control.h: Likewise.
8270         * lib/unictype/pr_logical_order_exception.h: Likewise.
8271         * lib/unictype/pr_lowercase.h: Likewise.
8272         * lib/unictype/pr_numeric.h: Likewise.
8273         * lib/unictype/pr_other_alphabetic.h: Likewise.
8274         * lib/unictype/pr_punctuation.h: Likewise.
8275         * lib/unictype/pr_sentence_terminal.h: Likewise.
8276         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8277         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8278         * lib/unictype/pr_unified_ideograph.h: Likewise.
8279         * lib/unictype/pr_uppercase.h: Likewise.
8280         * lib/unictype/pr_xid_continue.h: Likewise.
8281         * lib/unictype/pr_xid_start.h: Likewise.
8282         * lib/unictype/pr_zero_width.h: Likewise.
8283         * lib/unictype/scripts.h: Likewise.
8284         * lib/unictype/scripts_byname.gperf: Likewise.
8285         * lib/unictype/sy_java_ident.h: Likewise.
8286         * lib/unigbrk/gbrkprop.h: Likewise.
8287         * lib/unilbrk/lbrkprop1.h: Likewise.
8288         * lib/unilbrk/lbrkprop2.h: Likewise.
8289         * lib/unilbrk/lbrktables.h: Likewise.
8290         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
8291         LBP_CP. Implement rule LB30.
8292         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
8293         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
8294         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
8295         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
8296         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
8297         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
8298         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
8299         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
8300         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
8301         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
8302         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
8303         bits instead of 16 bits in the code1 and code2 of each composition
8304         rule.
8305         (uc_composition): Update for Unicode 5.2.0.
8306         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
8307         * lib/uninorm/decomposition-table2.h: Likewise.
8308         * lib/uniwbrk/wbrkprop.h: Likewise.
8309         * tests/unicase/test-cased.c: Likewise.
8310         * tests/unicase/test-ignorable.c: Likewise.
8311         * tests/unicase/test-uc_tolower.c: Likewise.
8312         * tests/unicase/test-uc_totitle.c: Likewise.
8313         * tests/unicase/test-uc_toupper.c: Likewise.
8314         * tests/unictype/test-categ_C.c: Likewise.
8315         * tests/unictype/test-categ_Cf.c: Likewise.
8316         * tests/unictype/test-categ_Cn.c: Likewise.
8317         * tests/unictype/test-categ_L.c: Likewise.
8318         * tests/unictype/test-categ_Ll.c: Likewise.
8319         * tests/unictype/test-categ_Lm.c: Likewise.
8320         * tests/unictype/test-categ_Lo.c: Likewise.
8321         * tests/unictype/test-categ_Lu.c: Likewise.
8322         * tests/unictype/test-categ_M.c: Likewise.
8323         * tests/unictype/test-categ_Mc.c: Likewise.
8324         * tests/unictype/test-categ_Mn.c: Likewise.
8325         * tests/unictype/test-categ_N.c: Likewise.
8326         * tests/unictype/test-categ_Nd.c: Likewise.
8327         * tests/unictype/test-categ_Nl.c: Likewise.
8328         * tests/unictype/test-categ_No.c: Likewise.
8329         * tests/unictype/test-categ_P.c: Likewise.
8330         * tests/unictype/test-categ_Pd.c: Likewise.
8331         * tests/unictype/test-categ_Po.c: Likewise.
8332         * tests/unictype/test-categ_S.c: Likewise.
8333         * tests/unictype/test-categ_Sc.c: Likewise.
8334         * tests/unictype/test-categ_So.c: Likewise.
8335         * tests/unictype/test-ctype_alnum.c: Likewise.
8336         * tests/unictype/test-ctype_alpha.c: Likewise.
8337         * tests/unictype/test-ctype_graph.c: Likewise.
8338         * tests/unictype/test-ctype_lower.c: Likewise.
8339         * tests/unictype/test-ctype_print.c: Likewise.
8340         * tests/unictype/test-ctype_punct.c: Likewise.
8341         * tests/unictype/test-ctype_upper.c: Likewise.
8342         * tests/unictype/test-decdigit.h: Likewise.
8343         * tests/unictype/test-digit.h: Likewise.
8344         * tests/unictype/test-numeric.h: Likewise.
8345         * tests/unictype/test-pr_alphabetic.c: Likewise.
8346         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8347         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8348         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8349         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8350         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8351         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8352         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8353         * tests/unictype/test-pr_combining.c: Likewise.
8354         * tests/unictype/test-pr_composite.c: Likewise.
8355         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8356         * tests/unictype/test-pr_dash.c: Likewise.
8357         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8358         * tests/unictype/test-pr_deprecated.c: Likewise.
8359         * tests/unictype/test-pr_diacritic.c: Likewise.
8360         * tests/unictype/test-pr_extender.c: Likewise.
8361         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8362         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8363         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8364         * tests/unictype/test-pr_id_continue.c: Likewise.
8365         * tests/unictype/test-pr_id_start.c: Likewise.
8366         * tests/unictype/test-pr_ideographic.c: Likewise.
8367         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8368         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8369         * tests/unictype/test-pr_lowercase.c: Likewise.
8370         * tests/unictype/test-pr_numeric.c: Likewise.
8371         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8372         * tests/unictype/test-pr_punctuation.c: Likewise.
8373         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8374         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8375         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8376         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8377         * tests/unictype/test-pr_uppercase.c: Likewise.
8378         * tests/unictype/test-pr_xid_continue.c: Likewise.
8379         * tests/unictype/test-pr_xid_start.c: Likewise.
8380         * tests/unictype/test-pr_zero_width.c: Likewise.
8381         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8382         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
8383         changed behaviour: line breaking is now disallowed between a letter
8384         or '=' and '('.
8385         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8386         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8387         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
8388         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
8389         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8390         lib/uniwidth/width.c.
8391         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
8392         without comments, but with the original copyright notice.
8393         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8394         changes.
8395         * lib/unictype/categ_Cc.h: Likewise.
8396         * lib/unictype/categ_Co.h: Likewise.
8397         * lib/unictype/categ_Cs.h: Likewise.
8398         * lib/unictype/categ_Lt.h: Likewise.
8399         * lib/unictype/categ_Me.h: Likewise.
8400         * lib/unictype/categ_Pc.h: Likewise.
8401         * lib/unictype/categ_Pe.h: Likewise.
8402         * lib/unictype/categ_Pf.h: Likewise.
8403         * lib/unictype/categ_Pi.h: Likewise.
8404         * lib/unictype/categ_Ps.h: Likewise.
8405         * lib/unictype/categ_Sk.h: Likewise.
8406         * lib/unictype/categ_Sm.h: Likewise.
8407         * lib/unictype/categ_Z.h: Likewise.
8408         * lib/unictype/categ_Zl.h: Likewise.
8409         * lib/unictype/categ_Zp.h: Likewise.
8410         * lib/unictype/categ_Zs.h: Likewise.
8411         * lib/unictype/ctype_blank.h: Likewise.
8412         * lib/unictype/ctype_cntrl.h: Likewise.
8413         * lib/unictype/ctype_digit.h: Likewise.
8414         * lib/unictype/ctype_space.h: Likewise.
8415         * lib/unictype/ctype_xdigit.h: Likewise.
8416         * lib/unictype/mirror.h: Likewise.
8417         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8418         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8419         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8420         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8421         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8422         * lib/unictype/pr_bidi_control.h: Likewise.
8423         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8424         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8425         * lib/unictype/pr_bidi_pdf.h: Likewise.
8426         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8427         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8428         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8429         * lib/unictype/pr_format_control.h: Likewise.
8430         * lib/unictype/pr_hex_digit.h: Likewise.
8431         * lib/unictype/pr_hyphen.h: Likewise.
8432         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8433         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8434         * lib/unictype/pr_iso_control.h: Likewise.
8435         * lib/unictype/pr_join_control.h: Likewise.
8436         * lib/unictype/pr_left_of_pair.h: Likewise.
8437         * lib/unictype/pr_line_separator.h: Likewise.
8438         * lib/unictype/pr_math.h: Likewise.
8439         * lib/unictype/pr_non_break.h: Likewise.
8440         * lib/unictype/pr_not_a_character.h: Likewise.
8441         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8442         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8443         * lib/unictype/pr_other_id_continue.h: Likewise.
8444         * lib/unictype/pr_other_id_start.h: Likewise.
8445         * lib/unictype/pr_other_lowercase.h: Likewise.
8446         * lib/unictype/pr_other_math.h: Likewise.
8447         * lib/unictype/pr_other_uppercase.h: Likewise.
8448         * lib/unictype/pr_paired_punctuation.h: Likewise.
8449         * lib/unictype/pr_paragraph_separator.h: Likewise.
8450         * lib/unictype/pr_pattern_syntax.h: Likewise.
8451         * lib/unictype/pr_pattern_white_space.h: Likewise.
8452         * lib/unictype/pr_private_use.h: Likewise.
8453         * lib/unictype/pr_quotation_mark.h: Likewise.
8454         * lib/unictype/pr_radical.h: Likewise.
8455         * lib/unictype/pr_soft_dotted.h: Likewise.
8456         * lib/unictype/pr_space.h: Likewise.
8457         * lib/unictype/pr_titlecase.h: Likewise.
8458         * lib/unictype/pr_variation_selector.h: Likewise.
8459         * lib/unictype/pr_white_space.h: Likewise.
8460         * lib/unictype/sy_c_ident.h: Likewise.
8461         * lib/unictype/sy_c_whitespace.h: Likewise.
8462         * lib/unictype/sy_java_whitespace.h: Likewise.
8463         * modules/uni*/*: Bump version number of expected libunistring version.
8464         Reported by Simon Josefsson.
8465
8466 2011-01-09  Karl Heuer  <kwzh@gnu.org>
8467
8468         useless-if-before-free: fix typo in --help and make the internal,
8469         automatic version date update process work once again.
8470         --help output contained a NUL character instead of the
8471         backslash-zero that was intended.  Also, the "must lie within
8472         the first 8 lines" line is on line 9, and hence not getting
8473         automatically updated.
8474         * build-aux/useless-if-before-free: Fix the former by adding a
8475         backslash, and the latter by condensing the three lines of what-it-does
8476         to a single line, leaving one line of slack for the future.
8477
8478 2011-01-09  Bruno Haible  <bruno@clisp.org>
8479
8480         uniwidth/width: Fix width of U+1D173..U+1D17A.
8481         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
8482         symbolic_width, output_width_property_test): New functions.
8483         (main): Invoke output_nonspacing_property, output_width_property_test.
8484         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
8485         U+1D173..U+1D17A.
8486         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
8487         1.
8488         * modules/uniwidth/*: Bump version number of expected libunistring
8489         version.
8490         * modules/unilbrk/*: Likewise.
8491
8492 2011-01-08  Bruno Haible  <bruno@clisp.org>
8493
8494         uninorm tests: Preserve copyright of Unicode data file.
8495         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
8496         Mention modifications.
8497
8498 2011-01-08  Bruno Haible  <bruno@clisp.org>
8499
8500         gen-uni-tables: Prepare for Unicode 5.2.0.
8501         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
8502         (debug_output_lbp, output_lbp): Update.
8503
8504 2011-01-08  Bruno Haible  <bruno@clisp.org>
8505
8506         unilbrk: Clarify gen-uni-tables.c code.
8507         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
8508         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
8509         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
8510
8511 2011-01-07  Bruno Haible  <bruno@clisp.org>
8512
8513         strtod: Restore errno when successfully parsing Infinity or NaN.
8514         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
8515         restore the original errno.
8516
8517 2011-01-07  Bruno Haible  <bruno@clisp.org>
8518
8519         remove test: Avoid failure on HP-UX 11.
8520         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
8521
8522 2011-01-07  Bruno Haible  <bruno@clisp.org>
8523
8524         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
8525         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
8526         error code.
8527
8528 2011-01-07  Pádraig Brady <P@draigBrady.com>
8529
8530         ignore-value: fixup comments, and add Eric Blake
8531         as an author since he rewrote the macros.
8532         * lib/ignore-value.h (ignore_value):  State that
8533         we now support aggregates.  Also specify exactly
8534         when the GCC warn_unused_result feature was added.
8535
8536 2011-01-06  Eric Blake  <eblake@redhat.com>
8537
8538         ignore-value: support aggregate types
8539         * lib/ignore-value.h (ignore_value): Provide separate gcc
8540         definition.
8541         * modules/ignore-value-tests: New test module.
8542         * tests/test-ignore-value.c: New test.
8543
8544         maint.mk: improve sc_prohibit_strcmp regex
8545         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
8546         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
8547         definition of STRNEQ.
8548
8549         signal: work around Haiku issue with SIGBUS
8550         * lib/siglist.h: Add comment.
8551         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
8552         strsignal's favoring of SIGSEGV.
8553         * tests/test-signal.c (main): Avoid test failure.
8554         * doc/posix-headers/signal.texi (signal.h): Document the issue.
8555         Reported by Scott McCreary.
8556
8557         maint.mk: add pre-release check to ensure submodule commits are public
8558         * top/maint.mk (public-submodule-commit): New rule.
8559         (submodule-checks): New variable.
8560         (alpha beta stable): Depend on the variable.
8561
8562 2011-01-05  Pádraig Brady <P@draigBrady.com>
8563         and Jim Meyering  <meyering@redhat.com>
8564
8565         ignore-value: make ignore_value more generic; deprecate ignore_ptr
8566         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
8567         (ATTRIBUTE_DEPRECATED): Define.
8568         (_ignore_case): New function.
8569         (ignore_value): New macro, to replace the old function.
8570         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
8571         * modules/ignore-value (Depends-on): Add stdint.
8572
8573 2011-01-04  Eric Blake  <eblake@redhat.com>
8574
8575         doc: regenerate INSTALL
8576         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
8577         @firstparagraphindent support, now that autoconf dropped it.
8578         (INSTALL_PRELUDE): Reinstate old macro.
8579         * doc/install.texi: Resync from autoconf.
8580         * doc/INSTALL: Reflect recent autoconf update.
8581         * doc/INSTALL.ISO: Likewise.
8582         * doc/INSTALL.UTF-8: Likewise.
8583         Reported by Karl Berry.
8584
8585 2011-01-04  Bruce Korb  <address@hidden>
8586
8587         git-version-gen: avoid a sub-shell
8588         * build-aux/git-version-gen: Redirect stderr in `...` via
8589         "exec 2>...", rather than via an added sub-shell.
8590
8591 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
8592
8593         git-version-gen: use (...) rather than sh -c '...'
8594         * build-aux/git-version-gen: Rather than hard-coding a shell's name
8595         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
8596
8597 2011-01-03  Jim Meyering  <meyering@redhat.com>
8598
8599         git-version-gen: convert leading TABs to spaces
8600         * build-aux/git-version-gen: Expand leading TABs.
8601
8602         git-version-gen: handle failed "git rev-list"
8603         * build-aux/git-version-gen: Rather than leaking a "fatal" error
8604         from git and proceeding as if it had succeeded but printed no SHA1
8605         checksums, suppress the diagnostic and handle the failure.
8606         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
8607
8608         git-version-gen: include command name in one more diagnostic
8609         * build-aux/git-version-gen: When the required .tarball-version file
8610         was missing or unreadable, you might see the diagnostic from "cat",
8611         but no trace of the name of the invoking script.  Now, you still see
8612         the diagnostic from cat, but also get one from "git-version-gen: ".
8613         Inspired by a patch from Bruce Korb.
8614
8615         update-copyright: adjust test to match changed code
8616         * tests/test-update-copyright.sh: Change test's expected output
8617         to match new actual output.
8618
8619 2011-01-02  Bruno Haible  <bruno@clisp.org>
8620
8621         getlogin_r: Avoid test failure on HP-UX 11.
8622         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
8623         ERANGE when the second argument is zero.
8624         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
8625         portability problem.
8626
8627 2011-01-02  Bruce Korb  <bkorb@gnu.org>
8628
8629         * build-aux/update-copyright: doc Simon's changes
8630
8631 2011-01-02  Simon Josefsson  <simon@josefsson.org>
8632
8633         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
8634         environment variable.
8635
8636 2011-01-02  Bruno Haible  <bruno@clisp.org>
8637
8638         unigbrk: Avoid gcc warnings.
8639         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
8640         unused variable.
8641         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
8642         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
8643         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
8644         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
8645         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
8646         Change type of first argument to 'const char *'.
8647         (main): Remove unused variable.
8648         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
8649         type of first argument to 'const char *'.
8650         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
8651         Likewise.
8652         (main): Change type of variable 's'.
8653         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
8654         to 'int'.
8655
8656 2011-01-02  Bruno Haible  <bruno@clisp.org>
8657
8658         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
8659         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
8660         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
8661         bug.
8662         * lib/pwrite.c: Undo 2010-12-31 patch.
8663         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
8664
8665 2011-01-02  Bruno Haible  <bruno@clisp.org>
8666
8667         pread: Fix test whether it works.
8668         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
8669
8670 2011-01-02  Bruno Haible  <bruno@clisp.org>
8671
8672         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
8673         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
8674         ends in "6". Don't require a specific month name. Try also the locale
8675         names found on HP-UX 11 and Solaris 7.
8676
8677 2011-01-02  Bruno Haible  <bruno@clisp.org>
8678
8679         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
8680         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
8681         C linkage.
8682         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
8683
8684 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8685
8686         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
8687         for consistency, since the "cluster" term is not used elsewhere.
8688         * lib/unigbrk.in.h: Update name.
8689         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
8690         * lib/unigbrk/u16-grapheme-next.c: Update name.
8691         * lib/unigbrk/u16-grapheme-prev.c: Update name.
8692         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
8693         * lib/unigbrk/u32-grapheme-next.c: Update name.
8694         * lib/unigbrk/u32-grapheme-prev.c: Update name.
8695         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
8696         * lib/unigbrk/u8-grapheme-next.c: Update name.
8697         * lib/unigbrk/u8-grapheme-prev.c: Update name.
8698         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
8699         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
8700         Suggested by Bruno Haible.
8701
8702 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8703
8704         Remove module 'u8-grapheme-len' as too redundant with
8705         'u8-grapheme-next'.
8706         * modules/unigbrk/u8-grapheme-len: Delete file.
8707         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
8708         * lib/unigbrk.in.h: Remove prototype for deleted function.
8709         * lib/unigbrk/u8-grapheme-len.c: Delete file.
8710         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
8711
8712         Remove module 'u16-grapheme-len' as too redundant with
8713         'u16-grapheme-next'.
8714         * modules/unigbrk/u16-grapheme-len: Delete file.
8715         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
8716         * lib/unigbrk.in.h: Remove prototype for deleted function.
8717         * lib/unigbrk/u16-grapheme-len.c: Delete file.
8718         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
8719
8720         Remove module 'u32-grapheme-len' as too redundant with
8721         'u32-grapheme-next'.
8722         * modules/unigbrk/u32-grapheme-len: Delete file.
8723         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
8724         * lib/unigbrk.in.h: Remove prototype for deleted function.
8725         * lib/unigbrk/u32-grapheme-len.c: Delete file.
8726         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
8727
8728         Suggested by Bruno Haible.
8729
8730 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8731
8732         * unigbrk.in.h: Fix typo: "ben" => "been".
8733         Reported by Bruno Haible.
8734
8735 2011-01-01  Jim Meyering  <meyering@redhat.com>
8736
8737         maint: update almost all copyright ranges to include 2011
8738         Run the new "make update-copyright" rule.
8739
8740 2011-01-01  Jim Meyering  <meyering@redhat.com>
8741
8742         maint: update-copyright: exempt doc/INSTALL*
8743         * Makefile (update-copyright): Also exclude doc/INSTALL*,
8744         since they are generated.  Suggested by Bruno Haible.
8745
8746 2011-01-01  Jim Meyering  <meyering@redhat.com>
8747
8748         maint: refine the update-copyright rule
8749         * Makefile (update-copyright): Also exclude any file that includes
8750         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
8751         code that merely generates the comment.
8752
8753 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8754
8755         New module 'u8-grapheme-len'.
8756         * modules/unigbrk/u8-grapheme-len: New file.
8757         * modules/unigbrk/u8-grapheme-len-tests: New file.
8758         * lib/unigbrk.in.h: Add prototype for new function.
8759         * lib/unigbrk/u8-grapheme-len.c: New file.
8760         * tests/unigbrk/test-u8-grapheme-len.c: New file.
8761
8762         New module 'u16-grapheme-len'.
8763         * modules/unigbrk/u16-grapheme-len: New file.
8764         * modules/unigbrk/u16-grapheme-len-tests: New file.
8765         * lib/unigbrk.in.h: Add prototype for new function.
8766         * lib/unigbrk/u16-grapheme-len.c: New file.
8767         * tests/unigbrk/test-u16-grapheme-len.c: New file.
8768
8769         New module 'u32-grapheme-len'.
8770         * modules/unigbrk/u32-grapheme-len: New file.
8771         * modules/unigbrk/u32-grapheme-len-tests: New file.
8772         * lib/unigbrk.in.h: Add prototype for new function.
8773         * lib/unigbrk/u32-grapheme-len.c: New file.
8774         * tests/unigbrk/test-u32-grapheme-len.c: New file.
8775
8776         New module 'u8-grapheme-next'.
8777         * modules/unigbrk/u8-grapheme-next: New file.
8778         * modules/unigbrk/u8-grapheme-next-tests: New file.
8779         * lib/unigbrk.in.h: Add prototype for new function.
8780         * lib/unigbrk/u8-grapheme-next.c: New file.
8781         * tests/unigbrk/test-u8-grapheme-next.c: New file.
8782
8783         New module 'u16-grapheme-next'.
8784         * modules/unigbrk/u16-grapheme-next: New file.
8785         * modules/unigbrk/u16-grapheme-next-tests: New file.
8786         * lib/unigbrk.in.h: Add prototype for new function.
8787         * lib/unigbrk/u16-grapheme-next.c: New file.
8788         * tests/unigbrk/test-u16-grapheme-next.c: New file.
8789
8790         New module 'u32-grapheme-next'.
8791         * modules/unigbrk/u32-grapheme-next: New file.
8792         * modules/unigbrk/u32-grapheme-next-tests: New file.
8793         * lib/unigbrk.in.h: Add prototype for new function.
8794         * lib/unigbrk/u32-grapheme-next.c: New file.
8795         * tests/unigbrk/test-u32-grapheme-next.c: New file.
8796
8797         New module 'u8-grapheme-prev'.
8798         * modules/unigbrk/u8-grapheme-prev: New file.
8799         * modules/unigbrk/u8-grapheme-prev-tests: New file.
8800         * lib/unigbrk.in.h: Add prototype for new function.
8801         * lib/unigbrk/u8-grapheme-prev.c: New file.
8802         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
8803
8804         New module 'u16-grapheme-prev'.
8805         * modules/unigbrk/u16-grapheme-prev: New file.
8806         * modules/unigbrk/u16-grapheme-prev-tests: New file.
8807         * lib/unigbrk.in.h: Add prototype for new function.
8808         * lib/unigbrk/u16-grapheme-prev.c: New file.
8809         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
8810
8811         New module 'u32-grapheme-prev'.
8812         * modules/unigbrk/u32-grapheme-prev: New file.
8813         * modules/unigbrk/u32-grapheme-prev-tests: New file.
8814         * lib/unigbrk.in.h: Add prototype for new function.
8815         * lib/unigbrk/u32-grapheme-prev.c: New file.
8816         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
8817
8818         New module 'u8-grapheme-breaks'.
8819         * modules/unigbrk/u8-grapheme-breaks: New file.
8820         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
8821         * lib/unigbrk.in.h: Add prototype for new function.
8822         * lib/unigbrk/u8-grapheme-breaks.c: New file.
8823         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
8824
8825         New module 'u16-grapheme-breaks'.
8826         * modules/unigbrk/u16-grapheme-breaks: New file.
8827         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
8828         * lib/unigbrk.in.h: Add prototype for new function.
8829         * lib/unigbrk/u16-grapheme-breaks.c: New file.
8830         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
8831
8832         New module 'u32-grapheme-breaks'.
8833         * modules/unigbrk/u32-grapheme-breaks: New file.
8834         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
8835         * lib/unigbrk.in.h: Add prototype for new function.
8836         * lib/unigbrk/u32-grapheme-breaks.c: New file.
8837         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
8838
8839         New module 'ulc-grapheme-breaks'.
8840         * modules/unigbrk/ulc-grapheme-breaks: New file.
8841         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
8842         * m4/locale-ar.m4: New file.
8843         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
8844         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
8845         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
8846
8847 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8848
8849         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
8850         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
8851         modified how this file was generated before I initially submitted
8852         the module, but failed to regenerate it.  This meant that several
8853         of the level2 entries were wrong.
8854         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
8855         Remove the division-by-2 that is folded into the table now that
8856         gbrkprop.h has been regenerated properly.  Now -1 entries are
8857         handled correctly.
8858
8859         New module 'unigbrk/uc-gbrk-prop-tests'.
8860         * modules/unigbrk/uc-gbrk-prop-tests: New file.
8861         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
8862         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
8863         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
8864
8865 2011-01-01  Bruno Haible  <bruno@clisp.org>
8866
8867         Avoid use of hexadecimal escapes.
8868         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
8869         instead of hexadecimal escapes.
8870
8871 2011-01-01  Jim Meyering  <meyering@redhat.com>
8872
8873         maint: new rule to update copyright year ranges
8874         * Makefile (update-copyright): New rule.
8875
8876         maint: indent with TABs in Makefile
8877         * Makefile: Expand leading sequences of spaces to TABs
8878
8879         version-etc: update the copyright year it reports
8880         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
8881
8882 2010-12-31  Bruno Haible  <bruno@clisp.org>
8883
8884         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
8885         * lib/isfinite.c (zerof, zerod, zerol): New variables.
8886         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
8887         zero.
8888
8889 2010-12-31  Bruno Haible  <bruno@clisp.org>
8890
8891         pwrite: Work around HP-UX 11.11 bug.
8892         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
8893         works and set REPLACE_PWRITE if not.
8894         * lib/pwrite.c (pwrite): Add an implementation that uses the system
8895         function.
8896         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
8897
8898 2010-12-31  Bruno Haible  <bruno@clisp.org>
8899
8900         pread: Work around HP-UX 11 bugs.
8901         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
8902         and set REPLACE_PREAD if not.
8903         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
8904
8905 2010-12-31  Eric Blake  <eblake@redhat.com>
8906
8907         nl_langinfo: fix YESEXPR on Irix 6.5
8908         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
8909         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
8910         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
8911         it.
8912
8913 2010-12-31  Bruno Haible  <bruno@clisp.org>
8914
8915         iconv: Document HP-UX 11 bug.
8916         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
8917
8918 2010-12-31  Bruno Haible  <bruno@clisp.org>
8919
8920         ldexpl: Fix link error on HP-UX 11.
8921         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
8922         LDEXPL_LIBM, using $ISNANL_LIBM.
8923
8924 2010-12-31  Eric Blake  <eblake@redhat.com>
8925
8926         ftello: avoid compilation failure with SunStudio c89
8927         * lib/ftello.c (ftello): Use lseek, not llseek.
8928
8929         tests: avoid failing coreutils tests on cygwin
8930         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
8931         (create_exe_shims_): Return 0 when skipping.
8932
8933 2010-12-31  Bruno Haible  <bruno@clisp.org>
8934
8935         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
8936         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
8937
8938 2010-12-31  Bruno Haible  <bruno@clisp.org>
8939
8940         waitpid: Fix link error in C++ mode.
8941         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
8942
8943 2010-12-31  Bruno Haible  <bruno@clisp.org>
8944
8945         isnan: Use GCC built-ins when possible.
8946         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
8947         __builtin_isnan.
8948         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
8949         (isnan): Define using GCC built-ins for GCC >= 4.0.
8950
8951 2010-12-31  Bruno Haible  <bruno@clisp.org>
8952
8953         isnand: Fix mistake.
8954         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
8955         __builtin_isnand.
8956
8957 2010-12-31  Bruno Haible  <bruno@clisp.org>
8958
8959         open: Avoid C++ error on HP-UX 11.
8960         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
8961
8962 2010-12-31  Bruno Haible  <bruno@clisp.org>
8963
8964         time_r: Add missing declarations on HP-UX 11.
8965         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
8966         instead of HAVE_LOCALTIME_R.
8967         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
8968         HAVE_LOCALTIME_R always.
8969         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
8970         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
8971         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
8972         HAVE_LOCALTIME_R.
8973         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
8974         * doc/posix-functions/localtime_r.texi: Likewise.
8975
8976 2010-12-29  Eric Blake  <eblake@redhat.com>
8977
8978         mountlist: tweak previous commit
8979         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
8980         Reported by Paul Eggert.
8981
8982         mountlist: fix local drive detection on cygwin
8983         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
8984         that works for cygwin.
8985
8986 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8987
8988         ftoastr, snprintf: ftoastr + snprintf module
8989         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
8990         since the snprintf module now should be good enough here.
8991         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
8992         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
8993         and gl_MODULE_INDICATOR([snprintf]), but the former enables
8994         GNULIB_SNPRINTF only for the test directory, and the latter
8995         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
8996         seems to suffice by itself.
8997
8998 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8999
9000         alloca: one step towards thread-safety
9001         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
9002         need for a static variable.  All callers changed.  This does not
9003         make the alloca replacement thread-safe, but it's one step.
9004
9005         tests: minor indenting change
9006         * tests/init.sh: Sync from coreutils housekeeping patch
9007         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
9008         to keep lines within 80 columns.
9009
9010 2010-12-28  Jim Meyering  <meyering@redhat.com>
9011
9012         regex: don't infloop on persistent failing calloc
9013         * lib/regexec.c (build_trtable): Return failure indication upon
9014         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9015         In glibc, this was fixed for version 2.13:
9016         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
9017
9018 2010-12-28  Bruno Haible  <bruno@clisp.org>
9019             Paul Eggert <eggert@cs.ucla.edu>
9020
9021         linkat: Make implementation robust against system behaviour variations.
9022         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
9023         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
9024         way, and to -2 if it needs a generic runtime test.
9025         * lib/linkat.c (solaris_optimized_link_immediate,
9026         solaris_optimized_link_follow): New functions.
9027         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
9028         (check_same_link): Use it.
9029
9030 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
9031
9032         New module 'unigbrk/base'.
9033         * modules/unigbrk/base: New file.
9034         * lib/unigbrk.in.h: New file.
9035
9036         New module 'unigbrk/uc-gbrk-prop'.
9037         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9038         * modules/unigbrk/uc-gbrk-prop: New file.
9039         * lib/unigbrk/gbrkprop.h: New file.
9040         * lib/unigbrk/uc-gbrk-prop.c: New file.
9041
9042         New module 'unigbrk/uc-is-grapheme-break'.
9043         * modules/unigbrk/uc-is-grapheme-break: New file.
9044         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
9045         * lib/unigbrk/uc-is-grapheme-break.c: New file.
9046         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
9047         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
9048         * tests/unigbrk/GraphemeBreakTest.txt: New file.
9049
9050         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
9051
9052 2010-12-27  Bruno Haible  <bruno@clisp.org>
9053
9054         linkat test: Avoid failure on Solaris 11 2010-11.
9055         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
9056
9057 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9058
9059         utimens: work around glibc rounding bug on more platforms
9060         * lib/utimens.c (fdutimens): Work around rounding bug even if
9061         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
9062         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
9063
9064 2010-12-27  Bruno Haible  <bruno@clisp.org>
9065
9066         select tests: Improve comments.
9067         * tests/test-select.c (do_select): Add comments.
9068
9069 2010-12-27  Bruno Haible  <bruno@clisp.org>
9070
9071         select tests: Safer way of handling timeout.
9072         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
9073         at every invocation.
9074
9075 2010-12-27  Bruno Haible  <bruno@clisp.org>
9076
9077         select tests: Use 'bool' where appropriate.
9078         * tests/test-select.c (connect_to_socket): Change argument type to
9079         'bool'.
9080
9081 2010-12-27  Bruno Haible  <bruno@clisp.org>
9082
9083         select tests: Use existing modules.
9084         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
9085         (configure.ac): Don't test for unistd.h.
9086         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
9087         declared in <unistd.h>.
9088
9089 2010-12-27  Bruno Haible  <bruno@clisp.org>
9090
9091         mbrtowc: Work around a Solaris 7 bug.
9092         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
9093         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
9094         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
9095         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
9096         MBRTOWC_NULL_ARG1_BUG.
9097         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
9098         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
9099         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
9100         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
9101
9102 2010-12-27  Jim Meyering  <meyering@redhat.com>
9103
9104         read-file.c: tweak syntax
9105         * lib/read-file.c (fread_file): Remove space after "*" in function
9106         definitions.
9107
9108 2010-12-27  Bruno Haible  <bruno@clisp.org>
9109
9110         times test: Avoid gcc warnings on OSF/1.
9111         * tests/test-times.c (main): Cast printf arguments from clock_t to
9112         'long int'.
9113
9114 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9115
9116         utimens: work around glibc rounding bug on older Linux kernels
9117         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
9118         on Linux with a glibc whose utimes might not work, then work
9119         around a longstanding glibc bug involving rounding rather than
9120         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
9121         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9122
9123 2010-12-26  Bruno Haible  <bruno@clisp.org>
9124
9125         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
9126         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
9127         _GL_CXXALIAS_SYS.
9128         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9129
9130 2010-12-26  Bruno Haible  <bruno@clisp.org>
9131
9132         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
9133         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
9134         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9135         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
9136         looking for the declaration.
9137         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
9138         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
9139         problem.
9140         * doc/posix-functions/inet_pton.texi: Likewise.
9141
9142 2010-12-26  Bruno Haible  <bruno@clisp.org>
9143
9144         arpa_inet: Use the common idioms with C++ support.
9145         * lib/arpa_inet.in.h: Include c++defs.h.
9146         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
9147         support.
9148         * modules/arpa_inet (Depends-on): Add c++defs.
9149         (Makefile.am): Substitute the contents of c++defs.h.
9150         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
9151         * modules/arpa_inet-c++-tests: New file.
9152         * tests/test-arpa_inet-c++.cc: New file.
9153
9154 2010-12-25  Bruno Haible  <bruno@clisp.org>
9155
9156         Fix more C++ link errors on Solaris 8.
9157         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
9158         $(LIB_EACCESS).
9159         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
9160         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
9161         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
9162         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
9163         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
9164
9165 2010-12-25  Bruno Haible  <bruno@clisp.org>
9166
9167         printf-posix: Fix link error when a non-GCC compiler is used.
9168         * lib/stdio.in.h (printf): When not using GCC, override printf
9169         correctly.
9170         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9171
9172 2010-12-25  Bruno Haible  <bruno@clisp.org>
9173
9174         strerror_r-posix: Update doc.
9175         * doc/posix-functions/strerror_r.texi: Update doc about the return
9176         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
9177
9178 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9179
9180         utimens: simplify the logic of the previous change
9181         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
9182         This should not affect whether the test succeeds or fails.
9183
9184         utimens: configure better on hosts with NFS clock skew
9185         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
9186         uses the clock of the local host.  It might use the clock of the
9187         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
9188         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9189
9190 2010-12-25  Bruno Haible  <bruno@clisp.org>
9191
9192         ptsname test: Avoid failure on Solaris.
9193         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
9194         open a pseudo-terminal; don't use BSD-style ptys.
9195         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
9196
9197 2010-12-25  Bruno Haible  <bruno@clisp.org>
9198
9199         ptsname: Avoid ERANGE failure on some systems.
9200         * lib/ptsname.c (buffer): Increase size.
9201
9202 2010-12-25  Bruno Haible  <bruno@clisp.org>
9203
9204         rename, renameat: Avoid test failures at NFS mounted locations.
9205         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
9206         so that subsequent mkdir calls succeed.
9207
9208 2010-12-25  Bruno Haible  <bruno@clisp.org>
9209
9210         iswblank: Fix C++ link error on Solaris 8.
9211         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
9212         _GL_FUNCDECL_SYS.
9213
9214 2010-12-25  Bruno Haible  <bruno@clisp.org>
9215
9216         unistd: Fix C++ link error on Solaris 8.
9217         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
9218
9219 2010-12-25  Bruno Haible  <bruno@clisp.org>
9220
9221         readlink doc: Mention an old glibc bug.
9222         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
9223
9224 2010-12-25  Bruno Haible  <bruno@clisp.org>
9225
9226         fcntl-h: Fix for use of C++ on glibc systems.
9227         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9228         also on glibc systems in C++ mode.
9229         Reported by Gary V. Vaughan <gary@gnu.org>.
9230
9231 2010-12-25  Bruno Haible  <bruno@clisp.org>
9232
9233         roundl-ieee: Make it work on OSF/1 5.1 with cc.
9234         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
9235
9236 2010-12-25  Bruno Haible  <bruno@clisp.org>
9237
9238         truncl-ieee: Make it work on OSF/1 5.1 with cc.
9239         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
9240         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
9241         test whether truncl works according to ISO C 99 with IEC 60559.
9242         * m4/truncl-ieee.m4: New file.
9243         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
9244         m4/signbit.m4.
9245         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
9246
9247 2010-12-25  Bruno Haible  <bruno@clisp.org>
9248
9249         ceill-ieee: Make it work on OSF/1 5.1 with cc.
9250         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
9251         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
9252         test whether ceill works according to ISO C 99 with IEC 60559.
9253         * m4/ceill-ieee.m4: New file.
9254         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
9255         m4/signbit.m4.
9256         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
9257
9258 2010-12-25  Bruno Haible  <bruno@clisp.org>
9259
9260         Ensure all prerequisites of <wchar.h> are included.
9261         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
9262         before <wchar.h>.
9263         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9264         gl_MBRLEN_NUL_RETVAL): Likewise.
9265         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9266         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
9267         AC_FUNC_MBRTOWC): Likewise.
9268         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9269         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
9270         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9271         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
9272         Likewise.
9273         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9274         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
9275         (gl_WCHAR_H): Improve comments.
9276         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9277
9278 2010-12-25  Bruno Haible  <bruno@clisp.org>
9279
9280         strtok_r: Fix C syntax error in autoconf macro.
9281         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
9282         characters in test program.
9283
9284 2010-12-24  Bruno Haible  <bruno@clisp.org>
9285
9286         ceil, trunc, round: Fix gcc warnings.
9287         * lib/ceil.c (MIN): Undefine before redefining.
9288         * lib/trunc.c (MIN): Likewise.
9289         * lib/round.c (MIN): Likewise.
9290         Include <math.h> first.
9291
9292 2010-12-24  Bruno Haible  <bruno@clisp.org>
9293
9294         select tests: Avoid failures on OSF/1 5.1.
9295         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
9296         failure of closing the last socket; it may fail with ECONNRESET.
9297
9298 2010-12-24  Eric Blake  <eblake@redhat.com>
9299
9300         stdint: avoid HP-UX 10.20 preprocessor bug
9301         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
9302         than #if.
9303         * tests/test-floor2.c (main): Likewise.
9304         Reported by Peter O'Gorman.
9305
9306         pipe: make obsoletion transition easier
9307         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
9308         * modules/pipe (Files): Include revived file.
9309         (Include): Drop reference, to mirror getdate's behavior.
9310
9311 2010-12-24  Bruno Haible  <bruno@clisp.org>
9312
9313         sys_socket: Hide mismatch of declarations on NonStop Kernel.
9314         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
9315         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9316         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9317
9318 2010-12-24  Bruno Haible  <bruno@clisp.org>
9319
9320         gethostname: Ensure declaration on NonStop Kernel.
9321         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
9322         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9323
9324 2010-12-24  Bruno Haible  <bruno@clisp.org>
9325
9326         sys_select: Ensure all necessary types on NonStop Kernel.
9327         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
9328         include <sys/time.h>.
9329         * doc/posix-headers/sys_select.texi: Mention that it's missing on
9330         NonStop Kernel.
9331         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9332
9333 2010-12-24  Bruno Haible  <bruno@clisp.org>
9334
9335         sys_select: Remove unneeded include.
9336         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
9337         have <sys/select.h>.
9338
9339 2010-12-24  Bruno Haible  <bruno@clisp.org>
9340
9341         gethostname: Provide a fallback for HOST_NAME_MAX.
9342         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
9343         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
9344         instead.
9345         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9346
9347 2010-12-24  Bruno Haible  <bruno@clisp.org>
9348
9349         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
9350         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
9351         (SA_RESTART): Likewise.
9352         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9353
9354 2010-12-24  Bruno Haible  <bruno@clisp.org>
9355
9356         signal: Define NSIG.
9357         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
9358         * tests/test-signal.c (nsig): New variable.
9359         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9360
9361 2010-12-24  Bruno Haible  <bruno@clisp.org>
9362
9363         rename, renameat: Avoid test failures on OSF/1 5.1.
9364         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
9365         alternative error codes.
9366         * tests/test-renameat.c (main): Likewise.
9367
9368 2010-12-24  Bruno Haible  <bruno@clisp.org>
9369
9370         *printf: Detect large precisions bug on Solaris 10/SPARC.
9371         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
9372         by Paul Eggert.
9373         * tests/test-snprintf-posix.h (test_function): Add this test code here
9374         too.
9375         * tests/test-sprintf-posix.h (test_function): Likewise.
9376         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9377         * tests/test-vasprintf-posix.c (test_function): Likewise.
9378         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
9379         around by gnulib.
9380         * doc/posix-functions/printf.texi: Likewise.
9381         * doc/posix-functions/snprintf.texi: Likewise.
9382         * doc/posix-functions/sprintf.texi: Likewise.
9383         * doc/posix-functions/vfprintf.texi: Likewise.
9384         * doc/posix-functions/vprintf.texi: Likewise.
9385         * doc/posix-functions/vsnprintf.texi: Likewise.
9386         * doc/posix-functions/vsprintf.texi: Likewise.
9387         * doc/posix-functions/dprintf.texi: Undo last commit.
9388         * doc/posix-functions/vdprintf.texi: Likewise.
9389
9390 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9391
9392         tests: port test-fdutimensat.c to Solaris 8
9393         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
9394         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
9395         On Solaris 8, it fails with errno == ENOSYS, because there is no
9396         futimens (so it can't use the fd), and there is no lutimens (so it
9397         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
9398
9399         vsnprintf: make more consistent with snprintf; doc fixes
9400
9401         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
9402         the byte count return problem was promoted from the snprintf-posix
9403         to the snprintf module.
9404         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9405         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
9406         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
9407         * tests/test-snprintf.c (main): Check the byte count returned.
9408         * tests/test-vsnprintf.c (main): Likewise.
9409
9410 2010-12-23  Eric Blake  <eblake@redhat.com>
9411
9412         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
9413         * modules/sigpipe (License): Relax license.
9414
9415 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9416
9417         doc: document Solaris printf bug with large float precisions
9418         * doc/posix-functions/dprintf.texi (dprintf):
9419         * doc/posix-functions/fprintf.texi (fprintf):
9420         * doc/posix-functions/printf.texi (printf):
9421         * doc/posix-functions/snprintf.texi (snprintf):
9422         * doc/posix-functions/sprintf.texi (sprintf):
9423         * doc/posix-functions/vdprintf.texi (vdprintf):
9424         * doc/posix-functions/vfprintf.texi (vfprintf):
9425         * doc/posix-functions/vprintf.texi (vprintf):
9426         * doc/posix-functions/vsnprintf.texi (vsnprintf):
9427         * doc/posix-functions/vsprintf.texi (vsprintf):
9428         Mention that these functions mishandle large floating point
9429         precisions on Solaris 10.  The same bug is also present in Solaris
9430         8, and I assume earlier.  This causes "cd gnulib-tests; make
9431         check" to fail on Solaris 8 (and I assume, later) when building
9432         the latest coreutils, in test-vasprintf-posix's call to
9433         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
9434         the wide flavors (e.g., wprintf) so this patch just updates the
9435         documentation for the narrow ones.
9436
9437         test-posixtm.c: add two tests
9438         * tests/test-posixtm.c: Add two tests, to highlight the
9439         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
9440         around this bug; this is merely to document it.
9441
9442 2010-12-22  Bruno Haible  <bruno@clisp.org>
9443
9444         getlogin_r: Work around portability problem on OSF/1.
9445         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
9446         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
9447         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
9448         test for a truncated result.
9449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
9450         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
9451         * modules/getlogin_r (Depends-on): Add memchr.
9452         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
9453
9454 2010-12-22  Bruno Haible  <bruno@clisp.org>
9455
9456         ptsname: Avoid test failure on OSF/1 5.1.
9457         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
9458         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
9459         (same_slave): New function.
9460         (main): Use it to compare ptsname's result with the expected file name.
9461
9462 2010-12-22  Bruno Haible  <bruno@clisp.org>
9463
9464         Port extended stdio modules to HP NonStop Kernel.
9465         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
9466         macros.
9467         * lib/fbufmode.c: Update comments.
9468         * lib/fflush.c: Likewise.
9469         * lib/fpurge.c: Likewise.
9470         * lib/freadable.c: Likewise.
9471         * lib/freadahead.c: Likewise.
9472         * lib/freading.c: Likewise.
9473         * lib/freadptr.c: Likewise.
9474         * lib/freadseek.c: Likewise.
9475         * lib/fseeko.c: Likewise.
9476         * lib/fseterr.c: Likewise.
9477         * lib/fwritable.c: Likewise.
9478         * lib/fwriting.c: Likewise.
9479         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9480
9481 2010-12-22  Bruno Haible  <bruno@clisp.org>
9482
9483         ttyname_r: Work around bug on OSF/1 5.1.
9484         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
9485         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
9486         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
9487         present.
9488         * lib/ttyname_r.c (ttyname_r): Update comments.
9489
9490 2010-12-22  Bruno Haible  <bruno@clisp.org>
9491
9492         round: Implement result sign according to IEEE 754.
9493         * lib/round.c (MIN, MINUS_ZERO): New macros.
9494         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
9495         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
9496         * tests/test-round-ieee.c (main): Likewise.
9497         * tests/test-roundl-ieee.c (main): Likewise.
9498
9499         trunc: Implement result sign according to IEEE 754.
9500         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
9501         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
9502         * tests/test-trunc2.c: Include minus-zero.h.
9503         (MINUS_ZERO): New macro.
9504         (trunc_reference): Keep in sync with lib/trunc.c.
9505         * tests/test-truncf2.c: Include minus-zero.h.
9506         (MINUS_ZERO): New macro.
9507         (truncf_reference): Keep in sync with lib/trunc.c.
9508         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
9509         * tests/test-trunc-ieee.c (main): Likewise.
9510         * tests/test-truncl-ieee.c (main): Likewise.
9511
9512         ceil: Implement result sign according to IEEE 754.
9513         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
9514         (FUNC): Return -0.0 for -1 < x < 0.
9515         * tests/test-ceil2.c: Include minus-zero.h.
9516         (MINUS_ZERO): New macro.
9517         (ceil_reference): Keep in sync with lib/ceil.c.
9518         * tests/test-ceilf2.c: Include minus-zero.h.
9519         (MINUS_ZERO): New macro.
9520         (ceilf_reference): Keep in sync with lib/ceil.c.
9521         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
9522         * tests/test-ceil-ieee.c (main): Likewise.
9523         * tests/test-ceill-ieee.c (main): Likewise.
9524
9525         floor: Implement result sign according to IEEE 754.
9526         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
9527         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
9528         * tests/test-floorf2.c (floorf_reference): Likewise.
9529         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
9530         * tests/test-floor-ieee.c (main): Likewise.
9531         * tests/test-floorl-ieee.c (main): Likewise.
9532
9533 2010-12-22  Bruno Haible  <bruno@clisp.org>
9534
9535         getaddrinfo: Update doc.
9536         * doc/posix-functions/gai_strerror.texi: Return type is also different
9537         on AIX and HP-UX.
9538
9539 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9540
9541         getaddrinfo, inet_ntop: Update doc for Solaris.
9542         * doc/posix-functions/gai_strerror.texi: Return type is also an
9543         issue on Solaris 9 and earlier.
9544         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
9545         on Solaris 10 and earlier.
9546
9547 2010-12-21  Bruno Haible  <bruno@clisp.org>
9548
9549         New module 'roundl-ieee'.
9550         * modules/roundl-ieee: New file.
9551         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
9552         test whether roundl works according to ISO C 99 with IEC 60559.
9553         * m4/roundl-ieee.m4: New file.
9554         * modules/roundl-ieee-tests: New file.
9555         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
9556         * tests/test-roundl.c (main): Remove signbit tests.
9557         * modules/roundl-tests (Depends-on): Remove signbit.
9558         * doc/posix-functions/roundl.texi: Mention the new module.
9559
9560 2010-12-21  Bruno Haible  <bruno@clisp.org>
9561
9562         New module 'truncl-ieee'.
9563         * modules/truncl-ieee: New file.
9564         * modules/truncl-ieee-tests: New file.
9565         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
9566         * tests/test-truncl.c (main): Remove signbit tests.
9567         * modules/truncl-tests (Depends-on): Remove signbit.
9568         * doc/posix-functions/truncl.texi: Mention the new module.
9569
9570 2010-12-21  Bruno Haible  <bruno@clisp.org>
9571
9572         New module 'ceill-ieee'.
9573         * modules/ceill-ieee: New file.
9574         * modules/ceill-ieee-tests: New file.
9575         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
9576         * tests/test-ceill.c (main): Remove signbit tests.
9577         * modules/ceill-tests (Depends-on): Remove signbit.
9578         * doc/posix-functions/ceill.texi: Mention the new module.
9579
9580 2010-12-21  Bruno Haible  <bruno@clisp.org>
9581
9582         New module 'floorl-ieee'.
9583         * modules/floorl-ieee: New file.
9584         * modules/floorl-ieee-tests: New file.
9585         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
9586         * tests/test-floorl.c (main): Remove signbit tests.
9587         * modules/floorl-tests (Depends-on): Remove signbit.
9588         * doc/posix-functions/floorl.texi: Mention the new module.
9589
9590 2010-12-21  Bruno Haible  <bruno@clisp.org>
9591
9592         New module 'round-ieee'.
9593         * modules/round-ieee: New file.
9594         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
9595         whether round works according to ISO C 99 with IEC 60559.
9596         * m4/round-ieee.m4: New file.
9597         * modules/round-ieee-tests: New file.
9598         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
9599         * tests/test-round1.c (main): Remove signbit tests.
9600         * modules/round-tests (Depends-on): Remove 'signbit'.
9601         * doc/posix-functions/round.texi: Mention the new module.
9602
9603 2010-12-21  Bruno Haible  <bruno@clisp.org>
9604
9605         New module 'trunc-ieee'.
9606         * modules/trunc-ieee: New file.
9607         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
9608         whether trunc works according to ISO C 99 with IEC 60559.
9609         * m4/trunc-ieee.m4: New file.
9610         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
9611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
9612         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
9613         * modules/trunc-ieee-tests: New file.
9614         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
9615         * tests/test-trunc1.c (main): Remove signbit tests.
9616         * modules/trunc-tests (Depends-on): Remove 'signbit'.
9617         * doc/posix-functions/trunc.texi: Mention the new module.
9618
9619 2010-12-21  Bruno Haible  <bruno@clisp.org>
9620
9621         New module 'ceil-ieee'.
9622         * modules/ceil-ieee: New file.
9623         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
9624         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
9625         ISO C 99 with IEC 60559.
9626         * m4/ceil-ieee.m4: New file.
9627         * modules/ceil (Files): Add lib/ceil.c.
9628         (Depends-on): Add 'float'.
9629         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9630         * lib/math.in.h (ceil): New declaration.
9631         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
9632         REPLACE_CEIL.
9633         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
9634         * modules/ceil-ieee-tests: New file.
9635         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
9636         * tests/test-math-c++.cc: Check the signature of 'ceil'.
9637         * doc/posix-functions/ceil.texi: Mention the new module.
9638
9639 2010-12-21  Bruno Haible  <bruno@clisp.org>
9640
9641         New module 'floor-ieee'.
9642         * modules/floor-ieee: New file.
9643         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
9644         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
9645         ISO C 99 with IEC 60559.
9646         * m4/floor-ieee.m4: New file.
9647         * modules/floor (Files): Add lib/floor.c.
9648         (Depends-on): Add 'float'.
9649         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9650         * lib/math.in.h (floor): New declaration.
9651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
9652         REPLACE_FLOOR.
9653         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
9654         * modules/floor-ieee-tests: New file.
9655         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
9656         * tests/test-math-c++.cc: Check the signature of 'floor'.
9657         * doc/posix-functions/floor.texi: Mention the new module.
9658
9659 2010-12-21  Bruno Haible  <bruno@clisp.org>
9660
9661         New module 'roundf-ieee'.
9662         * modules/roundf-ieee: New file.
9663         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
9664         test whether roundf works according to ISO C 99 with IEC 60559.
9665         * m4/roundf-ieee.m4: New file.
9666         * modules/roundf-ieee-tests: New file.
9667         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
9668         * tests/test-roundf1.c (main): Remove signbit tests.
9669         * modules/roundf-tests (Depends-on): Remove 'signbit'.
9670         * doc/posix-functions/roundf.texi: Mention the new module.
9671
9672 2010-12-21  Bruno Haible  <bruno@clisp.org>
9673
9674         New module 'truncf-ieee'.
9675         * modules/truncf-ieee: New file.
9676         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
9677         test whether truncf works according to ISO C 99 with IEC 60559.
9678         * m4/truncf-ieee.m4: New file.
9679         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
9680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
9681         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
9682         * modules/truncf-ieee-tests: New file.
9683         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
9684         * tests/test-truncf1.c (main): Remove signbit tests.
9685         * modules/truncf-tests (Depends-on): Remove 'signbit'.
9686         * doc/posix-functions/truncf.texi: Mention the new module.
9687
9688 2010-12-21  Bruno Haible  <bruno@clisp.org>
9689
9690         New module 'ceilf-ieee'.
9691         * modules/ceilf-ieee: New file.
9692         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
9693         test whether ceilf works according to ISO C 99 with IEC 60559.
9694         * m4/ceilf-ieee.m4: New file.
9695         * modules/ceilf-ieee-tests: New file.
9696         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
9697         * tests/test-ceilf1.c (main): Remove signbit tests.
9698         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
9699         * doc/posix-functions/ceilf.texi: Mention the new module.
9700
9701 2010-12-21  Bruno Haible  <bruno@clisp.org>
9702
9703         New module 'floorf-ieee'.
9704         * modules/floorf-ieee: New file.
9705         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
9706         test whether floorf works according to ISO C 99 with IEC 60559.
9707         * m4/floorf-ieee.m4: New file.
9708         * modules/floorf-ieee-tests: New file.
9709         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
9710         * tests/test-floorf1.c (main): Remove signbit tests.
9711         * modules/floorf-tests (Depends-on): Remove 'signbit'.
9712         * doc/posix-functions/floorf.texi: Mention the new module.
9713
9714 2010-12-21  Bruno Haible  <bruno@clisp.org>
9715
9716         Support for minus zero in autoconf macros.
9717         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
9718         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
9719         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
9720         * tests/minus-zero.h: Update comments.
9721
9722 2010-12-21  Bruno Haible  <bruno@clisp.org>
9723
9724         Tests for module 'ceil'.
9725         * modules/ceil-tests: New file.
9726         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
9727         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
9728
9729 2010-12-21  Bruno Haible  <bruno@clisp.org>
9730
9731         Tests for module 'floor'.
9732         * modules/floor-tests: New file.
9733         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
9734         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
9735
9736 2010-12-21  Bruno Haible  <bruno@clisp.org>
9737
9738         math: Fix indentation.
9739         * lib/math.in.h (floorf): Fix indentation.
9740
9741 2010-12-21  Bruno Haible  <bruno@clisp.org>
9742
9743         Fix cross-compilation guesses on Solaris.
9744         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
9745         not match "solaris2.10".
9746         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9747         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
9748         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
9749
9750 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
9751
9752         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
9753         This fixes a problem observed with the latest coreutils snapshot
9754         that caused a test to fail on Solaris 8.  src/csplit.c's call
9755         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
9756         earlier, instead of returning the number of bytes that would have
9757         been generated; this causes csplit to incorrectly report memory
9758         exhaustion.
9759         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
9760         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
9761         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
9762         comments to match.
9763         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
9764         Fix typo in matching older versions of Solaris: "solaris2.10"
9765         is matched by the shell pattern "solaris2.[0-9]*".  This matters
9766         only for guessing while cross-compiling.
9767         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
9768
9769 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
9770
9771         ftoastr: fix comment again
9772         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9773         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
9774         Also, simplify example a bit by using flags = 0.
9775
9776 2010-12-20  Bruno Haible  <bruno@clisp.org>
9777
9778         round*, trunc*: Update documentation regarding glibc.
9779         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
9780         * doc/posix-functions/round.texi: Likewise.
9781         * doc/posix-functions/roundl.texi: Likewise.
9782         * doc/posix-functions/truncf.texi: Likewise.
9783         * doc/posix-functions/trunc.texi: Likewise.
9784         * doc/posix-functions/truncl.texi: Likewise.
9785
9786 2010-12-20  Bruno Haible  <bruno@clisp.org>
9787
9788         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
9789         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
9790         * doc/posix-functions/round.texi: Likewise.
9791         * doc/posix-functions/roundl.texi: Likewise.
9792
9793 2010-12-20  Bruno Haible  <bruno@clisp.org>
9794
9795         ttyname_r: Add missing declaration on HP-UX 11.
9796         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
9797         HAVE_TTYNAME_R.
9798         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
9799         declared. Set HAVE_TTYNAME_R always.
9800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9801         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
9802         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
9803         HAVE_TTYNAME_R.
9804         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
9805
9806 2010-12-20  Bruno Haible  <bruno@clisp.org>
9807
9808         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
9809         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
9810         * doc/posix-functions/getlogin_r.texi: Likewise.
9811         * tests/test-getlogin.c: Include <errno.h>.
9812         (main): Avoid test failure on HP-UX 11.11.
9813         * tests/test-getlogin_r.c (main): Likewise.
9814
9815 2010-12-20  Bruno Haible  <bruno@clisp.org>
9816
9817         getlogin_r: Add missing declaration on HP-UX 11.
9818         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
9819         declared also when it exists as a function.
9820         * doc/posix-functions/getlogin_r.texi: Document this workaround.
9821
9822 2010-12-20  Bruno Haible  <bruno@clisp.org>
9823
9824         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
9825         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
9826         through wcrtomb.
9827
9828 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9829
9830         ftoastr: fix comment
9831         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9832         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
9833
9834 2010-12-19  Bruno Haible  <bruno@clisp.org>
9835
9836         isnan: Ensure it is a macro.
9837         * lib/math.in.h (isnan): Define as a macro if not already a macro.
9838         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
9839         Solaris.
9840
9841 2010-12-19  Bruno Haible  <bruno@clisp.org>
9842
9843         ldexpl test: Fix link error on OSF/1 5.1.
9844         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
9845
9846 2010-12-19  Bruno Haible  <bruno@clisp.org>
9847
9848         wctype: Make it work in C++ mode on OSF/1 5.1.
9849         * lib/wctype.in.h (iswblank): Declare but not define here.
9850         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
9851         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
9852         * modules/wctype (Files): Add lib/iswblank.c.
9853
9854 2010-12-19  Bruno Haible  <bruno@clisp.org>
9855
9856         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
9857         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
9858         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
9859
9860 2010-12-19  Bruno Haible  <bruno@clisp.org>
9861
9862         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
9863         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
9864         _POSIX_PII_SOCKET.
9865         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
9866         * doc/posix-functions/recvfrom.texi: Likewise.
9867         * doc/posix-functions/send.texi: Likewise.
9868         * doc/posix-functions/sendto.texi: Likewise.
9869
9870 2010-12-19  Bruno Haible  <bruno@clisp.org>
9871
9872         tcgetsid: Add missing declaration on OSF/1 5.1.
9873         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
9874         HAVE_TCGETSID.
9875         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
9876         Don't set HAVE_TCGETSID.
9877         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
9878         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
9879         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
9880         HAVE_TCGETSID.
9881         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
9882
9883 2010-12-19  Bruno Haible  <bruno@clisp.org>
9884
9885         stdio: Fix problem with popen() declaration on OSF/1 5.1.
9886         * lib/stdio.in.h: During the include_next statement, let recursive
9887         includes of this file include only the system header file.
9888
9889 2010-12-19  Bruno Haible  <bruno@clisp.org>
9890
9891         iconv_open: Fix regression from 2010-12-04.
9892         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
9893         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
9894
9895 2010-12-19  Bruno Haible  <bruno@clisp.org>
9896
9897         stdbool test: Avoid a gcc warning.
9898         * tests/test-stdbool.c (main): Fail if e1 is false.
9899         Reported by Jim Meyering.
9900
9901 2010-12-19  Jim Meyering  <meyering@redhat.com>
9902
9903         setenv: restore to working order
9904         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
9905         mistakenly removed.
9906         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
9907         HAVE_SETENV.
9908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
9909         HAVE_SETENV.
9910
9911 2010-12-19  Bruno Haible  <bruno@clisp.org>
9912
9913         Document some different function declarations on OSF/1 5.1.
9914         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
9915         * doc/posix-functions/inet_ntop.texi: Likewise.
9916         * doc/posix-functions/gethostname.texi: Likewise.
9917         * lib/unistd.in.h (gethostname): Update comment.
9918
9919 2010-12-19  Bruno Haible  <bruno@clisp.org>
9920
9921         doc: Mention vasprintf-posix module.
9922         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
9923         the 'vasprintf-posix' module.
9924         * doc/glibc-functions/vasprintf.texi: Likewise.
9925
9926 2010-12-19  Bruno Haible  <bruno@clisp.org>
9927
9928         unsetenv: Add missing declaration on OSF/1 5.1.
9929         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
9930         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
9931         Don't set HAVE_UNSETENV. In the test program, set _BSD.
9932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
9933         not HAVE_UNSETENV.
9934         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
9935         HAVE_UNSETENV.
9936         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
9937
9938 2010-12-19  Bruno Haible  <bruno@clisp.org>
9939
9940         setenv: Add missing declaration on OSF/1 5.1.
9941         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
9942         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
9943         declared. Don't set HAVE_SETENV.
9944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
9945         not HAVE_SETENV.
9946         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
9947         HAVE_SETENV.
9948         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
9949
9950 2010-12-19  Bruno Haible  <bruno@clisp.org>
9951
9952         nl_langinfo tests: Avoid gcc warning.
9953         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
9954
9955 2010-12-19  Bruno Haible  <bruno@clisp.org>
9956
9957         mknod: Avoid error in C++ mode on OSF/1 with GCC.
9958         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
9959         _GL_CXXALIAS_SYS.
9960
9961 2010-12-19  Bruno Haible  <bruno@clisp.org>
9962
9963         stdbool: Relax test.
9964         * tests/test-stdbool.c (e): Don't require that casts from a variable's
9965         address to 'bool' work in static initializer, for compilers other than
9966         GCC.
9967
9968 2010-12-19  Bruno Haible  <bruno@clisp.org>
9969
9970         ftello: Add missing declaration on OSF/1 5.1.
9971         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
9972         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
9973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
9974         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
9975         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
9976
9977 2010-12-19  Bruno Haible  <bruno@clisp.org>
9978
9979         fseeko: Add missing declaration on OSF/1 5.1.
9980         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
9981         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
9982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
9983         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
9984         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
9985
9986 2010-12-19  Bruno Haible  <bruno@clisp.org>
9987
9988         fchdir: Add missing declaration on OSF/1 5.1.
9989         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
9990         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
9991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
9992         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
9993         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
9994
9995 2010-12-19  Bruno Haible  <bruno@clisp.org>
9996
9997         relocatable-prog-wrapper: Separate from relocatable-prog.
9998         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
9999         uninstall-relocwrapper rule here.
10000         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
10001         Reported by Ian Beckwith <ianb@erislabs.net>.
10002
10003 2010-12-19  Bruno Haible  <bruno@clisp.org>
10004
10005         unistr/u8-mbsnlen: Add missing dependency.
10006         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
10007         Reported by Ian Beckwith <ianb@erislabs.net>.
10008
10009 2010-12-19  Bruno Haible  <bruno@clisp.org>
10010
10011         iconv: Make it possible again to use this module without 'iconv-h'.
10012         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
10013         if it is not defined.
10014         Reported by Ian Beckwith <ianb@erislabs.net>.
10015
10016 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10017
10018         acl: port to Solaris 8 when copying from tmpfs to ufs
10019         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
10020         error number.  Problem observed on Solaris 8 with latest
10021         coreutils, with "mv A B", where A is on a tmpfs file system and B
10022         is on a ufs file system.  This caused coreutils' mv/part-symlink
10023         test to fail.
10024
10025         tests: set fail=0 at start
10026         * tests/init.sh (setup_): Move fail=0 initialization here ...
10027         (mktempd_): ... from here, so that tests can rely on fail being
10028         set to 0 initially.  This fixes a problem in coreutils; see:
10029         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
10030
10031 2010-12-18  Bruno Haible  <bruno@clisp.org>
10032
10033         memmem-simple: Stylistic changes.
10034         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
10035         Fix preprocessor directive indentation.
10036
10037 2010-12-15  Pádraig Brady <P@draigBrady.com>
10038
10039         memmem, memmem-simple: reorganize and expand empty needle check
10040         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
10041         functional checks to memmem-simple so that one has a fully functional
10042         memmem by using just this module.
10043         Restrict the performance only check to the memmem module.
10044         Also expand the empty needle check to ensure the correct
10045         pointer is returned, not just a non NULL pointer.
10046         * doc/glibc-functions/memmem.texi: Rearrange the portability
10047         documentation to correlate with the rearranged checks.
10048         Clarify exactly how the memmem and memmem-simple modules
10049         relate to each other.
10050
10051 2010-12-15  Pádraig Brady <P@draigBrady.com>
10052             Bruno Haible  <bruno@clisp.org>
10053
10054         Improve cross-compilation guesses for uClibc.
10055         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
10056         that uClibc does not have the glibc bug.
10057         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
10058         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
10059
10060 2010-12-14  Eric Blake  <eblake@redhat.com>
10061
10062         configmake: provide fallbacks for oldest supported autotools
10063         * m4/configmake.m4: New file.
10064         * modules/configmake (Files): Ship it.
10065         (configure.ac): Use it to guarantee fallbacks.
10066
10067 2010-12-13  Pádraig Brady <P@draigBrady.com>
10068
10069         read-file: Improve handling of large files
10070         * lib/read-file.c (fread_file): Minimize realloc()s
10071         for regular files, and better manage sizes around SIZE_MAX.
10072
10073 2010-12-13  Eric Blake  <eblake@redhat.com>
10074
10075         cloexec, fcntl: relax license
10076         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
10077         consent from all contributors.
10078         * modules/fcntl (License): Likewise.
10079
10080 2010-12-10  Bruno Haible  <bruno@clisp.org>
10081
10082         Tests for module 'pipe-posix'.
10083         * modules/pipe-posix-tests: New file.
10084         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
10085
10086 2010-12-10  Bruno Haible  <bruno@clisp.org>
10087
10088         pipe-posix: Make it work in C++ mode.
10089         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
10090         (pipe): Use common idiom, not a macro definition.
10091         * lib/pipe.c: New file.
10092         * m4/pipe.m4: New file.
10093         * modules/pipe-posix (Description): Enhance.
10094         (Files): Add lib/pipe.c, m4/pipe.m4.
10095         (configure.ac): Invoke gl_FUNC_PIPE.
10096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
10097         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
10098         * tests/test-unistd-c++.cc: Check the signature of pipe.
10099
10100 2010-12-10  Bruno Haible  <bruno@clisp.org>
10101
10102         Rename module 'pipe' to 'spawn-pipe'.
10103         * modules/spawn-pipe: New file, renamed from modules/pipe.
10104         (Files, configure.ac, Makefile.am): Update.
10105         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
10106         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
10107         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
10108         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
10109         "spawn-pipe.h" instead of "pipe.h".
10110         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
10111         to gl_SPAWN_PIPE.
10112         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
10113         (Files, Makefile.am): Update.
10114         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
10115         Update.
10116         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
10117         Include "spawn-pipe.h" instead of "pipe.h".
10118         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
10119         * lib/javacomp.c: Likewise.
10120         * lib/javaversion.c: Likewise.
10121         * lib/pipe-filter-gi.c: Likewise.
10122         * lib/pipe-filter-ii.c: Likewise.
10123         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
10124         * modules/javacomp (Depends-on): Likewise.
10125         * modules/javaversion (Depends-on): Likewise.
10126         * modules/pipe-filter-gi (Depends-on): Likewise.
10127         * modules/pipe-filter-ii (Depends-on): Likewise.
10128         * MODULES.html.sh (Executing programs): Update.
10129         * NEWS: Mention the change.
10130
10131 2010-12-10  Eric Blake  <eblake@redhat.com>
10132
10133         pipe-posix: new module
10134         * modules/pipe-posix: New file.
10135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
10136         (gl_UNISTD_H): Check for declaration.
10137         * modules/unistd (Makefile.am): Substitute it.
10138         * lib/unistd.in.h (pipe): Provide it for mingw.
10139         * doc/posix-functions/pipe.texi (pipe): Update documentation.
10140         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
10141
10142 2010-12-07  Bruno Haible  <bruno@clisp.org>
10143
10144         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
10145         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
10146         u8_strcmp_gnu.
10147         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
10148
10149 2010-12-06  Bruno Haible  <bruno@clisp.org>
10150
10151         Update internal documentation.
10152         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
10153
10154 2010-12-04  Bruno Haible  <bruno@clisp.org>
10155
10156         Put more information about failed tests into the test return codes.
10157         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
10158         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
10159         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10160         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10161         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10162         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10163         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10164         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10165         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
10166         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10167         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
10168         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10169         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10170         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10171         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
10172         returns a bit mask.
10173         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10174         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
10175         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
10176         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
10177         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10178         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10179         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10180         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10181         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10182         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10183         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10184         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10185         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10186         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10187         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10188         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10189         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
10190         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
10191         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10192         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
10193         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10194         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10195         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10196         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10197         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10198         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10199         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
10200         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10201         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10202         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
10203         gl_PRINTF_PRECISION): Likewise.
10204         * m4/regex.m4 (gl_REGEX): Likewise.
10205         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10206         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10207         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
10208         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10209         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10210         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10211         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10212         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
10213         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10214         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10215         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10216         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10217         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10218         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10219         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10220         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10221         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10222         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10223         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10224         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
10225         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
10226         enumerated value.
10227         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
10228
10229 2010-12-04  Bruno Haible  <bruno@clisp.org>
10230
10231         Update for Solaris 11 2010-11.
10232         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
10233         Express, released in November 2010.
10234
10235 2010-12-04  Bruno Haible  <bruno@clisp.org>
10236
10237         nproc: Relax license.
10238         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
10239         and Paul Eggert.
10240         Requested by Ludovic Courtès <ludo@gnu.org>.
10241
10242 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10243
10244         utimecmp: fine-grained src to nearby coarse-grained dest
10245
10246         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
10247         and the source is on a file system with higher-resolution time
10248         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
10249         not work, and the time stamps are close together, the algorithm to
10250         determine the exact resolution from the read-back mtime was buggy:
10251         it had a "!=" where it should have had an "==".  This bug has been
10252         in the code ever since it was introduced to gnulib.
10253         Problem reported by Dan Jacobson in
10254         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
10255
10256 2010-11-30  Bruno Haible  <bruno@clisp.org>
10257
10258         strerror_r-posix: Fix autoconf test.
10259         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
10260
10261 2010-11-28  Bruno Haible  <bruno@clisp.org>
10262             Paul Eggert  <eggert@cs.ucla.edu>
10263
10264         Tests for module 'getdomainname'.
10265         * modules/getdomainname-tests: New file.
10266         * tests/test-getdomainname.c: New file, based on
10267         tests/test-gethostname.c.
10268
10269 2010-11-28  Bruno Haible  <bruno@clisp.org>
10270             Paul Eggert  <eggert@cs.ucla.edu>
10271
10272         getdomainname: Use the system function when possible.
10273         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
10274         (getdomainname): Replace if needed. Provide the declaration if it is
10275         missing. Don't use _GL_CXXALIAS_SYS_CAST.
10276         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
10277         (getdomainname): When the system has getdomainname, call the system
10278         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
10279         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10280         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
10281         found in libnsl. Look for the declaration also in <netdb.h>. Replace
10282         the function if its second argument is of type 'int' or if it is found
10283         in libnsl.
10284         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
10285         <sys/systeminfo.h> and sysinfo().
10286         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
10287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10288         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
10289         HAVE_GETDOMAINNAME.
10290         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
10291         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
10292         * doc/glibc-functions/getdomainname.texi: Document the problems with
10293         the getdomainname declaration.
10294
10295 2010-11-28  Bruno Haible  <bruno@clisp.org>
10296
10297         sys_socket: Ensure ss_family field on AIX.
10298         * lib/sys_socket.in.h (ss_family): New macro definition.
10299         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
10300         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
10301         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10302         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10303         * modules/sys_socket (Makefile.am): Substitute
10304         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10305         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
10306
10307 2010-11-27  Bruno Haible  <bruno@clisp.org>
10308
10309         readline: Improve configure output.
10310         * m4/readline.m4 (gl_FUNC_READLINE): Make the
10311         "checking for readline..." result understandable.
10312
10313 2010-11-27  Bruno Haible  <bruno@clisp.org>
10314
10315         *printf-posix: Detect a bug on Solaris 10/x86.
10316         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
10317         for floating-point output.
10318         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
10319         directive.
10320         * tests/test-snprintf-posix.h (test_function): Likewise.
10321         * tests/test-sprintf-posix.h (test_function): Likewise.
10322         * tests/test-vasprintf-posix.c (test_function): Likewise.
10323         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
10324         * doc/posix-functions/printf.texi: Likewise.
10325         * doc/posix-functions/snprintf.texi: Likewise.
10326         * doc/posix-functions/sprintf.texi: Likewise.
10327         * doc/posix-functions/vfprintf.texi: Likewise.
10328         * doc/posix-functions/vprintf.texi: Likewise.
10329         * doc/posix-functions/vsnprintf.texi: Likewise.
10330         * doc/posix-functions/vsprintf.texi: Likewise.
10331         * doc/glibc-functions/obstack_printf.texi: Likewise.
10332         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10333
10334 2010-11-27  Bruno Haible  <bruno@clisp.org>
10335
10336         Fix link error when module libunistring-optional is in use.
10337         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
10338         * modules/striconveha-tests (Makefile.am): Likewise.
10339
10340 2010-11-27  Bruno Haible  <bruno@clisp.org>
10341
10342         regex: Mention link dependencies.
10343         * modules/regex (Link): New section.
10344         * modules/rpmatch (Link): Likewise.
10345         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
10346
10347 2010-11-27  Bruno Haible  <bruno@clisp.org>
10348
10349         ftoastr: Fix compilation error on Solaris.
10350         * lib/ftoastr.c: Include <config.h>.
10351
10352 2010-11-27  Bruno Haible  <bruno@clisp.org>
10353
10354         getloadavg: Update documentation.
10355         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
10356
10357 2010-11-27  Bruno Haible  <bruno@clisp.org>
10358
10359         sys_socket: Fix test whether the functions are declared.
10360         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
10361         not <sys/select.h>.
10362
10363 2010-11-27  Bruno Haible  <bruno@clisp.org>
10364
10365         getpass: Make sure to get system declaration on some platforms.
10366         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
10367         gl_USE_SYSTEM_EXTENSIONS.
10368         * modules/getpass (Depends-on): Add extensions.
10369
10370 2010-11-26  Bruno Haible  <bruno@clisp.org>
10371
10372         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
10373         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
10374         'iconv' module is present.
10375         (ICONV_CONST): New macro.
10376         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
10377         ICONV_CONST.
10378         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
10379         set ICONV_CONST.
10380         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
10381         here.
10382         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
10383         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
10384         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
10385         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
10386         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
10387         present.
10388
10389 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10390
10391         ftoastr: comment fix
10392         * lib/ftoastr.c: "little" -> "little or no" in comment
10393
10394 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
10395
10396         stdint: port to GCC 4.3 + OSX + Octave
10397         On this platform, stdint.h is buggy and defines int64_t to long
10398         long int.  The replacement defined it to long int, causing
10399         problems with C++ style name mangling.  Instead, trust the system
10400         definition if INT64_MAX is defined, and likewise for the unsigned
10401         variant.   Problem reported by Jarno Rajahalme in
10402         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
10403         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
10404         and don't mess with int64_t and INT64_MAX in this case.
10405         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
10406
10407 2010-11-24  Bruno Haible  <bruno@clisp.org>
10408
10409         doc: Corrections regarding MacOS X 10.4 and 10.5.
10410         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
10411         MacOS X.
10412         Reported by Simon Josefsson.
10413
10414 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
10415
10416         Uninstall ".bin" files installed by relocwrapper.
10417         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
10418         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
10419         unless it is already there.
10420
10421 2010-11-21  Bruno Haible  <bruno@clisp.org>
10422
10423         Update for NetBSD 5.0.
10424         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10425         NetBSD; the test fails on NetBSD 5.0.
10426         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10427         about NetBSD.
10428
10429 2010-11-21  Bruno Haible  <bruno@clisp.org>
10430
10431         Update for HP-UX 11.23 and HP-UX 11.31.
10432         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
10433         HP-UX.
10434
10435 2010-11-21  Bruno Haible  <bruno@clisp.org>
10436
10437         Update for MacOS X 10.5.
10438         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10439         MacOS X; the test fails on MacOS X 10.5.8.
10440         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10441         about MacOS X.
10442
10443 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
10444
10445         bootstrap: add bootstrap_sync option.
10446         See discussion at
10447         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
10448         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
10449         * build-aux/bootstrap: Accept --bootstrap-sync to update
10450         bootstrap if it is not identical to the local gnulib's
10451         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
10452         enable this by default.  Accept --no-bootstrap-sync to disable
10453         it.
10454
10455 2010-11-20  Bruno Haible  <bruno@clisp.org>
10456
10457         Ensure that <features.h> is included before __GLIBC__ is tested.
10458         * lib/printf-parse.h: Include <features.h>.
10459         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
10460         Reported by Mike Frysinger <vapier@gentoo.org>.
10461
10462         Ensure that <features.h> is included before __GLIBC__ is tested.
10463         * lib/wchar.in.h: Include <features.h>.
10464         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
10465         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
10466         Reported by Mike Frysinger <vapier@gentoo.org>.
10467
10468         Ensure that <features.h> is included before __GLIBC__ is tested.
10469         * lib/arpa_inet.in.h: Include <features.h>.
10470         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
10471         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
10472         Reported by Mike Frysinger <vapier@gentoo.org>.
10473
10474         Ensure that <features.h> is included before __GLIBC__ is tested.
10475         * build-aux/link-warning.h: Include <features.h>.
10476         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
10477         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
10478         Reported by Mike Frysinger <vapier@gentoo.org>.
10479
10480         Ensure that <features.h> is included before __GLIBC__ is tested.
10481         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
10482         Reported by Mike Frysinger <vapier@gentoo.org>.
10483
10484 2010-11-20  Bruno Haible  <bruno@clisp.org>
10485
10486         memmem: Fix autoconf test.
10487         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
10488
10489 2010-11-20  Bruno Haible  <bruno@clisp.org>
10490
10491         Port to uClibc.
10492         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
10493         * lib/fcntl.in.h: Likewise.
10494         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
10495         * lib/mbrtowc.c (mbrtowc): Likewise.
10496         * lib/relocatable.c (find_shared_library_fullname): Likewise.
10497         * lib/strerror_r.c: Likewise.
10498         * lib/unistr/u8-strnlen.c: Likewise.
10499         * lib/vasnprintf.c (decimal_point_char): Likewise.
10500         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10501         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10502         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10503         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
10504         * tests/test-sigaction.c (handler, main): Likewise.
10505         * lib/freading.h: Treat uClibc like a non-glibc platform.
10506         * lib/freading.c: Likewise.
10507         * lib/gettext.h: Likewise.
10508         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
10509         Likewise.
10510         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
10511         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10512         * lib/propername.c (proper_name_utf8): Likewise.
10513         * lib/spawn.in.h: Likewise.
10514         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
10515         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
10516         mem_cd_iconveh_internal): Likewise.
10517         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
10518         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10519         strstr, strcasestr): Likewise.
10520         * lib/unicodeio.c (unicode_to_mb): Likewise.
10521         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
10522         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
10523         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
10524         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
10525         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
10526         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
10527         * lib/unistr/u8-stpncpy.c: Likewise.
10528         * lib/vasnprintf.c (VASNPRINTF): Likewise.
10529         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
10530         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10531         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10532         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
10533         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
10534         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
10535         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
10536         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10537         Likewise.
10538         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10539         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10540         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10541         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10542         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10543         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10544         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10545         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10546         * tests/test-getopt.h (OPTIND_MIN): Likewise.
10547         * tests/test-striconveha.c (main): Likewise.
10548         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10549         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
10550         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
10551         * doc/posix-functions/getline.texi: Likewise.
10552         Reported by Mike Frysinger <vapier@gentoo.org>.
10553
10554 2010-11-20  Bruno Haible  <bruno@clisp.org>
10555
10556         nproc: Fix condition.
10557         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
10558         HAVE_PTHREAD_AFFINITY_NP.
10559
10560 2010-11-20  Bruno Haible  <bruno@clisp.org>
10561
10562         Fix a comment.
10563         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
10564
10565 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10566
10567         ftoastr: don't assume snprintf
10568         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
10569         Implement a subset of snprintf here, by using sprintf safely.
10570         * modules/ftoastr (Depends-on): Remove snprintf.
10571
10572 2010-11-19  Jim Meyering  <meyering@redhat.com>
10573
10574         test-rename.h: fix compilation failure
10575         * tests/test-rename.h (test_rename): Add omitted "}".
10576
10577 2010-11-17  Jim Meyering  <meyering@redhat.com>
10578
10579         maint.mk: add a URL discussing the no-@acronym policy
10580         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
10581
10582 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10583
10584         ftoastr: depend on snprintf, improve comments
10585         * lib/ftoastr.c: Also mention Loitsch's draft.
10586         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
10587         needed in the current implementation, but it might simplify
10588         speeding up the code later.
10589         * modules/ftoastr: Depend on snprintf; this improves portability.
10590         Suggested by Bruno Haible in the same email.
10591
10592         ftoastr: port to hosts lacking strtof and strtold
10593         Problem reported by Bruno Haible in
10594         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
10595         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
10596         environment and strtold (and presumably strtof) are not available.
10597         * modules/ftoastr (Files): Add m4/c-strtod.m4.
10598         (configure.ac): Require gl_C99_STRTOLD.
10599
10600 2010-11-18  Bruno Haible  <bruno@clisp.org>
10601
10602         c-strtold: Avoid link error on AIX 7.
10603         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
10604         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
10605         (gl_C_STRTOLD): Test whether strtold_l exists.
10606         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10607
10608 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10609
10610         intprops: new macro INT_BITS_STRLEN_BOUND
10611         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
10612         ftoastr.h.  This exposes an internal of intprops.h that was formerly
10613         not exposed.  Also, it uses a slightly tighter bound than before;
10614         though this makes no practical difference, we might as well be as
10615         tight as we easily can.
10616
10617         ftoastr: new module, for lossless conversion of floats to short strings
10618         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
10619         * modules/ftoastr: New files.
10620
10621 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
10622
10623         bootstrap: port to Solaris sed
10624         * build-aux/bootstrap (get_version): Port to Solaris sed.
10625         See Ralf Wildenhues's note in
10626         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
10627
10628 2010-11-14  Jim Meyering  <meyering@redhat.com>
10629
10630         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
10631         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
10632         and move definition closer to sole use.
10633
10634 2010-11-13  Jim Meyering  <meyering@redhat.com>
10635
10636         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
10637         Now we require at least autoconf-2.59, which means the work-around
10638         is no longer needed.
10639         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
10640         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10641         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10642         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
10643         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10644
10645 2010-11-13  Bruno Haible  <bruno@clisp.org>
10646
10647         rename, renameat: Avoid test failures at NFS mounted locations.
10648         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
10649         functions.
10650         (test_rename): Use assert_nonexistent.
10651         * tests/test-rename.c: Include <dirent.h>.
10652         * tests/test-renameat.c: Likewise.
10653         Reported by Gary V. Vaughan <gary@gnu.org>.
10654
10655         rename, renameat: Document Linux bug with NFS
10656         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
10657         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
10658         * doc/posix-functions/renameat.texi: Likewise.
10659         Suggested by Eric Blake.
10660
10661 2010-11-13  Bruno Haible  <bruno@clisp.org>
10662
10663         rename test: Add comments.
10664         * tests/test-rename.h (test_rename): Add structure and comments.
10665
10666 2010-11-13  Eric Blake  <eblake@redhat.com>
10667
10668         maintainer-makefile: cover a few more files
10669         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
10670         scripts generated within C files, for libvirt.
10671
10672 2010-11-13  Bruno Haible  <bruno@clisp.org>
10673
10674         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
10675         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
10676         character, return the number of bytes that belong together, not always
10677         1.
10678         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10679         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10680         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10681         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
10682         number of bytes of an invalid character.
10683         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
10684         (main): Invoke it.
10685         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
10686         results.
10687         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
10688         malformed byte sequences.
10689         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
10690         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
10691         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
10692         Reported by Ben Pfaff and Paolo Bonzini.
10693
10694 2010-11-13  Bruno Haible  <bruno@clisp.org>
10695
10696         openat: Work around glibc bug with fchownat() and empty file names.
10697         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
10698         (gl_FUNC_FCHOWNAT): Invoke it.
10699         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
10700         * doc/posix-functions/fchownat.texi: Document the glibc bug.
10701         Reported by Gary V. Vaughan <gary@gnu.org>.
10702
10703 2010-11-13  Bruno Haible  <bruno@clisp.org>
10704
10705         openat: Ensure autoconf macro ordering.
10706         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
10707         gl_USE_SYSTEM_EXTENSIONS.
10708         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
10709
10710 2010-11-13  Bruno Haible  <bruno@clisp.org>
10711
10712         Update comments.
10713         * lib/unistr/u8-check.c: Update file name in comments.
10714         * lib/unistr/u8-mblen.c: Likewise.
10715         * lib/unistr/u8-prev.c: Likewise.
10716         * lib/unistr/u8-strmblen.c: Likewise.
10717         * lib/unistr/u8-strmbtouc.c: Likewise.
10718
10719 2010-11-13  Jim Meyering  <meyering@redhat.com>
10720
10721         tests: avoid test failure on Solaris 10 due to lack of PATH export
10722         * tests/test-update-copyright.sh: Don't forget to export PATH.
10723
10724         init.sh: ensure that IFS is defined, just in case...
10725         * tests/init.sh (setup_): Ensure that IFS is defined,
10726         so that saving and restoring it works as expected.  This
10727         appears to be useful at least for an old version of dash
10728         from a long time ago (RH 6).  See here for details:
10729         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
10730
10731         maint.mk: tighten "test a == b" check
10732         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
10733         test to files that contain something like #!/bin/sh.
10734         Without this, coreutils would get two false positives in
10735         the comments of C source files.
10736
10737 2010-11-12  Eric Blake  <eblake@redhat.com>
10738
10739         bootstrap: fix typo in previous attempt
10740         * build-aux/bootstrap (buildreq): Correct the grouping.
10741         Reported by Paul Eggert.
10742
10743         maintainer-makefile: prohibit test x == x
10744         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
10745         Based on a report by Matthias Bolte.
10746
10747         bootstrap: allow FreeBSD gzip
10748         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
10749         which has no '.' and goes to stderr.
10750         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
10751         Reported by Matthias Bolte.
10752
10753         maintainer-makefile: check for i18n setup
10754         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
10755         will likely work.
10756
10757 2010-11-12  Bruno Haible  <bruno@clisp.org>
10758
10759         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
10760         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
10761         * lib/nanosleep.c (nanosleep): Likewise.
10762
10763 2010-11-11  Bruno Haible  <bruno@clisp.org>
10764
10765         fcntl-h: Fix for use of C++ on glibc systems.
10766         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10767         also on glibc systems in C++ mode.
10768         Reported by Gary V. Vaughan <gary@gnu.org>.
10769
10770 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10771
10772         mknod: avoid false failure with dash
10773         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
10774
10775 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
10776
10777         unlink: Fix "is it should" typo in diagnostic.
10778         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
10779         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
10780
10781 2010-11-11  Bruno Haible  <bruno@clisp.org>
10782
10783         Tests for module 'strerror_r-posix'.
10784         * modules/strerror_r-posix-tests: New file.
10785         * tests/test-strerror_r.c: New file.
10786         * tests/test-string-c++.cc: Check the signature of strerror_r.
10787
10788         New module 'strerror_r-posix'.
10789         * lib/string.in.h (strerror_r): New declaration.
10790         * lib/strerror_r.c: New file.
10791         * m4/strerror_r.m4: New file.
10792         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
10793         of strerror_r.
10794         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
10795         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10796         * modules/strerror_r-posix: New file.
10797         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
10798         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10799         * doc/posix-functions/strerror_r.texi: Mention the new module and the
10800         portability problems.
10801
10802 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
10803
10804         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
10805         line is also considered for output. Quoted function name in shell
10806         command, so temporary files for functions like MyClass::operator()
10807         are removed correctly without errors.
10808
10809 2010-11-09  Bruno Haible  <bruno@clisp.org>
10810
10811         * doc/posix-functions/strerror.texi: List more failing platforms.
10812
10813         * doc/posix-functions/strerror.texi: Add a comment.
10814
10815 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10816
10817         fdopendir: fix bug on MacOS X when low on file descriptors
10818
10819         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
10820         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
10821         All callers changed.
10822         (fdopendir): Invoke save_cwd at the top level, not after using
10823         multiple dup() calls to use up file descriptors.  Then retry
10824         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
10825         less than the maximum number of open file descriptors, because
10826         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
10827         on Mac OS X 10.6.4 for tar 1.24
10828         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
10829         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
10830         and for tar 1.25
10831         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
10832
10833 2010-11-07  Bruno Haible  <bruno@clisp.org>
10834
10835         vasnprintf: Support I flag on glibc systems.
10836         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
10837         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
10838         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
10839         snprintf function.
10840         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
10841         glibc systems.
10842         * tests/test-vasnprintf-posix3.c: New file.
10843         * modules/vasnprintf-posix-tests (Files): Add it.
10844         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
10845
10846 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10847
10848         [html] Fix copy/paste bug: Use unique name for compiler warnings.
10849         * MODULES.html.sh: For compiler warnings, use name
10850         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
10851
10852 2010-11-05  Eric Blake  <eblake@redhat.com>
10853
10854         ceil, floor: avoid spurious failure with icc
10855         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
10856         [denormals-as-zero] when optimizing without -mieee-fp option.
10857         * tests/test-floorf2.c (floorf_reference): Likewise.
10858         * tests/test-ceilf1.c (dummy): New function.
10859         (main): Use it to outsmart icc's optimization.
10860         * tests/test-floorf1.c (dummy, main): Likewise.
10861
10862         tests: require working signbit
10863         * modules/ceilf-tests (Depends-on): Add signbit.
10864         * modules/ceill-tests (Depends-on): Likewise.
10865         * modules/floorf-tests (Depends-on): Likewise.
10866         * modules/floorl-tests (Depends-on): Likewise.
10867         * modules/round-tests (Depends-on): Likewise.
10868         * modules/roundf-tests (Depends-on): Likewise.
10869         * modules/roundl-tests (Depends-on): Likewise.
10870         * modules/trunc-tests (Depends-on): Likewise.
10871         * modules/truncf-tests (Depends-on): Likewise.
10872         * modules/truncl-tests (Depends-on): Likewise.
10873
10874         strtod: work around icc bug
10875         * lib/strtod.c (minus_zero): Define to working value.
10876         (strtod): Use it to avoid icc bug.
10877
10878         copysign: enhance tests
10879         * modules/copysign-tests (Files): Add minus-zero.h.
10880         * tests/test-copysign.c (main): Also test zeros.
10881
10882 2010-11-04  Eric Blake  <eblake@redhat.com>
10883
10884         ceil, floor, round, trunc: enhance tests of -0
10885         * tests/test-ceilf1.c (main): Ensure correct sign of result.
10886         * tests/test-ceill.c (main): Likewise.
10887         * tests/test-floorf1.c (main): Likewise.
10888         * tests/test-floorl.c (main): Likewise.
10889         * tests/test-round1.c (main): Likewise.
10890         * tests/test-roundf1.c (main): Likewise.
10891         * tests/test-roundl.c (main): Likewise.
10892         * tests/test-trunc1.c (main): Likewise.
10893         * tests/test-truncf1.c (main): Likewise.
10894         * tests/test-truncl.c (main): Likewise.
10895
10896 2010-11-04  Eric Blake  <eblake@redhat.com>
10897
10898         frexp, tests: work around ICC bug with -zero
10899         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
10900         works with more compilers.
10901         * tests/minus-zero.h: New file.
10902         * modules/ceilf-tests (Files): Include it.
10903         * modules/ceill-tests (Files): Likewise.
10904         * modules/floorf-tests (Files): Likewise.
10905         * modules/floorl-tests (Files): Likewise.
10906         * modules/frexp-nolibm-tests (Files): Likewise.
10907         * modules/frexp-tests (Files): Likewise.
10908         * modules/frexpl-nolibm-tests (Files): Likewise.
10909         * modules/frexpl-tests (Files): Likewise.
10910         * modules/isnan-tests (Files): Likewise.
10911         * modules/isnand-nolibm-tests (Files): Likewise.
10912         * modules/isnand-tests (Files): Likewise.
10913         * modules/isnanf-nolibm-tests (Files): Likewise.
10914         * modules/isnanf-tests (Files): Likewise.
10915         * modules/isnanl-nolibm-tests (Files): Likewise.
10916         * modules/isnanl-tests (Files): Likewise.
10917         * modules/round-tests (Files): Likewise.
10918         * modules/roundf-tests (Files): Likewise.
10919         * modules/roundl-tests (Files): Likewise.
10920         * modules/ldexpl-tests (Files): Likewise.
10921         * modules/signbit-tests (Files): Likewise.
10922         * modules/snprintf-posix-tests (Files): Likewise.
10923         * modules/sprintf-posix-tests (Files): Likewise.
10924         * modules/strtod-tests (Files): Likewise.
10925         * modules/trunc-tests (Files): Likewise.
10926         * modules/truncf-tests (Files): Likewise.
10927         * modules/truncl-tests (Files): Likewise.
10928         * modules/vsnprintf-posix-tests (Files): Likewise.
10929         * modules/vsprintf-posix-tests (Files): Likewise.
10930         * modules/vasnprintf-posix-tests (Files): Likewise.
10931         * modules/vasprintf-posix-tests (Files): Likewise.
10932         * tests/test-ceilf1.c (main): Use it.
10933         * tests/test-ceill.c (main): Likewise.
10934         * tests/test-floorf1.c (main): Likewise.
10935         * tests/test-floorl.c (main): Likewise.
10936         * tests/test-frexp.c (main): Likewise.
10937         * tests/test-frexpl.c (main): Likewise.
10938         * tests/test-isnan.c (main): Likewise.
10939         * tests/test-isnand.h (main): Likewise.
10940         * tests/test-isnanf.h (main): Likewise.
10941         * tests/test-isnanl.h (main): Likewise.
10942         * tests/test-ldexpl.c (main): Likewise.
10943         * tests/test-round.c (main): Likewise.
10944         * tests/test-roundf.c (main): Likewise.
10945         * tests/test-roundl.c (main): Likewise.
10946         * tests/test-signbit.c (test_signbitf, test_signbitd)
10947         (test_signbitl): Likewise.
10948         * tests/test-snprintf-posix.h (test_function): Likewise.
10949         * tests/test-sprintf-posix.h (test_function): Likewise.
10950         * tests/test-strtod.c (main): Likewise.
10951         * tests/test-trunc1.c (main): Likewise.
10952         * tests/test-truncf1.c (main): Likewise.
10953         * tests/test-truncl.c (main): Likewise.
10954
10955         isnanl: work around icc bug
10956         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
10957
10958 2010-11-03  Eric Blake  <eblake@redhat.com>
10959
10960         tests: fix compiler warnings
10961         * tests/test-getopt.h (test_getopt): Fix condition.
10962         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10963         * tests/test-pipe2.c (main): Likewise.
10964         * tests/test-quotearg-simple.c (main): Avoid icc warning.
10965
10966         utimens: fix broken m4 test
10967         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
10968
10969 2010-10-28  Bruno Haible  <bruno@clisp.org>
10970
10971         posix_spawn*, getdtablesize: Relax license.
10972         * modules/posix_spawn (License): Change to LGPLv2+.
10973         * modules/posix_spawnp (License): Likewise.
10974         * modules/posix_spawn-internal (License): Likewise.
10975         * modules/posix_spawnattr_init (License): Likewise.
10976         * modules/posix_spawnattr_getflags (License): Likewise.
10977         * modules/posix_spawnattr_setflags (License): Likewise.
10978         * modules/posix_spawnattr_getpgroup (License): Likewise.
10979         * modules/posix_spawnattr_setpgroup (License): Likewise.
10980         * modules/posix_spawnattr_getschedparam (License): Likewise.
10981         * modules/posix_spawnattr_setschedparam (License): Likewise.
10982         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
10983         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
10984         * modules/posix_spawnattr_getsigdefault (License): Likewise.
10985         * modules/posix_spawnattr_setsigdefault (License): Likewise.
10986         * modules/posix_spawnattr_getsigmask (License): Likewise.
10987         * modules/posix_spawnattr_setsigmask (License): Likewise.
10988         * modules/posix_spawnattr_destroy (License): Likewise.
10989         * modules/posix_spawn_file_actions_init (License): Likewise.
10990         * modules/posix_spawn_file_actions_addclose (License): Likewise.
10991         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
10992         * modules/posix_spawn_file_actions_addopen (License): Likewise.
10993         * modules/posix_spawn_file_actions_destroy (License): Likewise.
10994         * modules/getdtablesize (License): Likewise.
10995         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
10996
10997 2010-10-26  Bruno Haible  <bruno@clisp.org>
10998
10999         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
11000         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
11001         Cygwin and mingw.
11002         Suggested by Eric Blake.
11003
11004 2010-10-26  Bruno Haible  <bruno@clisp.org>
11005
11006         stdio: Work around compilation error due to renameat() on Solaris 10.
11007         * lib/stdio.in.h: Include <unistd.h> on Solaris.
11008         * lib/renameat.c: Don't include <unistd.h> here.
11009         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
11010         Reported by Paul Eggert and Eric Blake.
11011
11012 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11013
11014         renameat: port to Solaris 10, which declares renameat in unistd.h
11015
11016         * lib/renameat.c: Include unistd.h before stdio.h, because
11017         Solaris 10 declares renameat in unistd.h.  Problem encountered
11018         when building GNU tar 1.24 on Solaris 10.
11019
11020 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11021
11022         fdopendir: fix C89 compilation
11023         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
11024         compilers.
11025
11026 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11027
11028         inttostr: simplify by removing unnecessary redundancy
11029         * lib/anytostr.c: Don't include verify.h.
11030         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
11031         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
11032         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
11033         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
11034         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
11035         Likewise.
11036         * modules/inttostr (Depends-on): Remove 'verify'.
11037
11038 2010-10-23  Bruno Haible  <bruno@clisp.org>
11039
11040         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
11041         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
11042         Reported by Eric Blake.
11043
11044 2010-10-23  Bruno Haible  <bruno@clisp.org>
11045
11046         Tests: Fix LOCALE_JA on MirBSD 10.
11047         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
11048         to an UTF-8 locale.
11049         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
11050         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11051         Reported by Eric Blake.
11052
11053 2010-10-21  Bruno Haible  <bruno@clisp.org>
11054
11055         nl_langinfo test: Avoid test failure on NetBSD 5.
11056         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
11057         Reported by Eric Blake.
11058
11059 2010-10-21  Eric Blake  <eblake@redhat.com>
11060
11061         c-stack: work around libsigsegv 2.8 bug
11062         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
11063         overflow on at least PowerPC64.
11064
11065 2010-10-17  Bruno Haible  <bruno@clisp.org>
11066
11067         userspec: Drop redundant file.
11068         * modules/userspec (Files): Remove lib/inttostr.h.
11069
11070 2010-10-17  Bruno Haible  <bruno@clisp.org>
11071
11072         nl_langinfo tests: Silence some warnings.
11073         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
11074         Reported by Jim Meyering.
11075
11076 2010-10-17  Bruno Haible  <bruno@clisp.org>
11077
11078         Make use of GCC's attribute __alloc_size__.
11079         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
11080         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
11081         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
11082         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
11083         __alloc_size__.
11084         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
11085         Suggested by Jim Meyering.
11086
11087 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
11088
11089         bootstrap: anchor .gitignore entries.
11090         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
11091         with...
11092         (insert_vc_ignore): ... this new function, which prepends `/' to
11093         all .gitignore entries before passing them to
11094         insert_sorted_if_absent.
11095
11096 2010-10-16  Bruno Haible  <bruno@clisp.org>
11097
11098         nextafter: Fix configure check.
11099         * modules/nextafter (configure.ac): Correct expected prototype.
11100
11101 2010-10-16  Bruno Haible  <bruno@clisp.org>
11102
11103         termios: Update documentation.
11104         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
11105
11106 2010-10-16  Bruno Haible  <bruno@clisp.org>
11107
11108         tests: Make them compile with TinyCC.
11109         * tests/test-strstr.c (main): Remove parentheses around array
11110         initializer.
11111
11112 2010-10-15  Eric Blake  <eblake@redhat.com>
11113
11114         ignore-value: make header idempotent
11115         * lib/ignore-value.h: Add double-inclusion guards.
11116         Reported by Stefan Berger.
11117
11118 2010-10-15  Jim Meyering  <meyering@redhat.com>
11119
11120         GNUmakefile: handle "stable" target, not "major"
11121         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
11122         lists in maint.mk and announce-gen.  Without this, "make stable"
11123         would fail to ensure that $(VERSION) is up to date.
11124
11125 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
11126
11127         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
11128         & co.
11129
11130 2010-10-14  Bruno Haible  <bruno@clisp.org>
11131
11132         vasnprintf: Don't set errno to 0.
11133         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
11134         block that sets it to 0.
11135         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
11136
11137 2010-10-14  Bruno Haible  <bruno@clisp.org>
11138
11139         socketlib: Fix.
11140         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
11141         gl_PREREQ_SYS_H_WINSOCK2.
11142         Reported by Ian Beckwith <ianb@erislabs.net>.
11143
11144 2010-10-13  Jim Meyering  <meyering@redhat.com>
11145
11146         test-select-stdin.c: avoid warn_unused_result warnings
11147         * tests/test-select-stdin.c: Include "macros.h".
11148         ASSERT that read and fflush succeed.
11149
11150 2010-10-13  Jim Meyering  <meyering@redhat.com>
11151
11152         git-version-gen: do require git-VC'd files in cwd
11153         * build-aux/git-version-gen: Reject a git version string
11154         if there are no commits associated with the current directory.
11155         This avoids an unlikely false-positive (unrelated dir whose parent
11156         repository also contains a tag matching v*), as pointed out
11157         by Giuseppe Scrivano in
11158         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
11159
11160 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11161
11162         argv-iter: omit nonconforming declaration
11163         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
11164         enum arg_iter_err declaration, which doesn't conform to C99.
11165         Solaris 10 cc warns about this.
11166
11167 2010-10-13  Eric Blake  <eblake@redhat.com>
11168
11169         termios: fix compilation on mingw
11170         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
11171         (gl_TERMIOS_H): Adjust it on mingw.
11172         * modules/termios (Makefile.am): Substitute new key.
11173         * lib/termios.in.h (includes): Make include_next conditional.
11174         * doc/posix-headers/termios.texi (termios.h): Update
11175         documentation.
11176         Reported by Daniel P. Berrange.
11177
11178 2010-10-13  Jim Meyering  <meyering@redhat.com>
11179
11180         git-version-gen: don't require that .git/ be in the current dir
11181         * build-aux/git-version-gen: Adjust this script so that it works
11182         when run from any working directory beneath the top-level .git/-
11183         containing directory.  Inspired by a patch from Giuseppe Scrivano,
11184         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
11185
11186         test-select: avoid warn_unused_result warnings
11187         * tests/test-select.c: Include "macros.h".
11188         ASSERT that each call to read, write, and pipe succeeds.
11189         While not technically required, also check each "close".
11190         * modules/select-tests (Files): Add tests/macros.h.
11191
11192         test-symlinkat: remove declaration of unused local
11193         * tests/test-symlinkat.c (main): Remove unused local, "buf".
11194
11195         test-inttostr: avoid shadowing warnings
11196         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
11197         and use malloc rather than the stack for the same reason as
11198         mentioned in the comment justifying the other allocation.
11199
11200 2010-10-11  Bruno Haible  <bruno@clisp.org>
11201
11202         stdlib: Allow multiple gnulib generated replacements to coexist.
11203         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
11204         Reported by Sam Steingold <sds@gnu.org>.
11205
11206 2010-10-11  Jim Meyering  <meyering@redhat.com>
11207
11208         fix a documentation typo
11209         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
11210
11211 2010-10-11  Eric Blake  <eblake@redhat.com>
11212
11213         futimens: work around Solaris 11 bug
11214         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
11215         * tests/test-futimens.h (test_futimens): Enhance, rather than
11216         weaken test.
11217         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11218
11219 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11220
11221         Indentation.
11222         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
11223         higher-level operators more to the left.
11224
11225 2010-10-11  Jim Meyering  <meyering@redhat.com>
11226
11227         test-futimens: avoid unwarranted test failure on Solaris 5.11
11228         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
11229         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
11230         because it tries to dereference the NULL name argument.
11231
11232 2010-10-11  Bruno Haible  <bruno@clisp.org>
11233
11234         Indentation.
11235         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
11236         indentation.
11237
11238 2010-10-11  Jim Meyering  <meyering@redhat.com>
11239
11240         spawn.in.h: make indentation consistent with parentheses
11241         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
11242         Make indentation consistent with parentheses.
11243
11244 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
11245
11246         Fix mismatched parens in previous commit
11247         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
11248         parens.
11249
11250 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11251
11252         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
11253
11254         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
11255         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
11256         * lib/malloca.c: Include "verify.h".
11257         (verify1): Remove, replacing with a verify call.
11258         * lib/relocwrapper.c (verify1): Likewise.
11259         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
11260         Likewise.
11261         * modules/malloca (Depends-on): Add 'verify'.
11262         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
11263         * modules/vasnprintf (Depends-on): Add 'verify'.
11264         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11265         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11266         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11267         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11268         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11269         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11270         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11271
11272         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
11273
11274         Formerly the style was sometimes 2*X - 1, because the C standard
11275         was wrongly thought to disallow ?: in integral constant expressions.
11276         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
11277         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
11278         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11279         * lib/stdint.in.h (_verify_intmax_size): Likewise.
11280         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
11281         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
11282         verify that time_t cannot be floating.
11283
11284 2010-10-08  Eric Blake  <eblake@redhat.com>
11285
11286         time: enforce recent POSIX ruling that time_t is integral
11287         * lib/time.in.h (__time_t_must_be_integral): Detect any
11288         problematic systems, allowing the rest of gnulib to assume POSIX.
11289
11290 2010-10-08  Jim Meyering  <meyering@redhat.com>
11291
11292         fdopendir: fix a bug on systems lacking openat and /proc support
11293         OpenBSD 4.7 is one such system.  The most noticeable effect was
11294         failure of any application making nontrivial use of fts: rm, du,
11295         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
11296           ./rm: traversal failed: `a': Bad file descriptor
11297         Debugging that, you see that even though FD 6 was closed just
11298         prior to the opendir call in fd_clone_opendir, its resulting
11299         dir->dd_fd was 8, rather than the expected value of 6:
11300
11301         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
11302         93                close (fd);
11303         (gdb) n
11304         94                dir = fd_clone_opendir (dupfd);
11305         (gdb) n
11306         95                saved_errno = errno;
11307         (gdb) p dir->dd_fd
11308         $11 = 8
11309
11310         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
11311         The problem is that on OpenBSD, fd_clone_opendir has to resort
11312         to using the old-style save/restore CWD mechanism, due to its
11313         lack of openat/proc support, and *that* would steal the FD (6)
11314         that opendir was supposed to use.
11315
11316         The fix is to squirrel away the desired FD so that save_cwd uses a
11317         different one, and then free the dest FD right before calling opendir.
11318         That guarantees opendir will use the required file descriptor.
11319
11320         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
11321
11322 2010-10-08  Bruno Haible  <bruno@clisp.org>
11323
11324         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
11325         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
11326
11327 2010-10-08  Bruno Haible  <bruno@clisp.org>
11328
11329         nanosleep: Make replacement POSIX compliant.
11330         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
11331         is out of range.
11332         Reported by Jim Meyering.
11333
11334 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11335
11336         bootstrap: add hook for altering gnulib.mk, for Bison
11337         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
11338         the Bison bootstrapping process can rewrite file names and variables
11339         in this file before later parts of 'bootstrap' use the file.
11340         Bison wants to include lib/gnulib.mk from the top-level makefile,
11341         so it needs the file names in this file to be relative to the top
11342         level, not relative to lib; plus it needs variable names to be
11343         rewritten.
11344         (slurp): Use the new function.
11345
11346         bootstrap: reformat for readability
11347         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
11348
11349 2010-10-08  Eric Blake  <eblake@redhat.com>
11350
11351         docs: update cygwin progress
11352         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
11353         1.7.7.
11354         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
11355         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
11356         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
11357         * doc/posix-functions/carg.texi (carg): Likewise.
11358         * doc/posix-functions/cargf.texi (cargf): Likewise.
11359         * doc/posix-functions/casin.texi (casin): Likewise.
11360         * doc/posix-functions/casinf.texi (casinf): Likewise.
11361         * doc/posix-functions/casinh.texi (casinh): Likewise.
11362         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
11363         * doc/posix-functions/catan.texi (catan): Likewise.
11364         * doc/posix-functions/catanf.texi (catanf): Likewise.
11365         * doc/posix-functions/catanh.texi (catanh): Likewise.
11366         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
11367         * doc/posix-functions/ccos.texi (ccos): Likewise.
11368         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
11369         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
11370         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
11371         * doc/posix-functions/cexp.texi (cexp): Likewise.
11372         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
11373         * doc/posix-functions/cimag.texi (cimag): Likewise.
11374         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
11375         * doc/posix-functions/clog.texi (clog): Likewise.
11376         * doc/posix-functions/clogf.texi (clogf): Likewise.
11377         * doc/posix-functions/conj.texi (conj): Likewise.
11378         * doc/posix-functions/conjf.texi (conjf): Likewise.
11379         * doc/posix-functions/cpow.texi (cpow): Likewise.
11380         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
11381         * doc/posix-functions/cproj.texi (cproj): Likewise.
11382         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
11383         * doc/posix-functions/creal.texi (creal): Likewise.
11384         * doc/posix-functions/crealf.texi (crealf): Likewise.
11385         * doc/posix-functions/csin.texi (csin): Likewise.
11386         * doc/posix-functions/csinf.texi (csinf): Likewise.
11387         * doc/posix-functions/csinh.texi (csinh): Likewise.
11388         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
11389         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
11390         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
11391         * doc/posix-functions/ctan.texi (ctan): Likewise.
11392         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
11393         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
11394         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
11395         * doc/posix-headers/complex.texi (complex.h): Likewise.
11396
11397 2010-10-07  Jim Meyering  <meyering@redhat.com>
11398
11399         parse-datetime: avoid compilation failure on OpenBSD 4.7
11400         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
11401         This works around a compilation failure on OpenBSD 4.7:
11402         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
11403
11404 2010-10-07  Eric Blake  <eblake@redhat.com>
11405
11406         docs: update cygwin progress
11407         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
11408         1.7.6.
11409         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11410         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
11411         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
11412         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
11413         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
11414         Likewise.
11415         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
11416         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
11417         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
11418         Likewise.
11419         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
11420         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
11421         Likewise.
11422         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
11423         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
11424         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
11425         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
11426         Likewise.
11427         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
11428         Likewise.
11429         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
11430
11431         docs: update parse-datetime history
11432         * doc/parse-datetime.texi (Authors of parse_datetime): Better
11433         documentation of this function's history and alternatives.
11434
11435         cygwin: use more robust version check
11436         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
11437         exclude an eventual cygwin 1.9.1.
11438         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11440         (gl_FUNC_STRCASESTR): Likewise.
11441         Reported by Bruno Haible.
11442
11443 2010-10-06  Bruno Haible  <bruno@clisp.org>
11444
11445         string, sys_select: Avoid #including large headers unless necessary.
11446         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
11447         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
11448         OSF/1, BeOS, Haiku.
11449         Reported by Jim Meyering.
11450
11451 2010-10-05  Eric Blake  <eblake@redhat.com>
11452
11453         memmem, strstr, strcasestr: fix bug with long periodic needle
11454         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
11455         periodic needle having false positive.
11456         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
11457         and cygwin 1.7.7.
11458         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
11459         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11460         (gl_FUNC_STRCASESTR): Likewise.
11461         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11462         * tests/test-memmem.c (main): Expose the bug.
11463         * tests/test-strcasestr.c (main): Likewise.
11464         * tests/test-strstr.c (main): Likewise.
11465         * tests/test-c-strcasestr.c (main): Likewise.
11466         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
11467         * doc/posix-functions/strstr.texi (strstr): Likewise.
11468         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11469         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
11470
11471 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11472
11473         parse-datetime: do some more renaming
11474         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
11475         parse_datetime, not get_date.  Mention the renaming.
11476         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
11477         in comments.
11478         * m4/bison.m4: Likewise.
11479
11480 2010-10-05  Eric Blake  <eblake@redhat.com>
11481
11482         parse-datetime: better name than get_date
11483         * NEWS: Reword the deprecation notice.
11484         * modules/get_date: Rename to modules/parse-datetime.
11485         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
11486         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
11487         * lib/get_date.y: Rename to lib/parse-datetime.y.
11488         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
11489         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
11490         * doc/getdate.texi: Provide fallback wrapper.
11491         * lib/getdate.h: Move guts, and wrap...
11492         * lib/parse-datetime.h: ...new file.
11493         * lib/parse-datetime.y (get_date): Rename...
11494         (parse_datetime): ...to this.
11495         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
11496         (gl_PARSE_DATETIME): ...to this.
11497         * doc/posix-functions/getdate.texi (get_date): Provide fallback
11498         documentation.
11499         * modules/getdate (Files): Provide fallback docs and header.
11500         (Notice, Depends-on): Update references.
11501         * tests/test-parse-datetime.c: Likewise.
11502         * DEPENDENCIES: Likewise.
11503         * MODULES.html.sh (Date and time <time.h>): Likewise.
11504         * doc/parse-datetime.texi (Date input formats)
11505         (Authors of parse_datetime): Likewise.
11506         * modules/parse-datetime (Files, configure.ac, Makefile.am)
11507         (Include): Likewise.
11508         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
11509         * gnulib-tool: Likewise.
11510         * m4/bison.m4 (gl_BISON): Likewise.
11511         Suggested by Bruno Haible.
11512
11513 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11514
11515         more ports to Solaris tr, which needs [] around ranges
11516         * gnulib-tool: Solaris tr needs [] around ranges.
11517         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11518         * tests/test-pipe-filter-gi1.c (main): Likewise.
11519         * tests/test-pipe-filter-ii1.c (main): Likewise.
11520
11521 2010-10-05  Eric Blake  <eblake@redhat.com>
11522
11523         bootstrap: fix Solaris regression
11524         * build-aux/bootstrap (check_versions): Solaris tr still needs []
11525         around ranges.
11526         Reported by Pádraig Brady.
11527
11528         bootstrap: work with pkg-config
11529         * build-aux/bootstrap (check_versions): Also transliterate - in
11530         prerequisite name.
11531         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
11532         prerequisites that were already found, to avoid confusion.
11533         Reported by Justin Clift.
11534
11535         faccessat: remove unused wrappers
11536         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
11537         presence of these wrappers dragged in -lgen on Solaris.
11538         Reported by Clemens Brogi; fix suggested by Paul Eggert.
11539
11540 2010-10-05  Jim Meyering  <meyering@redhat.com>
11541
11542         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
11543         * Makefile (sc_pragma_columns): New syntax-check rule.
11544
11545 2010-10-04  Bruno Haible  <bruno@clisp.org>
11546
11547         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
11548         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
11549         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
11550         Reported by Bruce Korb and Eric Blake.
11551
11552 2010-10-04  Bruno Haible  <bruno@clisp.org>
11553
11554         threadlib: Make option --with-libpth-prefix work.
11555         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
11556         use $LIBPTH, not just -lpth.
11557
11558 2010-10-04  Bruno Haible  <bruno@clisp.org>
11559
11560         Avoid line length limitation from HP NonStop system header files.
11561         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
11562         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
11563         * lib/ctype.in.h: Likewise.
11564         * lib/dirent.in.h: Likewise.
11565         * lib/errno.in.h: Likewise.
11566         * lib/fcntl.in.h: Likewise.
11567         * lib/float.in.h: Likewise.
11568         * lib/getopt.in.h: Likewise.
11569         * lib/iconv.in.h: Likewise.
11570         * lib/inttypes.in.h: Likewise.
11571         * lib/langinfo.in.h: Likewise.
11572         * lib/locale.in.h: Likewise.
11573         * lib/math.in.h: Likewise.
11574         * lib/netdb.in.h: Likewise.
11575         * lib/netinet_in.in.h: Likewise.
11576         * lib/poll.in.h: Likewise.
11577         * lib/pthread.in.h: Likewise.
11578         * lib/pty.in.h: Likewise.
11579         * lib/sched.in.h: Likewise.
11580         * lib/se-selinux.in.h: Likewise.
11581         * lib/search.in.h: Likewise.
11582         * lib/signal.in.h: Likewise.
11583         * lib/spawn.in.h: Likewise.
11584         * lib/stdarg.in.h: Likewise.
11585         * lib/stddef.in.h: Likewise.
11586         * lib/stdint.in.h: Likewise.
11587         * lib/stdio.in.h: Likewise.
11588         * lib/stdlib.in.h: Likewise.
11589         * lib/string.in.h: Likewise.
11590         * lib/strings.in.h: Likewise.
11591         * lib/sys_file.in.h: Likewise.
11592         * lib/sys_ioctl.in.h: Likewise.
11593         * lib/sys_select.in.h: Likewise.
11594         * lib/sys_socket.in.h: Likewise.
11595         * lib/sys_stat.in.h: Likewise.
11596         * lib/sys_time.in.h: Likewise.
11597         * lib/sys_times.in.h: Likewise.
11598         * lib/sys_utsname.in.h: Likewise.
11599         * lib/sys_wait.in.h: Likewise.
11600         * lib/sysexits.in.h: Likewise.
11601         * lib/termios.in.h: Likewise.
11602         * lib/time.in.h: Likewise.
11603         * lib/unistd.in.h: Likewise.
11604         * lib/wchar.in.h: Likewise.
11605         * lib/wctype.in.h: Likewise.
11606         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
11607         * modules/ctype (Makefile.am): Likewise.
11608         * modules/dirent (Makefile.am): Likewise.
11609         * modules/errno (Makefile.am): Likewise.
11610         * modules/fcntl-h (Makefile.am): Likewise.
11611         * modules/float (Makefile.am): Likewise.
11612         * modules/getopt-posix (Makefile.am): Likewise.
11613         * modules/iconv-h (Makefile.am): Likewise.
11614         * modules/inttypes (Makefile.am): Likewise.
11615         * modules/langinfo (Makefile.am): Likewise.
11616         * modules/locale (Makefile.am): Likewise.
11617         * modules/math (Makefile.am): Likewise.
11618         * modules/netdb (Makefile.am): Likewise.
11619         * modules/netinet_in (Makefile.am): Likewise.
11620         * modules/poll-h (Makefile.am): Likewise.
11621         * modules/pthread (Makefile.am): Likewise.
11622         * modules/pty (Makefile.am): Likewise.
11623         * modules/sched (Makefile.am): Likewise.
11624         * modules/search (Makefile.am): Likewise.
11625         * modules/selinux-h (Makefile.am): Likewise.
11626         * modules/signal (Makefile.am): Likewise.
11627         * modules/spawn (Makefile.am): Likewise.
11628         * modules/stdarg (Makefile.am): Likewise.
11629         * modules/stddef (Makefile.am): Likewise.
11630         * modules/stdint (Makefile.am): Likewise.
11631         * modules/stdio (Makefile.am): Likewise.
11632         * modules/stdlib (Makefile.am): Likewise.
11633         * modules/string (Makefile.am): Likewise.
11634         * modules/strings (Makefile.am): Likewise.
11635         * modules/sys_file (Makefile.am): Likewise.
11636         * modules/sys_ioctl (Makefile.am): Likewise.
11637         * modules/sys_select (Makefile.am): Likewise.
11638         * modules/sys_socket (Makefile.am): Likewise.
11639         * modules/sys_stat (Makefile.am): Likewise.
11640         * modules/sys_time (Makefile.am): Likewise.
11641         * modules/sys_times (Makefile.am): Likewise.
11642         * modules/sys_utsname (Makefile.am): Likewise.
11643         * modules/sys_wait (Makefile.am): Likewise.
11644         * modules/sysexits (Makefile.am): Likewise.
11645         * modules/termios (Makefile.am): Likewise.
11646         * modules/time (Makefile.am): Likewise.
11647         * modules/unistd (Makefile.am): Likewise.
11648         * modules/wchar (Makefile.am): Likewise.
11649         * modules/wctype (Makefile.am): Likewise.
11650
11651 2010-10-04  Bruno Haible  <bruno@clisp.org>
11652
11653         read-file tests: Avoid a test failure on NonStop Kernel.
11654         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
11655         a regular file.
11656         Reported by Joachim Schmitz <schmitz@hp.com>.
11657
11658 2010-10-03  Bruno Haible  <bruno@clisp.org>
11659
11660         gnulib-tool: Fixes for --create-testdir with --libtool.
11661         * gnulib-tool (func_get_automake_snippet): Don't augment
11662         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
11663         an executable.
11664         (func_create_testdir): Handle module 'alloca' like func_import.
11665         Reported by Bruce Korb <bruce.korb@gmail.com>.
11666
11667 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
11668
11669         Avoid some lines longer than 80 characters.
11670         * lib/stdint.in.h: Break long comment lines.
11671         * lib/math.in.h: Likewise.
11672         (_GL_NUM_UINT_WORDS): New macro, for readability.
11673         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
11674         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
11675         * lib/stdlib.in.h: Likewise.
11676         * lib/spawn.in.h: Likewise.
11677         * lib/sys_socket.in.h: Update an URL.
11678         * lib/sys_stat.in.h: Break long line.
11679
11680 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
11681
11682         Improve pmccabe2html.
11683         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
11684         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
11685         when the sources change. Remove the line in the HTML about "Used
11686         ranges" (which implied that there might be other unused ranges),
11687         rename "Resume" to "Summary" (easier to understand for more users).
11688         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
11689         styles, and some unnecessary blank lines.
11690
11691 2010-10-03  Bruno Haible  <bruno@clisp.org>
11692             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11693
11694         acl: Add support for ACLs on NonStop Kernel.
11695         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
11696         Check whether the function aclsort() exists.
11697         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
11698         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
11699         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11700         (acl_nontrivial [HAVE_ACLSORT]: New function.
11701         (file_has_acl): Implement for NonStop Kernel.
11702         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11703         (qset_acl): Implement for NonStop Kernel.
11704         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
11705         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11706         (main): Implement for NonStop Kernel.
11707         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
11708         Kernel. Handle this flavor.
11709         * tests/test-set-mode-acl.sh: Likewise.
11710         * tests/test-copy-acl.sh: Likewise.
11711         * tests/test-copy-file.sh: Likewise.
11712
11713 2010-10-03  Bruno Haible  <bruno@clisp.org>
11714
11715         Info about ACLs on NonStop Kernel.
11716         * doc/acl-resources.txt: Add info about NonStop Kernel.
11717         References by Joachim Schmitz <schmitz@hp.com>.
11718
11719 2010-10-02  Bruno Haible  <bruno@clisp.org>
11720
11721         Define missing EDQUOT on NonStop Kernel.
11722         * lib/errno.in.h (EDQUOT): Assign a value if missing.
11723         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
11724         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
11725         missing.
11726         * doc/posix-headers/errno.texi: Mention the NSK bug.
11727         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
11728         Reported by Joachim Schmitz <schmitz@hp.com>.
11729
11730 2010-10-02  Bruno Haible  <bruno@clisp.org>
11731
11732         Update doc for POSIX:2008.
11733         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
11734         Update URL of POSIX specification.
11735
11736 2010-10-02  Bruno Haible  <bruno@clisp.org>
11737
11738         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
11739         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
11740         from gnulib, not from Automake.
11741
11742 2010-10-02  Bruno Haible  <bruno@clisp.org>
11743
11744         New module 'system-posix'.
11745         * modules/system-posix: New file.
11746         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
11747         module is present.
11748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11749         GNULIB_SYSTEM_POSIX.
11750         * modules/stdlib (Depends-on): Remove sys_wait.
11751         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
11752         * doc/posix-functions/system.texi: Mention the new module.
11753         * doc/posix-headers/stdlib.texi: Likewise.
11754         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
11755         define test_sys_wait_macros to a no-op.
11756         Reported by Sam Steingold <sds@gnu.org>.
11757
11758 2010-09-30  Bruno Haible  <bruno@clisp.org>
11759
11760         More renaming from 'getdate' to 'get_date'.
11761         * doc/get_date.texi: Renamed from doc/getdate.texi.
11762         * modules/get_date (Files): Update.
11763         * MODULES.html.sh (Date and time <time.h>): Update.
11764         * DEPENDENCIES: Update.
11765         * gnulib-tool: Update comment.
11766         * m4/bison.m4 (gl_BISON): Likewise.
11767         * m4/get_date.m4 (gl_GET_DATE): Likewise.
11768
11769 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
11770
11771         bootstrap: support ACLOCAL_FLAGS during aclocal
11772         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
11773         can add additional -I dir for third-party .m4 files.
11774
11775 2010-09-30  Eric Blake  <eblake@redhat.com>
11776
11777         bootstrap: use glibtoolize on MacOS
11778         * build-aux/bootstrap (check_versions): Convert libtool into
11779         libtoolize.
11780         (tool search): Move libtool check earlier, and look for
11781         glibtoolize for MacOS.
11782         (gnulib_tool_options): Auto-add --libtool when appropriate.
11783         Reported by Justin Clift.
11784
11785         poll: fix typo that broke test on MacOS
11786         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
11787         Reported by Justin Clift.
11788
11789         getdate: rename to get_date
11790         Note: getdate.h is not renamed, to minimize client impact.
11791         * modules/getdate: Mark obsolete.  Move old contents...
11792         * modules/get_date: ...to new module name.
11793         * modules/getdate-tests: Move...
11794         * modules/get_date-tests: ...here.
11795         * m4/getdate.m4: Move...
11796         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
11797         * lib/getdate.y: Move...
11798         * lib/get_date.y: ...here.
11799         * tests/test-getdate.c: Move...
11800         * tests/test-get_date.c: ...here.
11801         * doc/posix-functions/getdate.texi (getdate): Update name.
11802         * NEWS: Mention the change.
11803
11804 2010-09-29  Bruno Haible  <bruno@clisp.org>
11805
11806         Separate the module 'waitpid' from the module 'sys_wait'.
11807         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
11808         present.
11809         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
11810         gl_MODULE_INDICATOR_FOR_TESTS.
11811         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
11812         * modules/sys_wait (Depends-on): Remove waitpid.
11813         (Makefile.am): Substitute GNULIB_WAITPID.
11814         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
11815         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
11816         signature only if the 'waitpid' module is present.
11817         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
11818         * NEWS: Mention the change.
11819         * modules/grantpt (Depends-on): Add waitpid.
11820         * modules/wait-process (Depends-on): Likewise.
11821
11822 2010-09-29  Bruno Haible  <bruno@clisp.org>
11823
11824         More tests for module 'sys_wait'.
11825         * modules/sys_wait-c++-tests: New file.
11826         * tests/test-sys_wait-c++.cc: New file.
11827         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
11828         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11829
11830 2010-09-29  Bruno Haible  <bruno@clisp.org>
11831
11832         New module 'waitpid'.
11833         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
11834         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
11835         Don't include <process.h>.
11836         (waitpid): Declare only, using modern idiom.
11837         * m4/waitpid.m4: New file.
11838         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
11839         * modules/waitpid: New file.
11840         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
11841         (Makefile.am): Update.
11842         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11843
11844 2010-09-28  Bruno Haible  <bruno@clisp.org>
11845
11846         poll: Assume ANSI C.
11847         * lib/poll.c (poll): Use an ANSI C declaration.
11848
11849 2010-09-28  Bruno Haible  <bruno@clisp.org>
11850
11851         poll-h: Create poll.h on all platforms.
11852         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
11853         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
11854         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
11855         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
11856         (gl_REPLACE_POLL_H): Don't set POLL_H.
11857         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
11858         * modules/poll-h (Depends-on): Add include_next.
11859         (Makefile.am): Create poll.h unconditionally. Substitute also
11860         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
11861
11862 2010-09-28  Bruno Haible  <bruno@clisp.org>
11863
11864         Tests for module 'poll-h'.
11865         * modules/poll-h-c++-tests: New file.
11866         * tests/test-poll-h-c++.cc: New file.
11867
11868         Tests for module 'poll-h'.
11869         * modules/poll-h-tests: New file.
11870         * tests/test-poll-h.c: New file.
11871
11872 2010-09-28  Bruno Haible  <bruno@clisp.org>
11873
11874         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
11875         * modules/poll-h (Depends-on): Add 'extensions'.
11876
11877 2010-09-28  Bruno Haible  <bruno@clisp.org>
11878
11879         New module 'poll-h'.
11880         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
11881         (poll): Use modern idiom.
11882         * modules/poll-h: New file.
11883         * modules/poll (Files): Remove lib/poll.in.h.
11884         (Depends-on): Add poll-h.
11885         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
11886         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
11887         * m4/poll_h.m4: New file.
11888         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
11889         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
11890         and invoke gl_REPLACE_POLL_H.
11891         * lib/poll.c: Use common idiom.
11892         * tests/test-poll.c: Likewise.
11893         * doc/posix-headers/poll.texi: Mention the poll-h module.
11894         Suggested by Eric Blake.
11895
11896 2010-09-26  Bruno Haible  <bruno@clisp.org>
11897
11898         sys_wait: Implement WSTOPSIG.
11899         * lib/sys_wait.in.h (WSTOPSIG): New macro.
11900         Reported by Simon Josefsson.
11901
11902 2010-09-26  Simon Josefsson  <simon@josefsson.org>
11903
11904         stdlib, sys_wait: Avoid compilation error on mingw.
11905         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
11906
11907 2010-09-26  Bruno Haible  <bruno@clisp.org>
11908
11909         stdlib tests: Avoid code duplication.
11910         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
11911         * modules/sys_wait-tests (Files): Likewise.
11912         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
11913         * tests/test-stdlib.c: Include test-sys_wait.h.
11914         (main): Invoke test_sys_wait_macros.
11915         * tests/test-sys_wait.c: Include test-sys_wait.h.
11916         (main): Invoke test_sys_wait_macros.
11917
11918 2010-09-25  Simon Josefsson  <simon@josefsson.org>
11919
11920         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
11921         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
11922         sure Windows sockets are working before calling getaddrinfo.
11923         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
11924         * doc/gnulib.texi (Windows sockets): Fix typo.
11925
11926 2010-09-25  Bruno Haible  <bruno@clisp.org>
11927
11928         Tests for module 'regex-quote'.
11929         * modules/regex-quote-tests: New file.
11930         * tests/test-regex-quote.c: New file.
11931
11932         New module 'regex-quote'.
11933         * lib/regex-quote.h: New file.
11934         * lib/regex-quote.c: New file.
11935         * modules/regex-quote: New file.
11936         Suggested by Reuben Thomas <rrt@sc3d.org>.
11937
11938 2010-09-24  Bruno Haible  <bruno@clisp.org>
11939
11940         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
11941         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
11942
11943 2010-09-23  Bruno Haible  <bruno@clisp.org>
11944
11945         setenv: Relax license.
11946         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
11947         Blake.
11948         Requested by Eric Blake.
11949
11950 2010-09-22  Bruno Haible  <bruno@clisp.org>
11951
11952         termios: Relax license.
11953         * modules/termios (License): Change to LGPLv2+.
11954         Requested by Eric Blake.
11955
11956 2010-09-22  Bruno Haible  <bruno@clisp.org>
11957
11958         threadlib: Allow the package to change the default to 'no'.
11959         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
11960         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
11961         Reported by Paul Eggert.
11962
11963 2010-09-22  Pádraig Brady  <P@draigbrady.com>
11964             Bruno Haible  <bruno@clisp.org>
11965
11966         Fix endless loop in mbmemcasecoll.
11967         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
11968         byte.
11969         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
11970
11971 2010-09-22  Bruno Haible  <bruno@clisp.org>
11972
11973         Tests for module 'memcoll'.
11974         * modules/memcoll-tests: New file.
11975         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
11976
11977         memcoll, xmemcoll: Clarify size vs. length.
11978         * modules/memcoll.c (memcoll0): Clarify specification.
11979         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
11980         passed to collate_error.
11981
11982 2010-09-22  Bruno Haible  <bruno@clisp.org>
11983
11984         Tests for module 'memcasecmp'.
11985         * modules/memcasecmp-tests: New file.
11986         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
11987
11988 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11989
11990         * lib/pthread.in.h: Add split double-inclusion guard, and include
11991         system <pthread.h> if there is one.  Use @@-style as in other
11992         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
11993         pthread.h doesn't.
11994         (pthread_mutexattr_destroy, pthread_mutexattr_init):
11995         (pthread_mutexattr_settype, pthread_mutex_trylock):
11996         New static inline functions, if there's no system <pthread.h>.
11997         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
11998         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
11999         Approximate with mutexes if the system lacks spinlocks, as in
12000         MacOS.
12001         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
12002         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
12003         @@-style.  Check for spinlocks separately.
12004         (gl_PTHREAD_DEFAULTS): New macro.
12005         * modules/pthread: Redo to use a more typical style for in.h files.
12006
12007 2010-09-21  Eric Blake  <eblake@redhat.com>
12008
12009         net_if: enhance tests
12010         * tests/test-net_if.c (main): Move signature checks earlier.
12011         Print failures to stderr.
12012         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
12013         Document the bug that we do not yet fix.
12014
12015 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12016
12017         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12018         about gnulib, not GSS.
12019
12020 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12021
12022         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
12023         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
12024         for Emacs.
12025         * build-aux/pmccabe2html: Make Makefile.am example code more
12026         cut-and-paste friendly.
12027
12028 2010-09-21  Simon Josefsson  <simon@josefsson.org>
12029
12030         * tests/test-net_if.c: New file.
12031         * modules/net_if-tests: New file.
12032
12033 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12034
12035         pthread: add pthread_spin_destroy
12036         * lib/pthread.in.h (pthread_spin_destroy): New function.
12037
12038 2010-09-19  Bruno Haible  <bruno@clisp.org>
12039
12040         gnulib-tool: Fix --help output.
12041         * gnulib-tool (func_usage): Fix help message.
12042         Reported by Reuben Thomas <rrt@sc3d.org>.
12043
12044 2010-09-18  Jim Meyering  <meyering@redhat.com>
12045
12046         maint.mk: avoid unexpanded \n in two diagnostics
12047         * top/maint.mk (sc_prohibit_always_true_header_tests):
12048         Don't use a literal \n in a halt=... assignment.  It would not be
12049         expanded, and the two \n bytes would appear in the diagnostic output
12050         rather than the desired newline.  Use halt=$$(printf ... instead.
12051         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12052
12053 2010-09-18  Bruno Haible  <bruno@clisp.org>
12054
12055         netinet_in: Doc tweak.
12056         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
12057         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12058
12059 2010-09-18  Jim Meyering  <meyering@redhat.com>
12060
12061         init.sh: correct an outdated comment
12062         * tests/init.sh (create_exe_shims_):  s/function/alias/
12063
12064         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
12065         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
12066         a file named "*.exe" is removed between the glob expansion and the
12067         processing of that oddly named file.
12068
12069 2010-09-17  Eric Blake  <eblake@redhat.com>
12070
12071         mirbsd: add some more support
12072         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
12073         in BSD family.
12074         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
12075         devices as OpenBSD.
12076         * m4/host-os.m4 (mirbsd): Add MirBSD.
12077
12078         tests: fix unportable assumption on sys/wait.h
12079         * tests/test-sys_wait.c (main): Relax test.
12080         * tests/test-stdlib.c (main): Likewise.
12081
12082         init.sh: accomodate directory with no .exes
12083         * tests/init.sh: Accomodate directory containing only scripts.
12084
12085         tests: avoid compiler warning
12086         * tests/test-stdlib.c (main): Use the variable.
12087
12088         fdutimens, fdutimensat: update signature, again
12089         * lib/utimens.h (gl_futimens): Delete, and move signature...
12090         (fdutimens): ...here.
12091         (fdutimensat): Rearrange signature.
12092         (lutimensat): Rename variable for clarity.
12093         * lib/fdutimensat.c (fdutimensat): Update signature.
12094         * lib/utimens.c (fdutimens): Likewise.
12095         (gl_futimens): Delete.
12096         (utimens, lutimens): Update callers.
12097         * lib/futimens.c (futimens): Likewise.
12098         * tests/test-fdutimensat.c: Likewise.
12099         * tests/test-utimens.c: Likewise.
12100         * tests/test-futimens.h: Update comment.
12101         * NEWS: Mention this.
12102         Suggested by Paul Eggert.
12103
12104 2010-09-17  Bruno Haible  <bruno@clisp.org>
12105
12106         Take over the maintenance of some older macros from Autoconf.
12107         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
12108         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
12109         GNU Autoconf.
12110         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
12111         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
12112
12113 2010-09-17  Eric Blake  <eblake@redhat.com>
12114
12115         fdutimensat: drop atflag validation
12116         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
12117         with valid fd, to close a race scenario where futimens is
12118         unsupported and FILE was replaced by a symlink.
12119         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
12120         accordingly.
12121         Suggested by Paul Eggert.
12122
12123 2010-09-16  Bruno Haible  <bruno@clisp.org>
12124
12125         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
12126         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
12127
12128 2010-09-16  Bruno Haible  <bruno@clisp.org>
12129
12130         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
12131         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
12132         login_tty exists.
12133         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12134
12135 2010-09-16  Bruno Haible  <bruno@clisp.org>
12136
12137         login_tty: Make the replacement code work on BSD systems.
12138         * lib/login_tty.c: Include <sys/ioctl.h>.
12139         (login_tty): Use ioctl TIOCSCTTY when available.
12140         * modules/login_tty (Depends-on): Add sys_ioctl.
12141         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12142
12143 2010-09-16  Bruno Haible  <bruno@clisp.org>
12144
12145         login_tty: Stricter unit test.
12146         * modules/login_tty-tests (Depends-on): Add tcgetsid.
12147         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
12148         and tcgetsid() after login_tty.
12149         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12150
12151 2010-09-16  Bruno Haible  <bruno@clisp.org>
12152
12153         New module 'tcgetsid'.
12154         * lib/tcgetsid.c: New file.
12155         * m4/tcgetsid.m4: New file.
12156         * modules/tcgetsid: New file.
12157         * modules/termios (Depends-on): Add c++defs, warn-on-use.
12158         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
12159         GNULIB_TCGETSID, HAVE_TCGETSID.
12160         * lib/termios.in.h: Include <sys/types.h>.
12161         (tcgetsid): New declaration.
12162         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
12163         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
12164         * doc/posix-functions/tcgetsid.texi: Mention the new module.
12165         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
12166
12167 2010-09-16  Bruno Haible  <bruno@clisp.org>
12168
12169         Tests for module 'termios'.
12170         * modules/termios-c++-tests: New file.
12171         * modules/termios-tests: New file.
12172         * tests/test-termios-c++.cc: New file.
12173         * tests/test-termios.c: New file.
12174
12175         New module 'termios'.
12176         * modules/termios: New file.
12177         * lib/termios.in.h: New file.
12178         * m4/termios_h.m4: New file.
12179         * doc/posix-headers/termios.texi: Mention the new module.
12180
12181 2010-09-16  Eric Blake  <eblake@redhat.com>
12182
12183         fdutimensat: add an atflag parameter
12184         * lib/fdutimensat.c (fdutimensat): Add new parameter.
12185         * lib/utimens.h (fdutimensat): Update prototype.
12186         * tests/test-fdutimensat.c: Adjust test to match.
12187         * NEWS: Document the change.
12188         Suggested by Paul Eggert.
12189
12190 2010-09-16  Bruno Haible  <bruno@clisp.org>
12191
12192         Fix typos in comments.
12193         * lib/striconveh.h: Fix typo in comment.
12194         * lib/login_tty.c (login_tty): Likewise.
12195
12196 2010-09-15  Bruno Haible  <bruno@clisp.org>
12197
12198         stdlib: clarify MirBSD WEXITSTATUS bug
12199         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
12200         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12201
12202 2010-09-15  Eric Blake  <eblake@redhat.com>
12203
12204         stdlib: work around MirBSD WEXITSTATUS bug
12205         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
12206         * modules/stdlib (Depends-on): Add sys_wait.
12207         * tests/test-sys_wait.c (main): Enhance test.
12208         * tests/test-stdlib.c (main): Likewise.
12209         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
12210
12211         docs: mention MacOS issue with WEXITSTATUS(constant)
12212         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
12213         issue.
12214         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12215
12216         strnlen: add tests
12217         * modules/strnlen-tests: New file.
12218         * tests/test-strnlen.c: Likewise.
12219
12220 2010-09-14  Bruno Haible  <bruno@clisp.org>
12221
12222         unistr/base: Avoid link errors when module 'libunistring' is also used.
12223         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
12224         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
12225         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
12226         Declare also when HAVE_LIBUNISTRING is set.
12227         Reported by Pádraig Brady <P@draigbrady.com>.
12228
12229 2010-09-14  Eric Blake  <eblake@redhat.com>
12230
12231         test-rawmemchr: make more robust
12232         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
12233         (Depends-on, configure.ac): Add needed prerequisites to use it.
12234         * modules/memchr-tests (Files, Depends-on, configure.ac):
12235         Likewise, to avoid implicit reliance on memchr module prereqs.
12236         * tests/test-memchr.c (main): Ensure proper masking.
12237         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
12238         reads.
12239
12240         memchr: detect glibc Alpha bug
12241         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
12242         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
12243         Alpha.
12244         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
12245         * tests/test-memchr.c (main): Enhance test.
12246         Reported by Nelson H. F. Beebe.
12247
12248 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12249
12250         fts, getcwd, glob: audit for dirfd returning -1
12251         * lib/fts.c (opendir): Remove #define; no longer used.
12252         (opendirat): New arg PDIR_FD.  All callers changed.
12253         (fts_build, _opendir2): Use new opendirat to avoid the need for
12254         dirfd, or for checking whether dirfd returns a negative value.
12255         Don't use opendir; always use openat followed by fdopendir.
12256         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
12257         it.
12258         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
12259         returns -1 here.
12260         * modules/fts (Depends-on): Remove dirfd.
12261         * modules/getcwd (Depends-on): Likewise.
12262
12263 2010-09-13  Eric Blake  <eblake@redhat.com>
12264
12265         float: fix broken MirBSD header
12266         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
12267         * doc/posix-headers/float.texi (float.h): Document it.
12268
12269 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12270
12271         fts: use O_NOFOLLOW to avoid race condition when opening a directory
12272         * lib/fts.c (opendirat): New arg extra_flags.
12273         (__opendir2): Use it to avoid following symlinks when opening
12274         a directory, if symlinks are not supposed to be followed.  See
12275         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
12276
12277         fdopendir: preserve argument fd before returning
12278         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
12279         (fdopendir_with_dup, fd_clone_opendir): New static functions.
12280         (fdopendir): Use them, arranging for FD to be open to the same
12281         directory that it was when it started.  (It might be temporarily
12282         closed while fdopendir is running, so this not thread- or
12283         signal-safe.)  Be careful to do the right thing even when file
12284         descriptors are scarce and dup fails with errno == EMFILE.  See
12285         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
12286
12287 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
12288
12289         regex: Pass the system regex if its only problem is 32-bit regoff_t.
12290         * NEWS: Document change.
12291         * m4/regex.m4: Disable test for regoff_t size.
12292
12293 2010-09-13  Jim Meyering  <meyering@redhat.com>
12294
12295         fts: don't operate on an invalid file descriptor after failed dup
12296         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
12297         negative file descriptor.
12298
12299 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
12300
12301         savedir: add streamsavedir, deprecate fdsavedir
12302         * NEWS: Mention deprecation of fdsavedir.
12303         * lib/savedir.c (streamsavedir): New extern function, whose name
12304         ends in "savedir" to be consistent with the others.  This differs
12305         from savedirstream in that it doesn't close its argument.  The
12306         next version of GNU tar will use this instead of fdsavedir, to
12307         avoid some race conditions and conserve file descriptors.
12308         (savedirstream): Reimplement as a wrapper around streamsavedir.
12309         (fdsavedir): Add a comment deprecating this function.  As far as
12310         I know, only GNU tar used it, and GNU tar doesn't need it any more.
12311         * lib/savedir.h (streamsavedir): New decl.
12312         (fdsavedir): Add a comment deprecating this.
12313
12314 2010-09-10  Bruno Haible  <bruno@clisp.org>
12315
12316         langinfo: Fix last commit.
12317         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
12318         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
12319         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12320
12321 2010-09-10  Bruno Haible  <bruno@clisp.org>
12322
12323         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
12324         * lib/progreloc.c (O_EXEC): Define fallback.
12325
12326 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
12327
12328         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
12329         * NEWS: Document recent changes to fcntl-h.
12330         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
12331         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
12332         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
12333         Similarly for O_SEARCH; this last was already true, but not documented.
12334         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
12335         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
12336         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
12337         Likewise.
12338         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
12339         is zero, not whether it is defined.
12340         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
12341         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
12342         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
12343
12344 2010-09-10  Bruno Haible  <bruno@clisp.org>
12345
12346         langinfo, nl_langinfo: Fix for IRIX 5.3.
12347         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
12348         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
12349         HAVE_LANGINFO_YESEXPR.
12350         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
12351         HAVE_LANGINFO_YESEXPR.
12352         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
12353         HAVE_LANGINFO_T_FMT_AMPM is 0.
12354         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
12355         HAVE_LANGINFO_YESEXPR is 0.
12356         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
12357         NOEXPR.
12358         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
12359         * doc/posix-functions/nl_langinfo.texi: Likewise.
12360         Reported by Eric Blake.
12361
12362 2010-09-10  Bruno Haible  <bruno@clisp.org>
12363
12364         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
12365         * doc/glibc-functions/login_tty.texi: Mention the include file problem
12366         on FreeBSD 8.0 and OpenBSD 4.6.
12367         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
12368         * m4/pty_h.m4 (gl_PTY_H): Likewise.
12369         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
12370         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
12371         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
12372         ac_includes_default.
12373         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12374
12375 2010-09-09  Eric Blake  <eblake@redhat.com>
12376
12377         strsignal: work around NetBSD bug
12378         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
12379         * lib/string.in.h (includes): Likewise.
12380         * doc/posix-functions/strsignal.texi (strsignal): Document the
12381         bug.
12382         Reported by Nelson H. F. Beebe.
12383
12384         gnulib-tool: work with NetBSD /bin/sh
12385         * gnulib-tool (func_cache_var, func_cache_lookup_module)
12386         (func_get_description, func_get_comment, func_get_status)
12387         (func_get_notice, func_get_applicability, func_get_filelist)
12388         (func_get_dependencies, func_get_autoconf_early_snippet)
12389         (func_get_autoconf_snippet, func_get_automake_snippet)
12390         (func_get_include_directive, func_get_link_directive)
12391         (func_get_license, func_get_maintainer, func_import): Avoid
12392         shell syntax errors from parsing syntax extensions.
12393
12394 2010-09-09  Bruno Haible  <bruno@clisp.org>
12395
12396         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12397         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
12398         a reliable way to determine whether the 'alias' command works.
12399
12400 2010-09-08  Jim Meyering  <meyering@redhat.com>
12401
12402         init.sh: penalize a set-x-impaired shell; don't disqualify it
12403         * tests/init.sh: Too many shells corrupt application stderr when
12404         you set -x, so we can't afford to disqualify them, since at least
12405         on Irix-6.5, that would disqualify all bourne shells.
12406         Instead, use a two-pass approach.
12407         On the first pass, try to find a shell that meets the stricter
12408         condition that set -x does not corrupt stderr.
12409         If no shell meets the stricter condition, retest each candidate
12410         shell, but without that extra condition.  Finally, when
12411         VERBOSE=yes is requested and set -x might cause trouble, simply
12412         issue a warning and refrain from enabling debug output.
12413
12414 2010-09-08  Eric Blake  <eblake@redhat.com>
12415
12416         unsetenv: fix OpenBSD bug
12417         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
12418         * doc/posix-functions/unsetenv.texi (unsetenv): Update
12419         documentation.
12420         Reported by Jim Meyering.
12421
12422         strtod: work around IRIX 6.5 bug
12423         * lib/strtod.c (strtod): Reparse number on shorter string if
12424         exponent parse was invalid.
12425         * tests/test-strtod.c (main): Add check for "0x1p 2".
12426         Reported by Tom G. Christensen.
12427
12428         getopt: optimize previous patch
12429         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
12430         empty variable.  Speed up awk script.
12431         Reported by Paolo Bonzini.
12432
12433 2010-09-08  Jim Meyering  <meyering@redhat.com>
12434
12435         test.sh: disqualify shells for which set -x corrupts stderr
12436         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
12437         and OpenBSD 4.7.  They make it so with "set -x", environment settings
12438         appear in stderr output.  For example, this command:
12439             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
12440         prints "P=1" on those two systems:
12441
12442 2010-09-08  Bruno Haible  <bruno@clisp.org>
12443
12444         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12445         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
12446         commands, because some shells ignore redirections when there is an
12447         error in the command lookup.
12448         Reported by Eric Blake.
12449
12450 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
12451
12452         * lib/regex.h: Fix a mention of `regex_compile' (should be
12453         `re_compile_pattern').
12454         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
12455         (re_set_registers): Correct name of parameter in comment.
12456
12457         * doc/regex.texi: Add documentation for missing syntax flags.
12458         Remove commented-out documentation of defunct syntax option
12459         RE_NO_EMPTY_ALTS.
12460         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
12461         Add documentation of re_set_registers.
12462         Document trick to re-use a pattern buffer by setting fastmap manually.
12463         Update documentation of struct re_pattern_buffer per public members.
12464         Uncomment documentation of equivalence class operators and
12465         collating symbol operators, since they are now implemented,
12466         Explain leftmost-longest matching in relation to alternatives.
12467         Tidy documentation of substring matching.
12468         Remove POSIX documentation, which is done better in
12469         glibc, and refer the reader there. Keep BSD API documentation, as
12470         that is not readily available elsewhere.
12471
12472 2010-09-07  Eric Blake  <eblake@redhat.com>
12473
12474         getopt: handle POSIXLY_CORRECT set but not exported
12475         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
12476         export state of POSIXLY_CORRECT, due to bash set -o posix.
12477         Reported by Dustin J. Mitchell.
12478
12479 2010-09-05  Bruno Haible  <bruno@clisp.org>
12480
12481         gnulib-tool: Highlight the changed options.
12482         * gnulib-tool (func_usage): Display the --import, --add-import,
12483         --remove-import explanations in bold font.
12484
12485 2010-09-06  Karl Berry  <karl@gnu.org>
12486
12487         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
12488
12489 2010-09-05  Bruno Haible  <bruno@clisp.org>
12490
12491         uniwidth/width: Update comment.
12492         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
12493         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
12494
12495 2010-09-05  Bruno Haible  <bruno@clisp.org>
12496
12497         isinf, isnan: Relax license.
12498         * modules/isinf (License): Change from GPL to LGPL, with consent from
12499         Ben Pfaff.
12500         * modules/isnan (License): Likewise.
12501         Requested by Ludovic Courtès.
12502
12503 2010-09-04  Bruno Haible  <bruno@clisp.org>
12504
12505         gnulib-tool: Help migration from --import to --add-import or --update.
12506         * gnulib-tool: Emit a verbose error message when --import is used
12507         without any module name.
12508
12509 2010-09-04  Bruno Haible  <bruno@clisp.org>
12510
12511         Update doc about gnulib-tool.
12512         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
12513         'gnulib-tool --update' in more detail.
12514         Reported by Eric Blake.
12515
12516 2010-09-04  Bruno Haible  <bruno@clisp.org>
12517
12518         gnulib-tool: Change --import. New options --add/remove-import.
12519         * gnulib-tool: New options --add-import, --remove-import.
12520         (func_usage): Document them.
12521         (have_associative): Define always.
12522         (func_import): In import mode, don't merge the specified settings with
12523         the cached settings. Implement remove-import mode.
12524         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
12525         Explain when to use them versus --import.
12526         (Simple update): Use --add-import instead of --import.
12527         * NEWS: Mention the change.
12528
12529 2010-09-04  Bruno Haible  <bruno@clisp.org>
12530
12531         * doc/gnulib-tool.texi (Initial import): Update paragraph about
12532         separate gnulib.mk.
12533
12534 2010-09-04  Bruno Haible  <bruno@clisp.org>
12535
12536         gnulib-tool: Don't talk about CVS any more.
12537         * gnulib-tool (func_usage, func_import): Write "version control"
12538         instead of CVS.
12539
12540 2010-09-04  Jim Meyering  <meyering@redhat.com>
12541
12542         maint.mk: avoid obscure sc_copyright_check failure in coreutils
12543         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
12544         false positives (whose names may be ill-chosen) when searching
12545         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
12546         would cause a false-positive.
12547
12548         avoid coreutils "make distcheck" failure
12549         Coreutils tests with an absolute build directory name that contains
12550         a space.  Not quoting this directory name caused a failure.
12551         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
12552         * tests/test-vc-list-files-cvs.sh: Likewise.
12553
12554 2010-09-04  Bruno Haible  <bruno@clisp.org>
12555
12556         gnulib-tool: Avoid error when run in a package without Makefile.am.
12557         * gnulib-tool: When collecting the m4dirs in a package that does not
12558         have a Makefile.am, eliminate those directories that contain no
12559         gnulib-cache.m4. Fix expression that counts these directories.
12560
12561 2010-09-04  Bruno Haible  <bruno@clisp.org>
12562
12563         update-copyright test: Improve output when perl is missing or too old.
12564         * tests/test-update-copyright.sh: Move test of Perl version down after
12565         the test whether Perl exists. Provide an explanation relating Perl's
12566         error message to Automake's SKIP: message.
12567
12568 2010-09-04  Bruno Haible  <bruno@clisp.org>
12569
12570         Don't augment PATH in TESTS_ENVIRONMENT.
12571         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
12572         set abs_aux_dir instead of augmenting PATH.
12573         * modules/vc-list-files-tests (Makefile.am): Likewise.
12574         * tests/test-update-copyright.sh: Augment PATH here.
12575         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
12576         path_prepend_.
12577         * tests/test-vc-list-files-git.sh: Likewise.
12578
12579 2010-09-04  Jim Meyering  <meyering@redhat.com>
12580
12581         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
12582         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
12583
12584 2010-09-04  Bruno Haible  <bruno@clisp.org>
12585
12586         strdup: Fix compilation error in C++ mode.
12587         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
12588         the macro.
12589
12590 2010-09-04  Bruno Haible  <bruno@clisp.org>
12591
12592         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
12593         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
12594         macro into a function.
12595         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12596
12597 2010-09-04  Bruno Haible  <bruno@clisp.org>
12598
12599         Set PATH_SEPARATOR the same way autoconf does.
12600         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
12601         the value of PATH_SEPARATOR the same way autoconf-generated configure
12602         scripts do.
12603         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
12604         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
12605
12606 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12607
12608         Set PATH_SEPARATOR the same way autoconf does.
12609         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
12610         the same way autoconf-generated configure scripts do.
12611         * posix-modules: Likewise.
12612
12613 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12614
12615         hash: fix safe_hasher const typo
12616         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
12617         const; otherwise, there is a type error later.
12618
12619 2010-09-02  Jim Meyering  <meyering@redhat.com>
12620
12621         test-update-copyright.sh: require perl 5.8.0
12622         * tests/test-update-copyright.sh: Require 5.8.0,
12623         which Tom G. Christensen has confirmed is adequate,
12624         while 5.6.1 is not.
12625
12626 2010-09-02  Eric Blake  <eblake@redhat.com>
12627
12628         tests: init.sh improvements for re-exec'ing with zsh
12629         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
12630         -vx through shell re-exec.
12631         Reported by Tom G. Christensen.
12632
12633         wctype: fix typo in previous commit
12634         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
12635         Reported by Ludovic Courtès.
12636
12637 2010-09-02  Jim Meyering  <meyering@redhat.com>
12638
12639         test-update-copyright.sh: skip test if Perl is too old
12640         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
12641         Reported by Tom G. Christensen.
12642
12643 2010-09-02  Bruno Haible  <bruno@clisp.org>
12644
12645         wctype: Avoid compilation error on IRIX 6.5.30.
12646         * lib/wctype.in.h (iswblank): Declare with a replacement if
12647         REPLACE_ISWBLANK is set.
12648         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
12649         declared. Set REPLACE_ISWBLANK.
12650         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
12651         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
12652         * doc/posix-headers/wctype.texi: Likewise.
12653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12654
12655 2010-09-01  Bruno Haible  <bruno@clisp.org>
12656
12657         New module 'socketlib'.
12658         * modules/socketlib: New file.
12659         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
12660         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
12661         * modules/sockets (Depends-on): Add socketlib.
12662         Suggested by Sam Steingold <sds@gnu.org>.
12663
12664 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12665
12666         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
12667
12668         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
12669         when one needs search access to a directory but not read access.
12670         On systems where it is available, it works in some cases where
12671         O_RDONLY does not, namely on directories that are searchable but
12672         not readable, and which need only to be searchable.  If O_SEARCH
12673         is not available, fall back to the traditional method of using
12674         O_RDONLY.
12675
12676         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
12677         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
12678         when opening a directory that needs only to be searchable.
12679         * lib/chdir-safer.c (chdir_no_follow): Likewise.
12680         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
12681         * lib/openat-proc.c (openat_proc_name): Likewise.
12682         * lib/openat.c (openat_needs_fchdir): Likewise.
12683         * lib/save-cwd.c (save_cwd): Likewise.
12684         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
12685
12686 2010-08-28  Bruno Haible  <bruno@clisp.org>
12687
12688         New module 'host-cpu-c-abi'.
12689         * modules/host-cpu-c-abi: New file.
12690         * m4/host-cpu-c-abi.m4: New file, based on part of
12691         clisp/src/m4/general.m4.
12692         Requested by Sam Steingold <sds@gnu.org>.
12693
12694 2010-08-31  Eric Blake  <eblake@redhat.com>
12695         and Jim Meyering  <meyering@redhat.com>
12696
12697         hash: factor, and guard against misbehaving hasher function
12698         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
12699         of table->hasher's return value.  Also protect against a hash value
12700         so large that adding it to table->bucket results in a NULL pointer.
12701         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
12702         Use it in place of open-coded check-and-abort.
12703
12704 2010-08-30  Bruno Haible  <bruno@clisp.org>
12705
12706         hash: silence spurious clang warning
12707         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
12708         Reported by Eric Blake.
12709
12710 2010-08-30  Eric Blake  <eblake@redhat.com>
12711
12712         strstr, memmem, strcasestr: avoid leaked shell message
12713         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
12714         FreeBSD.
12715         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12716         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12717
12718         tests: silence clang warning
12719         * tests/test-malloca.c (do_allocation): Avoid dead store.
12720
12721 2010-08-29  Bruno Haible  <bruno@clisp.org>
12722
12723         gettext: Fix recent mistake.
12724         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
12725
12726 2010-08-29  Bruno Haible  <bruno@clisp.org>
12727
12728         selinux-h: Offer a --without-selinux option.
12729         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
12730         --without-selinux was specified, skip all tests and define
12731         HAVE_SELINUX_SELINUX_H to 0.
12732         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
12733         set LIB_SELINUX to empty.
12734         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
12735         gl_LIBSELINUX. If --without-selinux was specified, replace
12736         selinux/context.h.
12737         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
12738
12739 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12740             Bruno Haible  <bruno@clisp.org>
12741
12742         Make the module 'realloc-gnu' work again on AIX and OSF/1.
12743         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
12744         of HAVE_REALLOC.
12745         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
12746         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
12747         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
12748         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12749
12750 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12751             Bruno Haible  <bruno@clisp.org>
12752
12753         Make the module 'calloc-gnu' work again on AIX and OSF/1.
12754         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
12755         HAVE_CALLOC.
12756         * lib/xmalloc.c: Update accordingly.
12757         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
12758         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
12759         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
12760
12761 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12762             Bruno Haible  <bruno@clisp.org>
12763
12764         Make the module 'malloc-gnu' work again on AIX and OSF/1.
12765         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
12766         HAVE_MALLOC.
12767         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
12768         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
12769         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12770
12771 2010-08-29  Bruno Haible  <bruno@clisp.org>
12772
12773         Update modules list.
12774         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12775         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
12776         (String handling <string.h>): Add astrxfrm.
12777         (File system functions): Add readlinkat.
12778
12779 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12780
12781         Tests for module 'realloc-gnu'.
12782         * modules/realloc-gnu-tests: New file.
12783         * tests/test-realloc-gnu.c: New file.
12784
12785         Tests for module 'calloc-gnu'.
12786         * modules/calloc-gnu-tests: New file.
12787         * tests/test-calloc-gnu.c: New file.
12788
12789         Tests for module 'malloc-gnu'.
12790         * modules/malloc-gnu-tests: New file.
12791         * tests/test-malloc-gnu.c: New file.
12792
12793 2010-08-28  Bruno Haible  <bruno@clisp.org>
12794
12795         Rename module 'realloc' -> 'realloc-gnu'.
12796         * modules/realloc-gnu: New file, copied from modules/realloc.
12797         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
12798         obsolete.
12799         * modules/mgetgroups (Depends-on): Update.
12800         * doc/posix-functions/realloc.texi: Update.
12801         * NEWS: Mention the change.
12802
12803         Rename module 'calloc' -> 'calloc-gnu'.
12804         * modules/calloc-gnu: New file, copied from modules/calloc.
12805         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
12806         obsolete.
12807         * doc/posix-functions/calloc.texi: Update.
12808         * NEWS: Mention the change.
12809
12810         Rename module 'malloc' -> 'malloc-gnu'.
12811         * modules/malloc-gnu: New file, copied from modules/malloc.
12812         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
12813         obsolete.
12814         * modules/argp (Depends-on): Update.
12815         * modules/regex (Depends-on): Update.
12816         * doc/posix-functions/malloc.texi: Update.
12817         * NEWS: Mention the change.
12818
12819 2010-08-28  Eric Blake  <eblake@redhat.com>
12820
12821         pread, pwrite: add missing dependency
12822         * modules/pread (Depends-on): Add extensions.
12823         * modules/pwrite (Depends-on): Likewise.
12824
12825 2010-08-28  Bruno Haible  <bruno@clisp.org>
12826
12827         unistr/u*-strchr: Fix tests dependencies.
12828         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
12829         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
12830         Reported by Ian Beckwith <ianb@erislabs.net>.
12831
12832 2010-08-28  Bruno Haible  <bruno@clisp.org>
12833
12834         read-file: Don't occupy too much unused memory.
12835         * lib/read-file.c (fread_file): Shrink the buffer at the end.
12836
12837 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
12838             Eric Blake  <eblake@redhat.com>
12839             Bruno Haible  <bruno@clisp.org>
12840
12841         read-file: Avoid memory reallocations with regular files.
12842         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
12843         (fread_file): With regular files, use the remaining length as the
12844         initial buffer size.  Check against overflow.
12845         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
12846         sys_stat.
12847
12848 2010-08-28  Bruno Haible  <bruno@clisp.org>
12849
12850         ftello: Relax license.
12851         * modules/ftello (License): Relax to LGPLv2+.
12852         Reported by Eric Blake.
12853
12854 2010-08-28  Bruno Haible  <bruno@clisp.org>
12855
12856         Avoid relocwrapper link errors due to gnulib replacement functions.
12857         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
12858         function.
12859         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12860
12861 2010-08-28  Bruno Haible  <bruno@clisp.org>
12862
12863         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
12864         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
12865         defined.
12866         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
12867         Suggested by Eric Blake.
12868
12869 2010-08-28  Bruno Haible  <bruno@clisp.org>
12870
12871         sys_socket, netdb: Ensure socklen_t gets defined.
12872         * modules/sys_socket (Depends-on): Add socklen.
12873         * modules/netdb (Depends-on): Likewise.
12874         * modules/getaddrinfo (Depends-on): Remove socklen.
12875         * modules/getsockopt (Depends-on): Likewise.
12876         * modules/setsockopt (Depends-on): Likewise.
12877         * tests/test-sys_socket.c: Check that socklen_t is defined.
12878         * tests/test-netdb.c: Likewise.
12879         * m4/socklen.m4: Update comments.
12880         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12881
12882 2010-08-27  Eric Blake  <eblake@redhat.com>
12883
12884         login_tty: add missing dependency
12885         * modules/login_tty (Depends-on): Add pty.
12886
12887 2010-08-26  Eric Blake  <eblake@redhat.com>
12888
12889         lib-symbol-versions: fix m4 quoting
12890         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
12891         format for AC_LINK_IFELSE.
12892
12893         glob: fix compile test
12894         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
12895
12896         btowc: fix missing file
12897         * modules/btowc (Files): Also ship locale-fr.m4.
12898
12899         lseek: fix link test
12900         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
12901         AC_LINK_IFELSE.
12902
12903         include_next: silence autoconf 2.68 warning
12904         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
12905         AC_COMPILE_IFELSE as special.
12906         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
12907         autoconf < 2.68.
12908
12909         acl: fix compilation test
12910         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
12911         AC_COMPILE_IFELSE.
12912
12913 2010-08-26  Bruno Haible  <bruno@clisp.org>
12914
12915         Modernize AC_TRY_RUN invocations.
12916         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
12917         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12918         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
12919         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
12920         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12921         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12922         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12923         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12924         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12925         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12926         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12927         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12928         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12929         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12930         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12931         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12932         gl_MBRLEN_NUL_RETVAL): Likewise.
12933         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12934         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12935         Likewise.
12936         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12937         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12938         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12939         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12940         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
12941         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
12942         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
12943         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12944         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
12945         Likewise.
12946         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
12947         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12948         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12949         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12950         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12951         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12952         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12953         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
12954         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12955         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12956
12957 2010-08-26  Bruno Haible  <bruno@clisp.org>
12958
12959         Modernize AC_TRY_LINK invocations.
12960         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
12961         AC_TRY_LINK.
12962         * m4/argp.m4 (gl_ARGP): Likewise.
12963         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12964         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12965         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
12966         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12967         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12968         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
12969         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12970         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12971         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12972         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12973         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12974         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
12975         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
12976         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12977         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
12978         * m4/hostent.m4 (gl_HOSTENT): Likewise.
12979         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12980         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
12981         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
12982         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
12983         Likewise.
12984         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
12985         Likewise.
12986         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
12987         Likewise.
12988         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
12989         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
12990         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
12991         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12992         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12993         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12994         * m4/servent.m4 (gl_SERVENT): Likewise.
12995         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12996         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12997         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12998         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12999         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13000         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13001         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13002         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13003         * modules/tsearch-tests (configure.ac): Likewise.
13004
13005 2010-08-26  Bruno Haible  <bruno@clisp.org>
13006
13007         Modernize AC_TRY_COMPILE invocations.
13008         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
13009         AC_TRY_COMPILE.
13010         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
13011         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
13012         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13013         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13014         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13015         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13016         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13017         * m4/lock.m4 (gl_LOCK): Likewise.
13018         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13019         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13020         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
13021         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13022         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13023         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
13024         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13025         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
13026         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13027         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13028         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13029         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13030         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
13031         extraneous semicolon.
13032
13033 2010-08-26  Jim Meyering  <meyering@redhat.com>
13034
13035         stat-time: relax license LGPL
13036         * modules/stat-time (License): Change from GPL to LGPL,
13037         with consent from all contributors, for use in libguile.
13038         Requested by Ludovic Courtès.
13039
13040 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
13041
13042         poll: return immediately on POLLHUP.
13043         * lib/poll.c (poll): Always set timeout before wait_timeout is
13044         computed.
13045
13046 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13047
13048         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
13049         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
13050         rmdir ("dir/.//"), unlinkat.
13051
13052 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13053
13054         stdbool: avoid spurious failure with modern xlc
13055         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13056
13057 2010-08-24  Bruno Haible  <bruno@clisp.org>
13058
13059         getloadavg: simplify code
13060         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
13061         gl_have_func. Update comments.
13062
13063 2010-08-24  Eric Blake  <eblake@redhat.com>
13064
13065         getloadavg: don't define SVR4 on cygwin
13066         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
13067         only define SVR4 when -lkvm is required.
13068         Reported by Yaakov Selkowitz.
13069
13070 2010-08-24  Bruno Haible  <bruno@clisp.org>
13071
13072         priv-set: fix comment
13073         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
13074
13075 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13076
13077         priv-set: fix comments
13078         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
13079         to match code, as suggested by David Bartley in:
13080         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
13081
13082 2010-08-23  Eric Blake  <eblake@redhat.com>
13083
13084         stdbool: avoid rejecting clang
13085         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13086         * tests/test-stdbool.c: Enable more tests if using the system
13087         <stdbool.h> instead of the gnulib replacement.
13088         (main): Move xlc bug test to a runtime test for all compilers.
13089         Reported by Anders Kaseorg.
13090
13091         argz: fix shell quoting issue
13092         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
13093         Reported by Charles Wilson.
13094
13095 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
13096             Erik Faye-Lund <kusmabite@gmail.com>
13097
13098         poll, select: handle ERROR_BROKEN_PIPE.
13099         * lib/poll.c (win32_compute_revents): Return POLLHUP when
13100         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13101         * lib/select.c (win32_compute_revents): Do not mark a pipe
13102         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13103
13104 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
13105
13106         fts: allow compilation with C++
13107         * lib/fts_.h: Specify extern "C" linkage with C++.
13108
13109 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13110
13111         Fix gnulib-tool sed script de-commentation for AIX sed.
13112         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
13113         sed.
13114
13115 2010-08-17  Eric Blake  <eblake@redhat.com>
13116
13117         test-stddef: test for (some) offsetof bugs
13118         * tests/test-stddef.c: Enhance test to ensure correct type of
13119         offsetof.
13120         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
13121         that we are not fixing at this time.
13122
13123 2010-08-15  Bruno Haible  <bruno@clisp.org>
13124
13125         stpncpy: Allow stpncpy to be defined as a macro.
13126         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
13127         if it's already correctly declared.
13128         * lib/string.in.h (stpncpy): Undefine before redefining.
13129         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
13130
13131 2010-08-14  Bruno Haible  <bruno@clisp.org>
13132
13133         Rename module 'memxfrm' to 'amemxfrm'.
13134         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
13135         (amemxfrm): Renamed from memxfrm.
13136         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
13137         (amemxfrm): Renamed from memxfrm.
13138         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
13139         * NEWS: Mention the change.
13140         * MODULES.html.sh (String handling <string.h>): Update.
13141         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
13142         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
13143         * lib/unicase/u16-casexfrm.c: Likewise.
13144         * lib/unicase/u32-casexfrm.c: Likewise.
13145         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
13146         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
13147         * lib/uninorm/u16-normxfrm.c: Likewise.
13148         * lib/uninorm/u32-normxfrm.c: Likewise.
13149         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
13150         memxfrm.
13151         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
13152         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
13153         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
13154         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
13155         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
13156         Suggested by Paul Eggert.
13157
13158 2010-08-14  Bruno Haible  <bruno@clisp.org>
13159
13160         Tests for module 'astrxfrm'.
13161         * modules/astrxfrm-tests: New file.
13162         * tests/test-astrxfrm.c: New file.
13163
13164         New module 'astrxfrm'.
13165         * lib/astrxfrm.h: New file.
13166         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
13167         * modules/astrxfrm: New file.
13168
13169 2010-08-14  Reuben Thomas <rrt@sc3d.org>
13170
13171         regex: Tweak doc.
13172         * doc/regex.texi (Overview): Don't mention regex.c.
13173         (GNU Regular Expression Compiling): Likewise.
13174         (Match-end-of-line Operator): Mention 'not_eol'.
13175
13176 2010-08-14  Brian Gough  <bjg@gnu.org>
13177             Bruno Haible  <bruno@clisp.org>
13178
13179         git-merge-changelog: add doc relating to use with bzr and hg.
13180         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
13181
13182 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
13183
13184         pthread: fix pthread.h creation for srcdir != builddir
13185         * modules/pthread (Makefile.am): Fix the rule to work also in a
13186         non-srcdir build.
13187
13188 2010-08-13  Karl Berry  <karl@gnu.org>
13189
13190         * doc/regex.texi (Predefined Syntaxes): @smallexample.
13191         * doc/posix-*/*: force line break before @url of POSIX
13192         specifications.
13193         Suggested by Werner Lemberg.
13194
13195 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13196
13197         strtod: fix const diagnostic
13198         * lib/strtod.c (strtod): Don't assign const char * to char *,
13199         as this elicits a warning from GCC when warnings are enabled.
13200
13201 2010-08-10  Pádraig Brady <P@draigbrady.com>
13202         and Eric Blake  <eblake@redhat.com>
13203
13204         copy-acl: ignore ENOTSUP on HP-UX
13205         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
13206         so that it is available for HP-UX.
13207         * lib/copy-acl.c (qcopy_acl): Use it.
13208         Reported by Patrick M. Callahan.
13209
13210 2010-08-10  Eric Blake  <eblake@redhat.com>
13211
13212         open, chown: relax license
13213         * modules/open (License): Change to LGPLv2+, with consent by all
13214         authors, for use in augeas.
13215         * modules/chown (License): Likewise.
13216         * modules/lchown (Likewise): Likewise.
13217         Requested by Adam Stokes.
13218
13219 2010-08-09  Karl Berry  <karl@gnu.org>
13220
13221         * build-aux/ar-lib: new file, import from Automake.
13222         * config/srclist.txt: autocheck for updates.
13223
13224 2010-08-09  Eric Blake  <eblake@redhat.com>
13225
13226         readlinkat: adjust client modules
13227         * modules/areadlinkat (Depends-on): Use readlinkat, not
13228         symlinkat.
13229         * modules/areadlinkat-with-size (Depends-on): Likewise.
13230
13231         mknod: be more vocal about danger of running tests as root
13232         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
13233         root, since that is just asking for problems.
13234         Suggested by Bruno Haible, based on a report by Rainer Tammer.
13235
13236         readlinkat: split into its own module
13237         * modules/symlinkat: Split readlinkat...
13238         * modules/readlinkat: ...into separate module.
13239         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
13240         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
13241         * lib/symlinkat.c (readlinkat): Move...
13242         * lib/readlinkat.c: ...into new file.
13243         * modules/symlinkat-tests: Split readlinkat test...
13244         * modules/readlinkat-tests: ...into separate module.
13245         * tests/test-symlinkat.c: Split...
13246         * tests/test-readlinkat.c: ...into new file.
13247         * NEWS: Document the split.
13248         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13249         * lib/unistd.in.h (readlinkat): Likewise.
13250         Suggested by Bruno Haible.
13251
13252 2010-08-08  Bruno Haible  <bruno@clisp.org>
13253
13254         memxfrm: Speed up.
13255         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
13256         that usually only one call to strxfrm is necessary for each string
13257         part.
13258         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13259
13260 2010-08-07  Karl Berry  <karl@gnu.org>
13261
13262         * doc/posix-headers/limits.texi,
13263         * doc/posix-functions/malloc.texi,
13264         * doc/posix-functions/strsignal.texi: missing @item.
13265         * doc/ld-version-script.texi: spurious leading i.
13266         * doc/regex.texi (Interval Operators): no commas inside @var.
13267
13268 2010-08-01  Bruno Haible  <bruno@clisp.org>
13269
13270         Integrate the regex documentation.
13271         * doc/gnulib.texi: Define 'cn' index.
13272         (Regular expressions): New a chapter that includes regex.texi and
13273         regexprops-generic.texi.
13274         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
13275         syntax.
13276
13277         Whitespace cleanup.
13278         * doc/regex.texi: Remove trailing spaces.
13279
13280         Add regex documentation.
13281         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
13282         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
13283         Written by Kathy A. Hargreaves and Karl Berry.
13284
13285 2010-08-01  Bruno Haible  <bruno@clisp.org>
13286
13287         link: Update documentation.
13288         * doc/posix-functions/link.texi: Update regarding Solaris.
13289
13290 2010-07-31  Bruno Haible  <bruno@clisp.org>
13291
13292         Update modules list.
13293         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
13294         (String handling <string.h>): Add memcmp2, memxfrm.
13295         (Container data structures): Add xlist, xsublist, xoset.
13296         (Core language properties): Add alignof, unused-parameter.
13297         (Process control, Numeric conversion functions <stdlib.h>): Renamed
13298         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
13299         (Unibyte characters <ctype.h>): New section.
13300         (String handling <string.h>): New section.
13301         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
13302         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
13303         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
13304         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
13305         tan, tanh, tanl, y0, y1, yn.
13306         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
13307         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
13308         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
13309         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
13310         unlockpt, vdprintf, vdprintf-posix.
13311         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
13312         (File system functions): Add concat-filename, sys_file, sys_ioctl,
13313         xconcat-filename.
13314         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
13315         getdtablesize, pipe2, pipe2-safer.
13316         (Security): New section.
13317         (Networking functions): Add accept4.
13318         (Signal handling): Add sigpipe.
13319         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
13320         mbmemcasecoll.
13321         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
13322         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
13323         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
13324         pipe-filter-ii.
13325         (Misc): Add argp-version-etc, login_tty, parse-duration.
13326
13327 2010-07-31  Bruno Haible  <bruno@clisp.org>
13328
13329         Improve doc in MODULES.html.
13330         * modules/linkat (Description): Add the word "function".
13331         * modules/mkfifo (Description): Likewise.
13332         * modules/mknod (Description): Likewise.
13333         * modules/remove (Description): Likewise.
13334         * modules/renameat (Description): Likewise.
13335         * modules/stat (Description): Likewise.
13336         * modules/symlink (Description): Likewise.
13337         * modules/unlink (Description): Likewise.
13338
13339 2010-07-31  Bruno Haible  <bruno@clisp.org>
13340
13341         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
13342         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
13343         option --enable/disable-c++ instead of --enable/disable-cxx.
13344         * NEWS: Mention the change.
13345
13346 2010-07-31  Bruno Haible  <bruno@clisp.org>
13347
13348         readlink, areadlink: Relax test a bit.
13349         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
13350         alternative to ENOTDIR.
13351         * tests/test-areadlink.h (test_areadlink): Likewise.
13352         Reported by Rainer Tammer.
13353
13354 2010-07-31  Bruno Haible  <bruno@clisp.org>
13355
13356         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
13357         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
13358         character, perform the search using U_STRCHR.
13359         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
13360         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
13361         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
13362         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
13363         Suggested by Paolo Bonzini.
13364
13365 2010-07-31  Bruno Haible  <bruno@clisp.org>
13366
13367         unistr/u*-strstr: Fix dependencies.
13368         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
13369         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
13370         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
13371
13372 2010-07-31  Bruno Haible  <bruno@clisp.org>
13373
13374         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
13375         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
13376         the beginning of the loop.
13377         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
13378         cases in 'switch' statement.
13379
13380         unistr/u8-strchr: Fix several bugs.
13381         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
13382         the string. When not found, return NULL, not a pointer near the end.
13383
13384         More tests for unistr/u8-strchr.
13385         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
13386         that the function does not read past the first occurrence of the byte
13387         being searched.
13388         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
13389         * tests/unistr/test-u16-strchr.c (main): New function.
13390         * tests/unistr/test-u32-strchr.c (main): New function.
13391
13392 2010-07-31  Bruno Haible  <bruno@clisp.org>
13393
13394         posix-modules: Ignore backup files of documentation files.
13395         * posix-modules: grep only through files named *.texi.
13396
13397 2010-07-31  Bruno Haible  <bruno@clisp.org>
13398
13399         symlinkat: Fix documentation.
13400         * doc/posix-functions/readlinkat.texi: Fix module name.
13401
13402 2010-07-31  Bruno Haible  <bruno@clisp.org>
13403
13404         fchownat: Replace also when chown has the trailing slash bug.
13405         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
13406         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
13407         introduced on 2010-04-10.
13408         Reported by Rainer Tammer.
13409
13410 2010-07-31  Bruno Haible  <bruno@clisp.org>
13411
13412         linkat: Work around AIX 7.1 bug.
13413         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
13414         whether linkat handles trailing slash correctly. If not, replace linkat
13415         and define LINKAT_TRAILING_SLASH_BUG.
13416         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
13417         check whether (fd1,file1) points to a directory if file1 or file2 ends
13418         in a slash. Code taken from lib/link.c.
13419         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
13420         Reported by Rainer Tammer.
13421
13422 2010-07-31  Bruno Haible  <bruno@clisp.org>
13423
13424         Correctly determine whether pow is available in libc on AIX 7 with xlc.
13425         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
13426         This disables an xlc optimization that was causing wrong test results.
13427         Reported by Rainer Tammer.
13428
13429 2010-07-31  Bruno Haible  <bruno@clisp.org>
13430
13431         iconv: Work around AIX 6.1..7.1 bug.
13432         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
13433         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
13434         cross-compiling, guess no on all versions of AIX.
13435         Reported by Rainer Tammer.
13436
13437 2010-07-31  Bruno Haible  <bruno@clisp.org>
13438
13439         readlink: Relax test a bit.
13440         * tests/test-readlink.h (test_readlink): Allow different errno value
13441         when readlink is called with a file name that ends in / and refers to
13442         a file.
13443         Suggested by Eric Blake.
13444         Reported by Rainer Tammer.
13445
13446 2010-07-31  Bruno Haible  <bruno@clisp.org>
13447
13448         copysign: Does not require -lm on glibc systems.
13449         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
13450         gl_COMMON_DOUBLE_MATHFUNC.
13451         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
13452
13453 2010-07-31  Bruno Haible  <bruno@clisp.org>
13454
13455         duplocale: Work around AIX 7.1 bug.
13456         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
13457         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
13458         * lib/duplocale.c (rpl_duplocale): Update comment.
13459         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
13460         Reported by Rainer Tammer.
13461
13462 2010-07-30  Bruno Haible  <bruno@clisp.org>
13463
13464         dirfd: Avoid link error on AIX 7.1.
13465         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
13466         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
13467         exist, set REPLACE_DIRFD.
13468         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
13469         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
13470         * doc/posix-functions/dirfd.texi: Update.
13471         Reported by Rainer Tammer.
13472
13473 2010-07-30  Eric Blake  <eblake@redhat.com>
13474
13475         strtod: next round of AIX fixes
13476         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
13477         exponent.
13478         * tests/test-strtod.c (main): Enhance tests.
13479         * doc/posix-functions/strtod.texi (strtod): Document next bug.
13480         Reported by Rainer Tammer.
13481
13482         futimens: fix configure check
13483         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
13484         Reported by Bruno Haible.
13485
13486 2010-07-30  Bruno Haible  <bruno@clisp.org>
13487
13488         getline: Update regarding AIX.
13489         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
13490         Reported by Rainer Tammer.
13491
13492 2010-07-30  Bruno Haible  <bruno@clisp.org>
13493
13494         wcwidth: Drop replacement on AIX 7.
13495         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
13496         AIX 7.
13497         Reported by Rainer Tammer.
13498
13499 2010-07-30  Bruno Haible  <bruno@clisp.org>
13500
13501         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
13502         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
13503         a 'char *'.
13504         Reported by Rainer Tammer.
13505
13506 2010-07-30  Bruno Haible  <bruno@clisp.org>
13507
13508         unlink: Update regarding AIX.
13509         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
13510         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
13511         Reported by Rainer Tammer.
13512
13513 2010-07-30  Bruno Haible  <bruno@clisp.org>
13514
13515         symlink: Update regarding AIX.
13516         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
13517         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
13518         Reported by Rainer Tammer.
13519
13520 2010-07-30  Bruno Haible  <bruno@clisp.org>
13521
13522         strndup: Update regarding AIX.
13523         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
13524         AIX 7.
13525         Reported by Rainer Tammer.
13526
13527 2010-07-30  Bruno Haible  <bruno@clisp.org>
13528
13529         stat: Update regarding AIX.
13530         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
13531         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
13532         Reported by Rainer Tammer.
13533
13534 2010-07-30  Bruno Haible  <bruno@clisp.org>
13535
13536         truncl: Fix autoconf test.
13537         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
13538         whether truncl works.
13539         Reported by Rainer Tammer.
13540
13541 2010-07-30  Bruno Haible  <bruno@clisp.org>
13542
13543         round: Update regarding AIX.
13544         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
13545         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
13546         Reported by Rainer Tammer.
13547
13548 2010-07-30  Bruno Haible  <bruno@clisp.org>
13549
13550         rename: Update regarding AIX.
13551         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
13552         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
13553         Reported by Rainer Tammer.
13554
13555 2010-07-30  Bruno Haible  <bruno@clisp.org>
13556
13557         printf.m4: Update regarding AIX.
13558         * m4/printf.m4: Update comments regarding AIX.
13559         Reported by Rainer Tammer.
13560
13561 2010-07-30  Bruno Haible  <bruno@clisp.org>
13562
13563         iconv: Update regarding AIX.
13564         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
13565         AIX 7.
13566         Reported by Rainer Tammer.
13567
13568 2010-07-30  Bruno Haible  <bruno@clisp.org>
13569
13570         getopt: Update regarding AIX.
13571         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
13572         no on AIX.
13573         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
13574         Reported by Rainer Tammer.
13575
13576 2010-07-30  Bruno Haible  <bruno@clisp.org>
13577
13578         ldexpl; Update regarding AIX.
13579         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
13580         on AIX 7.
13581         Reported by Rainer Tammer.
13582
13583 2010-07-30  Bruno Haible  <bruno@clisp.org>
13584
13585         frexpl: Update regarding AIX.
13586         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
13587         on AIX 7.
13588         Reported by Rainer Tammer.
13589
13590 2010-07-30  Bruno Haible  <bruno@clisp.org>
13591
13592         open, fopen: Update regarding AIX.
13593         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
13594         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13595         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
13596         * doc/posix-functions/fopen.texi: Likewise.
13597         Reported by Rainer Tammer.
13598
13599 2010-07-30  Bruno Haible  <bruno@clisp.org>
13600
13601         chown: Update doc regarding AIX.
13602         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
13603         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
13604         Reported by Rainer Tammer.
13605
13606 2010-07-30  Eric Blake  <eblake@redhat.com>
13607
13608         strtod: fix bug in replacement function on AIX
13609         * lib/strtod.c (strtod): Special case broken "0x" parse in
13610         underlying strtod.
13611         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
13612         * doc/posix-functions/strtod.texi (strtod): Likewise.
13613         Reported by Rainer Tammer.
13614
13615 2010-07-30  Bruno Haible  <bruno@clisp.org>
13616
13617         mbrlen: Fix cross-compilation guess for AIX.
13618         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
13619         guess. Leftover from 2008-12-22.
13620
13621 2010-07-30  Bruno Haible  <bruno@clisp.org>
13622
13623         mbrtowc: Fix cross-compilation guess for AIX.
13624         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
13625         guess. Leftover from 2008-12-21.
13626
13627 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
13628
13629         init.sh: work around trap limitation of some shells
13630         * tests/init.sh (setup_): Move exit trap outside of shell function.
13631
13632 2010-07-29  Eric Blake  <eblake@redhat.com>
13633
13634         strtod: aid debugging
13635         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
13636         understanding why strtod is rejected.
13637
13638 2010-07-28  Bruno Haible  <bruno@clisp.org>
13639
13640         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
13641         * lib/unistr/u8-chr.c: Include <string.h>.
13642         * tests/unistr/test-u8-chr.c: Likewise.
13643         * tests/unistr/test-u16-chr.c: Likewise.
13644         * tests/unistr/test-u32-chr.c: Likewise.
13645         * tests/unistr/test-u8-strchr.c: Likewise.
13646         * tests/unistr/test-u16-strchr.c: Likewise.
13647         * tests/unistr/test-u32-strchr.c: Likewise.
13648         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
13649         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
13650         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
13651         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
13652
13653 2010-07-28  Bruno Haible  <bruno@clisp.org>
13654
13655         Use spaces for indentation, not tabs.
13656         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13657
13658 2010-07-27  Bruno Haible  <bruno@clisp.org>
13659
13660         mbspcasecmp: Fix function specification.
13661         * lib/string.in.h (mbspcasecmp): Fix specification comment.
13662         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
13663         Reported by Eric Blake <eblake@redhat.com>.
13664
13665 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
13666
13667         timespec: use cast and not conditional, as truncation isn't possible
13668         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
13669         instead of a conditional.  Comment about the situation in more detail.
13670         This undoes most of the 2009-10-29 patch.
13671
13672 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
13673
13674         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
13675         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
13676         * lib/unistr/u8-strchr.c: Likewise.
13677         * modules/unistr/u8-chr: Depend on memchr.
13678
13679         unistr/u*-strchr: add tests
13680         * modules/unistr/u8-strchr-tests: New file.
13681         * modules/unistr/u16-strchr-tests: New file.
13682         * modules/unistr/u32-strchr-tests: New file.
13683         * tests/unistr/test-strchr.h: New file.
13684         * tests/unistr/test-u8-strchr.c: New file.
13685         * tests/unistr/test-u16-strchr.c: New file.
13686         * tests/unistr/test-u32-strchr.c: New file.
13687
13688         unistr/u*-chr: test multibyte sequences more
13689         * tests/unistr/test-chr.h: Do complete testing of the characters in the
13690         test vector.
13691         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
13692         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
13693         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
13694
13695         unistr/u*-chr: test multibyte sequences
13696         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
13697
13698         unistr/u*-chr: prepare for multibyte tests
13699         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
13700         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
13701         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
13702         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
13703         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
13704         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
13705
13706 2010-07-18  Bruno Haible  <bruno@clisp.org>
13707
13708         unistr/u8-strchr: Optimize non-ASCII argument case.
13709         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
13710         because the first byte often matches anyway.
13711         Reported by Pádraig Brady <P@draigbrady.com>.
13712
13713 2010-07-15  Karl Berry  <karl@gnu.org>
13714
13715         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
13716
13717 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
13718
13719         getcwd: on Solaris, work better if ancestors are inaccessible
13720         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
13721         buffer and size, try again with a large buffer.  This works better
13722         on Solaris, since its getcwd succeeds even if the path to the root
13723         is inaccessible, and this is helpful in common cases such as .zfs
13724         hidden directories.  Problem reported by J Chapman Flack in
13725         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
13726         Use system getcwd if it's declared, not merely if it's partly
13727         working; use the partly-working test only to avoid needless effort
13728         if the system getcwd fails.
13729         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
13730         comment that was already obsolete and is now even more obsolete.
13731         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
13732         now might call strdup.
13733
13734 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
13735
13736         pthread: Add enough so that coreutils/src/sort.c compiles.
13737         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
13738         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
13739         gnulib. Include <sched.h> and <time.h>, as per POSIX.
13740         Include <sys/types.h>, in case it defines pthread_t.
13741         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
13742         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
13743         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
13744         (pthread_rwlockattr_t, pthread_spinlock_t):
13745         New typedefs, if HAVE_PTHREAD_T is not defined.
13746         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
13747         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
13748         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
13749         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
13750         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
13751         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
13752         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
13753         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
13754         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
13755         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
13756         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
13757         New macros.
13758         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
13759         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
13760         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
13761         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
13762         (pthread_spin_unlock): New dummy functions.
13763         (pthread_create): Return EAGAIN; don't set errno.
13764         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
13765         require AC_C_INLINE.
13766         * modules/pthread (Depends-on): Add sched, time.
13767         (pthread.h): Use AM_V_GEN.
13768
13769 2010-07-13  Bruno Haible  <bruno@clisp.org>
13770
13771         striconveh: Don't malloc memory if the result buffer is sufficient.
13772         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
13773         buffer if its size is sufficient.
13774         Reported by Ludovic Courtès <ludo@gnu.org>.
13775
13776 2010-07-13  Bruno Haible  <bruno@clisp.org>
13777
13778         strtod: Add safety check.
13779         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
13780
13781 2010-07-12  Bruno Haible  <bruno@clisp.org>
13782
13783         Unify tests that set gl_cv_func_ldexpl_no_libm.
13784         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
13785         gl_FUNC_LDEXPL.
13786         (gl_FUNC_LDEXPL): Invoke it.
13787         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13788
13789 2010-07-12  Bruno Haible  <bruno@clisp.org>
13790
13791         Unify tests that set gl_cv_func_ldexp_no_libm.
13792         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
13793         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
13794         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
13795         (configure.ac): Simply invoke gl_FUNC_LDEXP.
13796         * modules/strtod (Files): Add m4/ldexp.m4.
13797
13798 2010-07-12  Bruno Haible  <bruno@clisp.org>
13799
13800         Unify tests that set gl_cv_func_frexpl_no_libm.
13801         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
13802         gl_FUNC_FREXPL_NO_LIBM.
13803         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
13804         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13805
13806 2010-07-12  Bruno Haible  <bruno@clisp.org>
13807
13808         Unify tests that set gl_cv_func_frexp_no_libm.
13809         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
13810         gl_FUNC_FREXP_NO_LIBM.
13811         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
13812         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13813
13814 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13815
13816         memcoll: clarify sizes versus lengths, document better, and tweak perf
13817         * lib/memcoll.c (strcoll_loop, memcoll0):
13818         Improve quality of descriptive comments.  Name variables
13819         consistently as to whether they are lengths (which do not include
13820         terminating null) versus sizes (which do).
13821         * lib/xmemcoll.c (xmemcoll0): Likewise.
13822         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
13823         returned when s1size == 0; this is easier to compile and saves
13824         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
13825
13826 2010-07-12  Bruno Haible  <bruno@clisp.org>
13827
13828         Tests for module '_Exit'.
13829         * modules/_Exit-tests: New file.
13830         * tests/test-_Exit.sh: New file.
13831         * tests/test-_Exit.c: New file.
13832
13833         New module '_Exit'.
13834         * lib/stdlib.in.h (__attribute__): New macro.
13835         (_Exit): New declaration.
13836         * lib/_Exit.c: New file.
13837         * m4/_Exit.m4: New file.
13838         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
13839         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
13840         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
13841         * modules/_Exit: New file.
13842         * tests/test-stdlib-c++.cc (_Exit): Check signature.
13843         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
13844
13845 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13846
13847         strtod: make it more-accurate typically, and don't require libm
13848         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
13849         Include limits.h.  Don't include string.h.
13850         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
13851         (locale_isspace): New function, so that no casts are needed to
13852         check whether *s is a space.
13853         (ldexp): Provide an unused dummy if not available.
13854         (scale_radix_exp, parse_number, underlying_strtod): New functions.
13855         (strtod): Use them.  This implementation prefers to use the
13856         underlying strtod if available, falling back on our own code
13857         only to fix known bugs.  This is more likely to produce an
13858         accurate result.  Also, it avoids the use of libm functions.
13859         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
13860         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
13861         was absent, but it caused a test failure with coreutils.
13862         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
13863         with libm.
13864         * modules/strtod (Makefile.am, Link): libm is no longer needed.
13865         * modules/strtod-tests (Makefile.am): Likewise.
13866
13867 2010-07-11  Pádraig Brady  <P@draigBrady.com>
13868             Bruno Haible  <bruno@clisp.org>
13869
13870         unistr/u8-strchr: Optimize ASCII argument case.
13871         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
13872
13873 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13874
13875         (x)memcoll: minor tweaks
13876         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
13877         is after the type that it qualifies.
13878         (memcoll0): Likewise.
13879         * lib/memcoll.h (memcoll0): Likewise.
13880         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
13881         * lib/xmemcoll.h (xmemcoll0): Likewise.
13882         * lib/memcoll.c (memcoll0): Correct the comment.  This function
13883         differs from memcoll in that the NUL byte is part of the argument.
13884         Omit the abort-checks, as performance is a real issue here.  Plus,
13885         the checks were wrong anyway (an off-by-one error).  Omit local
13886         variable 'diff', as it's a bit clearer that way.
13887         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
13888         no longer needed.
13889
13890 2010-07-08  Chen Guo <chenguo4@yahoo.com>
13891
13892         (x)memcoll: speedup when input is known to be NUL delimited
13893         * lib/memcoll.c: Include stdlib.
13894         (memcoll0): New function.
13895         (strcoll_loop): New function, refactored for use in both memcoll
13896         and memcoll0.
13897         * lib/memcoll.h (memcoll0): Add prototype.
13898         * lib/xmemcoll.c (xmemcoll0): New function.
13899         (collate_error): New function, refactored for use in both xmemcoll
13900         and xmemcoll0.
13901         * lib/xmemcoll.h (xmemcoll0): Add prototype.
13902         * m4/memcoll.m4: add inline invocation.
13903
13904 2010-07-06  Pádraig Brady  <P@draigBrady.com>
13905
13906         * build-aux/bootstrap: Remove any local translations
13907         from the translation project synchronization directory,
13908         so that local only translations are not distributed.
13909
13910 2010-07-04  Bruno Haible  <bruno@clisp.org>
13911
13912         fsusage: Clarify which code applies to which platforms.
13913         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
13914         platform.
13915         * lib/fsusage.c (get_fs_usage): Likewise.
13916
13917 2010-07-04  Bruno Haible  <bruno@clisp.org>
13918
13919         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
13920         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
13921         Reported by Martin Lambers <marlam@marlam.de>.
13922
13923 2010-07-04  Jim Meyering  <meyering@redhat.com>
13924
13925         hash: once again explicitly disallow insertion of NULL
13926         * lib/hash.c (hash_insert0): Reinstate just-removed test:
13927         inserting a NULL pointer cannot work with these functions.
13928         Add a comment with details.
13929         This reverts part of the 2010-07-01 commit, 5bef1a35
13930         "hash: extend module to deal with non-pointer keys".
13931
13932 2010-07-01  Bruno Haible  <bruno@clisp.org>
13933
13934         stdbool: Update doc.
13935         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
13936         Info from Christian Weisgerber <naddy@mips.inka.de>.
13937
13938 2010-07-01  Jim Meyering  <meyering@redhat.com>
13939
13940         hash: extend module to deal with non-pointer keys
13941         * lib/hash.c (hash_insert0): New interface, much like hash_insert
13942         but that allows insertion of non-pointer entries.
13943         Do not disallow an ENTRY value of NULL.
13944         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
13945         * lib/hash.h (hash_insert0): Declare.
13946
13947 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13948
13949         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
13950         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
13951         not present (i.e. with autoconf 2.59 and when using gettextize, not
13952         gnulib), require AC_GNU_SOURCE instead.
13953
13954 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
13955
13956         idpriv-drop: Fix tests.
13957         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
13958         not to the test-idpriv-droptemp program.
13959
13960 2010-06-29  Bruno Haible  <bruno@clisp.org>
13961
13962         string: Fix syntax error with g++ 2.96.
13963         * lib/string.in.h (__pure__): Remove definition.
13964         (_GL_ATTRIBUTE_PURE): New macro.
13965         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
13966         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
13967         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13968
13969 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
13970
13971         unitypes: Fix bug introduced on 2010-05-18.
13972         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
13973
13974 2010-06-22  Eric Blake  <eblake@redhat.com>
13975
13976         memmem: slight optimization
13977         * lib/str-two-way.h (critical_factorization): Update comments.
13978         Reduce work during factorization phase.
13979         Reported by Carlos Bueno <carlos@bueno.org>.
13980
13981 2010-06-21  Bruno Haible  <bruno@clisp.org>
13982
13983         Fix HAVE_CALLOC_POSIX misnomer.
13984         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
13985         !HAVE_CALLOC_POSIX.
13986         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
13987         HAVE_CALLOC_POSIX.
13988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
13989         instead of HAVE_CALLOC_POSIX.
13990         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
13991         HAVE_CALLOC_POSIX.
13992
13993         Use modern idiom for calloc() replacement.
13994         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
13995         AC_FUNC_CALLOC.
13996         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
13997         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
13998         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13999         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
14000         (gl_REPLACE_CALLOC): New macro.
14001
14002 2010-06-21  Bruno Haible  <bruno@clisp.org>
14003
14004         Fix HAVE_REALLOC_POSIX misnomer.
14005         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
14006         !HAVE_REALLOC_POSIX.
14007         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
14008         HAVE_REALLOC_POSIX.
14009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
14010         instead of HAVE_REALLOC_POSIX.
14011         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
14012         HAVE_REALLOC_POSIX.
14013
14014         Use modern idiom for realloc() replacement.
14015         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
14016         AC_FUNC_REALLOC.
14017         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
14018         Autoconf's AC_FUNC_REALLOC.
14019         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14020         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
14021         (gl_REPLACE_REALLOC): New macro.
14022         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14023
14024 2010-06-21  Bruno Haible  <bruno@clisp.org>
14025
14026         Fix HAVE_MALLOC_POSIX misnomer.
14027         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
14028         !HAVE_MALLOC_POSIX.
14029         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
14030         HAVE_MALLOC_POSIX.
14031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
14032         instead of HAVE_MALLOC_POSIX.
14033         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
14034         HAVE_MALLOC_POSIX.
14035
14036         Use modern idiom for malloc() replacement.
14037         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
14038         AC_FUNC_MALLOC.
14039         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
14040         Autoconf's AC_FUNC_MALLOC.
14041         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14042         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
14043         (gl_REPLACE_MALLOC): New macro.
14044         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14045
14046 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
14047
14048         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
14049         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
14050         This macro takes 3 arguments, not 4.
14051
14052 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
14053
14054         ipv6: fix detection under mingw
14055         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
14056         in6_addr.
14057
14058 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
14059
14060         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
14061         that strtod() works when cross-compiling to a glibc version known
14062         to work.
14063
14064 2010-06-15  Bruno Haible  <bruno@clisp.org>
14065
14066         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
14067
14068 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
14069
14070         select: Correct timeout.
14071         * lib/select.c (rpl_select): Compute wait_timeout correctly.
14072
14073 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14074
14075         git-version-gen: init shell var to avoid env var influence
14076         * build-aux/git-version-gen (v): Init shell var to empty.
14077
14078 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14079
14080         priv-set: Don't assume that priv.h exists merely because getppriv does.
14081         See Jan Andersen's bug report about AIX 5L in
14082         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
14083         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
14084         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
14085         * lib/priv-set.h: Likewise.
14086         * tests/test-priv-set.c: Likewise.
14087
14088 2010-06-13  Bruno Haible  <bruno@clisp.org>
14089
14090         relocatable: Make it easier to test whether to install wrappers.
14091         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
14092         RELOCATABLE_VIA_WRAPPER.
14093
14094 2010-06-13  Bruno Haible  <bruno@clisp.org>
14095
14096         gnulib-tool: Display specified modules and dependencies differently.
14097         * gnulib-tool (func_show_module_list): New function.
14098         (func_import, func_create_testdir): Invoke it.
14099         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14100
14101 2010-06-13  Bruno Haible  <bruno@clisp.org>
14102
14103         gnulib-tool: Align code of func_import and func_create_testdir.
14104         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
14105         specified_modules.
14106
14107 2010-06-12  Jim Meyering  <meyering@redhat.com>
14108
14109         test-inttostr: avoid spurious failure on Solaris 9
14110         * tests/test-inttostr.c (main): Skip the test when snprintf fails
14111         to accept "%ju".  Reported by Bruno Haible.
14112
14113 2010-06-11  Jim Meyering  <meyering@redhat.com>
14114
14115         test-sys_socket: mark variables as used more readably
14116         * tests/test-sys_socket.c (main): Mark otherwise unused variables
14117         as "used" explicitly via (void) statement casts.  This is more
14118         readable than using them in an artificial return expression.
14119         Suggestion from Bruno Haible.
14120
14121 2010-06-11  Bruno Haible  <bruno@clisp.org>
14122
14123         Avoid some more warnings from "gcc -Wwrite-strings".
14124         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
14125         to 'const char *'.
14126         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
14127         * tests/test-c-strcasestr.c (main): Likewise.
14128         * tests/test-mbscasestr1.c (main): Likewise.
14129         * tests/test-mbscasestr2.c (main): Likewise.
14130         * tests/test-memmem.c (main): Likewise.
14131         * tests/test-strstr.c (main): Likewise.
14132         * tests/test-strcasestr.c (main): Likewise.
14133
14134 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14135
14136         init.sh: change framework_failure_ to fail with status 99, not 1
14137         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
14138         automake's parallel-tests rule that this is an unexpected failure,
14139         even if the test is listed in XFAIL_TESTS.
14140
14141 2010-06-11  Jim Meyering  <meyering@redhat.com>
14142
14143         test-inttostr: avoid warnings about 4-6KB literal strings
14144         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
14145         Include "macros.h", for its definition of ASSERT.
14146         (CK): s/assert/ASSERT/
14147         * modules/inttostr-tests (Files): Add macros.h.
14148
14149         init.sh: don't use $ME_ or skip_ before they are defined
14150         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
14151         their first uses.  Also hoist their companions: warn_, fail_,
14152         framework_failure_, $stderr_fileno.  Prompted by a patch from
14153         Stefano Lattarini.
14154
14155         test-sys_socket: avoid set-but-not-used warnings from gcc
14156         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
14157         avoid warning about set-but-not-used variables.
14158
14159         test-xvasprintf: avoid 'const' discard warnings
14160         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
14161         "const" when assigning from literal strings.
14162         (test_xasprintf): Add "void" in function argument list to placate
14163         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
14164
14165         tests: avoid compilation warnings in argmatch and exclude tests...
14166         in packages that define ARGMATCH_DIE_DECL, like coreutils.
14167         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
14168         Since it always exits, declare with the "noreturn" attribute.
14169         * tests/test-argmatch.c: Likewise.
14170
14171         tests: avoid 'const' discard warnings in mbsstr tests
14172         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
14173         * tests/test-mbsstr2.c (main): Likewise.
14174
14175         test-verify: avoid warning from gcc's -Wmissing-declarations
14176         * tests/test-verify.c (function): Declare to be static.
14177
14178         test-inttostr.c: include <string.h> for use of strcmp
14179         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
14180
14181         test-linkat: avoid failed assertion on "other" architectures
14182         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
14183         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
14184         sparc: https://bugs.launchpad.net/bugs/591968
14185
14186 2010-06-11  Jim Meyering  <meyering@redhat.com>
14187
14188         printf.m4: avoid autoconf's "Expanded Before Required" warning
14189         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
14190         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
14191         autoconf warning.
14192
14193 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
14194
14195         Replacement header templates are now named with ".in", not "_".
14196         * doc/gnulib-intro.texi: Correct.
14197
14198 2010-06-10  Jim Meyering  <meyering@redhat.com>
14199
14200         inttostr-tests: depend on snprintf, not snprintf-posix
14201         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
14202         snprintf-posix, to avoid this aclocal failure:
14203           missing file gnulib-tests/vasnprintf.c
14204           configure.ac:45: error: expected source file, required through \
14205           AC_LIBSOURCES, not found
14206
14207 2010-06-10  Jim Meyering  <meyering@redhat.com>
14208
14209         inttostr: add a new function, inttostr, and tests
14210         The namesake function was not available.  The existence of the
14211         template file, inttostr.c makes its addition nontrivial.
14212         * lib/anytostr.c: Rename from inttostr.c.
14213         (anytostr): Rename from inttostr.
14214         * lib/inttostr.c: New file.
14215         * modules/inttostr (Files): Add anytostr.c.
14216         (Makefile.am): Set lib_SOURCES instead of ...
14217         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
14218         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
14219         * lib/offtostr.c: Likewise.
14220         * lib/uinttostr.c: Likewise.
14221         * lib/umaxtostr.c: Likewise.
14222         * modules/inttostr-tests: New file.
14223         * tests/test-inttostr.c: New file.  Test these functions.
14224
14225 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
14226             Bruno Haible  <bruno@clisp.org>
14227
14228         Add "Extending Gnulib" chapter to manual.
14229         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
14230         chapter.
14231         (Extending Gnulib): New chapter.
14232         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
14233         chapter.
14234
14235 2010-06-09  Bruno Haible  <bruno@clisp.org>
14236
14237         Avoid relocwrapper link errors due to gnulib replacement functions.
14238         * lib/areadlink.c: Use the system's malloc, realloc functions.
14239         (areadlink): Set errno to ENOMEM explicitly.
14240         * modules/areadlink (Depends-on): Remove malloc-posix.
14241         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14242
14243 2010-06-09  Bruno Haible  <bruno@clisp.org>
14244
14245         Avoid relocwrapper link errors due to gnulib replacement functions.
14246         * lib/canonicalize-lgpl.c: Use the system's malloc function.
14247         * lib/malloca.c: Likewise.
14248         * lib/relocatable.c: Likewise.
14249         * lib/progreloc.c: Use the system's malloc, sprintf functions.
14250         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
14251         * lib/setenv.c: Use the system's malloc, realloc functions.
14252         * lib/strerror.c: Use the system's sprintf function.
14253         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14254
14255 2010-06-04  Bruno Haible  <bruno@clisp.org>
14256
14257         Prefer documented low-level autoconf macro names.
14258         * m4/lib-link.m4: Use m4_translit instead of translit.
14259         * m4/environ.m4: Likewise.
14260         * m4/mathfunc.m4: Likewise.
14261         * m4/onceonly.m4: Likewise.
14262         * m4/stdint.m4: Likewise.
14263         Suggested by Eric Blake.
14264
14265 2010-06-04  Martin Lambers  <marlam@marlam.de>
14266             Bruno Haible  <bruno@clisp.org>
14267
14268         havelib: Allow library names with '+' characters.
14269         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14270         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
14271
14272 2010-06-09  Bruno Haible  <bruno@clisp.org>
14273
14274         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
14275         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
14276         realloc failed.
14277
14278 2010-06-08  Peter Simons  <simons@cryp.to>
14279
14280         maint.mk: make the news-check rule more configurable
14281         * top/maint.mk (news-check-lines-spec): New variable.
14282         (news-check): Use "sed -n 1,10p" in place of "head".
14283
14284 2010-06-07  Jim Meyering  <meyering@redhat.com>
14285
14286         do-release-commit-and-tag: fix typo in --help
14287         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
14288
14289         regex: avoid new dead-code warning with gcc-4.6.0
14290         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
14291         if-block containing a while-loop.  It's been unused for at least
14292         5 years.
14293
14294 2010-06-05  Bruno Haible  <bruno@clisp.org>
14295
14296         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
14297         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
14298
14299 2010-06-04  Bruno Haible  <bruno@clisp.org>
14300
14301         Update to GNU gettext 0.18.1.
14302         * modules/gettext (configure.ac): Require gettext infrastructure from
14303         version 0.18.1.
14304
14305 2010-06-03  Bruno Haible  <bruno@clisp.org>
14306
14307         Don't use AC_LIBOBJ with file names in subdirectories.
14308         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
14309         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
14310         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
14311         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
14312         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
14313         gl_LIBUNISTRING_LIBSOURCE.
14314         (Makefile.am): Augment lib_SOURCES here, conditionally.
14315         * NEWS: Drop requirement for Automake option 'subdir-objects'.
14316
14317 2010-06-03  Bruno Haible  <bruno@clisp.org>
14318
14319         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
14320         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
14321         expansion does not end with a newline.
14322         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
14323         unnecessary newline.
14324
14325 2010-06-03  Bruno Haible  <bruno@clisp.org>
14326
14327         Reduce dependencies.
14328         * tests/test-quotearg.h: New file, extracted from
14329         tests/test-quotearg.c.
14330         * tests/test-quotearg-simple.c: New file, extracted from
14331         tests/test-quotearg.c.
14332         * tests/test-quotearg.c: Don't include <ctype.h>.
14333         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
14334         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
14335         use_quote_double_quotes, use_quotearg_colon): Moved to
14336         tests/test-quotearg.h.
14337         (results_g, flag_results, custom_quotes, custom_results): Moved
14338         to tests/test-quotearg-simple.c.
14339         (main): Moved the part that does not depend on gettext to
14340         tests/test-quotearg-simple.c. Return 77 if the test cannot be
14341         performed.
14342         * modules/quotearg-simple: New file.
14343         * modules/quotearg-simple-tests: New file.
14344         * modules/quotearg (Depends-on): Add quotearg-simple.
14345         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
14346         (Files): Add tests/test-quotearg.h.
14347         Reported by Paolo Bonzini.
14348
14349 2010-06-03  Bruno Haible  <bruno@clisp.org>
14350
14351         Reduce dependencies.
14352         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
14353
14354 2010-06-03  Bruno Haible  <bruno@clisp.org>
14355
14356         time: Undefine more broken macros.
14357         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
14358         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
14359         Reported by Eric Blake.
14360
14361 2010-06-03  Bruno Haible  <bruno@clisp.org>
14362
14363         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
14364         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
14365         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
14366         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
14367         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
14368         Reported by Ludovic Courtès <ludo@gnu.org>.
14369
14370 2010-06-02  Eric Blake  <eblake@redhat.com>
14371
14372         time: work with mingw + pthreads-win32 library
14373         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
14374         if timespec is defined only in pthread.h.
14375         * modules/time (Makefile.am): Substitute it.
14376         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
14377         <pthread.h>, when needed.
14378         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
14379         from the library.
14380
14381 2010-05-31  Bruno Haible  <bruno@clisp.org>
14382
14383         Avoid expanding two macros in the wrong order.
14384         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
14385         gl_LIBUNISTRING if it is defined.
14386         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
14387         autoconf >= 2.64.
14388         Reported by Ludovic Courtès <ludo@gnu.org>.
14389
14390 2010-05-27  Jim Meyering  <meyering@redhat.com>
14391
14392         maint.mk: also prohibit "#undef" of always-defined symbols
14393         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
14394         Allow more than one space before the symbol name.
14395         (sc_prohibit_always-defined_macros): Use grep's -E, now that
14396         the regexp uses alternation.
14397
14398 2010-05-26  Eric Blake  <eblake@redhat.com>
14399
14400         maint.mk: avoid echo -e
14401         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
14402         Convert all uses of echo -* to printf.
14403         Reported by Matthias Bolte.
14404
14405 2010-05-25  Bruno Haible  <bruno@clisp.org>
14406
14407         Update to GNU gettext 0.18, part 2.
14408         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
14409         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
14410
14411 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14412
14413         Add missing include in test-pwrite.c.
14414         * tests/test-pwrite.c: Include string.h, for strcmp.
14415
14416 2010-05-24  Bruno Haible  <bruno@clisp.org>
14417
14418         * NEWS: Mention requirement for Automake option 'subdir-objects'.
14419
14420 2010-05-24  Bruno Haible  <bruno@clisp.org>
14421
14422         Don't use conversion with transliteration in u{8,16,32}_strcoll.
14423         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
14424         iconveh_error argument.
14425         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
14426         U_STRCONV_TO_LOCALE.
14427         * lib/unistr/u16-strcoll.c: Likewise.
14428         * lib/unistr/u32-strcoll.c: Likewise.
14429         * modules/unistr/u8-strcoll (Depends-on): Add
14430         uniconv/u8-strconv-to-enc, localcharset. Remove
14431         uniconv/u8-strconv-to-locale.
14432         (configure.ac): Bump version number.
14433         * modules/unistr/u16-strcoll (Depends-on): Add
14434         uniconv/u16-strconv-to-enc, localcharset. Remove
14435         uniconv/u16-strconv-to-locale.
14436         (configure.ac): Bump version number.
14437         * modules/unistr/u32-strcoll (Depends-on): Add
14438         uniconv/u32-strconv-to-enc, localcharset. Remove
14439         uniconv/u32-strconv-to-locale.
14440         (configure.ac): Bump version number.
14441
14442 2010-05-24  Bruno Haible  <bruno@clisp.org>
14443
14444         Avoid a test failure on NetBSD 5.0.
14445         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
14446         an iconv() bug.
14447
14448 2010-05-24  Bruno Haible  <bruno@clisp.org>
14449
14450         Adjust #include directive style.
14451         * modules/regex (Includes): Recommend to write <regex.h>.
14452
14453 2010-05-24  Bruno Haible  <bruno@clisp.org>
14454
14455         regex: Don't require alloca.
14456         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
14457         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
14458         only inside if (0).
14459
14460 2010-05-23  Jim Meyering  <meyering@redhat.com>
14461
14462         test-renameat.c: include <sys/stat.h>
14463         * tests/test-renameat.c: Include <sys/stat.h>; required for
14464         definition of S_IS* macros.
14465
14466 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
14467
14468         Update maintainer documentation for 'relocatable-prog' module.
14469         * doc/relocatable-maint.texi: Update.
14470         Comments by Bruno Haible.
14471
14472 2010-05-23  Bruno Haible  <bruno@clisp.org>
14473
14474         git-merge-changelog: Enable --split-merged-entry by default.
14475         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
14476         (usage): Don't mention this option any more.
14477         Reported by Ralf Wildenhues.
14478
14479 2010-05-23  Jim Meyering  <meyering@redhat.com>
14480
14481         test-pwrite: do not leave behind a test file named "out"
14482         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
14483         The trivial-looking use of init.sh is really necessary.
14484         It ensures that the temporary file, "out", is created in
14485         a temporary directory, and removed upon termination.
14486         * tests/test-pwrite.sh: Re-add file.
14487         * modules/pwrite-tests: Reference it.
14488
14489 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14490
14491         Fix output redirection buglet in init.sh.
14492         * tests/init.sh: Fix redirection of stderr.
14493
14494 2010-05-20  Simon Josefsson  <simon@josefsson.org>
14495
14496         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
14497
14498 2010-05-17  Simon Josefsson  <simon@josefsson.org>
14499
14500         * modules/valgrind-tests: New file.
14501         * m4/valgrind-tests.m4: New file.
14502         * doc/valgrind-tests.texi: New file.
14503         * doc/gnulib.texi (Running self-tests under valgrind): New
14504         section.
14505
14506 2010-05-19  Bruno Haible  <bruno@clisp.org>
14507
14508         Clean up dead code in recent commit.
14509         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
14510         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
14511         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
14512         Suggested by Paolo Bonzini.
14513
14514 2010-05-19  Bruno Haible  <bruno@clisp.org>
14515
14516         Avoid valgrind error reports from libunistring.
14517         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
14518         * modules/libunistring (Files): Add it.
14519         * modules/libunistring-optional (Files): Likewise.
14520
14521 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
14522             Bruno Haible  <bruno@clisp.org>
14523
14524         New module 'libunistring-optional'.
14525         * modules/libunistring-optional: New file.
14526         * m4/libunistring-base.m4: New file.
14527         * m4/libunistring-optional.m4: New file.
14528         * lib/unicase.in.h: Renamed from lib/unicase.h.
14529         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
14530         * lib/unictype.in.h: Renamed from lib/unictype.h.
14531         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
14532         * lib/uniname.in.h: Renamed from lib/uniname.h.
14533         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
14534         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
14535         * lib/unistr.in.h: Renamed from lib/unistr.h.
14536         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
14537         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
14538         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
14539         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
14540         gl_LIBUNISTRING. If the library was found, determine the installed
14541         version and set LIBUNISTRING_VERSION.
14542         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
14543         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
14544         handle a configuration option --with-included-libunistring.
14545         * modules/libunistring (Files): Add m4/absolute-header.m4.
14546         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
14547         Add m4/libunistring-base.m4.
14548         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14549         (Makefile.am): Build unicase.h from unicase.in.h.
14550         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
14551         Add m4/libunistring-base.m4.
14552         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14553         (Makefile.am): Build uniconv.h from uniconv.in.h.
14554         * modules/unictype/base (Files): Use unictype.in.h instead of
14555         unictype.h. Add m4/libunistring-base.m4.
14556         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14557         (Makefile.am): Build unictype.h from unictype.in.h.
14558         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
14559         Add m4/libunistring-base.m4.
14560         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14561         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
14562         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
14563         Add m4/libunistring-base.m4.
14564         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14565         (Makefile.am): Build uniname.h from uniname.in.h.
14566         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
14567         Add m4/libunistring-base.m4.
14568         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14569         (Makefile.am): Build uninorm.h from uninorm.in.h.
14570         * modules/unistdio/base (Files): Use unistdio.in.h instead of
14571         unistdio.h. Add m4/libunistring-base.m4.
14572         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14573         (Makefile.am): Build unistdio.h from unistdio.in.h.
14574         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
14575         Add m4/libunistring-base.m4.
14576         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14577         (Makefile.am): Build unistr.h from unistr.in.h.
14578         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
14579         Add m4/libunistring-base.m4.
14580         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14581         (Makefile.am): Build unitypes.h from unitypes.in.h.
14582         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
14583         Add m4/libunistring-base.m4.
14584         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14585         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
14586         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
14587         uniwidth.h. Add m4/libunistring-base.m4.
14588         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14589         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
14590         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
14591         instead of augmenting lib_SOURCES.
14592         * modules/unicase/empty-suffix-context: Likewise.
14593         * modules/unicase/locale-language: Likewise.
14594         * modules/unicase/tolower: Likewise.
14595         * modules/unicase/totitle: Likewise.
14596         * modules/unicase/toupper: Likewise.
14597         * modules/unicase/u8-casecmp: Likewise.
14598         * modules/unicase/u8-casecoll: Likewise.
14599         * modules/unicase/u8-casefold: Likewise.
14600         * modules/unicase/u8-casexfrm: Likewise.
14601         * modules/unicase/u8-ct-casefold: Likewise.
14602         * modules/unicase/u8-ct-tolower: Likewise.
14603         * modules/unicase/u8-ct-totitle: Likewise.
14604         * modules/unicase/u8-ct-toupper: Likewise.
14605         * modules/unicase/u8-is-cased: Likewise.
14606         * modules/unicase/u8-is-casefolded: Likewise.
14607         * modules/unicase/u8-is-lowercase: Likewise.
14608         * modules/unicase/u8-is-titlecase: Likewise.
14609         * modules/unicase/u8-is-uppercase: Likewise.
14610         * modules/unicase/u8-prefix-context: Likewise.
14611         * modules/unicase/u8-suffix-context: Likewise.
14612         * modules/unicase/u8-tolower: Likewise.
14613         * modules/unicase/u8-totitle: Likewise.
14614         * modules/unicase/u8-toupper: Likewise.
14615         * modules/unicase/u16-casecmp: Likewise.
14616         * modules/unicase/u16-casecoll: Likewise.
14617         * modules/unicase/u16-casefold: Likewise.
14618         * modules/unicase/u16-casexfrm: Likewise.
14619         * modules/unicase/u16-ct-casefold: Likewise.
14620         * modules/unicase/u16-ct-tolower: Likewise.
14621         * modules/unicase/u16-ct-totitle: Likewise.
14622         * modules/unicase/u16-ct-toupper: Likewise.
14623         * modules/unicase/u16-is-cased: Likewise.
14624         * modules/unicase/u16-is-casefolded: Likewise.
14625         * modules/unicase/u16-is-lowercase: Likewise.
14626         * modules/unicase/u16-is-titlecase: Likewise.
14627         * modules/unicase/u16-is-uppercase: Likewise.
14628         * modules/unicase/u16-prefix-context: Likewise.
14629         * modules/unicase/u16-suffix-context: Likewise.
14630         * modules/unicase/u16-tolower: Likewise.
14631         * modules/unicase/u16-totitle: Likewise.
14632         * modules/unicase/u16-toupper: Likewise.
14633         * modules/unicase/u32-casecmp: Likewise.
14634         * modules/unicase/u32-casecoll: Likewise.
14635         * modules/unicase/u32-casefold: Likewise.
14636         * modules/unicase/u32-casexfrm: Likewise.
14637         * modules/unicase/u32-ct-casefold: Likewise.
14638         * modules/unicase/u32-ct-tolower: Likewise.
14639         * modules/unicase/u32-ct-totitle: Likewise.
14640         * modules/unicase/u32-ct-toupper: Likewise.
14641         * modules/unicase/u32-is-cased: Likewise.
14642         * modules/unicase/u32-is-casefolded: Likewise.
14643         * modules/unicase/u32-is-lowercase: Likewise.
14644         * modules/unicase/u32-is-titlecase: Likewise.
14645         * modules/unicase/u32-is-uppercase: Likewise.
14646         * modules/unicase/u32-prefix-context: Likewise.
14647         * modules/unicase/u32-suffix-context: Likewise.
14648         * modules/unicase/u32-tolower: Likewise.
14649         * modules/unicase/u32-totitle: Likewise.
14650         * modules/unicase/u32-toupper: Likewise.
14651         * modules/unicase/ulc-casecmp: Likewise.
14652         * modules/unicase/ulc-casecoll: Likewise.
14653         * modules/unicase/ulc-casexfrm: Likewise.
14654         * modules/uniconv/u8-conv-from-enc: Likewise.
14655         * modules/uniconv/u8-conv-to-enc: Likewise.
14656         * modules/uniconv/u8-strconv-from-enc: Likewise.
14657         * modules/uniconv/u8-strconv-from-locale: Likewise.
14658         * modules/uniconv/u8-strconv-to-enc: Likewise.
14659         * modules/uniconv/u8-strconv-to-locale: Likewise.
14660         * modules/uniconv/u16-conv-from-enc: Likewise.
14661         * modules/uniconv/u16-conv-to-enc: Likewise.
14662         * modules/uniconv/u16-strconv-from-enc: Likewise.
14663         * modules/uniconv/u16-strconv-from-locale: Likewise.
14664         * modules/uniconv/u16-strconv-to-enc: Likewise.
14665         * modules/uniconv/u16-strconv-to-locale: Likewise.
14666         * modules/uniconv/u32-conv-from-enc: Likewise.
14667         * modules/uniconv/u32-conv-to-enc: Likewise.
14668         * modules/uniconv/u32-strconv-from-enc: Likewise.
14669         * modules/uniconv/u32-strconv-from-locale: Likewise.
14670         * modules/uniconv/u32-strconv-to-enc: Likewise.
14671         * modules/uniconv/u32-strconv-to-locale: Likewise.
14672         * modules/unictype/bidicategory-byname: Likewise.
14673         * modules/unictype/bidicategory-name: Likewise.
14674         * modules/unictype/bidicategory-of: Likewise.
14675         * modules/unictype/bidicategory-test: Likewise.
14676         * modules/unictype/block-list: Likewise.
14677         * modules/unictype/block-test: Likewise.
14678         * modules/unictype/category-C: Likewise.
14679         * modules/unictype/category-Cc: Likewise.
14680         * modules/unictype/category-Cf: Likewise.
14681         * modules/unictype/category-Cn: Likewise.
14682         * modules/unictype/category-Co: Likewise.
14683         * modules/unictype/category-Cs: Likewise.
14684         * modules/unictype/category-L: Likewise.
14685         * modules/unictype/category-Ll: Likewise.
14686         * modules/unictype/category-Lm: Likewise.
14687         * modules/unictype/category-Lo: Likewise.
14688         * modules/unictype/category-Lt: Likewise.
14689         * modules/unictype/category-Lu: Likewise.
14690         * modules/unictype/category-M: Likewise.
14691         * modules/unictype/category-Mc: Likewise.
14692         * modules/unictype/category-Me: Likewise.
14693         * modules/unictype/category-Mn: Likewise.
14694         * modules/unictype/category-N: Likewise.
14695         * modules/unictype/category-Nd: Likewise.
14696         * modules/unictype/category-Nl: Likewise.
14697         * modules/unictype/category-No: Likewise.
14698         * modules/unictype/category-P: Likewise.
14699         * modules/unictype/category-Pc: Likewise.
14700         * modules/unictype/category-Pd: Likewise.
14701         * modules/unictype/category-Pe: Likewise.
14702         * modules/unictype/category-Pf: Likewise.
14703         * modules/unictype/category-Pi: Likewise.
14704         * modules/unictype/category-Po: Likewise.
14705         * modules/unictype/category-Ps: Likewise.
14706         * modules/unictype/category-S: Likewise.
14707         * modules/unictype/category-Sc: Likewise.
14708         * modules/unictype/category-Sk: Likewise.
14709         * modules/unictype/category-Sm: Likewise.
14710         * modules/unictype/category-So: Likewise.
14711         * modules/unictype/category-Z: Likewise.
14712         * modules/unictype/category-Zl: Likewise.
14713         * modules/unictype/category-Zp: Likewise.
14714         * modules/unictype/category-Zs: Likewise.
14715         * modules/unictype/category-and: Likewise.
14716         * modules/unictype/category-and-not: Likewise.
14717         * modules/unictype/category-byname: Likewise.
14718         * modules/unictype/category-name: Likewise.
14719         * modules/unictype/category-none: Likewise.
14720         * modules/unictype/category-of: Likewise.
14721         * modules/unictype/category-or: Likewise.
14722         * modules/unictype/category-test: Likewise.
14723         * modules/unictype/combining-class: Likewise.
14724         * modules/unictype/ctype-alnum: Likewise.
14725         * modules/unictype/ctype-alpha: Likewise.
14726         * modules/unictype/ctype-blank: Likewise.
14727         * modules/unictype/ctype-cntrl: Likewise.
14728         * modules/unictype/ctype-digit: Likewise.
14729         * modules/unictype/ctype-graph: Likewise.
14730         * modules/unictype/ctype-lower: Likewise.
14731         * modules/unictype/ctype-print: Likewise.
14732         * modules/unictype/ctype-punct: Likewise.
14733         * modules/unictype/ctype-space: Likewise.
14734         * modules/unictype/ctype-upper: Likewise.
14735         * modules/unictype/ctype-xdigit: Likewise.
14736         * modules/unictype/decimal-digit: Likewise.
14737         * modules/unictype/digit: Likewise.
14738         * modules/unictype/mirror: Likewise.
14739         * modules/unictype/numeric: Likewise.
14740         * modules/unictype/property-alphabetic: Likewise.
14741         * modules/unictype/property-ascii-hex-digit: Likewise.
14742         * modules/unictype/property-bidi-arabic-digit: Likewise.
14743         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
14744         * modules/unictype/property-bidi-block-separator: Likewise.
14745         * modules/unictype/property-bidi-boundary-neutral: Likewise.
14746         * modules/unictype/property-bidi-common-separator: Likewise.
14747         * modules/unictype/property-bidi-control: Likewise.
14748         * modules/unictype/property-bidi-embedding-or-override: Likewise.
14749         * modules/unictype/property-bidi-eur-num-separator: Likewise.
14750         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
14751         * modules/unictype/property-bidi-european-digit: Likewise.
14752         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
14753         * modules/unictype/property-bidi-left-to-right: Likewise.
14754         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
14755         * modules/unictype/property-bidi-other-neutral: Likewise.
14756         * modules/unictype/property-bidi-pdf: Likewise.
14757         * modules/unictype/property-bidi-segment-separator: Likewise.
14758         * modules/unictype/property-bidi-whitespace: Likewise.
14759         * modules/unictype/property-byname: Likewise.
14760         * modules/unictype/property-combining: Likewise.
14761         * modules/unictype/property-composite: Likewise.
14762         * modules/unictype/property-currency-symbol: Likewise.
14763         * modules/unictype/property-dash: Likewise.
14764         * modules/unictype/property-decimal-digit: Likewise.
14765         * modules/unictype/property-default-ignorable-code-point: Likewise.
14766         * modules/unictype/property-deprecated: Likewise.
14767         * modules/unictype/property-diacritic: Likewise.
14768         * modules/unictype/property-extender: Likewise.
14769         * modules/unictype/property-format-control: Likewise.
14770         * modules/unictype/property-grapheme-base: Likewise.
14771         * modules/unictype/property-grapheme-extend: Likewise.
14772         * modules/unictype/property-grapheme-link: Likewise.
14773         * modules/unictype/property-hex-digit: Likewise.
14774         * modules/unictype/property-hyphen: Likewise.
14775         * modules/unictype/property-id-continue: Likewise.
14776         * modules/unictype/property-id-start: Likewise.
14777         * modules/unictype/property-ideographic: Likewise.
14778         * modules/unictype/property-ids-binary-operator: Likewise.
14779         * modules/unictype/property-ids-trinary-operator: Likewise.
14780         * modules/unictype/property-ignorable-control: Likewise.
14781         * modules/unictype/property-iso-control: Likewise.
14782         * modules/unictype/property-join-control: Likewise.
14783         * modules/unictype/property-left-of-pair: Likewise.
14784         * modules/unictype/property-line-separator: Likewise.
14785         * modules/unictype/property-logical-order-exception: Likewise.
14786         * modules/unictype/property-lowercase: Likewise.
14787         * modules/unictype/property-math: Likewise.
14788         * modules/unictype/property-non-break: Likewise.
14789         * modules/unictype/property-not-a-character: Likewise.
14790         * modules/unictype/property-numeric: Likewise.
14791         * modules/unictype/property-other-alphabetic: Likewise.
14792         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
14793         * modules/unictype/property-other-grapheme-extend: Likewise.
14794         * modules/unictype/property-other-id-continue: Likewise.
14795         * modules/unictype/property-other-id-start: Likewise.
14796         * modules/unictype/property-other-lowercase: Likewise.
14797         * modules/unictype/property-other-math: Likewise.
14798         * modules/unictype/property-other-uppercase: Likewise.
14799         * modules/unictype/property-paired-punctuation: Likewise.
14800         * modules/unictype/property-paragraph-separator: Likewise.
14801         * modules/unictype/property-pattern-syntax: Likewise.
14802         * modules/unictype/property-pattern-white-space: Likewise.
14803         * modules/unictype/property-private-use: Likewise.
14804         * modules/unictype/property-punctuation: Likewise.
14805         * modules/unictype/property-quotation-mark: Likewise.
14806         * modules/unictype/property-radical: Likewise.
14807         * modules/unictype/property-sentence-terminal: Likewise.
14808         * modules/unictype/property-soft-dotted: Likewise.
14809         * modules/unictype/property-space: Likewise.
14810         * modules/unictype/property-terminal-punctuation: Likewise.
14811         * modules/unictype/property-test: Likewise.
14812         * modules/unictype/property-titlecase: Likewise.
14813         * modules/unictype/property-unassigned-code-value: Likewise.
14814         * modules/unictype/property-unified-ideograph: Likewise.
14815         * modules/unictype/property-uppercase: Likewise.
14816         * modules/unictype/property-variation-selector: Likewise.
14817         * modules/unictype/property-white-space: Likewise.
14818         * modules/unictype/property-xid-continue: Likewise.
14819         * modules/unictype/property-xid-start: Likewise.
14820         * modules/unictype/property-zero-width: Likewise.
14821         * modules/unictype/scripts: Likewise.
14822         * modules/unictype/syntax-c-ident: Likewise.
14823         * modules/unictype/syntax-c-whitespace: Likewise.
14824         * modules/unictype/syntax-java-ident: Likewise.
14825         * modules/unictype/syntax-java-whitespace: Likewise.
14826         * modules/unilbrk/u8-possible-linebreaks: Likewise.
14827         * modules/unilbrk/u8-width-linebreaks: Likewise.
14828         * modules/unilbrk/u16-possible-linebreaks: Likewise.
14829         * modules/unilbrk/u16-width-linebreaks: Likewise.
14830         * modules/unilbrk/u32-possible-linebreaks: Likewise.
14831         * modules/unilbrk/u32-width-linebreaks: Likewise.
14832         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
14833         * modules/unilbrk/ulc-width-linebreaks: Likewise.
14834         * modules/uniname/uniname: Likewise.
14835         * modules/uninorm/canonical-decomposition: Likewise.
14836         * modules/uninorm/composition: Likewise.
14837         * modules/uninorm/decomposing-form: Likewise.
14838         * modules/uninorm/decomposition: Likewise.
14839         * modules/uninorm/filter: Likewise.
14840         * modules/uninorm/nfc: Likewise.
14841         * modules/uninorm/nfd: Likewise.
14842         * modules/uninorm/nfkc: Likewise.
14843         * modules/uninorm/nfkd: Likewise.
14844         * modules/uninorm/u8-normalize: Likewise.
14845         * modules/uninorm/u8-normcmp: Likewise.
14846         * modules/uninorm/u8-normcoll: Likewise.
14847         * modules/uninorm/u8-normxfrm: Likewise.
14848         * modules/uninorm/u16-normalize: Likewise.
14849         * modules/uninorm/u16-normcmp: Likewise.
14850         * modules/uninorm/u16-normcoll: Likewise.
14851         * modules/uninorm/u16-normxfrm: Likewise.
14852         * modules/uninorm/u32-normalize: Likewise.
14853         * modules/uninorm/u32-normcmp: Likewise.
14854         * modules/uninorm/u32-normcoll: Likewise.
14855         * modules/uninorm/u32-normxfrm: Likewise.
14856         * modules/unistdio/u8-asnprintf: Likewise.
14857         * modules/unistdio/u8-asprintf: Likewise.
14858         * modules/unistdio/u8-snprintf: Likewise.
14859         * modules/unistdio/u8-sprintf: Likewise.
14860         * modules/unistdio/u8-u8-asnprintf: Likewise.
14861         * modules/unistdio/u8-u8-asprintf: Likewise.
14862         * modules/unistdio/u8-u8-snprintf: Likewise.
14863         * modules/unistdio/u8-u8-sprintf: Likewise.
14864         * modules/unistdio/u8-u8-vasnprintf: Likewise.
14865         * modules/unistdio/u8-u8-vasprintf: Likewise.
14866         * modules/unistdio/u8-u8-vsnprintf: Likewise.
14867         * modules/unistdio/u8-u8-vsprintf: Likewise.
14868         * modules/unistdio/u8-vasnprintf: Likewise.
14869         * modules/unistdio/u8-vasprintf: Likewise.
14870         * modules/unistdio/u8-vsnprintf: Likewise.
14871         * modules/unistdio/u8-vsprintf: Likewise.
14872         * modules/unistdio/u16-asnprintf: Likewise.
14873         * modules/unistdio/u16-asprintf: Likewise.
14874         * modules/unistdio/u16-snprintf: Likewise.
14875         * modules/unistdio/u16-sprintf: Likewise.
14876         * modules/unistdio/u16-u16-asnprintf: Likewise.
14877         * modules/unistdio/u16-u16-asprintf: Likewise.
14878         * modules/unistdio/u16-u16-snprintf: Likewise.
14879         * modules/unistdio/u16-u16-sprintf: Likewise.
14880         * modules/unistdio/u16-u16-vasnprintf: Likewise.
14881         * modules/unistdio/u16-u16-vasprintf: Likewise.
14882         * modules/unistdio/u16-u16-vsnprintf: Likewise.
14883         * modules/unistdio/u16-u16-vsprintf: Likewise.
14884         * modules/unistdio/u16-vasnprintf: Likewise.
14885         * modules/unistdio/u16-vasprintf: Likewise.
14886         * modules/unistdio/u16-vsnprintf: Likewise.
14887         * modules/unistdio/u16-vsprintf: Likewise.
14888         * modules/unistdio/u32-asnprintf: Likewise.
14889         * modules/unistdio/u32-asprintf: Likewise.
14890         * modules/unistdio/u32-snprintf: Likewise.
14891         * modules/unistdio/u32-sprintf: Likewise.
14892         * modules/unistdio/u32-u32-asnprintf: Likewise.
14893         * modules/unistdio/u32-u32-asprintf: Likewise.
14894         * modules/unistdio/u32-u32-snprintf: Likewise.
14895         * modules/unistdio/u32-u32-sprintf: Likewise.
14896         * modules/unistdio/u32-u32-vasnprintf: Likewise.
14897         * modules/unistdio/u32-u32-vasprintf: Likewise.
14898         * modules/unistdio/u32-u32-vsnprintf: Likewise.
14899         * modules/unistdio/u32-u32-vsprintf: Likewise.
14900         * modules/unistdio/u32-vasnprintf: Likewise.
14901         * modules/unistdio/u32-vasprintf: Likewise.
14902         * modules/unistdio/u32-vsnprintf: Likewise.
14903         * modules/unistdio/u32-vsprintf: Likewise.
14904         * modules/unistdio/ulc-asnprintf: Likewise.
14905         * modules/unistdio/ulc-asprintf: Likewise.
14906         * modules/unistdio/ulc-fprintf: Likewise.
14907         * modules/unistdio/ulc-snprintf: Likewise.
14908         * modules/unistdio/ulc-sprintf: Likewise.
14909         * modules/unistdio/ulc-vasnprintf: Likewise.
14910         * modules/unistdio/ulc-vasprintf: Likewise.
14911         * modules/unistdio/ulc-vfprintf: Likewise.
14912         * modules/unistdio/ulc-vsnprintf: Likewise.
14913         * modules/unistdio/ulc-vsprintf: Likewise.
14914         * modules/unistr/u8-check: Likewise.
14915         * modules/unistr/u8-chr: Likewise.
14916         * modules/unistr/u8-cmp: Likewise.
14917         * modules/unistr/u8-cmp2: Likewise.
14918         * modules/unistr/u8-cpy: Likewise.
14919         * modules/unistr/u8-cpy-alloc: Likewise.
14920         * modules/unistr/u8-endswith: Likewise.
14921         * modules/unistr/u8-mblen: Likewise.
14922         * modules/unistr/u8-mbsnlen: Likewise.
14923         * modules/unistr/u8-mbtouc: Likewise.
14924         * modules/unistr/u8-mbtouc-unsafe: Likewise.
14925         * modules/unistr/u8-mbtoucr: Likewise.
14926         * modules/unistr/u8-move: Likewise.
14927         * modules/unistr/u8-next: Likewise.
14928         * modules/unistr/u8-prev: Likewise.
14929         * modules/unistr/u8-set: Likewise.
14930         * modules/unistr/u8-startswith: Likewise.
14931         * modules/unistr/u8-stpcpy: Likewise.
14932         * modules/unistr/u8-stpncpy: Likewise.
14933         * modules/unistr/u8-strcat: Likewise.
14934         * modules/unistr/u8-strchr: Likewise.
14935         * modules/unistr/u8-strcmp: Likewise.
14936         * modules/unistr/u8-strcoll: Likewise.
14937         * modules/unistr/u8-strcpy: Likewise.
14938         * modules/unistr/u8-strcspn: Likewise.
14939         * modules/unistr/u8-strdup: Likewise.
14940         * modules/unistr/u8-strlen: Likewise.
14941         * modules/unistr/u8-strmblen: Likewise.
14942         * modules/unistr/u8-strmbtouc: Likewise.
14943         * modules/unistr/u8-strncat: Likewise.
14944         * modules/unistr/u8-strncmp: Likewise.
14945         * modules/unistr/u8-strncpy: Likewise.
14946         * modules/unistr/u8-strnlen: Likewise.
14947         * modules/unistr/u8-strpbrk: Likewise.
14948         * modules/unistr/u8-strrchr: Likewise.
14949         * modules/unistr/u8-strspn: Likewise.
14950         * modules/unistr/u8-strstr: Likewise.
14951         * modules/unistr/u8-strtok: Likewise.
14952         * modules/unistr/u8-to-u16: Likewise.
14953         * modules/unistr/u8-to-u32: Likewise.
14954         * modules/unistr/u8-uctomb: Likewise.
14955         * modules/unistr/u16-check: Likewise.
14956         * modules/unistr/u16-chr: Likewise.
14957         * modules/unistr/u16-cmp: Likewise.
14958         * modules/unistr/u16-cmp2: Likewise.
14959         * modules/unistr/u16-cpy: Likewise.
14960         * modules/unistr/u16-cpy-alloc: Likewise.
14961         * modules/unistr/u16-endswith: Likewise.
14962         * modules/unistr/u16-mblen: Likewise.
14963         * modules/unistr/u16-mbsnlen: Likewise.
14964         * modules/unistr/u16-mbtouc: Likewise.
14965         * modules/unistr/u16-mbtouc-unsafe: Likewise.
14966         * modules/unistr/u16-mbtoucr: Likewise.
14967         * modules/unistr/u16-move: Likewise.
14968         * modules/unistr/u16-next: Likewise.
14969         * modules/unistr/u16-prev: Likewise.
14970         * modules/unistr/u16-set: Likewise.
14971         * modules/unistr/u16-startswith: Likewise.
14972         * modules/unistr/u16-stpcpy: Likewise.
14973         * modules/unistr/u16-stpncpy: Likewise.
14974         * modules/unistr/u16-strcat: Likewise.
14975         * modules/unistr/u16-strchr: Likewise.
14976         * modules/unistr/u16-strcmp: Likewise.
14977         * modules/unistr/u16-strcoll: Likewise.
14978         * modules/unistr/u16-strcpy: Likewise.
14979         * modules/unistr/u16-strcspn: Likewise.
14980         * modules/unistr/u16-strdup: Likewise.
14981         * modules/unistr/u16-strlen: Likewise.
14982         * modules/unistr/u16-strmblen: Likewise.
14983         * modules/unistr/u16-strmbtouc: Likewise.
14984         * modules/unistr/u16-strncat: Likewise.
14985         * modules/unistr/u16-strncmp: Likewise.
14986         * modules/unistr/u16-strncpy: Likewise.
14987         * modules/unistr/u16-strnlen: Likewise.
14988         * modules/unistr/u16-strpbrk: Likewise.
14989         * modules/unistr/u16-strrchr: Likewise.
14990         * modules/unistr/u16-strspn: Likewise.
14991         * modules/unistr/u16-strstr: Likewise.
14992         * modules/unistr/u16-strtok: Likewise.
14993         * modules/unistr/u16-to-u32: Likewise.
14994         * modules/unistr/u16-to-u8: Likewise.
14995         * modules/unistr/u16-uctomb: Likewise.
14996         * modules/unistr/u32-check: Likewise.
14997         * modules/unistr/u32-chr: Likewise.
14998         * modules/unistr/u32-cmp: Likewise.
14999         * modules/unistr/u32-cmp2: Likewise.
15000         * modules/unistr/u32-cpy: Likewise.
15001         * modules/unistr/u32-cpy-alloc: Likewise.
15002         * modules/unistr/u32-endswith: Likewise.
15003         * modules/unistr/u32-mblen: Likewise.
15004         * modules/unistr/u32-mbsnlen: Likewise.
15005         * modules/unistr/u32-mbtouc: Likewise.
15006         * modules/unistr/u32-mbtouc-unsafe: Likewise.
15007         * modules/unistr/u32-mbtoucr: Likewise.
15008         * modules/unistr/u32-move: Likewise.
15009         * modules/unistr/u32-next: Likewise.
15010         * modules/unistr/u32-prev: Likewise.
15011         * modules/unistr/u32-set: Likewise.
15012         * modules/unistr/u32-startswith: Likewise.
15013         * modules/unistr/u32-stpcpy: Likewise.
15014         * modules/unistr/u32-stpncpy: Likewise.
15015         * modules/unistr/u32-strcat: Likewise.
15016         * modules/unistr/u32-strchr: Likewise.
15017         * modules/unistr/u32-strcmp: Likewise.
15018         * modules/unistr/u32-strcoll: Likewise.
15019         * modules/unistr/u32-strcpy: Likewise.
15020         * modules/unistr/u32-strcspn: Likewise.
15021         * modules/unistr/u32-strdup: Likewise.
15022         * modules/unistr/u32-strlen: Likewise.
15023         * modules/unistr/u32-strmblen: Likewise.
15024         * modules/unistr/u32-strmbtouc: Likewise.
15025         * modules/unistr/u32-strncat: Likewise.
15026         * modules/unistr/u32-strncmp: Likewise.
15027         * modules/unistr/u32-strncpy: Likewise.
15028         * modules/unistr/u32-strnlen: Likewise.
15029         * modules/unistr/u32-strpbrk: Likewise.
15030         * modules/unistr/u32-strrchr: Likewise.
15031         * modules/unistr/u32-strspn: Likewise.
15032         * modules/unistr/u32-strstr: Likewise.
15033         * modules/unistr/u32-strtok: Likewise.
15034         * modules/unistr/u32-to-u16: Likewise.
15035         * modules/unistr/u32-to-u8: Likewise.
15036         * modules/unistr/u32-uctomb: Likewise.
15037         * modules/uniwbrk/u8-wordbreaks: Likewise.
15038         * modules/uniwbrk/u16-wordbreaks: Likewise.
15039         * modules/uniwbrk/u32-wordbreaks: Likewise.
15040         * modules/uniwbrk/ulc-wordbreaks: Likewise.
15041         * modules/uniwbrk/wordbreak-property: Likewise.
15042         * modules/uniwidth/u8-strwidth: Likewise.
15043         * modules/uniwidth/u8-width: Likewise.
15044         * modules/uniwidth/u16-strwidth: Likewise.
15045         * modules/uniwidth/u16-width: Likewise.
15046         * modules/uniwidth/u32-strwidth: Likewise.
15047         * modules/uniwidth/u32-width: Likewise.
15048         * modules/uniwidth/width: Likewise.
15049         * modules/unicase/cased-tests (Makefile.am): Link all test programs
15050         with $(LIBUNISTRING).
15051         * modules/unicase/ignorable-tests: Likewise.
15052         * modules/unicase/locale-language-tests: Likewise.
15053         * modules/unicase/tolower-tests: Likewise.
15054         * modules/unicase/totitle-tests: Likewise.
15055         * modules/unicase/toupper-tests: Likewise.
15056         * modules/unicase/u8-casecmp-tests: Likewise.
15057         * modules/unicase/u8-casecoll-tests: Likewise.
15058         * modules/unicase/u8-casefold-tests: Likewise.
15059         * modules/unicase/u8-is-cased-tests: Likewise.
15060         * modules/unicase/u8-is-casefolded-tests: Likewise.
15061         * modules/unicase/u8-is-lowercase-tests: Likewise.
15062         * modules/unicase/u8-is-titlecase-tests: Likewise.
15063         * modules/unicase/u8-is-uppercase-tests: Likewise.
15064         * modules/unicase/u8-tolower-tests: Likewise.
15065         * modules/unicase/u8-totitle-tests: Likewise.
15066         * modules/unicase/u8-toupper-tests: Likewise.
15067         * modules/unicase/u16-casecmp-tests: Likewise.
15068         * modules/unicase/u16-casecoll-tests: Likewise.
15069         * modules/unicase/u16-casefold-tests: Likewise.
15070         * modules/unicase/u16-is-cased-tests: Likewise.
15071         * modules/unicase/u16-is-casefolded-tests: Likewise.
15072         * modules/unicase/u16-is-lowercase-tests: Likewise.
15073         * modules/unicase/u16-is-titlecase-tests: Likewise.
15074         * modules/unicase/u16-is-uppercase-tests: Likewise.
15075         * modules/unicase/u16-tolower-tests: Likewise.
15076         * modules/unicase/u16-totitle-tests: Likewise.
15077         * modules/unicase/u16-toupper-tests: Likewise.
15078         * modules/unicase/u32-casecmp-tests: Likewise.
15079         * modules/unicase/u32-casecoll-tests: Likewise.
15080         * modules/unicase/u32-casefold-tests: Likewise.
15081         * modules/unicase/u32-is-cased-tests: Likewise.
15082         * modules/unicase/u32-is-casefolded-tests: Likewise.
15083         * modules/unicase/u32-is-lowercase-tests: Likewise.
15084         * modules/unicase/u32-is-titlecase-tests: Likewise.
15085         * modules/unicase/u32-is-uppercase-tests: Likewise.
15086         * modules/unicase/u32-tolower-tests: Likewise.
15087         * modules/unicase/u32-totitle-tests: Likewise.
15088         * modules/unicase/u32-toupper-tests: Likewise.
15089         * modules/unicase/ulc-casecmp-tests: Likewise.
15090         * modules/unicase/ulc-casecoll-tests: Likewise.
15091         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
15092         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
15093         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
15094         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
15095         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
15096         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
15097         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
15098         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
15099         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
15100         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
15101         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
15102         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
15103         * modules/unictype/bidicategory-byname-tests: Likewise.
15104         * modules/unictype/bidicategory-name-tests: Likewise.
15105         * modules/unictype/bidicategory-of-tests: Likewise.
15106         * modules/unictype/bidicategory-test-tests: Likewise.
15107         * modules/unictype/block-list-tests: Likewise.
15108         * modules/unictype/block-of-tests: Likewise.
15109         * modules/unictype/block-test-tests: Likewise.
15110         * modules/unictype/category-C-tests: Likewise.
15111         * modules/unictype/category-Cc-tests: Likewise.
15112         * modules/unictype/category-Cf-tests: Likewise.
15113         * modules/unictype/category-Cn-tests: Likewise.
15114         * modules/unictype/category-Co-tests: Likewise.
15115         * modules/unictype/category-Cs-tests: Likewise.
15116         * modules/unictype/category-L-tests: Likewise.
15117         * modules/unictype/category-Ll-tests: Likewise.
15118         * modules/unictype/category-Lm-tests: Likewise.
15119         * modules/unictype/category-Lo-tests: Likewise.
15120         * modules/unictype/category-Lt-tests: Likewise.
15121         * modules/unictype/category-Lu-tests: Likewise.
15122         * modules/unictype/category-M-tests: Likewise.
15123         * modules/unictype/category-Mc-tests: Likewise.
15124         * modules/unictype/category-Me-tests: Likewise.
15125         * modules/unictype/category-Mn-tests: Likewise.
15126         * modules/unictype/category-N-tests: Likewise.
15127         * modules/unictype/category-Nd-tests: Likewise.
15128         * modules/unictype/category-Nl-tests: Likewise.
15129         * modules/unictype/category-No-tests: Likewise.
15130         * modules/unictype/category-P-tests: Likewise.
15131         * modules/unictype/category-Pc-tests: Likewise.
15132         * modules/unictype/category-Pd-tests: Likewise.
15133         * modules/unictype/category-Pe-tests: Likewise.
15134         * modules/unictype/category-Pf-tests: Likewise.
15135         * modules/unictype/category-Pi-tests: Likewise.
15136         * modules/unictype/category-Po-tests: Likewise.
15137         * modules/unictype/category-Ps-tests: Likewise.
15138         * modules/unictype/category-S-tests: Likewise.
15139         * modules/unictype/category-Sc-tests: Likewise.
15140         * modules/unictype/category-Sk-tests: Likewise.
15141         * modules/unictype/category-Sm-tests: Likewise.
15142         * modules/unictype/category-So-tests: Likewise.
15143         * modules/unictype/category-Z-tests: Likewise.
15144         * modules/unictype/category-Zl-tests: Likewise.
15145         * modules/unictype/category-Zp-tests: Likewise.
15146         * modules/unictype/category-Zs-tests: Likewise.
15147         * modules/unictype/category-and-not-tests: Likewise.
15148         * modules/unictype/category-and-tests: Likewise.
15149         * modules/unictype/category-byname-tests: Likewise.
15150         * modules/unictype/category-name-tests: Likewise.
15151         * modules/unictype/category-none-tests: Likewise.
15152         * modules/unictype/category-of-tests: Likewise.
15153         * modules/unictype/category-or-tests: Likewise.
15154         * modules/unictype/category-test-withtable-tests: Likewise.
15155         * modules/unictype/combining-class-tests: Likewise.
15156         * modules/unictype/ctype-alnum-tests: Likewise.
15157         * modules/unictype/ctype-alpha-tests: Likewise.
15158         * modules/unictype/ctype-blank-tests: Likewise.
15159         * modules/unictype/ctype-cntrl-tests: Likewise.
15160         * modules/unictype/ctype-digit-tests: Likewise.
15161         * modules/unictype/ctype-graph-tests: Likewise.
15162         * modules/unictype/ctype-lower-tests: Likewise.
15163         * modules/unictype/ctype-print-tests: Likewise.
15164         * modules/unictype/ctype-punct-tests: Likewise.
15165         * modules/unictype/ctype-space-tests: Likewise.
15166         * modules/unictype/ctype-upper-tests: Likewise.
15167         * modules/unictype/ctype-xdigit-tests: Likewise.
15168         * modules/unictype/decimal-digit-tests: Likewise.
15169         * modules/unictype/digit-tests: Likewise.
15170         * modules/unictype/mirror-tests: Likewise.
15171         * modules/unictype/numeric-tests: Likewise.
15172         * modules/unictype/property-alphabetic-tests: Likewise.
15173         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
15174         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
15175         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
15176         * modules/unictype/property-bidi-block-separator-tests: Likewise.
15177         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
15178         * modules/unictype/property-bidi-common-separator-tests: Likewise.
15179         * modules/unictype/property-bidi-control-tests: Likewise.
15180         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
15181         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
15182         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
15183         * modules/unictype/property-bidi-european-digit-tests: Likewise.
15184         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
15185         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
15186         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
15187         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
15188         * modules/unictype/property-bidi-pdf-tests: Likewise.
15189         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
15190         * modules/unictype/property-bidi-whitespace-tests: Likewise.
15191         * modules/unictype/property-byname-tests: Likewise.
15192         * modules/unictype/property-combining-tests: Likewise.
15193         * modules/unictype/property-composite-tests: Likewise.
15194         * modules/unictype/property-currency-symbol-tests: Likewise.
15195         * modules/unictype/property-dash-tests: Likewise.
15196         * modules/unictype/property-decimal-digit-tests: Likewise.
15197         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
15198         * modules/unictype/property-deprecated-tests: Likewise.
15199         * modules/unictype/property-diacritic-tests: Likewise.
15200         * modules/unictype/property-extender-tests: Likewise.
15201         * modules/unictype/property-format-control-tests: Likewise.
15202         * modules/unictype/property-grapheme-base-tests: Likewise.
15203         * modules/unictype/property-grapheme-extend-tests: Likewise.
15204         * modules/unictype/property-grapheme-link-tests: Likewise.
15205         * modules/unictype/property-hex-digit-tests: Likewise.
15206         * modules/unictype/property-hyphen-tests: Likewise.
15207         * modules/unictype/property-id-continue-tests: Likewise.
15208         * modules/unictype/property-id-start-tests: Likewise.
15209         * modules/unictype/property-ideographic-tests: Likewise.
15210         * modules/unictype/property-ids-binary-operator-tests: Likewise.
15211         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
15212         * modules/unictype/property-ignorable-control-tests: Likewise.
15213         * modules/unictype/property-iso-control-tests: Likewise.
15214         * modules/unictype/property-join-control-tests: Likewise.
15215         * modules/unictype/property-left-of-pair-tests: Likewise.
15216         * modules/unictype/property-line-separator-tests: Likewise.
15217         * modules/unictype/property-logical-order-exception-tests: Likewise.
15218         * modules/unictype/property-lowercase-tests: Likewise.
15219         * modules/unictype/property-math-tests: Likewise.
15220         * modules/unictype/property-non-break-tests: Likewise.
15221         * modules/unictype/property-not-a-character-tests: Likewise.
15222         * modules/unictype/property-numeric-tests: Likewise.
15223         * modules/unictype/property-other-alphabetic-tests: Likewise.
15224         * modules/unictype/property-other-default-ignorable-code-point-tests:
15225         Likewise.
15226         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
15227         * modules/unictype/property-other-id-continue-tests: Likewise.
15228         * modules/unictype/property-other-id-start-tests: Likewise.
15229         * modules/unictype/property-other-lowercase-tests: Likewise.
15230         * modules/unictype/property-other-math-tests: Likewise.
15231         * modules/unictype/property-other-uppercase-tests: Likewise.
15232         * modules/unictype/property-paired-punctuation-tests: Likewise.
15233         * modules/unictype/property-paragraph-separator-tests: Likewise.
15234         * modules/unictype/property-pattern-syntax-tests: Likewise.
15235         * modules/unictype/property-pattern-white-space-tests: Likewise.
15236         * modules/unictype/property-private-use-tests: Likewise.
15237         * modules/unictype/property-punctuation-tests: Likewise.
15238         * modules/unictype/property-quotation-mark-tests: Likewise.
15239         * modules/unictype/property-radical-tests: Likewise.
15240         * modules/unictype/property-sentence-terminal-tests: Likewise.
15241         * modules/unictype/property-soft-dotted-tests: Likewise.
15242         * modules/unictype/property-space-tests: Likewise.
15243         * modules/unictype/property-terminal-punctuation-tests: Likewise.
15244         * modules/unictype/property-test-tests: Likewise.
15245         * modules/unictype/property-titlecase-tests: Likewise.
15246         * modules/unictype/property-unassigned-code-value-tests: Likewise.
15247         * modules/unictype/property-unified-ideograph-tests: Likewise.
15248         * modules/unictype/property-uppercase-tests: Likewise.
15249         * modules/unictype/property-variation-selector-tests: Likewise.
15250         * modules/unictype/property-white-space-tests: Likewise.
15251         * modules/unictype/property-xid-continue-tests: Likewise.
15252         * modules/unictype/property-xid-start-tests: Likewise.
15253         * modules/unictype/property-zero-width-tests: Likewise.
15254         * modules/unictype/scripts-tests: Likewise.
15255         * modules/unictype/syntax-c-ident-tests: Likewise.
15256         * modules/unictype/syntax-c-whitespace-tests: Likewise.
15257         * modules/unictype/syntax-java-ident-tests: Likewise.
15258         * modules/unictype/syntax-java-whitespace-tests: Likewise.
15259         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
15260         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
15261         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
15262         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
15263         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
15264         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
15265         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
15266         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
15267         * modules/uniname/uniname-tests: Likewise.
15268         * modules/uninorm/canonical-decomposition-tests: Likewise.
15269         * modules/uninorm/compat-decomposition-tests: Likewise.
15270         * modules/uninorm/composition-tests: Likewise.
15271         * modules/uninorm/decomposing-form-tests: Likewise.
15272         * modules/uninorm/decomposition-tests: Likewise.
15273         * modules/uninorm/filter-tests: Likewise.
15274         * modules/uninorm/nfc-tests: Likewise.
15275         * modules/uninorm/nfd-tests: Likewise.
15276         * modules/uninorm/nfkc-tests: Likewise.
15277         * modules/uninorm/nfkd-tests: Likewise.
15278         * modules/uninorm/u8-normcmp-tests: Likewise.
15279         * modules/uninorm/u8-normcoll-tests: Likewise.
15280         * modules/uninorm/u16-normcmp-tests: Likewise.
15281         * modules/uninorm/u16-normcoll-tests: Likewise.
15282         * modules/uninorm/u32-normcmp-tests: Likewise.
15283         * modules/uninorm/u32-normcoll-tests: Likewise.
15284         * modules/unistdio/u8-asnprintf-tests: Likewise.
15285         * modules/unistdio/u8-vasnprintf-tests: Likewise.
15286         * modules/unistdio/u8-vasprintf-tests: Likewise.
15287         * modules/unistdio/u8-vsnprintf-tests: Likewise.
15288         * modules/unistdio/u8-vsprintf-tests: Likewise.
15289         * modules/unistdio/u16-asnprintf-tests: Likewise.
15290         * modules/unistdio/u16-vasnprintf-tests: Likewise.
15291         * modules/unistdio/u16-vasprintf-tests: Likewise.
15292         * modules/unistdio/u16-vsnprintf-tests: Likewise.
15293         * modules/unistdio/u16-vsprintf-tests: Likewise.
15294         * modules/unistdio/u32-asnprintf-tests: Likewise.
15295         * modules/unistdio/u32-vasnprintf-tests: Likewise.
15296         * modules/unistdio/u32-vasprintf-tests: Likewise.
15297         * modules/unistdio/u32-vsnprintf-tests: Likewise.
15298         * modules/unistdio/u32-vsprintf-tests: Likewise.
15299         * modules/unistdio/ulc-asnprintf-tests: Likewise.
15300         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
15301         * modules/unistdio/ulc-vasprintf-tests: Likewise.
15302         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
15303         * modules/unistdio/ulc-vsprintf-tests: Likewise.
15304         * modules/unistr/u8-check-tests: Likewise.
15305         * modules/unistr/u8-chr-tests: Likewise.
15306         * modules/unistr/u8-cmp-tests: Likewise.
15307         * modules/unistr/u8-cmp2-tests: Likewise.
15308         * modules/unistr/u8-cpy-alloc-tests: Likewise.
15309         * modules/unistr/u8-cpy-tests: Likewise.
15310         * modules/unistr/u8-mblen-tests: Likewise.
15311         * modules/unistr/u8-mbsnlen-tests: Likewise.
15312         * modules/unistr/u8-mbtouc-tests: Likewise.
15313         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
15314         * modules/unistr/u8-mbtoucr-tests: Likewise.
15315         * modules/unistr/u8-move-tests: Likewise.
15316         * modules/unistr/u8-next-tests: Likewise.
15317         * modules/unistr/u8-prev-tests: Likewise.
15318         * modules/unistr/u8-set-tests: Likewise.
15319         * modules/unistr/u8-stpcpy-tests: Likewise.
15320         * modules/unistr/u8-stpncpy-tests: Likewise.
15321         * modules/unistr/u8-strcat-tests: Likewise.
15322         * modules/unistr/u8-strcmp-tests: Likewise.
15323         * modules/unistr/u8-strcoll-tests: Likewise.
15324         * modules/unistr/u8-strcpy-tests: Likewise.
15325         * modules/unistr/u8-strdup-tests: Likewise.
15326         * modules/unistr/u8-strlen-tests: Likewise.
15327         * modules/unistr/u8-strmblen-tests: Likewise.
15328         * modules/unistr/u8-strmbtouc-tests: Likewise.
15329         * modules/unistr/u8-strncat-tests: Likewise.
15330         * modules/unistr/u8-strncmp-tests: Likewise.
15331         * modules/unistr/u8-strncpy-tests: Likewise.
15332         * modules/unistr/u8-strnlen-tests: Likewise.
15333         * modules/unistr/u8-to-u16-tests: Likewise.
15334         * modules/unistr/u8-to-u32-tests: Likewise.
15335         * modules/unistr/u8-uctomb-tests: Likewise.
15336         * modules/unistr/u16-check-tests: Likewise.
15337         * modules/unistr/u16-chr-tests: Likewise.
15338         * modules/unistr/u16-cmp-tests: Likewise.
15339         * modules/unistr/u16-cmp2-tests: Likewise.
15340         * modules/unistr/u16-cpy-alloc-tests: Likewise.
15341         * modules/unistr/u16-cpy-tests: Likewise.
15342         * modules/unistr/u16-mblen-tests: Likewise.
15343         * modules/unistr/u16-mbsnlen-tests: Likewise.
15344         * modules/unistr/u16-mbtouc-tests: Likewise.
15345         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
15346         * modules/unistr/u16-mbtoucr-tests: Likewise.
15347         * modules/unistr/u16-move-tests: Likewise.
15348         * modules/unistr/u16-next-tests: Likewise.
15349         * modules/unistr/u16-prev-tests: Likewise.
15350         * modules/unistr/u16-set-tests: Likewise.
15351         * modules/unistr/u16-stpcpy-tests: Likewise.
15352         * modules/unistr/u16-stpncpy-tests: Likewise.
15353         * modules/unistr/u16-strcat-tests: Likewise.
15354         * modules/unistr/u16-strcmp-tests: Likewise.
15355         * modules/unistr/u16-strcoll-tests: Likewise.
15356         * modules/unistr/u16-strcpy-tests: Likewise.
15357         * modules/unistr/u16-strdup-tests: Likewise.
15358         * modules/unistr/u16-strlen-tests: Likewise.
15359         * modules/unistr/u16-strmblen-tests: Likewise.
15360         * modules/unistr/u16-strmbtouc-tests: Likewise.
15361         * modules/unistr/u16-strncat-tests: Likewise.
15362         * modules/unistr/u16-strncmp-tests: Likewise.
15363         * modules/unistr/u16-strncpy-tests: Likewise.
15364         * modules/unistr/u16-strnlen-tests: Likewise.
15365         * modules/unistr/u16-to-u32-tests: Likewise.
15366         * modules/unistr/u16-to-u8-tests: Likewise.
15367         * modules/unistr/u16-uctomb-tests: Likewise.
15368         * modules/unistr/u32-check-tests: Likewise.
15369         * modules/unistr/u32-chr-tests: Likewise.
15370         * modules/unistr/u32-cmp-tests: Likewise.
15371         * modules/unistr/u32-cmp2-tests: Likewise.
15372         * modules/unistr/u32-cpy-alloc-tests: Likewise.
15373         * modules/unistr/u32-cpy-tests: Likewise.
15374         * modules/unistr/u32-mblen-tests: Likewise.
15375         * modules/unistr/u32-mbsnlen-tests: Likewise.
15376         * modules/unistr/u32-mbtouc-tests: Likewise.
15377         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
15378         * modules/unistr/u32-mbtoucr-tests: Likewise.
15379         * modules/unistr/u32-move-tests: Likewise.
15380         * modules/unistr/u32-next-tests: Likewise.
15381         * modules/unistr/u32-prev-tests: Likewise.
15382         * modules/unistr/u32-set-tests: Likewise.
15383         * modules/unistr/u32-stpcpy-tests: Likewise.
15384         * modules/unistr/u32-stpncpy-tests: Likewise.
15385         * modules/unistr/u32-strcat-tests: Likewise.
15386         * modules/unistr/u32-strcmp-tests: Likewise.
15387         * modules/unistr/u32-strcoll-tests: Likewise.
15388         * modules/unistr/u32-strcpy-tests: Likewise.
15389         * modules/unistr/u32-strdup-tests: Likewise.
15390         * modules/unistr/u32-strlen-tests: Likewise.
15391         * modules/unistr/u32-strmblen-tests: Likewise.
15392         * modules/unistr/u32-strmbtouc-tests: Likewise.
15393         * modules/unistr/u32-strncat-tests: Likewise.
15394         * modules/unistr/u32-strncmp-tests: Likewise.
15395         * modules/unistr/u32-strncpy-tests: Likewise.
15396         * modules/unistr/u32-strnlen-tests: Likewise.
15397         * modules/unistr/u32-to-u16-tests: Likewise.
15398         * modules/unistr/u32-to-u8-tests: Likewise.
15399         * modules/unistr/u32-uctomb-tests: Likewise.
15400         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
15401         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
15402         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
15403         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
15404         * modules/uniwidth/u8-strwidth-tests: Likewise.
15405         * modules/uniwidth/u8-width-tests: Likewise.
15406         * modules/uniwidth/u16-strwidth-tests: Likewise.
15407         * modules/uniwidth/u16-width-tests: Likewise.
15408         * modules/uniwidth/u32-strwidth-tests: Likewise.
15409         * modules/uniwidth/u32-width-tests: Likewise.
15410         * modules/uniwidth/width-tests: Likewise.
15411
15412 2010-05-18  Richard Jones  <rjones@redhat.com>
15413
15414         doc: users.txt: list hivex
15415         * users.txt: Add hivex.
15416
15417 2010-05-18  Richard Jones  <rjones@redhat.com>
15418
15419         doc: users.txt: list febootstrap
15420         * users.txt: Add febootstrap.
15421
15422 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
15423
15424         bootstrap: fix an error when gnulib is not used as a git submodule
15425         * build-aux/bootstrap (gnulib_path): If its length is zero then
15426         assign "gnulib" to it.
15427         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
15428
15429 2010-05-16  Bruno Haible  <bruno@clisp.org>
15430
15431         Avoid autoconf warnings about AM_ICONV.
15432         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
15433         2.64.
15434
15435 2010-05-16  Bruno Haible  <bruno@clisp.org>
15436
15437         absolute-header: Make the macro usable in more situations.
15438         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
15439         from gl_ABSOLUTE_HEADER.
15440         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
15441
15442 2010-05-16  James Youngman  <jay@gnu.org>
15443
15444         doc: update users.txt
15445         * users.txt: Add CSSC.
15446
15447 2010-05-16  Jim Meyering  <meyering@redhat.com>
15448
15449         init.sh: fix an error in the previous change; add more comments
15450         * tests/init.sh: Compare exit code in loop against 9, not 2.
15451         Patch by Bruno Haible.
15452         Make the two tests more similar by adding an empty "then" clause.
15453         Add comments.
15454
15455         init.sh: avoid unnecessary shell re-exec
15456         * tests/init.sh: Improve the re-exec-required check to first test the
15457         current shell.  If it passes the test, do not search for a shell that
15458         does pass, and do not re-exec.  This test is particularly contorted to
15459         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
15460         of $(...) evokes a syntax error and causes immediate shell exit with
15461         status 2.  Bruno Haible reported that the re-exec made it impossible
15462         to single-step through any init.sh-using script.
15463
15464 2010-05-16  Bruno Haible  <bruno@clisp.org>
15465
15466         Fix collision between gnulib's and libintl's printf replacements.
15467         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
15468         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
15469         (printf): When using GNU C, map the __printf__ function to rpl_printf
15470         via __asm__. When not using GNU C, define rpl_printf instead of
15471         __printf__.
15472         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
15473         commit.
15474         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
15475         commit.
15476         * m4/asm-underscore.m4: New file.
15477         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
15478         * modules/stdio (Files): Add m4/asm-underscore.m4.
15479         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
15480         Reported by Ben Pfaff.
15481
15482 2010-05-16  Bruno Haible  <bruno@clisp.org>
15483
15484         verify: Avoid skipping the test on openSUSE 11.0.
15485         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
15486
15487 2010-05-13  Bruno Haible  <bruno@clisp.org>
15488
15489         Avoid useless warnings from G++.
15490         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
15491         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
15492         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15493
15494 2010-05-11  Jim Meyering  <meyering@redhat.com>
15495
15496         maint.mk: tweak preceding change
15497         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
15498         regexps tighter by anchoring at EOL, and make the new group "shy"
15499         for slightly decreased overhead.
15500
15501 2010-05-11  Eric Blake  <eblake@redhat.com>
15502
15503         maint.mk: gnulib doesn't guarantee NSIG
15504         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
15505
15506 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15507
15508         test-pwrite.c: Remove unused variable declaration.
15509         * tests/test-pwrite.c (main): Remove read_buf declaration.
15510
15511         Remove useless test-pwrite.sh file.
15512         * tests/test-pwrite.sh: Delete file.
15513         * modules/pwrite-tests: Remove references.
15514         Reported by Bruno Haible.
15515
15516 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15517
15518         init.sh: fix a typo
15519         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
15520
15521 2010-05-10  Jim Meyering  <meyering@redhat.com>
15522
15523         maint.mk: avoid using a temporary file in the always-defined-macros check
15524         * top/maint.mk (.re-defmac): Remove rule.
15525         (gl_trap_): Remove definition.
15526         (sc_prohibit_always-defined_macros): Rewrite not to create and
15527         depend on a temporary file.  Instead, depend on GNU grep's ability
15528         to read a list of regular expressions from stdin when given "-f -".
15529
15530 2010-05-09  Bruno Haible  <bruno@clisp.org>
15531
15532         Update to GNU gettext 0.18, part 1.
15533         * m4/gettext.m4: Update to GNU gettext 0.18.
15534         * m4/intl.m4: Likewise.
15535         * m4/po.m4: Likewise.
15536         * modules/gettext (Files): Add m4/fcntl-o.m4.
15537         (configure.ac): Require gettext infrastructure from version 0.18.
15538
15539 2010-05-09  Jim Meyering  <meyering@redhat.com>
15540
15541         init.sh: enable MALLOC_PERTURB_
15542         * tests/init.sh: Enable glibc's malloc-perturbing option.
15543
15544         maint.mk: improve sc_cross_check_PATH_usage_in_tests
15545         With my recent change in init.sh from the two-line form:
15546             -#   : ${srcdir=.}
15547             -#   . "$srcdir/init.sh"; path_prepend_ .
15548             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
15549         I noticed that using the one-line form would cause this test
15550         to fail with a false-positive, or to stop working altogether,
15551         depending on whether help-version changed or all the tests did.
15552         * top/maint.mk (_hv_regex): Remove this definition.
15553         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
15554         (_hv_regex_strong): Use a stronger regex to check for conformance.
15555         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
15556         Give a separate diagnostic for lack of conforming use.
15557
15558         maint.mk: prohibit definition of symbols defined by gnulib
15559         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
15560         definition of symbols defined by gnulib.
15561
15562 2010-05-09  Bruno Haible  <bruno@clisp.org>
15563
15564         acl: Avoid test failure on Cygwin-hosted mingw.
15565         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
15566
15567 2010-05-09  Bruno Haible  <bruno@clisp.org>
15568
15569         error: Use system's fcntl function.
15570         * lib/error.c (fcntl): Undefine.
15571
15572 2010-05-09  Jim Meyering  <meyering@redhat.com>
15573
15574         verify: adjust formatting to be more consistent
15575         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
15576         argument-list '('s, and after one comma.
15577
15578 2010-05-09  Bruno Haible  <bruno@clisp.org>
15579
15580         error: More reliable output on mingw.
15581         * lib/error.c: Include <windows.h>.
15582         (is_open): New function.
15583         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
15584         defined.
15585
15586 2010-05-09  Bruno Haible  <bruno@clisp.org>
15587
15588         vasnprintf: Fix syntax errors in libintl build on mingw.
15589         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
15590         pad_ourselves and prec_ourselves after use.
15591
15592 2010-05-08  Bruno Haible  <bruno@clisp.org>
15593
15594         * lib/config.charset: Update comments for Cygwin 1.7.
15595         * lib/localcharset.c: Likewise.
15596
15597 2010-05-07  Jim Meyering  <meyering@redhat.com>
15598
15599         init.sh: improve comments
15600         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
15601         . "${srcdir=.}/init.sh"; path_prepend_ .
15602         Add a note about path_prepend_ and the alternative of using
15603         TESTS_ENVIRONMENT.
15604
15605 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15606
15607         exclude: Unescape hashed patterns in wildcard mode.
15608         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
15609         to the hash list.
15610         * tests/test-exclude8.sh: New test case.
15611         * modules/exclude-tests: Add new test.
15612
15613 2010-05-05  Eric Blake  <eblake@redhat.com>
15614
15615         verify: automate tests
15616         * modules/verify-tests: New module.
15617         * tests/test-verify.sh: New file.
15618         * tests/test-verify.c: Guard each negative test with a unique id.
15619         Also avoid warning about unused left hand of comma expressions.
15620
15621 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15622
15623         Further improvements to verify.h, suggested by Eric Blake.
15624         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
15625         the GL_* versions, to avoid collision with OpenGL.
15626         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
15627         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
15628         than testing merely whether it's defined.
15629
15630         Modify verify.h to pacify gcc -Wredundant_decls.
15631         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
15632         These use the prefix "GL_" since they're likely to be useful elsewhere.
15633         We may need to break them out into a different .h file.
15634         (__COUNTER__): Define to 0 if the compiler doesn't support it.
15635         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
15636         of verify_function__.
15637
15638 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15639
15640         Tests for module pwrite.
15641         * modules/pwrite-tests: New file.
15642         * tests/test-pwrite.sh: New file.
15643         * tests/test-pwrite.c: New file.
15644
15645         New module pwrite.
15646         * lib/unistd.in.h (pwrite): New declaration.
15647         * lib/pwrite.c: New file, from glibc with modifications.
15648         * m4/pwrite.m4: New file.
15649         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
15650         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
15651         REPLACE_PWRITE.
15652         * modules/pwrite: New file.
15653         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
15654         REPLACE_PWRITE.
15655         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
15656         * doc/posix-functions/pwrite.texi: Mention the new module.
15657
15658 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15659
15660         pread: Update documentation.
15661         * doc/posix-functions/pread.texi: Mention the 'pread' module.
15662
15663 2010-05-04  Eric Blake  <eblake@redhat.com>
15664
15665         docs: update cygwin progress
15666         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
15667         this bug.
15668         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
15669         Added in cygwin 1.7.2.
15670         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
15671         Likewise.
15672         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
15673         Likewise.
15674         * doc/glibc-functions/dup3.texi (dup3): Likewise.
15675         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15676         * doc/glibc-functions/accept4.texi (accept4): Likewise.
15677         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
15678         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
15679         Mention nproc module.
15680         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
15681         bug in cygwin 1.7.5 addition.
15682         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
15683         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
15684         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
15685         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
15686         1.7.5.
15687         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
15688         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
15689         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
15690         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
15691         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
15692         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
15693         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
15694         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
15695         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
15696         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
15697         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
15698         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
15699         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
15700         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
15701         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
15702         Likewise.
15703         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
15704         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
15705         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
15706         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
15707         Likewise.
15708         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
15709         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
15710         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
15711         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
15712         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
15713         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
15714         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
15715         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
15716         Likewise.
15717         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
15718         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
15719         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
15720         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
15721         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
15722         Likewise.
15723         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
15724         Likewise.
15725         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
15726         Likewise.
15727         * doc/glibc-functions/xdrrec_endofrecord.texi
15728         (xdrrec_endofrecord): Likewise.
15729         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
15730         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
15731         Likewise.
15732         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
15733         Likewise.
15734
15735 2010-05-04  Jim Meyering  <meyering@redhat.com>
15736
15737         gendocs.sh: make its "-s FILE" option more useful
15738         * build-aux/gendocs.sh: When honoring the -s FILE option, update
15739         $PACKAGE to reflect the probably-different basename of "FILE".
15740
15741 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
15742
15743         bootstrap: don't ignore download_po_files failure
15744         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
15745         failure.
15746
15747 2010-05-03  Jim Meyering  <meyering@redhat.com>
15748
15749         maint.mk: allow to pass options to gendocs.sh
15750         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
15751         (gendocs_options_): New overridable variable.
15752
15753         gnu-web-doc-update: don't ignore configure or build failure
15754         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
15755
15756         announce-gen: backslash-escape '@'s in --help output
15757         * build-aux/announce-gen: Fix syntax errors.
15758
15759         maint.mk, announce-gen: allow project-specific announcement mail headers
15760         * top/maint.mk (translation_project_): Define default.
15761         (announcement_Cc_, announcement_mail_headers_): Likewise.
15762         (announcement): Invoke announce-gen with new --mail-headers option.
15763         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
15764
15765         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
15766         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
15767         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
15768         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
15769         line in the "err2" output file when running "make check" in verbose
15770         mode (i.e., with set -x enabled).
15771
15772 2010-05-03  Bruno Haible  <bruno@clisp.org>
15773
15774         wctob: Fix for weird platforms.
15775         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
15776         argument value.
15777
15778 2010-05-03  Jim Meyering  <meyering@redhat.com>
15779
15780         maint.mk: prohibit unwarranted use of <strings.h>
15781         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
15782         strings.h in a file that does not also use strcasecmp, strncasecmp,
15783         ffs or ffsll.
15784
15785         maint.mk: remove obsolete comments
15786         * top/maint.mk: Remove stale, commented-out rules.
15787
15788 2010-05-02  Bruno Haible  <bruno@clisp.org>
15789
15790         wcwidth: Declare also when it's aliased.
15791         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
15792         macro.
15793
15794 2010-05-02  Bruno Haible  <bruno@clisp.org>
15795
15796         Fix regression from 2010-04-25.
15797         * gnulib-tool (func_modules_transitive_closure): Check the status of
15798         all modules, not only of the tests that are of the form foo-tests where
15799         foo is a module.
15800
15801 2010-05-02  Bruno Haible  <bruno@clisp.org>
15802
15803         wctob: Work around nasty Cygwin 1.7.2 bug.
15804         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
15805         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
15806
15807 2010-05-01  Bruno Haible  <bruno@clisp.org>
15808
15809         fpurge: Sharper test.
15810         * tests/test-fpurge.c (main): Add one more ftell check.
15811         * modules/fpurge-tests (Depends-on): Add ftell.
15812         Suggested by Eric Blake.
15813
15814 2010-05-01  Bruno Haible  <bruno@clisp.org>
15815
15816         ftello: Another test.
15817         * tests/test-ftello3.c: New file.
15818         * modules/ftello-tests (Files): Add it.
15819         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15820         MOSTLYCLEANFILES.
15821
15822         ftell: Another test.
15823         * tests/test-ftell3.c: New file.
15824         * modules/ftell-tests (Files): Add it.
15825         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15826         MOSTLYCLEANFILES.
15827
15828 2010-05-01  Bruno Haible  <bruno@clisp.org>
15829
15830         ftell, ftello: Work around Solaris bug.
15831         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
15832         * lib/ftello.c: Include stdio-impl.h.
15833         (ftello): On Solaris, when _IOWRT is set, compute the result without
15834         looking at _IOREAD.
15835         * modules/ftello (Files): Add lib/stdio-impl.h.
15836         * doc/posix-functions/ftell.texi: Mention Solaris bug.
15837         * doc/posix-functions/ftello.texi: Likewise.
15838         Reported by Eric Blake.
15839
15840 2010-05-01  Bruno Haible  <bruno@clisp.org>
15841
15842         freading: Adapt to special meaning of _IOREAD flag on Solaris.
15843         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
15844         the _IOWRT flag is also set.
15845
15846 2010-05-01  Bruno Haible  <bruno@clisp.org>
15847
15848         Fix doc about a HP-UX stdio bug.
15849         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
15850         * doc/posix-functions/ftello.texi: Likewise.
15851
15852 2010-05-01  Bruno Haible  <bruno@clisp.org>
15853
15854         lseek test: Fix failure on Solaris.
15855         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
15856         output.
15857
15858 2010-04-30  Jim Meyering  <meyering@redhat.com>
15859
15860         bootstrap: don't ignore failure to generate po*/Makevars
15861         * build-aux/bootstrap (with_gettext): Don't ignore failure
15862         to create po/Makevars or runtime-po/Makevars.
15863
15864 2010-04-29  Eric Blake  <eblake@redhat.com>
15865
15866         headers: relax license to LGPLv2+
15867         * modules/fcntl-h (License): Relax license.
15868         * modules/getopt-posix (License): Likewise.
15869         * modules/locale (License): Likewise.
15870         * modules/math (License): Likewise.
15871         * modules/pty (License): Likewise.
15872         * modules/sched (License): Likewise.
15873         * modules/search (License): Likewise.
15874         * modules/spawn (License): Likewise.
15875         * modules/stdarg (License): Likewise.
15876         * modules/sysexits (License): Likewise.
15877
15878 2010-04-29  Jim Meyering  <meyering@redhat.com>
15879
15880         inttypes: relax license to LGPLv2+
15881         * modules/inttypes (License): Relax license.
15882
15883 2010-04-29  Simon Josefsson  <simon@josefsson.org>
15884
15885         * top/maint.mk (indent): Run twice to produce idempotent results.
15886
15887 2010-04-28  Bruno Haible  <bruno@clisp.org>
15888
15889         getdate: Generate getdate.c in the source directory.
15890         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
15891         MOSTLYCLEANFILES.
15892         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
15893
15894 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
15895
15896         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
15897         is not declared as a const *; avoid warnings in that case.
15898
15899 2010-04-28  Eric Blake  <eblake@redhat.com>
15900
15901         canonicalize-lgpl: avoid compiler warning
15902         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
15903         declaration' / 'extraneous semicolon' warning with some compilers.
15904         Reported by Andreas Gruenbacher.
15905
15906 2010-04-28  Jim Meyering  <meyering@redhat.com>
15907
15908         init.sh: ensure a more reliable exit status when exiting via trap
15909         * tests/init.sh (setup_): Don't rely on $? in signal handler.
15910         Inspired by patches from Dmitry V. Levin.
15911         Also trap on signal 3 (SIGQUIT).
15912
15913 2010-04-27  Bruno Haible  <bruno@clisp.org>
15914
15915         Update doc about utimes().
15916         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
15917         'utimens' module.
15918         Reported by Andreas Gruenbacher <agruen@suse.de>.
15919
15920 2010-04-27  Eric Blake  <eblake@redhat.com>
15921
15922         full-read, full-write: relax license
15923         * modules/full-read (License): Drop to LGPLv2+.
15924         * modules/full-write (License): Likewise.
15925         * modules/safe-read (License): Likewise.
15926         * modules/safe-write (License): Likewise.
15927
15928         pthread: mention library for linking
15929         * modules/pthread (Link): Mention $(LIB_PTHREAD).
15930
15931 2010-04-27  Jim Meyering  <meyering@redhat.com>
15932
15933         maint.mk: fix a bug introduced in last change
15934         * top/maint.mk (gl_assured_headers_): Now that all names are on
15935         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
15936         is not anchored to end of word, it should be adequate.
15937
15938         maint.mk: avoid side-effect in latest syntax-check
15939         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
15940         to run commands via $(shell...), and hence to incur cost only when
15941         the new rule is actually run.
15942
15943         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
15944         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
15945         and use that to create a regexp used to detect all #if HAVE_..._H uses.
15946         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
15947         (gl_assured_headers_, az_, AZ_): Define.
15948         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
15949
15950 2010-04-26  Jim Meyering  <jim@meyering.net>
15951             Bruno Haible  <bruno@clisp.org>
15952
15953         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
15954         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
15955         Prompted by an exchange with Gilles Espinasse.
15956
15957 2010-04-26  Jim Meyering  <meyering@redhat.com>
15958
15959         git-version-gen: aesthetic tweak
15960         * build-aux/git-version-gen: Use "$nl" rather than a literal,
15961         so that the command remains on a single line.
15962
15963 2010-04-26  Eric Blake  <eblake@redhat.com>
15964
15965         git-version-gen: allow use on EBCDIC hosts
15966         * build-aux/git-version-gen (dirty): Use literal rather than tying
15967         ourselves to ascii.
15968         Reported by Steve Goetze.
15969
15970 2010-04-25  Bruno Haible  <bruno@clisp.org>
15971
15972         netdb: Add support for GNULIB_POSIXCHECK.
15973         * lib/netdb.in.h: Include warn-on-use.h.
15974         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
15975         functions are used when GNULIB_POSIXCHECK is defined and the
15976         getaddrinfo module is not in use.
15977         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
15978         freeaddrinfo, gai_strerror, getnameinfo are declared.
15979         * modules/netdb (Depends-on): Add warn-on-use.
15980         (Makefile.am): Include warn-on-use.h in netdb.h.
15981
15982 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
15983
15984         build: avoid "make check" failure without .git/ directory
15985         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
15986         there is no .git/ directory.
15987
15988 2010-04-25  Bruno Haible  <bruno@clisp.org>
15989
15990         ptsname: Fix misuse of ttyname_r.
15991         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
15992         of errno.
15993
15994 2010-04-25  Bruno Haible  <bruno@clisp.org>
15995
15996         ttyname_r: Make it work on Solaris 10.
15997         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
15998         if the system function has the POSIX declaration. Test whether the
15999         function fails if the buffer is less than 128 bytes large.
16000         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
16001         system's ttyname_r function. Provide a reasonably large buffer.
16002         * modules/ttyname_r (Depends-on): Add extensions.
16003         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
16004
16005 2010-04-25  Bruno Haible  <bruno@clisp.org>
16006
16007         Use the 'extensions' module for some more functions on Solaris.
16008         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
16009         module.
16010         * doc/posix-functions/ctime_r.texi: Likewise.
16011         * doc/posix-functions/getgrgid_r.texi: Likewise.
16012         * doc/posix-functions/getgrnam_r.texi: Likewise.
16013         * doc/posix-functions/getpwnam_r.texi: Likewise.
16014         * doc/posix-functions/getpwuid_r.texi: Likewise.
16015         * doc/posix-functions/readdir_r.texi: Likewise.
16016         * doc/posix-functions/sigwait.texi: Likewise.
16017         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
16018         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
16019
16020 2010-04-25  Bruno Haible  <bruno@clisp.org>
16021
16022         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
16023         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
16024         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
16025         * lib/ttyname_r.c: Include <limits.h>.
16026         (ttyname_r): Define using the system's ttyname_r function, if it exists
16027         and not on Solaris.
16028         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
16029         set.
16030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
16031         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
16032         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
16033         Reported by Simon Josefsson.
16034
16035 2010-04-25  Bruno Haible  <bruno@clisp.org>
16036
16037         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
16038         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
16039         * doc/posix-functions/ctime_r.texi: Likewise.
16040         * doc/posix-functions/getgrgid_r.texi: Likewise.
16041         * doc/posix-functions/getgrnam_r.texi: Likewise.
16042         * doc/posix-functions/getlogin_r.texi: Likewise.
16043         * doc/posix-functions/getpwnam_r.texi: Likewise.
16044         * doc/posix-functions/getpwuid_r.texi: Likewise.
16045         * doc/posix-functions/readdir_r.texi: Likewise.
16046         * doc/posix-functions/sigwait.texi: Likewise.
16047         * doc/posix-functions/ttyname_r.texi: Likewise.
16048         Reported by Simon Josefsson.
16049
16050 2010-04-25  Bruno Haible  <bruno@clisp.org>
16051
16052         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
16053         * gnulib-tool (func_usage): Document that --with-*-tests options apply
16054         also to --create-testdir.
16055         (func_acceptable): Don't consider the status of *-tests modules here.
16056         (func_modules_transitive_closure): Consider it here, before including a
16057         test module.
16058         (func_import, func_create_testdir): Set inc_all_direct_tests,
16059         inc_all_indirect_tests.
16060         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
16061         --create-testdir and --create-megatestdir.
16062
16063 2010-04-25  Bruno Haible  <bruno@clisp.org>
16064
16065         gnulib-tool: Add --without-*-tests options.
16066         * gnulib-tool (func_usage): Document the --without-*-tests options.
16067         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
16068         excl_unportable_tests): New variables.
16069         Fail if they are specified with --import or --update.
16070         (func_acceptable): Respect the excl_*_tests variables.
16071         (func_import): Set the excl_*_tests variables to empty.
16072
16073 2010-04-25  Simon Josefsson  <simon@josefsson.org>
16074             Bruno Haible  <bruno@clisp.org>
16075
16076         Work around a MacOS X 10.4 bug with openpty.
16077         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
16078         * tests/test-openpty.c (main): Close the master side explicitly.
16079
16080 2010-04-25  Bruno Haible  <bruno@clisp.org>
16081
16082         strnlen: Fix a C++ test error on MacOS X and Solaris.
16083         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
16084         the function is not declared.
16085         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
16086         Simon Josefsson.
16087
16088 2010-04-24  Bruno Haible  <bruno@clisp.org>
16089
16090         Avoid a gcc warning.
16091         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
16092         of correct type for %08lx directive.
16093         Reported by Eric Blake.
16094
16095 2010-04-24  Bruno Haible  <bruno@clisp.org>
16096
16097         vasnprintf: Correct errno value in case of out-of-memory.
16098         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
16099         or sprintf. Use the errno value from SNPRINTF or sprintf.
16100         Reported by Ian Beckwith <ianb@erislabs.net>.
16101
16102 2010-04-24  Bruno Haible  <bruno@clisp.org>
16103
16104         ansi-c++-opt: Find correct compiler when cross-compiling.
16105         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
16106         AC_CHECK_PROGS.
16107         Reported by Simon Josefsson.
16108
16109 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
16110
16111         vc-list-files: Add support for subversion
16112         * build-aux/vc-list-files: Use "svn list" to generate the list of
16113         files controlled by subversion.
16114
16115 2010-04-23  Jim Meyering  <meyering@redhat.com>
16116
16117         vc-list-files tests: convert to use init.sh
16118         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
16119         path_prepend_.
16120         Use Exit, not exit.
16121         Use skip_ rather than open coding it.
16122         Remove trap set-up and compare definitions.
16123         * tests/test-vc-list-files-git.sh: Likewise.
16124         * modules/vc-list-files-tests (Files): Add tests/init.sh.
16125
16126 2010-04-22  Simon Josefsson  <simon@josefsson.org>
16127
16128         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
16129         backup files.
16130
16131 2010-04-21  Simon Josefsson  <simon@josefsson.org>
16132
16133         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
16134
16135 2010-04-20  Eric Blake  <eblake@redhat.com>
16136
16137         tests: be robust to ignored SIGPIPE
16138         * tests/test-select-in.sh: Consume all output.
16139         * tests/test-lseek.sh: Check correct exit status, while avoiding
16140         EPIPE.
16141
16142 2010-04-20  Simon Josefsson  <simon@josefsson.org>
16143             Bruno Haible  <bruno@clisp.org>
16144
16145         visibility: Don't use -fvisibility if it leads to a warning.
16146         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
16147         yes, don't pretend that visibility works if it leads to a warning.
16148         Reported by Mike Gran <spk121@yahoo.com>.
16149
16150 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
16151
16152         * build-aux/bootstrap: Use "git -h" for testing for supported options
16153         instead of "git --help".  The short-form option only shows a summary,
16154         and doesn't layout the full man page.  Grep for the full option name
16155         in the summary, too.
16156
16157 2010-04-19  Bruno Haible  <bruno@clisp.org>
16158
16159         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
16160         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
16161         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
16162         mention of RELOCATABLE_STRIP.
16163         Reported by Sylvain Beucler <beuc@beuc.net>.
16164
16165 2010-04-19  Bruno Haible  <bruno@clisp.org>
16166
16167         * lib/diffseq.h: Fix typo in comment.
16168         Reported by Eric Blake.
16169
16170 2010-04-19  Bruno Haible  <bruno@clisp.org>
16171
16172         ioctl: Move autoconf macro to a .m4 file.
16173         * m4/ioctl.m4: New file, extracted from modules/ioctl.
16174         * modules/ioctl (Files): Add it.
16175         (configure.ac): Simply invoke gl_FUNC_IOCTL.
16176         Reported by Ian Beckwith <ianb@erislabs.net>.
16177
16178 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
16179             Bruno Haible  <bruno@clisp.org>
16180
16181         diffseq: Accommodate use-case with abstract arrays.
16182         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
16183         is not defined.
16184         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
16185         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
16186
16187 2010-04-18  Bruno Haible  <bruno@clisp.org>
16188
16189         * doc/posix-headers/stdbool.texi: More precise wording.
16190
16191 2010-04-17  Jim Meyering  <meyering@redhat.com>
16192
16193         maint.mk: use gnu-style indentation in an embedded perl script
16194         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
16195         Rename variable: s/two/last_two_bytes/
16196
16197 2010-04-16  Eric Blake  <eblake@redhat.com>
16198
16199         test-stdbool: skip test that fails with Solaris CC
16200         * tests/test-stdbool.c (f): Skip test that causes compilation
16201         error under buggy C++ compiler.
16202         * lib/stdbool.in.h: Document the limitation.
16203         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
16204
16205         setenv: allow compilation with C++
16206         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
16207         register keyword.
16208
16209         stdint: allow test to pass with C++
16210         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
16211
16212         getopt: allow compilation with C++
16213         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
16214         struct.
16215         * lib/getopt.c (_getopt_internal_r): Use correct type.
16216         Reported by Dagobert Michelson, via Joel E. Denny.
16217
16218 2010-04-16  Bruno Haible  <bruno@clisp.org>
16219
16220         Override netdb.h always.
16221         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
16222         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
16223         Reported by Ludovic Courtès <ludo@gnu.org>.
16224
16225 2010-04-15  Bruno Haible  <bruno@clisp.org>
16226
16227         openpty: Fix mistake from 2010-03-21.
16228         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
16229         Reported by Simon Josefsson.
16230
16231 2010-04-15  Eric Blake  <eblake@redhat.com>
16232
16233         test-forkpty: fix expected signature
16234         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
16235         Reported by Simon Josefsson.
16236
16237 2010-04-15  Jim Meyering  <meyering@redhat.com>
16238
16239         maint.mk: texinfo_suffix_re_: correct the default regexp
16240         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
16241
16242         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
16243         make it configurable via texinfo_suffix_re_.
16244
16245 2010-04-14  Eric Blake  <eblake@redhat.com>
16246
16247         strtok_r: relax license to LGPLv2+
16248         * modules/strtok_r (License): Relax license.
16249         Reported by Matthias Bolte.
16250
16251 2010-04-14  Simon Josefsson  <simon@josefsson.org>
16252
16253         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
16254         version 1.4.4 by default instead of requiring the libgcrypt
16255         version used during build.  This makes it possible to use the
16256         application with older but still binary compatible libgcrypt
16257         versions.
16258
16259 2010-04-13  Eric Blake  <eblake@redhat.com>
16260
16261         getopt-gnu: match recent glibc fixes and posix ruling
16262         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
16263         '+' handling, when requesting extensions.
16264         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
16265         'W;' handling.
16266         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
16267         * doc/posix-functions/getopt.texi (getopt): Document this.
16268         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16269         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16270         Likewise.
16271
16272         getopt: merge bug fixes from glibc
16273         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
16274         diagnostics.  Honor '+:' correctly.  Reject ';'.
16275
16276         getopt-posix: detect MacOS bug
16277         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
16278         optind when missing a required argument.
16279         * doc/posix-functions/getopt.texi (getopt): Document the bug.
16280         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16281         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16282         Likewise.
16283
16284         getopt-posix: avoid spurious failure on Solaris
16285         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
16286         an indicator that setting optind=1 is sufficient for reset.
16287
16288         getopt-posix: avoid spurious failure on FreeBSD
16289         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
16290         in POSIX mode, since the m4 test uses it.
16291
16292         gnulib-tool: silence warning on BSD sh
16293         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
16294
16295 2010-04-13  Jim Meyering  <meyering@redhat.com>
16296
16297         doc: users.txt: GNU patch now uses gnulib
16298         * users.txt: Add patch.
16299
16300 2010-04-12  Jim Meyering  <meyering@redhat.com>
16301
16302         maint.mk: generate more concise timing data for syntax-check rules
16303         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
16304         " done" from each line that reports a syntax-check test duration.
16305
16306 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
16307
16308         git-version-gen: use "git update-index..." rather than "git status"
16309         * build-aux/git-version-gen: Use git update-index --refresh, not
16310         "git status".  With some versions of git, "git status" would fail
16311         to update the index and result in an unwarranted "-dirty" suffix.
16312
16313 2010-04-11  Jim Meyering  <meyering@redhat.com>
16314
16315         openat: correct formatting (no semantic change)
16316         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
16317         Suggested by Bruno Haible.
16318
16319 2010-04-11  Bruno Haible  <bruno@clisp.org>
16320
16321         Stricter declaration checking in testdirs.
16322         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16323         If for_tests is true, augment AM_CPPFLAGS to define
16324         GNULIB_STRICT_CHECKING.
16325         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
16326         GNULIB_STRICT_CHECKING is defined, verify that the function is
16327         declared.
16328
16329 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
16330             Bruno Haible  <bruno@clisp.org>
16331
16332         libunistring: Improve configure output.
16333         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
16334         Don't say "consider installing GNU libunistring" when checking again
16335         with libiconv.
16336
16337 2010-04-11  Bruno Haible  <bruno@clisp.org>
16338
16339         libunistring: Correct value of $LTLIBUNISTRING.
16340         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
16341         correct the value of $LTLIBUNISTRING.
16342
16343 2010-04-11  Bruno Haible  <bruno@clisp.org>
16344
16345         havelib: Add static libraries to LIBS in the right order.
16346         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
16347         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
16348
16349 2010-04-11  Bruno Haible  <bruno@clisp.org>
16350
16351         libunistring: Detect libunistring also when it depends on libiconv.
16352         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
16353         the second AC_LIB_HAVE_LINKFLAGS invocation.
16354
16355 2010-04-11  James Youngman  <jay@gnu.org>
16356
16357         close-stream: declare local scalars to be "const"
16358         * lib/close-stream.c (close_stream): Make boolean variables const
16359         to document the fact that we set but do not change them.
16360
16361 2010-04-11  Bruno Haible  <bruno@clisp.org>
16362
16363         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
16364
16365 2010-04-11  Jim Meyering  <meyering@redhat.com>
16366
16367         maint.mk: don't include dist-check.mk
16368         * top/maint.mk: Remove bogus include directive.
16369
16370         maint.mk: improve empty-line-at-EOF check
16371         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
16372         solution, rather than tail+Perl-based one.  The latter would read
16373         a few kilobytes from the end of each file, and did not handle empty
16374         files properly.
16375
16376         maint.mk: print the elapsed time for each syntax-check rule
16377         * top/maint.mk (sc_m_rules_): Save start time in a file.
16378         (sc_z_rules_): New rules: remove temp file and print elapsed time.
16379         (local-check): Interpose the .z rules
16380
16381 2010-04-11  Jim Meyering  <meyering@redhat.com>
16382
16383         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
16384         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
16385         empty file with one that ends in an empty line.
16386
16387 2010-04-10  Bruno Haible  <bruno@clisp.org>
16388
16389         mkdir: Make it work on mingw64.
16390         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
16391         * lib/mkdir.c: Update comment.
16392         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
16393
16394 2010-04-10  Bruno Haible  <bruno@clisp.org>
16395
16396         Don't override improved macro from newer autoconf.
16397         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
16398         autoconf >= 2.62.
16399         Reported by Joel E. Denny <jdenny@clemson.edu>.
16400
16401 2010-04-10  Jim Meyering  <meyering@redhat.com>
16402
16403         maint.mk: new syntax-check rule: prohibit empty lines at end of file
16404         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
16405
16406         maint.mk: correct a diagnostic
16407         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
16408         in diagnostic; now use $prohibit.
16409
16410 2010-04-10  Bruno Haible  <address@hidden>
16411
16412         fchownat: Fix a C++ test error on Solaris 8.
16413         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
16414         the function does not exist.
16415
16416 2010-04-10  Bruno Haible  <bruno@clisp.org>
16417
16418         vasnprintf: Add more tests.
16419         * tests/test-vasnprintf-posix.c: Include <errno.h>.
16420         (test_function): Test converting an invalid wide string.
16421
16422         vasnprintf: Correct handling of unconvertible wide string arguments.
16423         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
16424         VASNPRINTF.
16425         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
16426         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
16427         smaller than the expected maximum need for the directive. Set errno to
16428         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
16429         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
16430         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
16431         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
16432         * modules/vasnprintf (Files): Add m4/printf.m4.
16433         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16434
16435 2010-04-10  Bruno Haible  <bruno@clisp.org>
16436
16437         vasnprintf: Fix crash in %ls directive.
16438         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
16439         string is passed as argument to %ls, with no precision and no width.
16440         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16441
16442 2010-04-10  Bruno Haible  <bruno@clisp.org>
16443
16444         vasnprintf: Fix multiple test failures on mingw.
16445         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
16446         _snprintf, or snwprintf, not _snwprintf.
16447
16448 2010-04-10  Bruno Haible  <bruno@clisp.org>
16449
16450         write: Fix a C++ test error on mingw.
16451         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
16452
16453 2010-04-10  Bruno Haible  <bruno@clisp.org>
16454
16455         vasnprintf test: Reduce code duplication.
16456         * tests/test-vasnprintf.c (test_function): New function, extracted from
16457         test_vasnprintf.
16458         (test_vasnprintf, test_asnprintf): Invoke it.
16459
16460 2010-04-10  Bruno Haible  <bruno@clisp.org>
16461
16462         strnlen: Fix warning in C++ mode on MacOS X.
16463         * lib/string.in.h (strnlen): Use the modern idiom.
16464         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
16465         defining strnlen as a macro already in <config.h>.
16466         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16467         REPLACE_STRNLEN.
16468         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
16469         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16470
16471 2010-04-08  James Youngman  <jay@gnu.org>
16472
16473         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
16474         the example.
16475
16476 2010-04-09  Jim Meyering  <meyering@redhat.com>
16477
16478         maint.mk: print better diagnostic when there is no $(_hv_file)
16479         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
16480         announce that when $(_hv_file) (aka help-version) does not exist.
16481
16482         init.sh: run tr in the "C" locale to avoid multibyte interpretation
16483         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
16484         not try to interpret its random input bytes.  Jarno Rajahalme reported
16485         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
16486         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
16487         (mktempd_): Likewise, just in case.
16488
16489         ftruncate: add two years to projected module removal date: 2012
16490         * m4/ftruncate.m4: Adjust comments.
16491
16492         ftruncate: mark module as obsolete; even MinGW provides it, now
16493         * modules/ftruncate (Status): Obsolete.
16494         (Notice): Say that.
16495         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
16496         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
16497
16498 2010-04-08  Bruno Haible  <bruno@clisp.org>
16499
16500         Fix side effects from tests-related modules.
16501         * modules/dprintf-posix (Comment): New section.
16502         * modules/fprintf-posix (Comment): Likewise.
16503         * modules/obstack-printf-posix (Comment): Likewise.
16504         * modules/printf-posix (Comment): Likewise.
16505         * modules/snprintf-posix (Comment): Likewise.
16506         * modules/sprintf-posix (Comment): Likewise.
16507         * modules/vasnprintf-posix (Comment): Likewise.
16508         * modules/vasprintf-posix (Comment): Likewise.
16509         * modules/vdprintf-posix (Comment): Likewise.
16510         * modules/vfprintf-posix (Comment): Likewise.
16511         * modules/vprintf-posix (Comment): Likewise.
16512         * modules/vsnprintf-posix (Comment): Likewise.
16513         * modules/vsprintf-posix (Comment): Likewise.
16514         * modules/xprintf-posix (Comment): Likewise.
16515         * modules/xvasprintf-posix (Comment): Likewise.
16516         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
16517         * modules/floorf-tests (Depends-on): Likewise.
16518         * modules/round-tests (Depends-on): Likewise.
16519         * modules/roundf-tests (Depends-on): Likewise.
16520         * modules/trunc-tests (Depends-on): Likewise.
16521         * modules/truncf-tests (Depends-on): Likewise.
16522         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
16523         'fprintf-posix' module is not present.
16524         * tests/test-floorf2.c (check): Likewise.
16525         * tests/test-trunc2.c (check): Likewise.
16526         * tests/test-truncf2.c (check): Likewise.
16527         * tests/test-round2.c (equal): Likewise.
16528         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16529
16530 2010-04-07  Karl Berry  <karl@gnu.org>
16531
16532         * config/srclist.txt,
16533         * config/srclistvars.sh,
16534         * config/srclist-update: doc fixes.
16535
16536 2010-04-07  Jim Meyering  <meyering@redhat.com>
16537
16538         maint.mk: add a PATH crosschecking syntax-check rule
16539         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
16540         Useful if you use a test like the one in help-version (coreutils,
16541         diffutils, grep, gzip) that ensures $(VERSION) matches what is
16542         printed by prog --version.
16543
16544 2010-04-06  Bruno Haible  <bruno@clisp.org>
16545
16546         Fix link error on mingw.
16547         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
16548         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
16549
16550 2010-04-06  Bruno Haible  <bruno@clisp.org>
16551
16552         Assume rmdir exists.
16553         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
16554
16555 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
16556
16557         doc: update users.txt
16558         * users.txt: Add gcal.
16559
16560 2010-04-06  Jim Meyering  <meyering@redhat.com>
16561
16562         init.sh: simply unset TMPDIR rather than risking env -i
16563         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
16564         although it probably works fine on all Unix-based systems, some
16565         systems (Cygwin?) cannot tolerate a totally cleared environment.
16566         Suggestion from Eric Blake.
16567
16568 2010-04-06  Jim Meyering  <meyering@redhat.com>
16569
16570         init.sh: portability fix: use env's POSIX-specified -i option not -u
16571         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
16572         than unportable env -u.  Solaris 5.11's env lacks support for -u.
16573
16574 2010-04-05  Bruno Haible  <bruno@clisp.org>
16575
16576         btowc: Work around Cygwin 1.7.2 bug.
16577         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
16578         does not map NUL to 0.
16579         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
16580
16581 2010-04-05  Bruno Haible  <bruno@clisp.org>
16582
16583         Make the multithread modules work on Cygwin 1.7.2.
16584         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
16585         imported symbols can be declared weak, so that it returns "no" on
16586         Cygwin 1.7.2.
16587
16588 2010-04-05  Bruno Haible  <bruno@clisp.org>
16589
16590         Use the module 'strncat'.
16591         * modules/unistr/u8-strncat (Depends-on): Add strncat.
16592
16593         Tests for module 'strncat'.
16594         * modules/strncat-tests: New file.
16595         * tests/test-strncat.c: New file.
16596
16597         New module 'strncat'.
16598         * lib/string.in.h (strncat): New declaration.
16599         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
16600         * m4/strncat.m4: New file, based on m4/memchr.m4.
16601         * modules/strncat: New file.
16602         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
16603         is declared.
16604         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
16605         REPLACE_STRNCAT.
16606         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
16607         REPLACE_STRNCAT.
16608         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
16609         module.
16610         * tests/test-string-c++.cc: Check signature of strncat.
16611
16612 2010-04-05  Jim Meyering  <meyering@redhat.com>
16613
16614         xstrtoumax-tests: convert to use init.sh
16615         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
16616         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16617         Use Exit, not exit.
16618         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16619
16620         xstrtoimax-tests: convert to use init.sh
16621         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
16622         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16623         Use Exit, not exit.
16624         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16625
16626 2010-04-05  Bruno Haible  <bruno@clisp.org>
16627
16628         sys_socket: Avoid #define replacements in C++ mode.
16629         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
16630         warning to the function if possible, rather than #defining the symbol
16631         to a dysfunctional alias.
16632
16633 2010-04-05  Bruno Haible  <bruno@clisp.org>
16634
16635         fseeko: Fix C++ test error on mingw.
16636         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
16637         gl_FUNC_FSEEKO.
16638         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
16639         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
16640         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
16641         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
16642
16643 2010-04-05  Bruno Haible  <bruno@clisp.org>
16644
16645         duplocale: Improve test output.
16646         * tests/test-duplocale.c (main): Print reason for skipped test.
16647
16648 2010-04-05  Bruno Haible  <bruno@clisp.org>
16649
16650         Assume rmdir exists.
16651         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
16652         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
16653
16654 2010-04-05  Bruno Haible  <bruno@clisp.org>
16655
16656         Fix link error on Solaris 8 with cc.
16657         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
16658
16659 2010-04-05  Bruno Haible  <bruno@clisp.org>
16660
16661         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16662         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
16663
16664 2010-04-05  Bruno Haible  <bruno@clisp.org>
16665
16666         vasprintf: Update documentation.
16667         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
16668
16669 2010-04-05  Bruno Haible  <bruno@clisp.org>
16670
16671         ptsname: Improve test.
16672         * tests/test-ptsname.c (main): Also try the various master names of BSD
16673         systems.
16674
16675 2010-04-05  Bruno Haible  <bruno@clisp.org>
16676
16677         memchr: Avoid a possible C++ test error.
16678         * lib/string.in.h (memchr): Provide declaration if function is missing.
16679         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
16680         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
16681         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
16682         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
16683
16684 2010-04-05  Bruno Haible  <bruno@clisp.org>
16685
16686         strtok_r: Improve idiom.
16687         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
16688         AC_LIBOBJ is used.
16689
16690 2010-04-05  Bruno Haible  <bruno@clisp.org>
16691
16692         strdup: Improve idiom.
16693         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
16694         AC_LIBOBJ is used.
16695         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
16696         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
16697         when AC_LIBOBJ is used.
16698
16699 2010-04-05  Bruno Haible  <bruno@clisp.org>
16700
16701         mbsinit, mbrtowc, wcrtomb: Improve idioms.
16702         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
16703         don't set REPLACE_MBSINIT to 1.
16704         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
16705         don't set REPLACE_MBRTOWC to 1.
16706         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
16707         exist, don't set REPLACE_MBSRTOWCS to 1.
16708         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
16709         exist, don't set REPLACE_MBSNRTOWCS to 1.
16710         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
16711         don't set REPLACE_WCRTOMB to 1.
16712         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
16713         exist, don't set REPLACE_WCSRTOMBS to 1.
16714         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
16715         exist, don't set REPLACE_WCSNRTOMBS to 1.
16716
16717 2010-04-05  Bruno Haible  <bruno@clisp.org>
16718
16719         ldexpl: Improve idiom.
16720         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
16721         make sure to set HAVE_DECL_LDEXPL to 0.
16722
16723 2010-04-05  Jim Meyering  <meyering@redhat.com>
16724
16725         xstrtol-tests: convert to use init.sh
16726         * modules/xstrtol-tests (Files): Add tests/init.sh.
16727         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16728         Use Exit, not exit.
16729         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16730
16731         atexit-tests: convert to use init.sh
16732         * modules/atexit-tests (Files): Add tests/init.sh.
16733         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16734         Use Exit, not exit.
16735         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16736
16737         init.sh: fix typo
16738         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
16739
16740         init.sh: make it easier for a test script to write to the tty, ...
16741         when using automake's parallel-tests mode.
16742         * tests/init.sh (stderr_fileno_): Define overridable variable.
16743         (warn_): New function, to use it.
16744         (fail_, skip_, framework_failure_): Use warn_.
16745
16746 2010-04-04  Bruno Haible  <bruno@clisp.org>
16747
16748         btowc: Avoid warning.
16749         * lib/btowc.c: Include <stdlib.h>.
16750         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
16751
16752 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16753             Bruno Haible  <bruno@clisp.org>
16754
16755         wchar: Port to NetBSD 1.5.
16756         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
16757         * lib/wctype.in.h (WEOF): Likewise.
16758
16759 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16760             Bruno Haible  <bruno@clisp.org>
16761
16762         Port extended stdio to NetBSD 1.5.
16763         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
16764         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
16765         older.
16766
16767 2010-04-04  Bruno Haible  <bruno@clisp.org>
16768
16769         string: Remove unused substitution.
16770         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16771         HAVE_DECL_STRERROR.
16772         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
16773
16774 2010-04-04  Bruno Haible  <bruno@clisp.org>
16775
16776         strtod: Avoid a possible C++ test error.
16777         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
16778         set REPLACE_STRTOD.
16779
16780 2010-04-04  Bruno Haible  <bruno@clisp.org>
16781
16782         strerror: Update documentation.
16783         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
16784
16785 2010-04-04  Bruno Haible  <bruno@clisp.org>
16786
16787         stdio: Fix some C++ test errors on Solaris 8 with GCC.
16788         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
16789         _GL_CXXALIAS_SYS_CAST.
16790
16791 2010-04-04  Bruno Haible  <bruno@clisp.org>
16792
16793         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16794         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
16795         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
16796         REPLACE_FREXPL to 1.
16797         * doc/posix-functions/frexpl.texi: Update documentation.
16798
16799 2010-04-04  Bruno Haible  <bruno@clisp.org>
16800
16801         math: Fix some C++ test errors on Solaris 8 and Cygwin.
16802         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
16803
16804 2010-04-04  Bruno Haible  <bruno@clisp.org>
16805
16806         Implement nanosleep for native Windows.
16807         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
16808
16809 2010-04-04  Bruno Haible  <bruno@clisp.org>
16810
16811         math: Fix some C++ test errors on Solaris 8.
16812         * lib/math.in.h (truncf, trunc): Use simpler idiom.
16813
16814 2010-04-04  Bruno Haible  <bruno@clisp.org>
16815
16816         math: Fix some C++ test errors on Cygwin.
16817         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
16818         truncl): Provide declaration if the system does not have it.
16819         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
16820         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
16821         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
16822         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
16823         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
16824         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
16825         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
16826         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
16827         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
16828         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
16829         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
16830         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
16831         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
16832         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
16833         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
16834         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
16835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
16836         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16837         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16838         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
16839         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16840         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16841
16842 2010-04-04  Bruno Haible  <bruno@clisp.org>
16843
16844         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
16845         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16846         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16847         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
16848         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16849         * m4/isinf.m4 (gl_ISINF): Likewise.
16850         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16851
16852 2010-04-04  Bruno Haible  <bruno@clisp.org>
16853
16854         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
16855         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16856
16857 2010-04-04  Bruno Haible  <bruno@clisp.org>
16858
16859         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
16860         * modules/tmpfile (configure.ac): Update.
16861
16862         tmpfile: Fix C++ test error on mingw.
16863         * lib/stdio.in.h (tmpfile): New declaration.
16864         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
16865         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
16866         * modules/tmpfile (Depends-on): Add stdio.
16867         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16868         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
16869         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
16870         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
16871         REPLACE_TMPFILE.
16872         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
16873
16874 2010-04-04  Bruno Haible  <bruno@clisp.org>
16875
16876         ioctl: Fix C++ test error on mingw.
16877         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
16878         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
16879         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
16880
16881 2010-04-03  Bruno Haible  <bruno@clisp.org>
16882
16883         wcwidth: Fix C++ test error on mingw.
16884         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
16885         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
16886         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
16887
16888 2010-04-03  Bruno Haible  <bruno@clisp.org>
16889
16890         nanosleep: Fix C++ test error on mingw.
16891         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
16892         * lib/time.in.h (nanosleep): Use modern idiom.
16893         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
16894         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
16895         REPLACE_NANOSLEEP to 1.
16896         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
16897         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
16898
16899 2010-04-03  Bruno Haible  <bruno@clisp.org>
16900
16901         strptime: Fix C++ test error on mingw.
16902         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
16903         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
16904         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
16905         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
16906         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
16907         not REPLACE_STRPTIME.
16908         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
16909         REPLACE_STRPTIME.
16910
16911 2010-04-03  Bruno Haible  <bruno@clisp.org>
16912
16913         timegm: Fix C++ test error on mingw.
16914         * lib/time.in.h (timegm): Use modern idiom.
16915         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
16916         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
16917         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
16918         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
16919
16920 2010-04-03  Bruno Haible  <bruno@clisp.org>
16921
16922         timegm: Assume declaration if function exists.
16923         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
16924         if it exists. Don't clobber ac_cv_func_timegm.
16925
16926 2010-04-03  Bruno Haible  <bruno@clisp.org>
16927
16928         time_r: Fix C++ test error on mingw.
16929         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
16930         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
16931         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
16932         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
16933         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
16934
16935 2010-04-03  Bruno Haible  <bruno@clisp.org>
16936
16937         time_r: Minor updates.
16938         * modules/time_r (Description): Mention the provided functions.
16939         * lib/time_r.c: Don't include <string.h>.
16940         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
16941         * doc/posix-functions/localtime_r.texi: Likewise.
16942
16943 2010-04-03  Bruno Haible  <bruno@clisp.org>
16944
16945         time: Fix regression introduced on 2010-03-08.
16946         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
16947         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
16948
16949 2010-04-03  Jim Meyering  <meyering@redhat.com>
16950
16951         maint.mk: don't silently disable project-specific syntax-check rules
16952         * top/maint.mk (_prohibit_regexp): Define, to help people realize
16953         that they need to convert their project-specific syntax-check rules
16954         to use the new _sc_search_regexp.
16955
16956 2010-04-03  Bruno Haible  <bruno@clisp.org>
16957
16958         fchdir: Fix regression introduced on 2010-03-08.
16959         * lib/unistd.in.h (fchdir): Fix declaration.
16960         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
16961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
16962         REPLACE_FCHDIR.
16963         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
16964         REPLACE_FCHDIR.
16965
16966 2010-04-03  Bruno Haible  <bruno@clisp.org>
16967
16968         getpagesize: Fix C++ test error on mingw.
16969         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
16970         system does not declare the function.
16971         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
16972         declared.
16973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16974         HAVE_DECL_GETPAGESIZE.
16975         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
16976
16977 2010-04-03  Bruno Haible  <bruno@clisp.org>
16978
16979         stdio: Make C++ tests work on mingw.
16980         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
16981         does not declare the function.
16982
16983 2010-04-03  Bruno Haible  <bruno@clisp.org>
16984
16985         ftello: Fix C++ test error on mingw.
16986         * lib/stdio.in.h (ftello): Use modern idiom.
16987         * lib/ftello.c (ftello): Renamed from rpl_ftello.
16988         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
16989         is missing and that it needs to be replaced.
16990         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
16991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
16992         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
16993
16994 2010-04-03  Bruno Haible  <bruno@clisp.org>
16995
16996         fseeko: Fix C++ test error on mingw.
16997         * lib/stdio.in.h (fseeko): Use modern idiom.
16998         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
16999         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
17000         is missing and that it needs to be replaced.
17001         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
17002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
17003         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
17004
17005 2010-04-03  Bruno Haible  <bruno@clisp.org>
17006
17007         mkstemp: Fix C++ test error on mingw.
17008         * lib/stdlib.in.h (mkstemp): Use modern idiom.
17009         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17010         function is missing and that it needs to be replaced.
17011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
17012         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
17013
17014 2010-04-03  Bruno Haible  <bruno@clisp.org>
17015
17016         stpncpy: Fix C++ test error on mingw.
17017         * lib/string.in.h (stpncpy): Use modern idiom.
17018         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
17019         function is missing and that it needs to be replaced.
17020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17021         REPLACE_STPNCPY.
17022         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
17023
17024 2010-04-03  Bruno Haible  <bruno@clisp.org>
17025
17026         sys_stat: Fix C++ test error on mingw.
17027         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
17028         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
17029
17030 2010-04-03  Bruno Haible  <bruno@clisp.org>
17031
17032         pty: Update doc.
17033         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
17034
17035 2010-04-03  Bruno Haible  <bruno@clisp.org>
17036
17037         unistd: Fix C++ test error on mingw.
17038         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
17039
17040 2010-04-03  Bruno Haible  <bruno@clisp.org>
17041
17042         Update doc regarding mingw.
17043         * doc/glibc-functions/openpty.texi: Update regarding mingw.
17044         * doc/glibc-functions/login_tty.texi: Likewise.
17045         * doc/glibc-functions/forkpty.texi: Likewise.
17046
17047 2010-04-03  Bruno Haible  <bruno@clisp.org>
17048
17049         stdlib: Avoid compilation failure of c-strtold on mingw.
17050         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
17051
17052 2010-04-03  Bruno Haible  <bruno@clisp.org>
17053
17054         locale: Make C++ tests work on Cygwin and mingw.
17055         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
17056         cannot provide the function.
17057         Reported by Simon Josefsson.
17058
17059 2010-04-03  Bruno Haible  <bruno@clisp.org>
17060
17061         localename: Port to MacOS X 10.6.
17062         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17063         memory layout of the locales in MacOS X 10.6 as well.
17064         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
17065
17066 2010-04-02  Bruno Haible  <bruno@clisp.org>
17067
17068         gnulib-tool: Ensure that long-running tests are executed last.
17069         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
17070         running tests after the one for the other tests.
17071
17072 2010-04-02  Bruno Haible  <bruno@clisp.org>
17073
17074         gnulib-tool: Ensure the tests in the main directory are executed first.
17075         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
17076         start with the current directory.
17077
17078 2010-04-02  Bruno Haible  <bruno@clisp.org>
17079
17080         Tests for module 'havelib', moved here from GNU gettext.
17081         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
17082         modifications.
17083         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
17084         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
17085         with modifications.
17086         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
17087         modifications.
17088         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
17089         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
17090         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
17091         with modifications.
17092         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
17093         with modifications.
17094         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
17095         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
17096         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
17097         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
17098         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
17099         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
17100         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
17101         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
17102         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
17103         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
17104         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
17105         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
17106         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
17107         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
17108         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
17109         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
17110         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
17111         with modifications.
17112         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
17113         with modifications.
17114         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
17115         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
17116         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
17117         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
17118         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
17119         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
17120         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
17121         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
17122         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
17123         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
17124         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
17125         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
17126         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
17127         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
17128         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
17129         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
17130         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
17131         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
17132         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
17133         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
17134         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
17135         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
17136         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
17137         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
17138         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
17139         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
17140         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
17141         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
17142         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
17143         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
17144         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
17145         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
17146         * tests/havelib/rpathx/rpathx.c: New file, from
17147         gettext/autoconf-lib-link.
17148         * tests/havelib/rpathx/Makefile.am: New file, from
17149         gettext/autoconf-lib-link.
17150         * tests/havelib/rpathx/configure.ac: New file, from
17151         gettext/autoconf-lib-link with modifications.
17152         * tests/havelib/rpathy/rpathy.c: New file, from
17153         gettext/autoconf-lib-link.
17154         * tests/havelib/rpathy/Makefile.am: New file, from
17155         gettext/autoconf-lib-link.
17156         * tests/havelib/rpathy/configure.ac: New file, from
17157         gettext/autoconf-lib-link with modifications.
17158         * tests/havelib/rpathz/rpathz.c: New file, from
17159         gettext/autoconf-lib-link.
17160         * tests/havelib/rpathz/Makefile.am: New file, from
17161         gettext/autoconf-lib-link.
17162         * tests/havelib/rpathz/configure.ac: New file, from
17163         gettext/autoconf-lib-link with modifications.
17164         * tests/havelib/rpathlx/usex.c: New file, from
17165         gettext/autoconf-lib-link.
17166         * tests/havelib/rpathlx/Makefile.am: New file, from
17167         gettext/autoconf-lib-link.
17168         * tests/havelib/rpathlx/configure.ac: New file, from
17169         gettext/autoconf-lib-link with modifications.
17170         * tests/havelib/rpathly/usey.c: New file, from
17171         gettext/autoconf-lib-link.
17172         * tests/havelib/rpathly/Makefile.am: New file, from
17173         gettext/autoconf-lib-link.
17174         * tests/havelib/rpathly/configure.ac: New file, from
17175         gettext/autoconf-lib-link with modifications.
17176         * tests/havelib/rpathlz/usez.c: New file, from
17177         gettext/autoconf-lib-link.
17178         * tests/havelib/rpathlz/Makefile.am: New file, from
17179         gettext/autoconf-lib-link.
17180         * tests/havelib/rpathlz/configure.ac: New file, from
17181         gettext/autoconf-lib-link with modifications.
17182         * tests/havelib/rpathlyx/usey.c: New file, from
17183         gettext/autoconf-lib-link.
17184         * tests/havelib/rpathlyx/Makefile.am: New file, from
17185         gettext/autoconf-lib-link.
17186         * tests/havelib/rpathlyx/configure.ac: New file, from
17187         gettext/autoconf-lib-link with modifications.
17188         * tests/havelib/rpathlzyx/usez.c: New file, from
17189         gettext/autoconf-lib-link.
17190         * tests/havelib/rpathlzyx/Makefile.am: New file, from
17191         gettext/autoconf-lib-link.
17192         * tests/havelib/rpathlzyx/configure.ac: New file, from
17193         gettext/autoconf-lib-link with modifications.
17194         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
17195         with modifications.
17196
17197 2010-04-02  Bruno Haible  <bruno@clisp.org>
17198
17199         gnulib-tool: Create distributed built sources also for the tests.
17200         * gnulib-tool (func_create_testdir): Also generate distributed built
17201         sources in the tests directory.
17202
17203 2010-04-02  Bruno Haible  <bruno@clisp.org>
17204
17205         gnulib-tool: Obey user's environment variables.
17206         * gnulib-tool (func_create_testdir): When creating built sources,
17207         respect the environment variables for autoconf, automake, etc. given by
17208         the user.
17209
17210 2010-04-02  Bruno Haible  <bruno@clisp.org>
17211
17212         gnulib-tool: Provide the value of --m4-base to modules.
17213         * gnulib-tool (func_import, func_create_testdir): Emit a definition
17214         of gl_m4_base.
17215
17216 2010-04-02  Eric Blake  <eblake@redhat.com>
17217
17218         maint.mk: fix some fallout
17219         * NEWS: Document the incompatible change, and its effect on cfg.mk.
17220         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
17221
17222 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17223
17224         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
17225         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
17226         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
17227         (sc_cast_of_x_alloc_return_value): Likewise.
17228         (sc_cast_of_alloca_return_value): Likewise.
17229         (sc_space_tab): Likewise.
17230         (sc_prohibit_atoi_atof): Likewise.
17231         (sc_prohibit_magic_number_exit): Likewise.
17232         (sc_error_exit_success): Likewise.
17233         (sc_file_system): Likewise.
17234         (sc_prohibit_have_config_h): Likewise.
17235         (sc_require_config_h): Likewise.
17236         (sc_prohibit_HAVE_MBRTOWC): Likewise.
17237         (sc_obsolete_symbols): Likewise.
17238         (sc_changelog): Likewise.
17239         (sc_program_name): Likewise.
17240         (sc_the_the): Likewise.
17241         (sc_trailing_blank): Likewise.
17242         (sc_two_space_separator_in_usage): Likewise.
17243         (sc_useless_cpp_parens): Likewise.
17244         (sc_GPL_version): Likewise.
17245         (sc_GFDL_version): Likewise.
17246         (sc_texinfo_acronym): Likewise.
17247         (sc_prohibit_cvs_keyword): Likewise.
17248         (sc_prohibit_stat_st_blocks): Likewise.
17249         (sc_prohibit_S_IS_definition): Likewise.
17250         (sc_redundant_const): Likewise.
17251         (sc_makefile_TAB_only_indentation): Likewise.
17252         (sc_m4_quote_check): Likewise.
17253         (sc_makefile_path_separator_check): Likewise.
17254         (sc_copyright_check): Likewise.
17255         (sc_Wundef_boolean): Likewise.
17256         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17257
17258         maint.mk: match 0 or more whitespace-before-function-call '('
17259         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
17260         that have zero or two-and-more spaces between the function name
17261         and the open parenthesis.
17262         (sc_error_message_warn_fatal): Likewise.
17263         (sc_error_message_uppercase): Likewise.
17264         (sc_error_message_period): Likewise.
17265
17266 2010-03-31  Eric Blake  <eblake@redhat.com>
17267
17268         maint.mk: check for [ as well as test
17269         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
17270         Based on a libvirt report by Matthias Bolte.
17271
17272         gnumakefile: don't squelch _version output
17273         * top/GNUmakefile (_version): Create one-shot dependency rather
17274         than using $(shell) when version must be regenerated.
17275         (_autoreconf): Run verbosely, by default.
17276
17277         sys_time: avoid compiler warnings
17278         * lib/sys_time.in.h (includes): Ensure gcc pragma is
17279         unconditional, fixing regression from 2010-03-29.
17280         Reported by Simon Josefsson.
17281
17282 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17283
17284         maint.mk: s/_header_without_use/_sc_header_without_use/
17285         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
17286         (sc_prohibit_assert_without_use): Use the new name.
17287         (sc_prohibit_close_stream_without_use): Likewise.
17288         (sc_prohibit_getopt_without_use): Likewise.
17289         (sc_prohibit_quotearg_without_use): Likewise.
17290         (sc_prohibit_quote_without_use): Likewise.
17291         (sc_prohibit_long_options_without_use): Likewise.
17292         (sc_prohibit_inttostr_without_use): Likewise.
17293         (sc_prohibit_ignore_value_without_use): Likewise.
17294         (sc_prohibit_error_without_use): Likewise.
17295         (sc_prohibit_xalloc_without_use): Likewise.
17296         (sc_prohibit_hash_without_use): Likewise.
17297         (sc_prohibit_hash_pjw_without_use): Likewise.
17298         (sc_prohibit_safe_read_without_use): Likewise.
17299         (sc_prohibit_argmatch_without_use): Likewise.
17300         (sc_prohibit_canonicalize_without_use): Likewise.
17301         (sc_prohibit_root_dev_ino_without_use): Likewise.
17302         (sc_prohibit_openat_without_use): Likewise.
17303         (sc_prohibit_c_ctype_without_use): Likewise.
17304         (sc_prohibit_signal_without_use): Likewise.
17305         (sc_prohibit_intprops_without_use): Likewise.
17306
17307 2010-03-30  Eric Blake  <eblake@redhat.com>
17308
17309         maint: improve module indicators
17310         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
17311         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
17312         columns, and avoid extra macro expansion.
17313
17314         fdopendir: work around FreeBSD bug
17315         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17316         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
17317         * modules/dirent (Makefile.am): Substitute it.
17318         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
17319         declaration.
17320         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
17321         fix.
17322         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17323
17324 2010-03-29  Bruno Haible  <bruno@clisp.org>
17325
17326         Emit #pragma system_header after the inclusion guard, not before.
17327         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
17328         guard that spans the entire file, not before. This enables an
17329         optimization in GCC's preprocessor.
17330         * lib/ctype.in.h: Likewise.
17331         * lib/dirent.in.h: Likewise.
17332         * lib/errno.in.h: Likewise.
17333         * lib/float.in.h: Likewise.
17334         * lib/getopt.in.h: Likewise.
17335         * lib/iconv.in.h: Likewise.
17336         * lib/langinfo.in.h: Likewise.
17337         * lib/locale.in.h: Likewise.
17338         * lib/math.in.h: Likewise.
17339         * lib/netdb.in.h: Likewise.
17340         * lib/netinet_in.in.h: Likewise.
17341         * lib/pty.in.h: Likewise.
17342         * lib/sched.in.h: Likewise.
17343         * lib/se-selinux.in.h: Likewise.
17344         * lib/search.in.h: Likewise.
17345         * lib/spawn.in.h: Likewise.
17346         * lib/stdarg.in.h: Likewise.
17347         * lib/stdint.in.h: Likewise.
17348         * lib/string.in.h: Likewise.
17349         * lib/strings.in.h: Likewise.
17350         * lib/sys_file.in.h: Likewise.
17351         * lib/sys_ioctl.in.h: Likewise.
17352         * lib/sys_time.in.h: Likewise.
17353         * lib/sys_times.in.h: Likewise.
17354         * lib/sys_utsname.in.h: Likewise.
17355         * lib/sys_wait.in.h: Likewise.
17356         * lib/sysexits.in.h: Likewise.
17357         * lib/wctype.in.h: Likewise.
17358
17359 2010-03-28  James Youngman  <jay@gnu.org>
17360
17361         save-cwd: don't leak a file descriptor when the caller execs.
17362         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
17363         saved file descriptor.
17364         * modules/save-cwd (Depends-on): Depend on cloexec.
17365
17366 2010-03-29  Bruno Haible  <bruno@clisp.org>
17367
17368         Remove vestiges of fts-lgpl module.
17369         * lib/fts_.h: Assume GNULIB_FTS is 1.
17370         * lib/fts.c: Likewise.
17371         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17372
17373 2010-03-28  Bruno Haible  <bruno@clisp.org>
17374
17375         Fix definition of tests witness macro.
17376         * gnulib-tool (func_import): Fix definition of witness macro.
17377
17378 2010-03-28  Bruno Haible  <bruno@clisp.org>
17379
17380         Fix ioctl's protoype on glibc systems.
17381         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
17382         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
17383         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
17384         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
17385         signature. If not, arrange to replace the ioctl function.
17386         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17387         REPLACE_IOCTL.
17388         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
17389         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
17390         Reported by Ludovic Courtès <ludo@gnu.org>.
17391
17392 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
17393
17394         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
17395         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
17396         made it so grep -r --include=GLOB* ... did not work.
17397
17398 2010-03-26  Jim Meyering  <meyering@redhat.com>
17399             Eric Blake  <eblake@redhat.com>
17400
17401         maint.mk: prohibit use of test's -o and -a operators
17402         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
17403
17404 2010-03-28  Bruno Haible  <bruno@clisp.org>
17405
17406         Remove unused GNULIB_XYZ macro definitions.
17407         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
17408         invocation.
17409
17410 2010-03-28  Bruno Haible  <bruno@clisp.org>
17411
17412         Mark privileged tests modules.
17413         * modules/idpriv-drop-tests (Status): New section.
17414         * modules/idpriv-droptemp-tests (Status): New section.
17415
17416 2010-03-28  Bruno Haible  <bruno@clisp.org>
17417
17418         Split C++ tests into separate tests modules.
17419         * modules/dirent-c++-tests: New file, extracted from
17420         modules/dirent-tests.
17421         * modules/dirent-tests: Depend on it.
17422         * modules/fcntl-h-c++-tests: New file, extracted from
17423         modules/fcntl-h-tests.
17424         * modules/fcntl-h-tests: Depend on it.
17425         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
17426         * modules/glob-tests: Depend on it.
17427         * modules/iconv-h-c++-tests: New file, extracted from
17428         modules/iconv-h-tests.
17429         * modules/iconv-h-tests: Depend on it.
17430         * modules/langinfo-c++-tests: New file, extracted from
17431         modules/langinfo-tests.
17432         * modules/langinfo-tests: Depend on it.
17433         * modules/locale-c++-tests: New file, extracted from
17434         modules/locale-tests.
17435         * modules/locale-tests: Depend on it.
17436         * modules/math-c++-tests: New file, extracted from modules/math-tests.
17437         * modules/math-tests: Depend on it.
17438         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
17439         * modules/pty-tests: Depend on it.
17440         * modules/search-c++-tests: New file, extracted from
17441         modules/search-tests.
17442         * modules/search-tests: Depend on it.
17443         * modules/signal-c++-tests: New file, extracted from
17444         modules/signal-tests.
17445         * modules/signal-tests: Depend on it.
17446         * modules/spawn-c++-tests: New file, extracted from
17447         modules/spawn-tests.
17448         * modules/spawn-tests: Depend on it.
17449         * modules/stdio-c++-tests: New file, extracted from
17450         modules/stdio-tests.
17451         * modules/stdio-tests: Depend on it.
17452         * modules/stdlib-c++-tests: New file, extracted from
17453         modules/stdlib-tests.
17454         * modules/stdlib-tests: Depend on it.
17455         * modules/string-c++-tests: New file, extracted from
17456         modules/string-tests.
17457         * modules/string-tests: Depend on it.
17458         * modules/sys_ioctl-c++-tests: New file, extracted from
17459         modules/sys_ioctl-tests.
17460         * modules/sys_ioctl-tests: Depend on it.
17461         * modules/sys_select-c++-tests: New file, extracted from
17462         modules/sys_select-tests.
17463         * modules/sys_select-tests: Depend on it.
17464         * modules/sys_socket-c++-tests: New file, extracted from
17465         modules/sys_socket-tests.
17466         * modules/sys_socket-tests: Depend on it.
17467         * modules/sys_stat-c++-tests: New file, extracted from
17468         modules/sys_stat-tests.
17469         * modules/sys_stat-tests: Depend on it.
17470         * modules/sys_time-c++-tests: New file, extracted from
17471         modules/sys_time-tests.
17472         * modules/sys_time-tests: Depend on it.
17473         * modules/time-c++-tests: New file, extracted from modules/time-tests.
17474         * modules/time-tests: Depend on it.
17475         * modules/unistd-c++-tests: New file, extracted from
17476         modules/unistd-tests.
17477         * modules/unistd-tests: Depend on it.
17478         * modules/wchar-c++-tests: New file, extracted from
17479         modules/wchar-tests.
17480         * modules/wchar-tests: Depend on it.
17481         * modules/wctype-c++-tests: New file, extracted from
17482         modules/wctype-tests.
17483         * modules/wctype-tests: Depend on it.
17484         Reported by Simon Josefsson.
17485
17486 2010-03-28  Bruno Haible  <bruno@clisp.org>
17487
17488         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
17489         * gnulib-tool (func_exists_module): New function, extracted from
17490         func_verify_module.
17491         (func_verify_module): Use it.
17492         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
17493         'foo' only if 'foo' exists.
17494         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
17495         module.
17496
17497 2010-03-28  Bruno Haible  <bruno@clisp.org>
17498
17499         gnulib-tool: Add support for special categories of tests.
17500         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
17501         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
17502         (func_usage): Document them.
17503         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
17504         inc_unportable_tests, inc_all_tests): New variables.
17505         (func_acceptable): Consider these variables.
17506         (func_modules_transitive_closure): Make it work when the 'Status' field
17507         consists of multiple words.
17508         (func_import): Store and restore the values of inc_cxx_tests,
17509         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
17510         inc_all_tests in gnulib-comp.m4.
17511         (func_create_testdir): Set inc_all_tests to true.
17512         * doc/gnulib.texi (Extra tests modules): New section.
17513         Suggested by Jim Meyering.
17514
17515 2010-03-28  Bruno Haible  <bruno@clisp.org>
17516
17517         ansi-c++-opt: Allow turning off the C++ build by default.
17518         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
17519         gl_CXX_CHOICE_DEFAULT_NO is defined.
17520         Requested by Eric Blake.
17521
17522 2010-03-28  Bruno Haible  <bruno@clisp.org>
17523
17524         unistd: Avoid #define replacements in C++ mode.
17525         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17526         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17527         setsockopt, shutdown, select): In C++, attach a warning to the function
17528         if possible, rather than #defining the symbol to a dysfunctional alias.
17529         Reported by John W. Eaton <jwe@gnu.org>.
17530
17531 2010-03-28  Bruno Haible  <bruno@clisp.org>
17532
17533         Fix link errors on mingw.
17534         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
17535         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
17536         $(LIBSOCKET).
17537         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
17538         $(LIBSOCKET).
17539
17540 2010-03-28  Bruno Haible  <bruno@clisp.org>
17541             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17542
17543         lib-ignore: Determine different options for different compilers.
17544         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
17545         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
17546         Add comments.
17547         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
17548         * NEWS: Mention the change.
17549
17550 2010-03-27  Bruno Haible  <bruno@clisp.org>
17551
17552         Remove unused GNULIB_XYZ macro definitions.
17553         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17554         * modules/fseek (configure.ac): Likewise.
17555         * modules/ioctl (configure.ac): Likewise.
17556         * modules/open (configure.ac): Likewise.
17557         * modules/stdlib-safer (configure.ac): Likewise.
17558
17559 2010-03-27  Bruno Haible  <bruno@clisp.org>
17560
17561         Add a remark about certain modules.
17562         * modules/malloc (Comment): New section.
17563         * modules/realloc (Comment): Likewise.
17564         * modules/sigpipe (Comment): Likewise.
17565
17566 2010-03-27  Bruno Haible  <bruno@clisp.org>
17567
17568         Resolve conflict between the two kinds of module indicators.
17569         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
17570         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
17571         * modules/canonicalize (configure.ac): Invoke
17572         gl_MODULE_INDICATOR_FOR_TESTS.
17573         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
17574         GNULIB_XYZ.
17575         * tests/test-dirent-c++.cc: Likewise.
17576         * tests/test-dirent-safer.c: Likewise.
17577         * tests/test-dup2.c: Likewise.
17578         * tests/test-fchdir.c: Likewise.
17579         * tests/test-fcntl-h-c++.cc: Likewise.
17580         * tests/test-getopt.c: Likewise.
17581         * tests/test-getopt.h: Likewise.
17582         * tests/test-langinfo-c++.cc: Likewise.
17583         * tests/test-locale-c++.cc: Likewise.
17584         * tests/test-math-c++.cc: Likewise.
17585         * tests/test-pty-c++.cc: Likewise.
17586         * tests/test-search-c++.cc: Likewise.
17587         * tests/test-signal-c++.cc: Likewise.
17588         * tests/test-spawn-c++.cc: Likewise.
17589         * tests/test-stdio-c++.cc: Likewise.
17590         * tests/test-stdlib-c++.cc: Likewise.
17591         * tests/test-string-c++.cc: Likewise.
17592         * tests/test-sys_ioctl-c++.cc: Likewise.
17593         * tests/test-sys_select-c++.cc: Likewise.
17594         * tests/test-sys_socket-c++.cc: Likewise.
17595         * tests/test-sys_stat-c++.cc: Likewise.
17596         * tests/test-sys_time-c++.cc: Likewise.
17597         * tests/test-time-c++.cc: Likewise.
17598         * tests/test-unistd-c++.cc: Likewise.
17599         * tests/test-wchar-c++.cc: Likewise.
17600         * tests/uninorm/test-u8-nfc.c: Likewise.
17601         * tests/uninorm/test-u8-nfd.c: Likewise.
17602         * tests/uninorm/test-u8-nfkc.c: Likewise.
17603         * tests/uninorm/test-u8-nfkd.c: Likewise.
17604         * tests/uninorm/test-u16-nfc.c: Likewise.
17605         * tests/uninorm/test-u16-nfd.c: Likewise.
17606         * tests/uninorm/test-u16-nfkc.c: Likewise.
17607         * tests/uninorm/test-u16-nfkd.c: Likewise.
17608         * tests/uninorm/test-u32-nfc.c: Likewise.
17609         * tests/uninorm/test-u32-nfc-big.c: Likewise.
17610         * tests/uninorm/test-u32-nfd.c: Likewise.
17611         * tests/uninorm/test-u32-nfd-big.c: Likewise.
17612         * tests/uninorm/test-u32-nfkc.c: Likewise.
17613         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
17614         * tests/uninorm/test-u32-nfkd.c: Likewise.
17615         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
17616         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17617
17618 2010-03-27  Bruno Haible  <bruno@clisp.org>
17619
17620         Distinguish two kinds of module indicators.
17621         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
17622         gl_MODULE_INDICATOR.
17623         (gl_MODULE_INDICATOR): New macro.
17624         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17625         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
17626         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17627         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17628         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17629         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17630         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17631         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17632         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17633         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17634         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17635         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17636         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17637         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17638         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17639         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17640         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17641         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17642         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17643         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17644         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17645         * modules/cloexec (configure.ac): Likewise.
17646         * modules/getopt-gnu (configure.ac): Likewise.
17647         * modules/uninorm/u8-normalize (configure.ac): Likewise.
17648         * modules/uninorm/u16-normalize (configure.ac): Likewise.
17649         * modules/uninorm/u32-normalize (configure.ac): Likewise.
17650         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
17651
17652 2010-03-27  Bruno Haible  <bruno@clisp.org>
17653
17654         New module description field 'Comment'.
17655         * gnulib-tool: New option --extract-comment.
17656         (func_usage): Document it.
17657         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
17658         (func_get_comment): New function.
17659         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
17660
17661 2010-03-27  Bruno Haible  <bruno@clisp.org>
17662
17663         Addendum to 2010-02-07 commit.
17664         * gnulib-tool (func_usage): Document --extract-applicability option.
17665
17666 2010-03-27  Bruno Haible  <bruno@clisp.org>
17667
17668         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
17669         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
17670         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
17671         rather than link errors.
17672
17673 2010-03-27  Bruno Haible  <bruno@clisp.org>
17674
17675         Avoid side effects from tests-related modules on the compilation of lib.
17676         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
17677         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
17678         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
17679         parameter. Emit into AM_CPPFLAGS a definition of the designated C
17680         macro.
17681         (func_import): Define a witness macro. Assign it a value that depends
17682         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
17683         tests-related modules.
17684         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
17685         Reported by Jim Meyering.
17686
17687 2010-03-27  Bruno Haible  <bruno@clisp.org>
17688
17689         Factorize common .m4 code.
17690         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
17691         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
17692         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
17693         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
17694         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17695         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
17696         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
17697         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17698         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17699         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17700         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
17701         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17702         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17703         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17704         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17705         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
17706         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17707         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17708         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17709         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
17710         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
17711         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17712         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17713         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17714         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17715         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17716         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
17717         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
17718         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
17719         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17720         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17721         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17722
17723 2010-03-27  Bruno Haible  <bruno@clisp.org>
17724
17725         Fix a compilation error on Cygwin with g++ >= 4.3.
17726         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
17727         if it is undefined or if we alias it to chmod.
17728         (lstat): Don't warn about the use of this function if it is undefined
17729         or if we alias it to stat.
17730         Reported by Simon Josefsson.
17731
17732 2010-03-27  Bruno Haible  <bruno@clisp.org>
17733
17734         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
17735         * modules/getlogin (configure.ac): Update.
17736
17737         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
17738         * modules/getlogin_r (configure.ac): Update.
17739
17740         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
17741         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
17742         * modules/inet_ntop (configure.ac): Update.
17743
17744         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
17745         * modules/inet_pton (configure.ac): Update.
17746
17747         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
17748         * modules/mbslen (configure.ac): Update.
17749
17750         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
17751         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
17752         * modules/forkpty (configure.ac): Update.
17753         * modules/openpty (configure.ac): Update.
17754
17755 2010-03-26  Simon Josefsson  <simon@josefsson.org>
17756
17757         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
17758         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
17759
17760 2010-03-25  Eric Blake  <eblake@redhat.com>
17761
17762         maint: use pragma consistently across replacement headers
17763         * lib/ctype.in.h (system_header): Hoist for consistent placement.
17764         * lib/dirent.in.h (system_header): Likewise.
17765         * lib/errno.in.h (system_header): Likewise.
17766         * lib/float.in.h (system_header): Likewise.
17767         * lib/getopt.in.h (system_header): Likewise.
17768         * lib/iconv.in.h (system_header): Likewise.
17769         * lib/inttypes.in.h (system_header): Likewise.
17770         * lib/langinfo.in.h (system_header): Likewise.
17771         * lib/locale.in.h (system_header): Likewise.
17772         * lib/math.in.h (system_header): Likewise.
17773         * lib/netdb.in.h (system_header): Likewise.
17774         * lib/netinet_in.in.h (system_header): Likewise.
17775         * lib/pty.in.h (system_header): Likewise.
17776         * lib/sched.in.h (system_header): Likewise.
17777         * lib/se-selinux.in.h (system_header): Likewise.
17778         * lib/search.in.h (system_header): Likewise.
17779         * lib/spawn.in.h (system_header): Likewise.
17780         * lib/stdarg.in.h (system_header): Likewise.
17781         * lib/stdint.in.h (system_header): Likewise.
17782         * lib/string.in.h (system_header): Likewise.
17783         * lib/strings.in.h (system_header): Likewise.
17784         * lib/sys_file.in.h (system_header): Likewise.
17785         * lib/sys_ioctl.in.h (system_header): Likewise.
17786         * lib/sys_socket.in.h (system_header): Likewise.
17787         * lib/sys_times.in.h (system_header): Likewise.
17788         * lib/sys_utsname.in.h (system_header): Likewise.
17789         * lib/sys_wait.in.h (system_header): Likewise.
17790         * lib/sysexits.in.h (system_header): Likewise.
17791         * lib/unistd.in.h (system_header): Likewise.
17792         * lib/wctype.in.h (system_header): Likewise.
17793
17794         arpa/inet: fix mingw compilation warning
17795         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
17796         Reported by Matthew Bolte.
17797
17798 2010-03-25  Bruno Haible  <bruno@clisp.org>
17799
17800         Avoid collision between gnulib wrapper and libintl wrapper.
17801         * lib/printf.c (printf): Don't define if a printf wrapper is already
17802         defined in intl/printf.c.
17803         Reported by Michel Boaventura <michel@michelboaventura.com>.
17804
17805 2010-03-25  Bruno Haible  <bruno@clisp.org>
17806
17807         Use ANSI C.
17808         * lib/readutmp.h (getutent): Provide ANSI C prototype.
17809
17810 2010-03-25  Bruno Haible  <bruno@clisp.org>
17811
17812         Minor formatting changes.
17813         * lib/acosl.c: Insert space before function argument list.
17814         * lib/argz.c: Likewise.
17815         * lib/asinl.c: Likewise.
17816         * lib/expl.c: Likewise.
17817         * lib/gen-uni-tables.c: Likewise.
17818         * lib/gettext.h: Likewise.
17819         * lib/glthread/lock.h: Likewise.
17820         * lib/tanl.c: Likewise.
17821         * lib/uniname/uniname.c: Likewise.
17822         * tests/test-idpriv-drop.c: Likewise.
17823         * tests/test-idpriv-droptemp.c: Likewise.
17824         * tests/test-lock.c: Likewise.
17825         * tests/test-tls.c: Likewise.
17826         * lib/argp-help.c: Insert space before function-like macro argument
17827         list.
17828         * lib/memcmp.c: Likewise.
17829         * tests/test-base64.c: Likewise.
17830         * lib/localename.c: Insert space before sizeof's argument list.
17831         * lib/safe-alloc.h: Likewise.
17832         * lib/file-set.h: Insert space before macro argument list.
17833         * tests/test-argp.c: Likewise.
17834         * lib/argp-namefrob.h: Insert space before function parameter list.
17835         * lib/getaddrinfo.c: Likewise.
17836         * lib/netdb.in.h: Likewise.
17837         * lib/parse-duration.h: Likewise.
17838         * lib/parse-duration.c: Likewise.
17839         * lib/poll.c: Likewise.
17840         * lib/select.c: Likewise.
17841         * lib/trim.h: Likewise.
17842         * tests/test-usleep.c: Likewise.
17843         * lib/ldexpl.c: Insert space before function parameter list and before
17844         function argument list.
17845         * lib/logl.c: Likewise.
17846         * lib/sqrtl.c: Likewise.
17847         * lib/trim.c: Likewise.
17848         * lib/cosl.c: Use GNU style indentation. Insert space before function
17849         argument list.
17850         * lib/sinl.c: Likewise.
17851         * lib/tsearch.c: Insert space after 'for'.
17852         Reported by Jim Meyering.
17853
17854 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
17855
17856         * maint.mk (sc_Wundef_boolean): Check for the presence of the
17857         config header before grepping, as it's not present before
17858         autoreconf/configure are run.  Reported by Simon Josefsson.
17859
17860 2010-03-23  Bruno Haible  <bruno@clisp.org>
17861
17862         pt_chown: Make it work with automake < 1.11.
17863         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
17864         Reported by Simon Josefsson.
17865
17866 2010-03-23  Bruno Haible  <bruno@clisp.org>
17867
17868         pt_chown: Don't depend on GPLed modules.
17869         * lib/pt_chown.c: Don't include idpriv.h.
17870         (main): Don't drop privileges.
17871         * modules/pt_chown (Depends-on): Remove idpriv-drop.
17872         Reported by Simon Josefsson.
17873
17874 2010-03-24  Simon Josefsson  <simon@josefsson.org>
17875
17876         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
17877         suggestions from karl@freefriends.org (Karl Berry).
17878
17879 2010-03-22  Eric Blake  <eblake@redhat.com>
17880
17881         gethostname: further tweaks
17882         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
17883         are overriding gethostname.
17884         Suggested by Bruno Haible.
17885
17886 2010-03-21  Bruno Haible  <bruno@clisp.org>
17887
17888         Fix comments.
17889         * lib/forkpty.c (rpl_forkpty): Fix comment.
17890         * lib/openpty.c (rpl_openpty): Likewise.
17891         Reported by Eric Blake.
17892
17893 2010-03-22  Eric Blake  <eblake@redhat.com>
17894
17895         gethostname: fix build on mingw
17896         * lib/unistd.in.h (includes): Work around fact that mingw
17897         <winsock2.h> re-includes <unistd.h>, by avoiding any
17898         redeclarations if we are being included by <winsock2.h>.
17899         Reported by Matthias Bolte.
17900
17901 2010-03-21  Bruno Haible  <bruno@clisp.org>
17902
17903         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17904         * lib/forkpty.c (forkpty): New replacement function, from glibc with
17905         modifications.
17906         * lib/pty.in.h (forkpty): Update declaration. Add comments.
17907         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
17908         provide the replacement.
17909         * modules/forkpty (Depends-on): Add openpty, login_tty.
17910         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
17911         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
17912         * doc/glibc-functions/forkpty.texi: More supported platforms.
17913         * config/srclist.txt: Add forkpty.c (commented).
17914
17915 2010-03-21  Bruno Haible  <bruno@clisp.org>
17916
17917         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
17918         (Makefile.am): Verify that PTY_LIB is defined.
17919
17920         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
17921
17922 2010-03-21  Bruno Haible  <bruno@clisp.org>
17923
17924         Tests for module 'login_tty'.
17925         * modules/login_tty-tests: New file.
17926         * tests/test-login_tty.c: New file.
17927
17928         New module 'login_tty'.
17929         * lib/login_tty.c: New file.
17930         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
17931         * modules/login_tty: New file.
17932         * doc/glibc-functions/login_tty.texi: Mention the new module.
17933
17934 2010-03-21  Bruno Haible  <bruno@clisp.org>
17935
17936         login_tty: Documentation.
17937         * doc/glibc-functions/login_tty.texi: New file.
17938         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
17939
17940 2010-03-21  Bruno Haible  <bruno@clisp.org>
17941
17942         pty: Consistent macro naming.
17943         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
17944         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
17945         * modules/pty (configure.ac): Update.
17946
17947 2010-03-21  Bruno Haible  <bruno@clisp.org>
17948
17949         Tests for openpty: Make stricter.
17950         * tests/test-openpty.c (main): Add test of canonical processing and
17951         erase.
17952         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
17953
17954         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17955         * lib/openpty.c (openpty): New replacement function.
17956         * lib/pty.in.h: Include <termios.h>.
17957         (openpty): Update declaration. Add comments.
17958         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
17959         is not declared, arrange to provide the replacement. Check for _getpty
17960         and posix_openpt.
17961         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
17962         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
17963         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
17964         * modules/pty-tests (test_pty_c___LDADD): New variable.
17965         * doc/glibc-functions/openpty.texi: More supported platforms.
17966
17967 2010-03-21  Bruno Haible  <bruno@clisp.org>
17968
17969         setenv: Tweaks.
17970         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
17971         the test program.
17972         * doc/posix-functions/setenv.texi: Update platforms list.
17973
17974 2010-03-21  Bruno Haible  <bruno@clisp.org>
17975
17976         New module 'unlockpt'.
17977         * lib/unlockpt.c: New file, from glibc with modifications.
17978         * m4/unlockpt.m4: New file.
17979         * modules/unlockpt: New file.
17980         * lib/stdlib.in.h (unlockpt): New declaration.
17981         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
17982         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
17983         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
17984         HAVE_UNLOCKPT.
17985         * doc/posix-functions/unlockpt.texi: Mention the new module.
17986         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
17987         * config/srclist.txt: Add unlockpt.c (commented).
17988
17989 2010-03-21  Jim Meyering  <meyering@redhat.com>
17990
17991         maint.mk: prohibit inclusion of "intprops.h" without use
17992         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
17993
17994 2010-03-21  Bruno Haible  <bruno@clisp.org>
17995
17996         New module 'grantpt'.
17997         * lib/grantpt.c: New file, from glibc with modifications.
17998         * m4/grantpt.m4: New file.
17999         * modules/grantpt: New file.
18000         * lib/stdlib.in.h (grantpt): New declaration.
18001         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
18002         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
18003         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
18004         HAVE_GRANTPT.
18005         * doc/posix-functions/grantpt.texi: Mention the new module.
18006         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
18007         * config/srclist.txt: Add grantpt.c (commented).
18008
18009 2010-03-21  Bruno Haible  <bruno@clisp.org>
18010
18011         New module 'pt_chown'.
18012         * lib/pt_chown.c: New file, from glibc with modifications.
18013         * lib/pty-private.h: New file, from glibc with modifications.
18014         * modules/pt_chown: New file.
18015         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
18016
18017 2010-03-21  Bruno Haible  <bruno@clisp.org>
18018
18019         Tests for module 'ptsname'.
18020         * modules/ptsname-tests: New file.
18021         * tests/test-ptsname.c: New file.
18022
18023         New module 'ptsname'.
18024         * lib/ptsname.c: New file, from glibc with modifications.
18025         * m4/ptsname.m4: New file.
18026         * modules/ptsname: New file.
18027         * lib/stdlib.in.h (ptsname): New declaration.
18028         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
18029         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
18030         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
18031         HAVE_PTSNAME.
18032         * doc/posix-functions/ptsname.texi: Mention the new module.
18033         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
18034         * config/srclist.txt: Add ptsname.c (commented).
18035
18036 2010-03-21  Bruno Haible  <bruno@clisp.org>
18037
18038         Tests for module 'ttyname_r'.
18039         * modules/ttyname_r-tests: New file.
18040         * tests/test-ttyname_r.c: New file.
18041
18042         New module 'ttyname_r'.
18043         * lib/ttyname_r.c: New file.
18044         * m4/ttyname_r.m4: New file.
18045         * modules/ttyname_r: New file.
18046         * lib/unistd.in.h (ttyname_r): New declaration.
18047         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
18048         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
18049         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
18050         HAVE_TTYNAME_R.
18051         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
18052         * doc/posix-functions/ttyname_r.texi: Mention the new module.
18053
18054 2010-03-20  Bruno Haible  <bruno@clisp.org>
18055
18056         signal: Undefine macro definitions in C++ mode.
18057         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
18058         sigfillset): Undefine macro definitions from the system header in C++
18059         mode.
18060         Reported by John W. Eaton <jwe@gnu.org>.
18061
18062 2010-03-20  Bruno Haible  <bruno@clisp.org>
18063
18064         Ensure no #include statements inside extern "C" { ... }.
18065         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
18066         contain #include statements.
18067         * lib/time.in.h: Likewise.
18068
18069 2010-03-20  Bruno Haible  <bruno@clisp.org>
18070
18071         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
18072         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
18073         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
18074         Reported by John W. Eaton <jwe@gnu.org>.
18075
18076 2010-03-20  Bruno Haible  <bruno@clisp.org>
18077
18078         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
18079         Reported by Jim Meyering.
18080
18081 2010-03-20  Bruno Haible  <bruno@clisp.org>
18082
18083         pipe: Set errno upon failure.
18084         * lib/pipe.h: Specify that when -1 is returned, errno is set.
18085         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
18086         errno value in error message.
18087
18088 2010-03-20  Bruno Haible  <bruno@clisp.org>
18089             Jim Meyering  <meyering@redhat.com>
18090
18091         lchown: Avoid "unused variable" warning.
18092         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
18093
18094 2010-03-20  Bruno Haible  <bruno@clisp.org>
18095
18096         Work around unlink() bug on MacOS X 10.5.6.
18097         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
18098         attempting to unlink a parent directory.
18099         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
18100         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
18101         activate for the replacement function.
18102         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
18103
18104 2010-03-20  Bruno Haible  <bruno@clisp.org>
18105
18106         Fix link errors on Solaris 8.
18107         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
18108         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
18109
18110 2010-03-19  Jim Meyering  <meyering@redhat.com>
18111
18112         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
18113         The _LIBC implementation of build_range_exp correctly honors the
18114         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
18115         However, the non-_LIBC implementation would ignore that syntax-bit
18116         flag and return REG_ERANGE unconditionally.
18117         This change makes it honor that flag.
18118         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
18119         Make two pointer parameters "const".
18120         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
18121         (parse_bracket_exp): Update caller.
18122
18123         regex.m4: correct the reversed range endpoint ([b-a]) test
18124         * m4/regex.m4: When requiring that [b-a] evoke failure,
18125         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
18126         test pass once again for x86-based systems.
18127
18128 2010-03-19  Bruno Haible  <bruno@clisp.org>
18129
18130         scandir: Fix link error on Solaris 8.
18131         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
18132         macros.
18133
18134 2010-03-19  Bruno Haible  <bruno@clisp.org>
18135
18136         getusershell: Fix documentation.
18137         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
18138         module.
18139         * doc/glibc-functions/setusershell.texi: Likewise.
18140
18141         getusershell: Provide declaration, missing on Solaris 9.
18142         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
18143         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
18144         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
18145         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
18146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18147         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
18148         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
18149         HAVE_GETUSERSHELL.
18150         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
18151
18152 2010-03-19  Bruno Haible  <bruno@clisp.org>
18153
18154         wctype: Provide iswblank function.
18155         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
18156         exists and is fine.
18157         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
18158         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
18159         * tests/test-wctype.c (main): Re-enable the iswblank tests.
18160         * doc/posix-functions/iswblank.texi: Update.
18161
18162 2010-03-19  Bruno Haible  <bruno@clisp.org>
18163
18164         Tests of module 'pty' in C++ mode.
18165         * modules/pty-tests: New file.
18166         * tests/test-pty-c++.cc: New file.
18167         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18168
18169 2010-03-19  Eric Blake  <eblake@redhat.com>
18170
18171         logb: fix documentation
18172         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
18173         1.5 declaration bug.
18174
18175         forkpty, openpty: prefer glibc's const-safe prototype
18176         * lib/forkpty.c (rpl_forkpty): New file.
18177         * lib/openpty.c (rpl_openpty): Likewise.
18178         * modules/forkpty (Files): Distribute it.
18179         * modules/openpty (Files): Likewise.
18180         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
18181         check...
18182         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
18183         replacement for for non-const BSD signature.
18184         * modules/pty (Makefile.am): Substitute witnesses.
18185         * lib/pty.in.h (forkpty, openpty): Declare replacements.
18186         * tests/test-forkpty.c: Update signature check.
18187         * tests/test-openpty.c: Likewise.
18188         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
18189         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18190
18191         forkpty, openpty: split functions into new modules
18192         * modules/pty (Makefile.am): Substitute new witnesses.
18193         (Libraries): Move library detection...
18194         * modules/forkpty: ...into new module.
18195         * modules/openpty: Another new module.
18196         * modules/pty-tests: Rename and split...
18197         * modules/forkpty-tests: ...to this...
18198         * modules/openpty-tests: ...and this.
18199         * tests/test-pty.c: Rename and split...
18200         * tests/test-forkpty.c: ...to this...
18201         * tests/test-openpty.c: ...and this.
18202         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
18203         (gl_PTY): Split library searching...
18204         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
18205         (gl_FORKPTY, gl_OPENPTY): New macros.
18206         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
18207         * NEWS: Mention the split.
18208         * MODULES.html.sh (Misc): Document the modules.
18209         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
18210         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18211
18212         pty: improve replacement header
18213         * lib/pty.in.h: New file.
18214         * modules/pty (Files): Ship it.
18215         (Makefile.am): Always build replacement.
18216         * m4/pty.m4: Rename...
18217         * m4/pty_h.m4: ...to this.
18218         (gl_PTY): Modernize setting of witness macros; update check of
18219         forkpty to take proper advantage of cache.
18220         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
18221
18222         getopt: avoid compiler warning
18223         * lib/getopt.c (attribute_hidden): Remove unused macro.
18224
18225 2010-03-18  Bruno Haible  <bruno@clisp.org>
18226
18227         Fix link errors on Solaris 8.
18228         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
18229         * modules/search-tests (test_search_c___LDADD): Likewise.
18230         * modules/signal-tests (test_signal_c___LDADD): Likewise.
18231         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
18232         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
18233         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
18234         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
18235         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
18236         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
18237
18238 2010-03-18  Bruno Haible  <bruno@clisp.org>
18239
18240         Fix bug introduced on 2010-03-14.
18241         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
18242         (gl_SPAWN_H): Require it.
18243         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
18244         Reported by Simon Josefsson.
18245
18246 2010-03-18  Bruno Haible  <bruno@clisp.org>
18247
18248         Fix typo introduced on 2009-12-31.
18249         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
18250         posix_spawn_file_actions_adddup2.
18251
18252 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
18253         and Eric Blake  <eblake@redhat.com>
18254
18255         test-vc-list-files-git: make more robust
18256         * tests/test-vc-list-files-git.sh: Unset problematic environment
18257         variables.  Chain commands together.
18258
18259 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
18260
18261         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
18262         `AC_CHECK_DECL' invocation.
18263
18264 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
18265
18266         * lib/inttostr.c (inttostr): Make sure the invocation of verify
18267         appears before executable statements. Suggested by Petr Sumbera
18268         <Petr.Sumbera@Sun.COM>.
18269
18270 2010-03-14  Bruno Haible  <bruno@clisp.org>
18271
18272         * tests/test-flock.c (test_exclusive): Comment out a test that causes
18273         portability problems. Instead use a simpler test.
18274         (main): Check that invalid arguments are rejected only on Linux.
18275
18276 2010-03-14  Bruno Haible  <bruno@clisp.org>
18277
18278         Fix bug introduced on 2009-12-31.
18279         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18280         gl_PREREQ_SYS_H_WINSOCK2 always.
18281         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
18282         SYS_SOCKET_H variable.
18283         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
18284         Update comments.
18285         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
18286         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18287         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18288         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18289         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
18290
18291 2010-03-14  Bruno Haible  <bruno@clisp.org>
18292
18293         Fix values returned by sinl, cosl.
18294         * lib/trigl.h: Add specification comments.
18295         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
18296         that combines the values from the precomputed table with the values of
18297         the Chebyshev polynomials.
18298
18299 2010-03-14  Bruno Haible  <bruno@clisp.org>
18300
18301         Fix compilation error when modules 'posix_spawn[p]' are not used.
18302         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
18303         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
18304
18305 2010-03-14  Bruno Haible  <bruno@clisp.org>
18306
18307         Fix compilation error on mingw when module 'time_r' is not used.
18308         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
18309         is 1.
18310         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
18311         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18312         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
18313         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
18314
18315 2010-03-14  Bruno Haible  <bruno@clisp.org>
18316
18317         Fix compilation error with Sun C.
18318         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
18319         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
18320         instead of GCC specific ULONG_LONG_MAX.
18321         * lib/xstrtoll.c: Likewise.
18322         * lib/xstrtoull.c: Likewise.
18323
18324 2010-03-13  Bruno Haible  <bruno@clisp.org>
18325
18326         Allow the user to disable C++ code and tests.
18327         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
18328         (gl_PROG_ANSI_CXX): Require it.
18329
18330 2010-03-13  Bruno Haible  <bruno@clisp.org>
18331
18332         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
18333         cases.
18334
18335 2010-03-13  Bruno Haible  <bruno@clisp.org>
18336
18337         Test that gnulib does not break the standard C++ headers.
18338         * tests/test-locale-c++2.cc: New file.
18339         * modules/locale-tests (Files): Add it.
18340         (Makefile.am): Compile it for test-locale-c++.
18341         * tests/test-math-c++2.cc: New file.
18342         * modules/math-tests (Files): Add it.
18343         (Makefile.am): Compile it for test-math-c++.
18344         * tests/test-signal-c++2.cc: New file.
18345         * modules/signal-tests (Files): Add it.
18346         (Makefile.am): Compile it for test-signal-c++.
18347         * tests/test-stdio-c++2.cc: New file.
18348         * modules/stdio-tests (Files): Add it.
18349         (Makefile.am): Compile it for test-stdio-c++.
18350         * tests/test-stdlib-c++2.cc: New file.
18351         * modules/stdlib-tests (Files): Add it.
18352         (Makefile.am): Compile it for test-stdlib-c++.
18353         * tests/test-string-c++2.cc: New file.
18354         * modules/string-tests (Files): Add it.
18355         (Makefile.am): Compile it for test-string-c++.
18356         * tests/test-time-c++2.cc: New file.
18357         * modules/time-tests (Files): Add it.
18358         (Makefile.am): Compile it for test-time-c++.
18359         Reported by John W. Eaton <jwe@gnu.org>.
18360
18361 2010-03-13  Bruno Haible  <bruno@clisp.org>
18362
18363         * gnulib-tool (func_usage): Clarify which options are available for
18364         --create-testdir and --create-megatestdir.
18365
18366 2010-03-13  Bruno Haible  <bruno@clisp.org>
18367
18368         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
18369         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
18370         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
18371         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18372         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
18373         when appropriate.
18374         Reported by Jim Meyering.
18375
18376 2010-03-12  Simon Josefsson  <simon@josefsson.org>
18377
18378         * gnulib-tool (func_import): Explain origin of code.
18379
18380 2010-03-12  Bruno Haible  <bruno@clisp.org>
18381
18382         Fix problem with automake's definition of CXXLINK.
18383         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
18384         Reported by Simon Josefsson and Ludovic Courtès.
18385
18386 2010-03-12  Bruno Haible  <bruno@clisp.org>
18387
18388         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
18389         stable releases.
18390
18391 2010-03-11  Bruno Haible  <bruno@clisp.org>
18392
18393         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
18394         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
18395         whether the system provides one variant or multiple variants of the
18396         function.
18397         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
18398         C++ compilers.
18399         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
18400         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
18401         Reported by Jim Meyering.
18402
18403 2010-03-09  Simon Josefsson  <simon@josefsson.org>
18404
18405         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
18406
18407 2010-03-08  Bruno Haible  <bruno@clisp.org>
18408
18409         gnulib-tool: Add support for --libtool in --create-testdir.
18410         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
18411         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
18412
18413 2010-03-08  Eric Blake  <eblake@redhat.com>
18414
18415         gnulib-tool.texi: mention possibility of git submodule
18416         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
18417         submodules.
18418         * doc/.gitignore: Ignore another generated file.
18419
18420 2010-03-08  Karl Berry  <karl@gnu.org>
18421
18422         * doc/gnulib-tool.texi (VCS Issues): Mention third option
18423         of committing gnulib files while skipping others.
18424
18425 2010-03-07  Bruno Haible  <bruno@clisp.org>
18426
18427         Tests of module 'wctype' in C++ mode.
18428         * tests/test-wctype-c++.cc: New file.
18429         * modules/wctype-tests (Files): Add it and tests/signature.h.
18430         (Depends-on): Add ansi-c++-opt.
18431         (Makefile.am): Arrange to compile and run test-wctype-c++.
18432
18433         Tests of module 'wchar' in C++ mode.
18434         * tests/test-wchar-c++.cc: New file.
18435         * modules/wchar-tests (Files): Add it and tests/signature.h.
18436         (Depends-on): Add ansi-c++-opt.
18437         (Makefile.am): Arrange to compile and run test-wchar-c++.
18438         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
18439         gl_MODULE_INDICATOR.
18440
18441         Tests of module 'unistd' in C++ mode.
18442         * tests/test-unistd-c++.cc: New file.
18443         * modules/unistd-tests (Files): Add it and tests/signature.h.
18444         (Depends-on): Add ansi-c++-opt.
18445         (Makefile.am): Arrange to compile and run test-unistd-c++.
18446         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
18447         gl_MODULE_INDICATOR.
18448
18449         Tests of module 'time' in C++ mode.
18450         * tests/test-time-c++.cc: New file.
18451         * modules/time-tests (Files): Add it and tests/signature.h.
18452         (Depends-on): Add ansi-c++-opt.
18453         (Makefile.am): Arrange to compile and run test-time-c++.
18454         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18455
18456         Tests of module 'sys_time' in C++ mode.
18457         * tests/test-sys_time-c++.cc: New file.
18458         * modules/sys_time-tests (Files): Add it and tests/signature.h.
18459         (Depends-on): Add ansi-c++-opt.
18460         (Makefile.am): Arrange to compile and run test-sys_time-c++.
18461         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
18462         gl_MODULE_INDICATOR.
18463
18464         Tests of module 'sys_stat' in C++ mode.
18465         * tests/test-sys_stat-c++.cc: New file.
18466         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
18467         (Depends-on): Add ansi-c++-opt.
18468         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
18469         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
18470         gl_MODULE_INDICATOR.
18471
18472         Tests of module 'sys_socket' in C++ mode.
18473         * tests/test-sys_socket-c++.cc: New file.
18474         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
18475         (Depends-on): Add ansi-c++-opt.
18476         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
18477         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
18478         gl_MODULE_INDICATOR.
18479
18480         Tests of module 'sys_select' in C++ mode.
18481         * tests/test-sys_select-c++.cc: New file.
18482         * modules/sys_select-tests (Files): Add it and tests/signature.h.
18483         (Depends-on): Add ansi-c++-opt.
18484         (Makefile.am): Arrange to compile and run test-sys_select-c++.
18485         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
18486         gl_MODULE_INDICATOR.
18487
18488         Tests of module 'sys_ioctl' in C++ mode.
18489         * tests/test-sys_ioctl-c++.cc: New file.
18490         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
18491         (Depends-on): Add ansi-c++-opt.
18492         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
18493         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
18494         gl_MODULE_INDICATOR.
18495
18496         Tests of module 'string' in C++ mode.
18497         * tests/test-string-c++.cc: New file.
18498         * modules/string-tests (Files): Add it and tests/signature.h.
18499         (Depends-on): Add ansi-c++-opt.
18500         (Makefile.am): Arrange to compile and run test-string-c++.
18501         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
18502         gl_MODULE_INDICATOR.
18503
18504         Tests of module 'stdlib' in C++ mode.
18505         * tests/test-stdlib-c++.cc: New file.
18506         * modules/stdlib-tests (Files): Add it and tests/signature.h.
18507         (Depends-on): Add ansi-c++-opt.
18508         (Makefile.am): Arrange to compile and run test-stdlib-c++.
18509         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
18510         gl_MODULE_INDICATOR.
18511
18512         Tests of module 'stdio' in C++ mode.
18513         * tests/test-stdio-c++.cc: New file.
18514         * modules/stdio-tests (Files): Add it and tests/signature.h.
18515         (Depends-on): Add ansi-c++-opt.
18516         (Makefile.am): Arrange to compile and run test-stdio-c++.
18517         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
18518         gl_MODULE_INDICATOR.
18519
18520         Tests of module 'spawn' in C++ mode.
18521         * tests/test-spawn-c++.cc: New file.
18522         * modules/spawn-tests (Files): Add it and tests/signature.h.
18523         (Depends-on): Add ansi-c++-opt.
18524         (Makefile.am): Arrange to compile and run test-spawn-c++.
18525         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
18526         gl_MODULE_INDICATOR.
18527
18528         Tests of module 'signal' in C++ mode.
18529         * tests/test-signal-c++.cc: New file.
18530         * modules/signal-tests (Files): Add it and tests/signature.h.
18531         (Depends-on): Add ansi-c++-opt.
18532         (Makefile.am): Arrange to compile and run test-signal-c++.
18533         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
18534         gl_MODULE_INDICATOR.
18535
18536         Tests of module 'search' in C++ mode.
18537         * tests/test-search-c++.cc: New file.
18538         * modules/search-tests (Files): Add it and tests/signature.h.
18539         (Depends-on): Add ansi-c++-opt.
18540         (Makefile.am): Arrange to compile and run test-search-c++.
18541         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
18542         gl_MODULE_INDICATOR.
18543
18544         Tests of module 'math' in C++ mode.
18545         * tests/test-math-c++.cc: New file.
18546         * modules/math-tests (Files): Add it and tests/signature.h.
18547         (Depends-on): Add ansi-c++-opt.
18548         (Makefile.am): Arrange to compile and run test-math-c++.
18549         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18550
18551         Tests of module 'locale' in C++ mode.
18552         * tests/test-locale-c++.cc: New file.
18553         * modules/locale-tests (Files): Add it and tests/signature.h.
18554         (Depends-on): Add ansi-c++-opt.
18555         (Makefile.am): Arrange to compile and run test-locale-c++.
18556         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
18557         gl_MODULE_INDICATOR.
18558
18559         Tests of module 'langinfo' in C++ mode.
18560         * tests/test-langinfo-c++.cc: New file.
18561         * modules/langinfo-tests (Files): Add it and tests/signature.h.
18562         (Depends-on): Add ansi-c++-opt.
18563         (Makefile.am): Arrange to compile and run test-langinfo-c++.
18564         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
18565         gl_MODULE_INDICATOR.
18566
18567         Tests of module 'iconv-h' in C++ mode.
18568         * tests/test-iconv-h-c++.cc: New file.
18569         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
18570         (Depends-on): Add ansi-c++-opt.
18571         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
18572
18573         Tests of module 'glob' in C++ mode.
18574         * tests/test-glob-c++.cc: New file.
18575         * modules/glob-tests (Files): Add it.
18576         (Depends-on): Add ansi-c++-opt.
18577         (Makefile.am): Arrange to compile and run test-glob-c++.
18578
18579         Tests of module 'fcntl-h' in C++ mode.
18580         * tests/test-fcntl-h-c++.cc: New file.
18581         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
18582         (Depends-on): Add ansi-c++-opt.
18583         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
18584         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
18585         gl_MODULE_INDICATOR.
18586
18587         Tests of module 'dirent' in C++ mode.
18588         * tests/test-dirent-c++.cc: New file.
18589         * modules/dirent-tests (Files): Add it and tests/signature.h.
18590         (Depends-on): Add ansi-c++-opt.
18591         (Makefile.am): Arrange to compile and run test-dirent-c++.
18592         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18593         gl_MODULE_INDICATOR.
18594
18595         New module 'ansi-c++-opt'.
18596         * modules/ansi-c++-opt: New file.
18597         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
18598
18599         Document C++ namespace mode.
18600         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
18601
18602         wctype: Avoid #define replacements in C++ mode.
18603         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
18604         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
18605         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
18606         In C++, define a namespaced alias symbol.
18607         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
18608         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
18609         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
18610         rule.
18611
18612         wchar: Avoid #define replacements in C++ mode.
18613         * lib/wchar.in.h: Include c++defs.h.
18614         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
18615         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
18616         symbol.
18617         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
18618         * modules/wchar (Depends-on): Add c++defs.
18619         (Makefile.am): Update wchar.h rule.
18620
18621         unistd: Avoid #define replacements in C++ mode.
18622         * lib/unistd.in.h: Include c++defs.h.
18623         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
18624         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
18625         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
18626         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
18627         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
18628         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
18629         symbol.
18630         (environ): Update.
18631         * modules/unistd (Depends-on): Add c++defs.
18632         (Makefile.am): Update unistd.h rule.
18633
18634         time: Avoid #define replacements in C++ mode.
18635         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
18636         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
18637         define a namespaced alias symbol.
18638         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
18639         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
18640         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
18641         * modules/time (Depends-on): Add c++defs, warn-on-use.
18642         (Makefile.am): Update time.h rule.
18643         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18644         * modules/nanosleep (configure.ac): Likewise.
18645         * modules/strptime (configure.ac): Likewise.
18646         * modules/timegm (configure.ac): Likewise.
18647
18648         sys_time: Avoid #define replacements in C++ mode.
18649         * lib/sys_time.in.h: Include c++defs.h.
18650         (gettimeofday): In C++, define a namespaced alias symbol.
18651         * modules/sys_time (Depends-on): Add c++defs.
18652         (Makefile.am): Update sys/time.h rule.
18653
18654         sys_stat: Avoid #define replacements in C++ mode.
18655         * lib/sys_stat.in.h: Include c++defs.h.
18656         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
18657         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
18658         namespaced alias symbol.
18659         In C++, define a namespaced alias symbol.
18660         * modules/sys_stat (Depends-on): Add c++defs.
18661         (Makefile.am): Update sys/stat.h rule.
18662
18663         sys_socket: Avoid #define replacements in C++ mode.
18664         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
18665         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
18666         definitions also when the system has a <sys/socket.h>.
18667         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
18668         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
18669         In C++, define a namespaced alias symbol.
18670         * modules/sys_socket (Depends-on): Add c++defs.
18671         (Makefile.am): Update sys/socket.h rule.
18672
18673         sys_select: Avoid #define replacements in C++ mode.
18674         * lib/sys_select.in.h: Include c++defs.h. Enable the function
18675         definitions also when the system has a <sys/select.h>.
18676         (select): In C++, define a namespaced alias symbol.
18677         * modules/sys_select (Depends-on): Add c++defs.
18678         (Makefile.am): Update sys/select.h rule.
18679
18680         sys_ioctl: Avoid #define replacements in C++ mode.
18681         * lib/sys_ioctl.in.h: Include c++defs.h.
18682         (ioctl): In C++, define a namespaced alias symbol.
18683         * modules/sys_ioctl (Depends-on): Add c++defs.
18684         (Makefile.am): Update sys/ioctl.h rule.
18685
18686         string: Avoid #define replacements in C++ mode.
18687         * lib/string.in.h: Include c++defs.h.
18688         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
18689         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18690         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18691         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
18692         strsignal, strverscmp): In C++, define a namespaced alias symbol.
18693         * modules/string (Depends-on): Add c++defs.
18694         (Makefile.am): Update string.h rule.
18695
18696         stdlib: Avoid #define replacements in C++ mode.
18697         * lib/stdlib.in.h: Include c++defs.h.
18698         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
18699         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
18700         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
18701         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
18702         symbol.
18703         * modules/stdlib (Depends-on): Add c++defs.
18704         (Makefile.am): Update stdlib.h rule.
18705
18706         stdio: Avoid #define replacements in C++ mode.
18707         * lib/stdio.in.h: Include c++defs.h.
18708         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
18709         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
18710         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
18711         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
18712         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
18713         namespaced alias symbol.
18714         * modules/stdio (Depends-on): Add c++defs.
18715         (Makefile.am): Update stdio.h rule.
18716
18717         spawn: Avoid #define replacements in C++ mode.
18718         * lib/spawn.in.h: Include c++defs.h.
18719         (posix_spawn, posix_spawnp, posix_spawnattr_init,
18720         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
18721         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
18722         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
18723         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
18724         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
18725         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
18726         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
18727         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
18728         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
18729         In C++, define a namespaced alias symbol.
18730         * modules/spawn (Depends-on): Add c++defs.
18731         (Makefile.am): Update spawn.h rule.
18732
18733         signal: Avoid #define replacements in C++ mode.
18734         * lib/signal.in.h: Include c++defs.h.
18735         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
18736         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
18737         namespaced alias symbol.
18738         * modules/signal (Depends-on): Add c++defs.
18739         (Makefile.am): Update signal.h rule.
18740
18741         search: Avoid #define replacements in C++ mode.
18742         * lib/search.in.h: Include c++defs.h.
18743         (_gl_search_compar_fn, _gl_search_action_fn): New types.
18744         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
18745         symbol.
18746         * modules/search (Depends-on): Add c++defs.
18747         (Makefile.am): Update search.h rule.
18748
18749         math: Avoid #define replacements in C++ mode.
18750         * lib/math.in.h: Include c++defs.h.
18751         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
18752         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
18753         trunc, truncl): In C++, define a namespaced alias symbol.
18754         * modules/math (Depends-on): Add c++defs.
18755         (Makefile.am): Update math.h rule.
18756
18757         locale: Avoid #define replacements in C++ mode.
18758         * lib/locale.in.h: Include c++defs.h.
18759         (duplocale): In C++, define a namespaced alias symbol.
18760         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
18761         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
18762         * modules/locale (Depends-on): Add c++defs.
18763         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
18764
18765         langinfo: Avoid #define replacements in C++ mode.
18766         * lib/langinfo.in.h: Include c++defs.h.
18767         (nl_langinfo): In C++, define a namespaced alias symbol.
18768         * modules/langinfo (Depends-on): Add c++defs.
18769         (Makefile.am): Update langinfo.h rule.
18770
18771         iconv-h: Avoid #define replacements in C++ mode.
18772         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
18773         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
18774         symbol.
18775         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18776         whenever iconv is present.
18777         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
18778         (Makefile.am): Update iconv.h rule.
18779
18780         glob: Avoid #define replacements in C++ mode.
18781         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
18782         (_gl_glob_errfunc_fn): New type.
18783         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
18784         symbol.
18785         * modules/glob (Depends-on): Add c++defs, warn-on-use.
18786         (Makefile.am): Update glob.h rule.
18787
18788         fcntl-h: Avoid #define replacements in C++ mode.
18789         * lib/fcntl.in.h: Include c++defs.h.
18790         (fcntl, open, openat): In C++, define a namespaced alias symbol.
18791         * modules/fcntl-h (Depends-on): Add c++defs.
18792         (Makefile.am): Update fcntl.h rule.
18793
18794         dirent: Avoid #define replacements in C++ mode.
18795         * lib/dirent.in.h: Include c++defs.h.
18796         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
18797         namespaced alias symbol.
18798         (dirfd): Update declaration.
18799         * modules/dirent (Depends-on): Add c++defs.
18800         (Makefile.am): Update dirent.h rule.
18801
18802         ctype: Make it usable in C++ code.
18803         * lib/ctype.in.h: Include c++defs.h.
18804         (isblank): Declare as extern "C".
18805         * modules/ctype (Depends-on): Add c++defs.
18806         (Makefile.am): Update ctype.h rule.
18807
18808         New module 'c++defs'.
18809         * modules/c++defs: New file.
18810         * build-aux/c++defs.h: New file.
18811         Reported by John W. Eaton <jwe@gnu.org>.
18812
18813 2010-03-07  Bruno Haible  <bruno@clisp.org>
18814
18815         logb: Provide missing declaration for Cygwin.
18816         * lib/math.in.h (logb): New declaration.
18817         * m4/logb.m4: New file.
18818         * modules/logb (Files): Add m4/logb.m4.
18819         (Depends-on): Add math.
18820         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
18821         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
18822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
18823         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
18824         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
18825
18826 2010-03-07  Bruno Haible  <bruno@clisp.org>
18827
18828         Fix test-cond link error.
18829         * tests/test-cond.c: Include <stdio.h>.
18830
18831 2010-03-07  Bruno Haible  <bruno@clisp.org>
18832
18833         Fix test-dirent-safer link error.
18834         * modules/dirent-safer-tests (Makefile.am): Define
18835         test_dirent_safer_LDADD.
18836
18837 2010-03-07  Bruno Haible  <bruno@clisp.org>
18838
18839         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
18840         among default module list.
18841
18842 2010-03-07  Bruno Haible  <bruno@clisp.org>
18843
18844         Fix link error on platforms with GNU libiconv.
18845         * modules/unistr/u8-strcoll-tests (Makefile): Define
18846         test_u8_strcoll_LDADD.
18847         * modules/unistr/u16-strcoll-tests (Makefile): Define
18848         test_u16_strcoll_LDADD.
18849         * modules/unistr/u32-strcoll-tests (Makefile): Define
18850         test_u32_strcoll_LDADD.
18851
18852 2010-03-07  Bruno Haible  <bruno@clisp.org>
18853
18854         Use POSIX declarations for socket functions.
18855         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
18856         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
18857         rpl_sendto): Change declaration to match POSIX.
18858         * lib/connect.c (rpl_connect): Likewise.
18859         * lib/accept.c (rpl_accept): Likewise.
18860         * lib/bind.c (rpl_bind): Likewise.
18861         * lib/getpeername.c (rpl_getpeername): Likewise.
18862         * lib/getsockname.c (rpl_getsockname): Likewise.
18863         * lib/recv.c (rpl_recv): Likewise.
18864         * lib/send.c (rpl_send): Likewise.
18865         * lib/recvfrom.c (rpl_recvfrom): Likewise.
18866         * lib/sendto.c (rpl_sendto): Likewise.
18867
18868 2010-03-06  Bruno Haible  <bruno@clisp.org>
18869
18870         Clarify access, euidaccess, faccessat.
18871         * doc/posix-functions/faccessat.texi: Mention security problem under
18872         "Other problems", not "Portability problems".
18873         * doc/posix-functions/access.texi: Likewise. Mention a related security
18874         problem.
18875         * doc/glibc-functions/euidaccess.texi: Mention security problems.
18876         * lib/euidaccess.c: Add comments about platforms.
18877         * lib/unistd.in.h (access, euidaccess): Add warnings.
18878
18879 2010-03-07  Bruno Haible  <bruno@clisp.org>
18880
18881         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
18882         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
18883         (POSIX_SPAWN_SETSCHEDULER): Likewise.
18884         (POSIX_SPAWN_USEVFORK): Define in a way that works when
18885         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18886         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
18887         declare when POSIX_SPAWN_SETSCHEDULER is zero.
18888         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
18889         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
18890         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
18891         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
18892         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
18893         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
18894         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
18895         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
18896         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
18897         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
18898         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
18899         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
18900         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
18901         Likewise.
18902         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
18903         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
18904         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
18905         Likewise.
18906         * tests/test-spawn.c (main): Make it work when
18907         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18908
18909 2010-03-07  Bruno Haible  <bruno@clisp.org>
18910
18911         Fix incorrect Makefile.am generation in German locale.
18912         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18913         Execute sed command with character range in C locale.
18914
18915 2010-03-06  Bruno Haible  <bruno@clisp.org>
18916
18917         Tests for module 'iconv-h'.
18918         * modules/iconv-h-tests: New file.
18919         * tests/test-iconv-h.c: New file.
18920
18921         New module 'iconv-h'.
18922         * modules/iconv-h: New file.
18923         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
18924         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
18925         (configure.ac): Remove gl_ICONV_H.
18926         (Makefile.am): Remove rule for iconv.h.
18927
18928 2010-03-06  Bruno Haible  <bruno@clisp.org>
18929
18930         More consistent naming of *.m4 files.
18931         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
18932         * modules/wctype (Files): Update.
18933
18934         More consistent naming of *.m4 files.
18935         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
18936         * modules/wchar (Files): Update.
18937
18938 2010-03-06  Jim Meyering  <meyering@redhat.com>
18939
18940         euidaccess: relax license to LGPLv2+
18941         * modules/euidaccess (License): Relax to LGPLv2+.
18942
18943 2010-03-06  Bruno Haible  <bruno@clisp.org>
18944
18945         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
18946         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
18947         (Makefile.am): Augment lib_SOURCES instead.
18948
18949 2010-03-04  Jim Meyering  <meyering@redhat.com>
18950
18951         utime: remove obsolete module
18952         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
18953         unnecessary for years, and has been marked as obsolete for 10 months.
18954         * modules/utime: Remove file.
18955         * lib/utime.c: Remove file.
18956         * m4/utime.m4: Remove file.
18957         * m4/utimes-null.m4: Remove file.
18958         * doc/posix-functions/utime.texi (utime): Remove reference to
18959         the module.  Move the sole "fixed by gnulib" item into the
18960         "problems not fixed by Gnulib" list.
18961         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
18962
18963 2010-03-05  Simon Josefsson  <simon@josefsson.org>
18964
18965         * modules/exit (License): Relax license to LGPLv2+.
18966         (Status): Mark as obsolete.
18967         * NEWS: Mention deprecated 'exit' module.
18968         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
18969         of now obsolete 'exit'.
18970
18971 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18972
18973         fts-lgpl: remove unused module
18974         * modules/fts-lgpl: Remove.
18975         * MODULES.html.sh (func_all_modules): Adjust.
18976         * check-module (find_included_lib_files): Adjust.
18977         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
18978
18979 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
18980
18981         copy-acl: enhance Solaris ACL error handling
18982         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
18983         * lib/set-mode-acl.c (qset_acl): Likewise.
18984
18985 2010-03-02  Bruno Haible  <bruno@clisp.org>
18986
18987         spawn: Don't override the system defined values on FreeBSD 8.
18988         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
18989         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
18990         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
18991         if HAVE_POSIX_SPAWN is 1.
18992         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
18993
18994 2010-03-01  Bruno Haible  <bruno@clisp.org>
18995
18996         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
18997         regarding Automake.
18998
18999 2010-02-25  Bruno Haible  <bruno@clisp.org>
19000
19001         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
19002         * gnulib-tool: Define 'echo' as a function only before the ksh alias
19003         setting, not afterwards.
19004         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19005
19006 2010-02-24  Eric Blake  <eblake@redhat.com>
19007
19008         bootstrap, git-version-gen: use timestamp
19009         * build-aux/git-version-gen (scriptversion): Force UTC.
19010         * build-aux/bootstrap (scriptversion): New variable.
19011
19012         bootstrap: allow older git
19013         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
19014         older than 1.6.4.  Requested by the libvirt project.
19015
19016 2010-02-23  Eric Blake  <eblake@redhat.com>
19017
19018         warn-on-use: work with old autoconf
19019         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
19020         AS_VAR semantics of autoconf 2.60.
19021         Reported by Bruno Haible.
19022
19023         bootstrap: improve some comments
19024         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
19025         clarification comments.
19026
19027         gettimeofday: provide correct function
19028         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
19029         when replacement is declared, otherwise provide gettimeofday.
19030         Reported by Michael Goffioul.
19031
19032 2010-02-23  Jim Meyering  <meyering@redhat.com>
19033
19034         lib-ignore: relax license to "unlimited", not LGPLv2+
19035         * modules/lib-ignore (License): Relax to "unlimited".
19036
19037 2010-02-23  Jim Meyering  <meyering@redhat.com>
19038
19039         lib-ignore: relax license to LGPLv2+
19040         * modules/lib-ignore (License): Relax to LGPLv2+.
19041
19042 2010-02-22  Eric Blake  <eblake@redhat.com>
19043
19044         lseek: avoid bash 3.2 broken pipe bug
19045         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
19046         warning from bash 3.2.
19047         Reported by Ben Pfaff, with analysis from Bruno Haible.
19048
19049         bootstrap: support non-FSF copyright holder
19050         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
19051         bootstrap.conf override of COPYRIGHT_HOLDER.
19052         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
19053
19054         bootstrap: interoperate with gettext 0.14.1
19055         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
19056
19057         bootstrap: allow for alternate submodule location
19058         * build-aux/bootstrap (gnulib_path): New variable; use instead of
19059         hardcoding submodule location.
19060         (gnulib_mk): Allow direct use of Makefile.am.
19061
19062         bootstrap: use GNULIB_SRCDIR to reduce disk usage
19063         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
19064         rather than reconfiguring where the submodule points.
19065
19066         gettimeofday: restore support for platforms that lack function
19067         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
19068         replacement if function is missing.
19069         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
19070         * modules/sys_time (Makefile.am): Substitute it.
19071         * lib/sys_time.in.h (gettimeofday): Check it.
19072         Reported by Michael Goffioul.
19073
19074 2010-02-21  Bruno Haible  <bruno@clisp.org>
19075
19076         * lib/stdio.in.h (obstack_printf): Fix typo.
19077
19078 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
19079
19080         vc-list-files: use bzr ls's -R option
19081         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
19082         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
19083
19084 2010-02-21  Jim Meyering  <meyering@redhat.com>
19085
19086         init.sh: fix EXEEXT shims to work also for names like test-prog
19087         * tests/init.sh: Re-exec a better shell, when needed.
19088         If the current shell lacks support for posix $(...), an init.sh-using
19089         test will now try to find a shell that supports that.  If EXEEXT is
19090         nonempty, we also require support for hyphen-in-alias-name and shell
19091         substitutions like ${var#glob}.  Failure to find such a shell results
19092         in a skipped test.
19093
19094 2010-02-21  Bruno Haible  <bruno@clisp.org>
19095
19096         Really work around around "broken pipe" error message from bash 3.2.
19097         * gnulib-tool (func_reset_sigpipe): Remove function.
19098         (echo): In bash 3.2, define to a function that uses printf.
19099         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
19100
19101 2010-02-20  Bruno Haible  <bruno@clisp.org>
19102
19103         Restore support for automake 1.9.6 with autoconf 2.61.
19104         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
19105         Reported by James Youngman <jay@gnu.org>.
19106
19107 2010-02-20  Bruno Haible  <bruno@clisp.org>
19108
19109         Improve *printf warning condition.
19110         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
19111         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
19112         and the function is overridden due to SIGPIPE emulation.
19113
19114 2010-02-20  Bruno Haible  <bruno@clisp.org>
19115
19116         * lib/stdio.in.h: Tweak comments.
19117
19118 2010-02-19  Bruno Haible  <bruno@clisp.org>
19119
19120         Make it easier to find modules. New gnulib-tool option '--find'.
19121         * gnulib-tool: New option --find.
19122         (func_usage): Document it.
19123         (func_sanitize_modulelist): New function, extracted from
19124         func_all_modules.
19125         (func_all_modules): Invoke it.
19126         * doc/gnulib-tool.texi (Which modules?): New node.
19127
19128 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
19129
19130         * lib/sys_select.in.h: Provide select replacement even if
19131         sys/select.h exists on a system, for Interix.
19132
19133 2010-02-18  Jim Meyering  <meyering@redhat.com>
19134
19135         init.sh: don't use $(...) just yet
19136         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
19137         to accommodate e.g., Solaris' /bin/sh.
19138
19139 2010-02-17  Bruno Haible  <bruno@clisp.org>
19140
19141         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
19142         Reported by Ludovic Courtès <ludo@gnu.org>.
19143
19144 2010-02-16  Simon Josefsson  <simon@josefsson.org>
19145
19146         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
19147         linking with -lintl.
19148
19149 2010-02-17  Simon Josefsson  <simon@josefsson.org>
19150
19151         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
19152         if not provided by the system's netdb.h.  Reported by
19153         ludo@gnu.org (Ludovic Courtès).
19154
19155 2010-02-15  Jim Meyering  <meyering@redhat.com>
19156
19157         init.sh: improve portability and efficiency
19158         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
19159         "dummy" in a for loop.
19160         Use '!', not '^' to select the complement of a character set used
19161         in a "case" statement.
19162         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
19163         Suggestions from Eric Blake.
19164
19165         init.sh: automatically accommodate programs with the .exe suffix
19166         Automatically arrange for an invocation of "prog" to execute the
19167         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
19168         may use the simpler "prog", yet still work when built on a system
19169         that requires specifying the added suffix.
19170         Do this by constructing a function named "prog" that invokes
19171         "prog.exe" for each .exe file in selected directories.
19172         * tests/init.sh (find_exe_basenames_): New function.
19173         (create_exe_shim_functions_): New function.
19174         (path_prepend_): Use it.
19175
19176         maint.mk: mark syntax-check sc_*.m rules as .PHONY
19177         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
19178         "make -t syntax-check" doesn't create a ton of sc_*.m files.
19179
19180 2010-02-14  Jim Meyering  <meyering@redhat.com>
19181
19182         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
19183         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
19184         (sc_prohibit_hash_pjw_without_use): New rule.
19185
19186         maint.mk: allow the default upload destination dir to be overridden
19187         * top/maint.mk (upload_dest_dir_): Define with a default that
19188         preserves the status quo.
19189         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
19190         Reported by Peter Simons.
19191
19192         maint.mk: prohibit inclusion of "hash.h" without_use
19193         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
19194
19195 2010-02-10  Jim Meyering  <meyering@redhat.com>
19196
19197         maint.mk: prohibit inclusion of "ignore-value.h" without_use
19198         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
19199
19200 2010-02-09  Eric Blake  <ebb9@byu.net>
19201         and Bruno Haible  <bruno@clisp.org>
19202
19203         obstack-printf-posix: ensure declaration
19204         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
19205         extracted from gl_FUNC_OBSTACK_PRINTF.
19206         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
19207         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19208         Likewise.
19209         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
19210         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
19211         0.
19212
19213 2010-02-08  Bruno Haible  <bruno@clisp.org>
19214
19215         gnulib-tool: Fix typo in 2010-02-07 commit.
19216         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
19217         Reported by Eric Blake.
19218
19219 2010-02-07  Bruno Haible  <bruno@clisp.org>
19220
19221         gnulib-tool: Fix up caching patches.
19222         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
19223         option --no-cache. Use associative arrays when supported by the shell.
19224         (sed_comments): New variable.
19225         (modcache): Renamed from do_cache.
19226         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
19227         abbreviate unnecessarily.
19228         (have_associative): New variable.
19229         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
19230         way also for ksh and zsh.
19231         (func_init_sed_convert_to_cache_statements): New function, extracted
19232         from func_cache_lookup_module. Add support for associative arrays.
19233         Don't set the c_MODULE_cached variable here. Ignore all lines before
19234         the first field header. Remove only the final newline, not all trailing
19235         newlines. Support empty fields correctly. Limit the use of 'eval' to
19236         assignments.
19237         (func_get_description, func_get_status, func_get_notice,
19238         func_get_applicability, func_get_filelist, func_get_dependencies,
19239         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
19240         func_get_automake_snippet, func_get_include_directive,
19241         func_get_link_directive, func_get_license, func_get_maintainer):
19242         Update documentation. List the unoptimized code first. Add support for
19243         associative arrays. Limit the use of 'eval' to assignments.
19244         (func_get_applicability): Undo stylistic pessimisations.
19245         (func_get_automake_snippet, func_get_include_directive): Reduce code
19246         duplication.
19247         (func_modules_transitive_closure, func_modules_add_dummy,
19248         func_modules_notice, func_modules_to_filelist, func_add_file,
19249         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
19250         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
19251         func_create_testdir, func_create_megatestdir): Update documentation.
19252
19253 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19254
19255         * gnulib-tool (func_cache_lookup_module): Store the module name
19256         belonging to the cache variable; error out if two different
19257         module names map to the same cache variable name.
19258
19259 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19260
19261         gnulib-tool: Make caching optional.
19262         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
19263         Update matching short versions of --no-changelog.
19264         (func_usage): Update.
19265         (sed_extract_cache_prog): Renamed from ...
19266         (sed_extract_prog): ... this; revert to old extraction script.
19267         (func_get_description, func_get_status)
19268         (func_get_notice, func_get_applicability, func_get_filelist)
19269         (func_get_dependencies, func_get_autoconf_early_snippet)
19270         (func_get_autoconf_snippet, func_get_automake_snippet)
19271         (func_get_include_directive, func_get_link_directive)
19272         (func_get_license, func_get_maintainer): If $do_cache is false,
19273         use old, non-caching extraction scripts.
19274         Suggestion by Bruno Haible.
19275
19276 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19277
19278         gnulib-tool: cache module metainformation.
19279         * gnulib-tool (sed_extract_prog): Match newline before each
19280         header, and rewrite header to a shell variable suffix.
19281         (func_cache_var, func_cache_lookup_module): New functions,
19282         to turn a module name into a cache variable prefix, and to
19283         look up and cache module metainformation.
19284         (func_get_description, func_get_status)
19285         (func_get_notice, func_get_applicability, func_get_filelist)
19286         (func_get_dependencies, func_get_autoconf_early_snippet)
19287         (func_get_autoconf_snippet, func_get_automake_snippet)
19288         (func_get_include_directive, func_get_link_directive)
19289         (func_get_license, func_get_maintainer): Use
19290         func_cache_lookup_module.
19291
19292 2010-02-07  Bruno Haible  <bruno@clisp.org>
19293
19294         fnctl: Fix missing dependency.
19295         * modules/fcntl (Depends-on): Add getdtablesize.
19296         Reported by John W. Eaton <jwe@gnu.org>.
19297
19298 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19299
19300         Argp: fix recognition of short alias options.
19301
19302         * lib/argp-parse.c (convert_options): Fix improper use of
19303         `|' between character values.
19304         * tests/test-argp.c (group1_option): New alias option
19305         --read (-r).
19306         (group1_parser): Special handling for 'r'.
19307         (test15): New test case.
19308         (test_fun): Add test15.
19309         * tests/test-argp-2.sh: Update expected --help and --usage
19310         outputs.
19311
19312 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19313
19314         * tests/test-argp.c: Fix indentation.
19315
19316 2010-02-04  Eric Blake  <ebb9@byu.net>
19317
19318         gettimeofday: expose type of second argument
19319         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
19320         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
19321         * tests/test-gettimeofday.c: Use it to silence warning.
19322         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
19323         the issue.
19324
19325 2010-02-03  Jim Meyering  <meyering@redhat.com>
19326
19327         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
19328         * lib/regcomp.c (TYPE_SIGNED): Define.
19329         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
19330
19331         regcomp.c: avoid a new -Wshadow warning
19332         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
19333
19334 2010-02-01  Jim Meyering  <meyering@redhat.com>
19335
19336         removing useless parentheses in cpp #define directives
19337         For motivation, see commit c0221df4, "define STREQ(a,b)
19338         consistently, removing useless parentheses"
19339         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
19340         * lib/mountlist.c (MNT_IGNORE): Likewise.
19341         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
19342
19343 2010-02-01  Eric Blake  <ebb9@byu.net>
19344
19345         sys_time: use link-warning
19346         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
19347         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
19348         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
19349         * modules/sys_time (Depends-on): Add warn-on-use.
19350         (Makefile.am): Always build replacement.
19351         (configure.ac): Update substitutions.
19352         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
19353         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
19354         bother with SYS_TIME_H.
19355         * modules/gettimeofday (configure.ac): Declare indicator.
19356         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
19357         in use.
19358
19359         closein-tests: silence compiler warning
19360         * tests/test-closein.c (main): Ignore fread result.
19361         * modules/closein-tests (Depends-on): Add ignore-value.
19362
19363         tests: silence warning about system return
19364         * tests/test-areadlink-with-size.c (main): Ignore system result.
19365         * tests/test-areadlink.c (main): Likewise.
19366         * tests/test-areadlinkat-with-size.c (main): Likewise.
19367         * tests/test-areadlinkat.c (main): Likewise.
19368         * tests/test-canonicalize-lgpl.c (main): Likewise.
19369         * tests/test-canonicalize.c (main): Likewise.
19370         * tests/test-chown.c (main): Likewise.
19371         * tests/test-fchownat.c (main): Likewise.
19372         * tests/test-fdutimensat.c (main): Likewise.
19373         * tests/test-fstatat.c (main): Likewise.
19374         * tests/test-futimens.c (main): Likewise.
19375         * tests/test-lchown.c (main): Likewise.
19376         * tests/test-link.c (main): Likewise.
19377         * tests/test-linkat.c (main): Likewise.
19378         * tests/test-lstat.c (main): Likewise.
19379         * tests/test-mkdir.c (main): Likewise.
19380         * tests/test-mkdirat.c (main): Likewise.
19381         * tests/test-mkfifo.c (main): Likewise.
19382         * tests/test-mkfifoat.c (main): Likewise.
19383         * tests/test-mknod.c (main): Likewise.
19384         * tests/test-readlink.c (main): Likewise.
19385         * tests/test-remove.c (main): Likewise.
19386         * tests/test-rename.c (main): Likewise.
19387         * tests/test-renameat.c (main): Likewise.
19388         * tests/test-rmdir.c (main): Likewise.
19389         * tests/test-symlink.c (main): Likewise.
19390         * tests/test-symlinkat.c (main): Likewise.
19391         * tests/test-unlink.c (main): Likewise.
19392         * tests/test-unlinkat.c (main): Likewise.
19393         * tests/test-utimens.c (main): Likewise.
19394         * tests/test-utimensat.c (main): Likewise.
19395         * modules/areadlink-tests (Depends-on): Add ignore-value.
19396         * modules/areadlink-with-size-tests (Depends-on): Likewise.
19397         * modules/areadlinkat-tests (Depends-on): Likewise.
19398         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
19399         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19400         * modules/canonicalize-tests (Depends-on): Likewise.
19401         * modules/chown-tests (Depends-on): Likewise.
19402         * modules/fdutimensat-tests (Depends-on): Likewise.
19403         * modules/futimens-tests (Depends-on): Likewise.
19404         * modules/lchown-tests (Depends-on): Likewise.
19405         * modules/link-tests (Depends-on): Likewise.
19406         * modules/linkat-tests (Depends-on): Likewise.
19407         * modules/lstat-tests (Depends-on): Likewise.
19408         * modules/mkdir-tests (Depends-on): Likewise.
19409         * modules/mkfifo-tests (Depends-on): Likewise.
19410         * modules/mkfifoat-tests (Depends-on): Likewise.
19411         * modules/mknod-tests (Depends-on): Likewise.
19412         * modules/openat-tests (Depends-on): Likewise.
19413         * modules/readlink-tests (Depends-on): Likewise.
19414         * modules/remove-tests (Depends-on): Likewise.
19415         * modules/rename-tests (Depends-on): Likewise.
19416         * modules/renameat-tests (Depends-on): Likewise.
19417         * modules/rmdir-tests (Depends-on): Likewise.
19418         * modules/symlink-tests (Depends-on): Likewise.
19419         * modules/symlinkat-tests (Depends-on): Likewise.
19420         * modules/unlink-tests (Depends-on): Likewise.
19421         * modules/utimens-tests (Depends-on): Likewise.
19422         * modules/utimensat-tests (Depends-on): Likewise.
19423
19424 2010-01-31  Bruno Haible  <bruno@clisp.org>
19425
19426         Perform the same test for many <math.h> functions.
19427         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
19428         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
19429         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
19430         of gl_MATHFUNC.
19431         * modules/acos (configure.ac): Likewise.
19432         * modules/asin (configure.ac): Likewise.
19433         * modules/atan (configure.ac): Likewise.
19434         * modules/atan2 (configure.ac): Likewise.
19435         * modules/cbrt (configure.ac): Likewise.
19436         * modules/copysign (configure.ac): Likewise.
19437         * modules/cos (configure.ac): Likewise.
19438         * modules/cosh (configure.ac): Likewise.
19439         * modules/erf (configure.ac): Likewise.
19440         * modules/erfc (configure.ac): Likewise.
19441         * modules/exp (configure.ac): Likewise.
19442         * modules/fmod (configure.ac): Likewise.
19443         * modules/hypot (configure.ac): Likewise.
19444         * modules/j0 (configure.ac): Likewise.
19445         * modules/j1 (configure.ac): Likewise.
19446         * modules/jn (configure.ac): Likewise.
19447         * modules/lgamma (configure.ac): Likewise.
19448         * modules/log (configure.ac): Likewise.
19449         * modules/log10 (configure.ac): Likewise.
19450         * modules/log1p (configure.ac): Likewise.
19451         * modules/pow (configure.ac): Likewise.
19452         * modules/remainder (configure.ac): Likewise.
19453         * modules/sin (configure.ac): Likewise.
19454         * modules/sinh (configure.ac): Likewise.
19455         * modules/tan (configure.ac): Likewise.
19456         * modules/tanh (configure.ac): Likewise.
19457         * modules/y0 (configure.ac): Likewise.
19458         * modules/y1 (configure.ac): Likewise.
19459         * modules/yn (configure.ac): Likewise.
19460         Suggested by Paolo Bonzini.
19461
19462 2010-01-31  Bruno Haible  <bruno@clisp.org>
19463
19464         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
19465
19466 2010-01-31  Bruno Haible  <bruno@clisp.org>
19467
19468         Work around getdelim() bug on FreeBSD 8.0.
19469         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
19470         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
19471         not work.
19472         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
19473         is 1.
19474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
19475         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
19476         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
19477         a non-zero size.
19478         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
19479
19480 2010-01-31  Bruno Haible  <bruno@clisp.org>
19481
19482         Work around getline() bug on FreeBSD 8.0.
19483         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
19484         and a non-zero size.
19485         * tests/test-getline.c (main): Likewise.
19486         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
19487         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
19488
19489 2010-01-28  Eric Blake  <ebb9@byu.net>
19490
19491         regex: fix build failure
19492         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
19493         platforms.
19494
19495 2010-01-28  Jim Meyering  <meyering@redhat.com>
19496
19497         regex: do not ignore memory allocation failure
19498         * lib/regex_internal.c (create_cd_newstate): Detect
19499         re_node_set_init_copy failure.   Extracted from glibc commit
19500         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19501
19502         regex: sync more white-space changes from libc
19503         * lib/regex_internal.c: White-space only changes.
19504         * lib/regexec.c: Likewise.
19505
19506         regex: add many uses of __attribute_warn_unused_result__
19507         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
19508         * lib/regexec.c: Likewise.
19509         Extracted from a messy glibc commit.
19510
19511         regcomp.c: spelling and merge-artifact from glibc
19512         * lib/regcomp.c: Merge remainder of glibc's
19513         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19514
19515         regcomp.c: sync white-space changes from glibc
19516         * lib/regcomp.c: Merge to accommodate white space
19517         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19518
19519         regcomp.c: do not ignore internal return values
19520         * lib/regcomp.c: Do not ignore internal return values.
19521         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
19522         but without its white-space changes and spelling fixes.
19523
19524         regex_internal.h: define __attribute_warn_unused_result__
19525         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
19526
19527         maint: add a syntax-check rule to check for vulnerable Makefile.in
19528         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
19529
19530 2010-01-27  Jim Meyering  <meyering@redhat.com>
19531
19532         ncftpput-ftp: clean up spaces
19533         * build-aux/ncftpput-ftp: Make Copyright line consistent.
19534         Remove trailing blanks.
19535
19536 2010-01-27  Simon Josefsson  <simon@josefsson.org>
19537
19538         * build-aux/git-version-gen: Fix copyright statement.
19539         * build-aux/gnupload: Likewise.
19540         * tests/test-arcfour.c: Likewise.
19541         * tests/test-arctwo.c: Likewise.
19542         * tests/test-count-one-bits.c: Likewise.
19543         * tests/test-crc.c: Likewise.
19544         * tests/test-des.c: Likewise.
19545         * tests/test-gc-arcfour.c: Likewise.
19546         * tests/test-gc-arctwo.c: Likewise.
19547         * tests/test-gc-des.c: Likewise.
19548         * tests/test-gc-hmac-md5.c: Likewise.
19549         * tests/test-gc-hmac-sha1.c: Likewise.
19550         * tests/test-gc-md2.c: Likewise.
19551         * tests/test-gc-md4.c: Likewise.
19552         * tests/test-gc-md5.c: Likewise.
19553         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19554         * tests/test-gc-rijndael.c: Likewise.
19555         * tests/test-gc-sha1.c: Likewise.
19556         * tests/test-gc.c: Likewise.
19557         * tests/test-gethostname.c: Likewise.
19558         * tests/test-gettimeofday.c: Likewise.
19559         * tests/test-hash.c: Likewise.
19560         * tests/test-hmac-md5.c: Likewise.
19561         * tests/test-hmac-sha1.c: Likewise.
19562         * tests/test-md2.c: Likewise.
19563         * tests/test-md4.c: Likewise.
19564         * tests/test-md5.c: Likewise.
19565         * tests/test-memchr.c: Likewise.
19566         * tests/test-memchr2.c: Likewise.
19567         * tests/test-memcmp.c: Likewise.
19568         * tests/test-memmem.c: Likewise.
19569         * tests/test-memrchr.c: Likewise.
19570         * tests/test-rawmemchr.c: Likewise.
19571         * tests/test-read-file.c: Likewise.
19572         * tests/test-rijndael.c: Likewise.
19573         * tests/test-sockets.c: Likewise.
19574         * tests/test-strchrnul.c: Likewise.
19575         * tests/test-strstr.c: Likewise.
19576         * tests/test-strtod.c: Likewise.
19577         * build-aux/ncftpput-ftp: Likewise.
19578
19579 2010-01-26  Eric Blake  <ebb9@byu.net>
19580
19581         ignore-value: update recommended header name
19582         * modules/ignore-value (Include): Only use <> for headers that
19583         exist in glibc.
19584
19585 2010-01-26  Jim Meyering  <meyering@redhat.com>
19586
19587         test-userspec.c: avoid compiler warnings
19588         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
19589         and "initialization discards qualifiers..." warnings.
19590         Put the first "uid" in its own scope, and make char* members "const".
19591
19592 2010-01-25  Bruno Haible  <bruno@clisp.org>
19593
19594         gnulib-tool: Make warning diagnostics consistent.
19595         * gnulib-tool (func_warning): New function.
19596         Use it everywhere where gnulib-tool produces output to stderr and it is
19597         not a fatal error.
19598
19599 2010-01-25  Bruno Haible  <bruno@clisp.org>
19600
19601         Fix test dependencies.
19602         * modules/xstrtol-tests (Depends-on): Add inttypes.
19603         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
19604
19605 2010-01-25 Pádraig Brady <P@draigBrady.com>
19606
19607         syntax-check: detect incorrect boolean macro values in config.h
19608         * modules/maintainer-makefile (configure.ac): Parameterize the location
19609         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
19610         The logic is from Eric Blake and the location indicated by Jim Meyering.
19611         Note the more natural CONFIG_HEADER name is prohibited by automake
19612         for backwards compatibility reasons.
19613         * top/maint.mk (sc_Wundef_boolean): New rule.
19614
19615 2010-01-25  Jim Meyering  <meyering@redhat.com>
19616
19617         bootstrap: detect MacOS 10.6's shasum, too
19618         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
19619         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
19620
19621 2010-01-23  Jim Meyering  <meyering@redhat.com>
19622
19623         xstrtoll: new module
19624         * modules/xstrtoll: New file.
19625         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
19626         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
19627         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
19628         ./configure fails if you use this module and lack "long long".
19629         * modules/xstrtoll-tests: New module.
19630         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
19631         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
19632         new init.sh-based test framework.
19633
19634 2010-01-24  Bruno Haible  <bruno@clisp.org>
19635
19636         Tests for module 'yn'.
19637         * modules/yn-tests: New file.
19638         * tests/test-yn.c: New file.
19639
19640         Tests for module 'y1'.
19641         * modules/y1-tests: New file.
19642         * tests/test-y1.c: New file.
19643
19644         Tests for module 'y0'.
19645         * modules/y0-tests: New file.
19646         * tests/test-y0.c: New file.
19647
19648         Tests for module 'tanh'.
19649         * modules/tanh-tests: New file.
19650         * tests/test-tanh.c: New file.
19651
19652         Tests for module 'tan'.
19653         * modules/tan-tests: New file.
19654         * tests/test-tan.c: New file.
19655
19656         Tests for module 'sqrt'.
19657         * modules/sqrt-tests: New file.
19658         * tests/test-sqrt.c: New file.
19659
19660         Tests for module 'sinh'.
19661         * modules/sinh-tests: New file.
19662         * tests/test-sinh.c: New file.
19663
19664         Tests for module 'sin'.
19665         * modules/sin-tests: New file.
19666         * tests/test-sin.c: New file.
19667
19668         Tests for module 'rint'.
19669         * modules/rint-tests: New file.
19670         * tests/test-rint.c: New file.
19671
19672         Tests for module 'remainder'.
19673         * modules/remainder-tests: New file.
19674         * tests/test-remainder.c: New file.
19675
19676         Tests for module 'pow'.
19677         * modules/pow-tests: New file.
19678         * tests/test-pow.c: New file.
19679
19680         Tests for module 'nextafter'.
19681         * modules/nextafter-tests: New file.
19682         * tests/test-nextafter.c: New file.
19683
19684         Tests for module 'modf'.
19685         * modules/modf-tests: New file.
19686         * tests/test-modf.c: New file.
19687
19688         Tests for module 'logb'.
19689         * modules/logb-tests: New file.
19690         * tests/test-logb.c: New file.
19691
19692         Tests for module 'log1p'.
19693         * modules/log1p-tests: New file.
19694         * tests/test-log1p.c: New file.
19695
19696         Tests for module 'log10'.
19697         * modules/log10-tests: New file.
19698         * tests/test-log10.c: New file.
19699
19700         Tests for module 'log'.
19701         * modules/log-tests: New file.
19702         * tests/test-log.c: New file.
19703
19704         Tests for module 'lgamma'.
19705         * modules/lgamma-tests: New file.
19706         * tests/test-lgamma.c: New file.
19707
19708         Tests for module 'ldexp'.
19709         * modules/ldexp-tests: New file.
19710         * tests/test-ldexp.c: New file.
19711
19712         Tests for module 'jn'.
19713         * modules/jn-tests: New file.
19714         * tests/test-jn.c: New file.
19715
19716         Tests for module 'j1'.
19717         * modules/j1-tests: New file.
19718         * tests/test-j1.c: New file.
19719
19720         Tests for module 'j0'.
19721         * modules/j0-tests: New file.
19722         * tests/test-j0.c: New file.
19723
19724         Tests for module 'hypot'.
19725         * modules/hypot-tests: New file.
19726         * tests/test-hypot.c: New file.
19727
19728         Tests for module 'fmod'.
19729         * modules/fmod-tests: New file.
19730         * tests/test-fmod.c: New file.
19731
19732         Tests for module 'fabs'.
19733         * modules/fabs-tests: New file.
19734         * tests/test-fabs.c: New file.
19735
19736         Tests for module 'exp'.
19737         * modules/exp-tests: New file.
19738         * tests/test-exp.c: New file.
19739
19740         Tests for module 'erfc'.
19741         * modules/erfc-tests: New file.
19742         * tests/test-erfc.c: New file.
19743
19744         Tests for module 'erf'.
19745         * modules/erf-tests: New file.
19746         * tests/test-erf.c: New file.
19747
19748         Tests for module 'cosh'.
19749         * modules/cosh-tests: New file.
19750         * tests/test-cosh.c: New file.
19751
19752         Tests for module 'cos'.
19753         * modules/cos-tests: New file.
19754         * tests/test-cos.c: New file.
19755
19756         Tests for module 'copysign'.
19757         * modules/copysign-tests: New file.
19758         * tests/test-copysign.c: New file.
19759
19760         Tests for module 'cbrt'.
19761         * modules/cbrt-tests: New file.
19762         * tests/test-cbrt.c: New file.
19763
19764         Tests for module 'atan2'.
19765         * modules/atan2-tests: New file.
19766         * tests/test-atan2.c: New file.
19767
19768         Tests for module 'atan'.
19769         * modules/atan-tests: New file.
19770         * tests/test-atan.c: New file.
19771
19772         Tests for module 'asin'.
19773         * modules/asin-tests: New file.
19774         * tests/test-asin.c: New file.
19775
19776         Tests for module 'acos'.
19777         * modules/acos-tests: New file.
19778         * tests/test-acos.c: New file.
19779
19780 2010-01-24  Bruno Haible  <bruno@clisp.org>
19781
19782         Fix tests for common <math.h> functions.
19783         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
19784         code snippet that references the function pointer, rather than merely
19785         calling the function. Substitute the FUNC_LIBM variable.
19786         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
19787         * modules/acos (configure.ac): Likewise.
19788         * modules/asin (configure.ac): Likewise.
19789         * modules/atan (configure.ac): Likewise.
19790         * modules/atan2 (configure.ac): Likewise.
19791         * modules/cbrt (configure.ac): Likewise.
19792         * modules/copysign (configure.ac): Likewise.
19793         * modules/cos (configure.ac): Likewise.
19794         * modules/cosh (configure.ac): Likewise.
19795         * modules/erf (configure.ac): Likewise.
19796         * modules/erfc (configure.ac): Likewise.
19797         * modules/exp (configure.ac): Likewise.
19798         * modules/fabs (configure.ac): Likewise.
19799         * modules/fmod (configure.ac): Likewise.
19800         * modules/hypot (configure.ac): Likewise.
19801         * modules/j0 (configure.ac): Likewise.
19802         * modules/j1 (configure.ac): Likewise.
19803         * modules/jn (configure.ac): Likewise.
19804         * modules/ldexp (configure.ac): Likewise.
19805         * modules/lgamma (configure.ac): Likewise.
19806         * modules/log (configure.ac): Likewise.
19807         * modules/log10 (configure.ac): Likewise.
19808         * modules/log1p (configure.ac): Likewise.
19809         * modules/logb (configure.ac): Likewise.
19810         * modules/modf (configure.ac): Likewise.
19811         * modules/nextafter (configure.ac): Likewise.
19812         * modules/pow (configure.ac): Likewise.
19813         * modules/remainder (configure.ac): Likewise.
19814         * modules/rint (configure.ac): Likewise.
19815         * modules/sin (configure.ac): Likewise.
19816         * modules/sinh (configure.ac): Likewise.
19817         * modules/tan (configure.ac): Likewise.
19818         * modules/tanh (configure.ac): Likewise.
19819         * modules/y0 (configure.ac): Likewise.
19820         * modules/y1 (configure.ac): Likewise.
19821         * modules/yn (configure.ac): Likewise.
19822
19823 2010-01-24  Bruno Haible  <bruno@clisp.org>
19824
19825         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
19826         * tests/test-acosl.c (x): New variable.
19827         (main): Store argument in x and fetch it from x.
19828         * tests/test-asinl.c (x): New variable.
19829         (main): Store argument in x and fetch it from x.
19830         * tests/test-atanl.c (x): New variable.
19831         (main): Store argument in x and fetch it from x.
19832         * tests/test-cosl.c (x): New variable.
19833         (main): Store argument in x and fetch it from x.
19834         * tests/test-expl.c (x): New variable.
19835         (main): Store argument in x and fetch it from x.
19836         * tests/test-logl.c (x): New variable.
19837         (main): Store argument in x and fetch it from x.
19838         * tests/test-sinl.c (x): New variable.
19839         (main): Store argument in x and fetch it from x.
19840         * tests/test-sqrtl.c (x): New variable.
19841         (main): Store argument in x and fetch it from x.
19842         * tests/test-tanl.c (x): New variable.
19843         (main): Store argument in x and fetch it from x.
19844
19845 2010-01-24  Bruno Haible  <bruno@clisp.org>
19846
19847         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
19848         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
19849         assignments to the initial TESTS_ENVIRONMENT.
19850         * doc/gnulib.texi (Unit test modules): Document it.
19851         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
19852         TESTS_ENVIRONMENT.
19853         * modules/btowc-tests (Makefile.am): Likewise.
19854         * modules/c-stack-tests (Makefile.am): Likewise.
19855         * modules/c-strcase-tests (Makefile.am): Likewise.
19856         * modules/copy-file-tests (Makefile.am): Likewise.
19857         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
19858         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
19859         * modules/mbrtowc-tests (Makefile.am): Likewise.
19860         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19861         * modules/mbscasestr-tests (Makefile.am): Likewise.
19862         * modules/mbschr-tests (Makefile.am): Likewise.
19863         * modules/mbscspn-tests (Makefile.am): Likewise.
19864         * modules/mbsinit-tests (Makefile.am): Likewise.
19865         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19866         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
19867         * modules/mbspbrk-tests (Makefile.am): Likewise.
19868         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19869         * modules/mbsrchr-tests (Makefile.am): Likewise.
19870         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
19871         * modules/mbsspn-tests (Makefile.am): Likewise.
19872         * modules/mbsstr-tests (Makefile.am): Likewise.
19873         * modules/nl_langinfo-tests (Makefile.am): Likewise.
19874         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
19875         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19876         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19877         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19878         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19879         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
19880         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19881         * modules/wcrtomb-tests (Makefile.am): Likewise.
19882         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
19883         * modules/wcsrtombs-tests (Makefile.am): Likewise.
19884         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
19885         assignments from TESTS_ENVIRONMENT.
19886         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
19887         augmentation.
19888         * modules/argp-version-etc-tests (Makefile.am): Likewise.
19889         * modules/atexit-tests (Makefile.am): Likewise.
19890         * modules/binary-io-tests (Makefile.am): Likewise.
19891         * modules/closein-tests (Makefile.am): Likewise.
19892         * modules/dprintf-posix-tests (Makefile.am): Likewise.
19893         * modules/exclude-tests (Makefile.am): Likewise.
19894         * modules/fflush-tests (Makefile.am): Likewise.
19895         * modules/fpending-tests (Makefile.am): Likewise.
19896         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19897         * modules/freadahead-tests (Makefile.am): Likewise.
19898         * modules/freadptr-tests (Makefile.am): Likewise.
19899         * modules/freadseek-tests (Makefile.am): Likewise.
19900         * modules/fseek-tests (Makefile.am): Likewise.
19901         * modules/fseeko-tests (Makefile.am): Likewise.
19902         * modules/ftell-tests (Makefile.am): Likewise.
19903         * modules/ftello-tests (Makefile.am): Likewise.
19904         * modules/idpriv-drop-tests (Makefile.am): Likewise.
19905         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
19906         * modules/lseek-tests (Makefile.am): Likewise.
19907         * modules/parse-duration-tests (Makefile.am): Likewise.
19908         * modules/perror-tests (Makefile.am): Likewise.
19909         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
19910         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
19911         * modules/pipe-tests (Makefile.am): Likewise.
19912         * modules/pread-tests (Makefile.am): Likewise.
19913         * modules/printf-posix-tests (Makefile.am): Likewise.
19914         * modules/select-tests (Makefile.am): Likewise.
19915         * modules/sigpipe-tests (Makefile.am): Likewise.
19916         * modules/tsearch-tests (Makefile.am): Likewise.
19917         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
19918         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
19919         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19920         * modules/uniwidth/width-tests (Makefile.am): Likewise.
19921         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
19922         * modules/version-etc-tests (Makefile.am): Likewise.
19923         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19924         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19925         * modules/xalloc-die-tests (Makefile.am): Likewise.
19926         * modules/xprintf-posix-tests (Makefile.am): Likewise.
19927         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19928         * modules/xstrtol-tests (Makefile.am): Likewise.
19929         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19930         * modules/yesno-tests (Makefile.am): Likewise.
19931         Suggested by Jim Meyering.
19932
19933 2010-01-24  Bruno Haible  <bruno@clisp.org>
19934
19935         More documentation.
19936         * doc/gnulib.texi (Writing modules): New chapter.
19937         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
19938         the new chapter.
19939
19940 2010-01-24  Jim Meyering  <meyering@redhat.com>
19941
19942         maint.mk: do not prepend "./" after filtering
19943         * top/maint.mk (_prepend_srcdir_prefix): New variable
19944         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
19945         "./" when $(srcdir) is ".".
19946
19947         define STREQ(a,b) consistently, removing useless parentheses
19948         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
19949         since the only risk is that "a" or "b" contains an unparenthesized
19950         comma, but if either did that, STREQ would have 3 or more arguments.
19951         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
19952         * lib/fts.c (STREQ): Remove unnecessary parentheses.
19953         * lib/hash-triple.c (STREQ): Likewise.
19954         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
19955         * lib/getugroups.c (STREQ): Likewise.
19956
19957 2010-01-23  Jim Meyering  <meyering@redhat.com>
19958
19959         maint.mk: fix syntax-check in a non-srcdir build directory
19960         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
19961         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
19962
19963 2010-01-22  Jim Meyering  <meyering@redhat.com>
19964
19965         userspec: add unit tests
19966         * tests/test-userspec.c: New file.
19967         * modules/userspec-tests: Likewise.
19968
19969 2010-01-21  Jim Meyering  <meyering@redhat.com>
19970
19971         maint.mk: handle source file names containing "." robustly
19972         * top/maint.mk (_dot_escaped_srcdir): Define.
19973         (VC_LIST): Use it in LHS of sed substitution.
19974
19975 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
19976
19977         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
19978         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
19979         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
19980         from a non-srcdir build.
19981
19982 2010-01-20  Eric Blake  <ebb9@byu.net>
19983
19984         warn-on-use: use instead of link-warning
19985         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
19986         * modules/unistd (Depends-on, Makefile.am): Likewise.
19987         * modules/arpa_inet (Depends-on): Replace link-warning with
19988         warn-on-use.
19989         (Makefile.am): Update rules accordingly.
19990         * modules/ctype (Depends-on, Makefile.am): Likewise.
19991         * modules/dirent (Depends-on, Makefile.am): Likewise.
19992         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
19993         * modules/inttypes (Depends-on, Makefile.am): Likewise.
19994         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19995         * modules/locale (Depends-on, Makefile.am): Likewise.
19996         * modules/math (Depends-on, Makefile.am): Likewise.
19997         * modules/search (Depends-on, Makefile.am): Likewise.
19998         * modules/signal (Depends-on, Makefile.am): Likewise.
19999         * modules/spawn (Depends-on, Makefile.am): Likewise.
20000         * modules/stdlib (Depends-on, Makefile.am): Likewise.
20001         * modules/string (Depends-on, Makefile.am): Likewise.
20002         * modules/strings (Depends-on, Makefile.am): Likewise.
20003         * modules/sys_file (Depends-on, Makefile.am): Likewise.
20004         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
20005         * modules/sys_select (Depends-on, Makefile.am): Likewise.
20006         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
20007         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
20008         * modules/sys_times (Depends-on, Makefile.am): Likewise.
20009         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20010         * modules/wchar (Depends-on, Makefile.am): Likewise.
20011         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
20012         should be poisoned.
20013         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
20014         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
20015         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
20016         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20017         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20018         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20019         * m4/math_h.m4 (gl_MATH_H): Likewise.
20020         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20021         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
20022         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20023         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20024         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20025         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
20026         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
20027         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
20028         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20029         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20030         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20031         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
20032         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20033         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20034         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20035         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20036         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
20037         GL_LINK_WARNING.
20038         * lib/ctype.in.h: Likewise.
20039         * lib/dirent.in.h: Likewise.
20040         * lib/fcntl.in.h: Likewise.
20041         * lib/inttypes.in.h: Likewise.
20042         * lib/langinfo.in.h: Likewise.
20043         * lib/locale.in.h: Likewise.
20044         * lib/math.in.h: Likewise.
20045         * lib/search.in.h: Likewise.
20046         * lib/signal.in.h: Likewise.
20047         * lib/spawn.in.h: Likewise.
20048         * lib/stdio.in.h: Likewise.
20049         * lib/stdlib.in.h: Likewise.
20050         * lib/string.in.h: Likewise.
20051         * lib/strings.in.h: Likewise.
20052         * lib/sys_file.in.h: Likewise.
20053         * lib/sys_ioctl.in.h: Likewise.
20054         * lib/sys_select.in.h: Likewise.
20055         * lib/sys_socket.in.h: Likewise.
20056         * lib/sys_stat.in.h: Likewise.
20057         * lib/sys_times.in.h: Likewise.
20058         * lib/sys_utsname.in.h: Likewise.
20059         * lib/unistd.in.h: Likewise.
20060         * lib/wchar.in.h: Likewise.
20061
20062 2010-01-20  Bruno Haible  <bruno@clisp.org>
20063
20064         Avoid duplicate -lm.
20065         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
20066         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
20067         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
20068         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
20069         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
20070         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
20071         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
20072         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
20073         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
20074         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
20075         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
20076         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20077         Reported by Paolo Bonzini.
20078
20079 2010-01-19  Bruno Haible  <bruno@clisp.org>
20080
20081         langinfo, nl_langinfo: Relicense under LGPLv2+.
20082         * modules/langinfo (License): Change to LGPLv2+.
20083         * modules/nl_langinfo (License): Likewise.
20084         Patch by David Lutterkort <lutter@redhat.com>.
20085
20086 2010-01-19  Bruno Haible  <bruno@clisp.org>
20087
20088         Avoid compilation error with cc on OSF/1 5.1.
20089         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
20090         statement, not before.
20091         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20092
20093 2010-01-18  Bruno Haible  <bruno@clisp.org>
20094
20095         Avoid a link error due to the __printf__ symbol.
20096         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
20097         and 2.6.x.
20098         (__format__, __printf__): Remove definitions.
20099         * lib/argp-fmtstream.h: Likewise.
20100         * lib/argp.h: Likewise.
20101         * lib/error.h: Likewise.
20102         * lib/vasnprintf.h: Likewise.
20103         * lib/xprintf.h: Likewise.
20104         * lib/xvasprintf.h: Likewise.
20105         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20106
20107 2010-01-18  Bruno Haible  <bruno@clisp.org>
20108
20109         Tests for module 'tanl'.
20110         * modules/tanl-tests: New file.
20111         * tests/test-tanl.c: New file.
20112
20113         Tests for module 'sqrtl'.
20114         * modules/sqrtl-tests: New file.
20115         * tests/test-sqrtl.c: New file.
20116
20117         Tests for module 'sinl'.
20118         * modules/sinl-tests: New file.
20119         * tests/test-sinl.c: New file.
20120
20121         Tests for module 'logl'.
20122         * modules/logl-tests: New file.
20123         * tests/test-logl.c: New file.
20124
20125         Tests for module 'expl'.
20126         * modules/expl-tests: New file.
20127         * tests/test-expl.c: New file.
20128
20129         Tests for module 'cosl'.
20130         * modules/cosl-tests: New file.
20131         * tests/test-cosl.c: New file.
20132
20133         Tests for module 'atanl'.
20134         * modules/atanl-tests: New file.
20135         * tests/test-atanl.c: New file.
20136
20137         Tests for module 'asinl'.
20138         * modules/asinl-tests: New file.
20139         * tests/test-asinl.c: New file.
20140
20141         Tests for module 'acosl'.
20142         * modules/acosl-tests: New file.
20143         * tests/test-acosl.c: New file.
20144
20145         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20146         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20147         tanl): Use the standard gnulib idiom.
20148         * lib/cosl.c: Don't include trigl.c and sincosl.c.
20149         * lib/sinl.c: Likewise.
20150         * lib/tanl.c: Don't include trigl.c.
20151         (kernel_tanl): Make static.
20152         * lib/sincosl.c: Include trigl.h first.
20153         * lib/trigl.c: Likewise.
20154         * m4/acosl.m4: New file.
20155         * m4/asinl.m4: New file.
20156         * m4/atanl.m4: New file.
20157         * m4/cosl.m4: New file.
20158         * m4/expl.m4: New file.
20159         * m4/logl.m4: New file.
20160         * m4/sinl.m4: New file.
20161         * m4/sqrtl.m4: New file.
20162         * m4/tanl.m4: New file.
20163         * m4/mathl.m4: Remove file.
20164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
20165         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20166         Don't initialize GNULIB_MATHL.
20167         * modules/acosl: New file.
20168         * modules/asinl: New file.
20169         * modules/atanl: New file.
20170         * modules/cosl: New file.
20171         * modules/expl: New file.
20172         * modules/logl: New file.
20173         * modules/sinl: New file.
20174         * modules/sqrtl: New file.
20175         * modules/tanl: New file.
20176         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
20177         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
20178         substitute GNULIB_MATHL.
20179         * modules/mathl: Rewritten.
20180         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
20181         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
20182         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
20183         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
20184         * doc/posix-functions/expl.texi: Mention the 'expl' module.
20185         * doc/posix-functions/logl.texi: Mention the 'logl' module.
20186         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
20187         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
20188         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
20189
20190 2010-01-18  Bruno Haible  <bruno@clisp.org>
20191
20192         sqrt: Make gl_FUNC_SQRT requirable.
20193         * m4/sqrt.m4: New file.
20194         * modules/sqrt (Files): Add it.
20195         (configure.ac): Invoke gl_FUNC_SQRT.
20196
20197 2010-01-18  Bruno Haible  <bruno@clisp.org>
20198
20199         New modules for common <math.h> functions.
20200         * m4/mathfunc.m4: New file.
20201         * modules/acos: New file.
20202         * modules/asin: New file.
20203         * modules/atan: New file.
20204         * modules/atan2: New file.
20205         * modules/cbrt: New file.
20206         * modules/copysign: New file.
20207         * modules/cos: New file.
20208         * modules/cosh: New file.
20209         * modules/erf: New file.
20210         * modules/erfc: New file.
20211         * modules/exp: New file.
20212         * modules/fabs: New file.
20213         * modules/fmod: New file.
20214         * modules/hypot: New file.
20215         * modules/j0: New file.
20216         * modules/j1: New file.
20217         * modules/jn: New file.
20218         * modules/ldexp: New file.
20219         * modules/lgamma: New file.
20220         * modules/log: New file.
20221         * modules/log10: New file.
20222         * modules/log1p: New file.
20223         * modules/logb: New file.
20224         * modules/modf: New file.
20225         * modules/nextafter: New file.
20226         * modules/pow: New file.
20227         * modules/remainder: New file.
20228         * modules/rint: New file.
20229         * modules/sin: New file.
20230         * modules/sinh: New file.
20231         * modules/sqrt: New file.
20232         * modules/tan: New file.
20233         * modules/tanh: New file.
20234         * modules/y0: New file.
20235         * modules/y1: New file.
20236         * modules/yn: New file.
20237         * doc/posix-functions/acos.texi: Mention the 'acos' module.
20238         * doc/posix-functions/asin.texi: Mention the 'asin' module.
20239         * doc/posix-functions/atan.texi: Mention the 'atan' module.
20240         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
20241         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
20242         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
20243         * doc/posix-functions/cos.texi: Mention the 'cos' module.
20244         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
20245         * doc/posix-functions/erf.texi: Mention the 'erf' module.
20246         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
20247         * doc/posix-functions/exp.texi: Mention the 'exp' module.
20248         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
20249         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
20250         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
20251         * doc/posix-functions/j0.texi: Mention the 'j0' module.
20252         * doc/posix-functions/j1.texi: Mention the 'j1' module.
20253         * doc/posix-functions/jn.texi: Mention the 'jn' module.
20254         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
20255         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
20256         * doc/posix-functions/log.texi: Mention the 'log' module.
20257         * doc/posix-functions/log10.texi: Mention the 'log10' module.
20258         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
20259         * doc/posix-functions/logb.texi: Mention the 'logb' module.
20260         * doc/posix-functions/modf.texi: Mention the 'modf' module.
20261         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
20262         * doc/posix-functions/pow.texi: Mention the 'pow' module.
20263         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
20264         * doc/posix-functions/rint.texi: Mention the 'rint' module.
20265         * doc/posix-functions/sin.texi: Mention the 'sin' module.
20266         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
20267         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
20268         * doc/posix-functions/tan.texi: Mention the 'tan' module.
20269         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
20270         * doc/posix-functions/y0.texi: Mention the 'y0' module.
20271         * doc/posix-functions/y1.texi: Mention the 'y1' module.
20272         * doc/posix-functions/yn.texi: Mention the 'yn' module.
20273
20274 2010-01-18  Jim Meyering  <meyering@redhat.com>
20275
20276         ignore-value: relax license to LGPLv2+
20277         * modules/ignore-value (License): Relax to LGPLv2+.
20278
20279         getdate: don't leak when TZ contains two or more '"'s
20280         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
20281         double quote in TZ after the first one.
20282
20283         readtokens: do not leak internal token_lengths buffer
20284         * lib/readtokens.c (readtokens): Free the local, lengths,
20285         when the supplied "token_lengths" parameter is NULL.
20286
20287 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20288
20289         Fix a couple of missing LIBTHREAD link failures on AIX.
20290         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
20291         $(LIBTHREAD).
20292         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
20293
20294         Link test-poll against INET_PTON_LIB.
20295         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
20296         for inet_pton on Solaris 10.
20297
20298 2010-01-17  Bruno Haible  <bruno@clisp.org>
20299
20300         unistdio/*-sprintf: Fix typo in module description.
20301         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
20302         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
20303         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
20304         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
20305         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
20306         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
20307         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
20308         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20309
20310 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20311
20312         gnulib-tool: fix filelist for AIX, HP-UX ksh.
20313         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
20314         variables in shell case patterns, for AIX and HP-UX ksh.
20315
20316         Split large sed scripts, for HP-UX sed.
20317         * modules/stdio: Split sed scripts around 50 sed commands,
20318         to avoid HP-UX limit of 99 commands, in the near future.
20319         * modules/string: Likewise.
20320         * modules/unistd: Likewise.
20321
20322         gnulib-tool: avoid writing in the current directory.
20323         * gnulib-tool (func_emit_lib_Makefile_am)
20324         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
20325         not in the current directory, so concurrent gnulib-tool
20326         instances do not interfere.
20327
20328 2010-01-16  Jim Meyering  <meyering@redhat.com>
20329
20330         doc: update users.txt
20331         * users.txt: Add grep.
20332         (diffutils, gzip): Update URLs.
20333
20334 2010-01-12  Bruno Haible  <bruno@clisp.org>
20335
20336         posix_spawn: Avoid test failure on Cygwin.
20337         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
20338         characters.
20339         Reported by Simon Josefsson.
20340
20341 2010-01-12  Bruno Haible  <bruno@clisp.org>
20342
20343         * tests/test-cond.c (main): When skipping the test, show the reason.
20344
20345 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20346
20347         * lib/striconv.c (str_cd_iconv): Avoid if before free.
20348
20349 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20350
20351         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
20352         VC_LIST_ALWAYS_EXCLUDE_REGEX.
20353
20354 2010-01-12  Eric Blake  <ebb9@byu.net>
20355
20356         build: guarantee AS_VAR_IF
20357         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
20358         (gl_AS_VAR_IF): Move...
20359         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
20360         Reported by Simon Josefsson.
20361
20362 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20363
20364         * lib/stdio.in.h: Fix typo.
20365
20366 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20367
20368         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
20369         libgpg-error.
20370
20371 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20372
20373         * tests/test-xalloc-die.sh: Use $EXEEXT.
20374
20375 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20376             Bruno Haible  <bruno@clisp.org>
20377
20378         getlogin, getlogin_r: Avoid test failure.
20379         * tests/test-getlogin.c: Include <stdio.h>.
20380         (main): Skip the test when the function fails because stdin is not a
20381         tty.
20382         * tests/test-getlogin_r.c: Include <stdio.h>.
20383         (main): Skip the test when the function fails because stdin is not a
20384         tty.
20385
20386 2010-01-11  Eric Blake  <ebb9@byu.net>
20387
20388         tests: avoid more large file warnings
20389         * tests/test-fflush.c: Avoid warning about ftell use.
20390         * tests/test-fseek.c: Avoid warning about fseek use.
20391
20392 2010-01-10  Bruno Haible  <bruno@clisp.org>
20393
20394         nproc: Work better on Linux when /proc and /sys are not mounted.
20395         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
20396         as lower bound when, on glibc/Linux systems,
20397         sysconf (_SC_NPROCESSORS_CONF) returns 1.
20398         Suggested by Pádraig Brady <P@draigbrady.com>.
20399         Reported by Dmitry V. Levin <ldv@altlinux.org>.
20400
20401         nproc: Refactor.
20402         * lib/nproc.c (num_processors_via_affinity_mask): New function,
20403         extracted from num_processors.
20404         (num_processors): Call it.
20405
20406 2010-01-11  Jim Meyering  <meyering@redhat.com>
20407
20408         utimecmp: avoid new warning from upcoming gcc-4.5.0
20409         * lib/utimecmp.c (BILLION): Define using #define rather than an
20410         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
20411
20412 2010-01-11  Eric Blake  <ebb9@byu.net>
20413
20414         math: add portability warnings for classification macros
20415         * modules/math (Depends-on): Add warn-on-use.
20416         (Makefile.am): Provide new substitutions.
20417         * m4/math_h.m4 (gl_MATH_H): Require inline.
20418         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
20419         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
20420         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
20421         implement warnings.
20422
20423         unistd: warn on use of environ without module
20424         * modules/unistd (Depends-on): Add warn-on-use.
20425         (Makefile.am): Provide new substitutions.
20426         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
20427         * lib/unistd.in.h (environ): Wrap with a warning helper function.
20428
20429         stdio: warn on suspicious uses
20430         * modules/stdio (Depends-on): Add warn-on-use.
20431         (Makefile.am): Provide new substitutions.
20432         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
20433         fseeko.
20434         * lib/stdio.in.h (gets): Always warn on use.
20435         (fseek, ftell): Adjust when warnings are issued, and honor
20436         _GL_NO_LARGE_FILES as a way to silence the warning.
20437         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
20438         any warning about large file offsets.
20439         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
20440         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
20441         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
20442         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
20443         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
20444         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
20445         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
20446         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
20447
20448         warn-on-use: new module
20449         * modules/warn-on-use: New file.
20450         * build-aux/warn-on-use.h: Likewise.
20451         * m4/warn-on-use.m4: Likewise.
20452         * MODULES.html.sh (Support for building): Mention it.
20453
20454 2010-01-10  Bruno Haible  <bruno@clisp.org>
20455
20456         Tests for module 'unistr/u32-strdup'.
20457         * modules/unistr/u32-strdup-tests: New file.
20458         * tests/unistr/test-u32-strdup.c: New file.
20459
20460         Tests for module 'unistr/u16-strdup'.
20461         * modules/unistr/u16-strdup-tests: New file.
20462         * tests/unistr/test-u16-strdup.c: New file.
20463
20464         Tests for module 'unistr/u8-strdup'.
20465         * modules/unistr/u8-strdup-tests: New file.
20466         * tests/unistr/test-u8-strdup.c: New file.
20467         * tests/unistr/test-strdup.h: New file.
20468
20469         Tests for module 'unistr/u32-strncmp'.
20470         * modules/unistr/u32-strncmp-tests: New file.
20471         * tests/unistr/test-u32-strncmp.c: New file.
20472
20473         Tests for module 'unistr/u16-strncmp'.
20474         * modules/unistr/u16-strncmp-tests: New file.
20475         * tests/unistr/test-u16-strncmp.c: New file.
20476
20477         Tests for module 'unistr/u8-strncmp'.
20478         * modules/unistr/u8-strncmp-tests: New file.
20479         * tests/unistr/test-u8-strncmp.c: New file.
20480         * tests/unistr/test-strncmp.h: New file.
20481
20482         Tests for module 'unistr/u32-strcoll'.
20483         * modules/unistr/u32-strcoll-tests: New file.
20484         * tests/unistr/test-u32-strcoll.c: New file.
20485
20486         Tests for module 'unistr/u16-strcoll'.
20487         * modules/unistr/u16-strcoll-tests: New file.
20488         * tests/unistr/test-u16-strcoll.c: New file.
20489
20490         Tests for module 'unistr/u8-strcoll'.
20491         * modules/unistr/u8-strcoll-tests: New file.
20492         * tests/unistr/test-u8-strcoll.c: New file.
20493
20494         Tests for module 'unistr/u32-strcmp'.
20495         * modules/unistr/u32-strcmp-tests: New file.
20496         * tests/unistr/test-u32-strcmp.c: New file.
20497         * tests/unistr/test-u32-strcmp.h: New file.
20498
20499         Tests for module 'unistr/u16-strcmp'.
20500         * modules/unistr/u16-strcmp-tests: New file.
20501         * tests/unistr/test-u16-strcmp.c: New file.
20502         * tests/unistr/test-u16-strcmp.h: New file.
20503
20504         Tests for module 'unistr/u8-strcmp'.
20505         * modules/unistr/u8-strcmp-tests: New file.
20506         * tests/unistr/test-u8-strcmp.c: New file.
20507         * tests/unistr/test-u8-strcmp.h: New file.
20508         * tests/unistr/test-strcmp.h: New file.
20509
20510         Tests for module 'unistr/u32-strncat'.
20511         * modules/unistr/u32-strncat-tests: New file.
20512         * tests/unistr/test-u32-strncat.c: New file.
20513
20514         Tests for module 'unistr/u16-strncat'.
20515         * modules/unistr/u16-strncat-tests: New file.
20516         * tests/unistr/test-u16-strncat.c: New file.
20517
20518         Tests for module 'unistr/u8-strncat'.
20519         * modules/unistr/u8-strncat-tests: New file.
20520         * tests/unistr/test-u8-strncat.c: New file.
20521         * tests/unistr/test-strncat.h: New file.
20522
20523         Tests for module 'unistr/u32-strcat'.
20524         * modules/unistr/u32-strcat-tests: New file.
20525         * tests/unistr/test-u32-strcat.c: New file.
20526
20527         Tests for module 'unistr/u16-strcat'.
20528         * modules/unistr/u16-strcat-tests: New file.
20529         * tests/unistr/test-u16-strcat.c: New file.
20530
20531         Tests for module 'unistr/u8-strcat'.
20532         * modules/unistr/u8-strcat-tests: New file.
20533         * tests/unistr/test-u8-strcat.c: New file.
20534         * tests/unistr/test-strcat.h: New file.
20535
20536         Tests for module 'unistr/u32-stpncpy'.
20537         * modules/unistr/u32-stpncpy-tests: New file.
20538         * tests/unistr/test-u32-stpncpy.c: New file.
20539
20540         Tests for module 'unistr/u16-stpncpy'.
20541         * modules/unistr/u16-stpncpy-tests: New file.
20542         * tests/unistr/test-u16-stpncpy.c: New file.
20543
20544         Tests for module 'unistr/u8-stpncpy'.
20545         * modules/unistr/u8-stpncpy-tests: New file.
20546         * tests/unistr/test-u8-stpncpy.c: New file.
20547         * tests/unistr/test-stpncpy.h: New file.
20548
20549         Tests for module 'unistr/u32-strncpy'.
20550         * modules/unistr/u32-strncpy-tests: New file.
20551         * tests/unistr/test-u32-strncpy.c: New file.
20552
20553         Tests for module 'unistr/u16-strncpy'.
20554         * modules/unistr/u16-strncpy-tests: New file.
20555         * tests/unistr/test-u16-strncpy.c: New file.
20556
20557         Tests for module 'unistr/u8-strncpy'.
20558         * modules/unistr/u8-strncpy-tests: New file.
20559         * tests/unistr/test-u8-strncpy.c: New file.
20560         * tests/unistr/test-strncpy.h: New file.
20561
20562         Tests for module 'unistr/u32-stpcpy'.
20563         * modules/unistr/u32-stpcpy-tests: New file.
20564         * tests/unistr/test-u32-stpcpy.c: New file.
20565
20566         Tests for module 'unistr/u16-stpcpy'.
20567         * modules/unistr/u16-stpcpy-tests: New file.
20568         * tests/unistr/test-u16-stpcpy.c: New file.
20569
20570         Tests for module 'unistr/u8-stpcpy'.
20571         * modules/unistr/u8-stpcpy-tests: New file.
20572         * tests/unistr/test-u8-stpcpy.c: New file.
20573         * tests/unistr/test-stpcpy.h: New file.
20574
20575         Tests for module 'unistr/u32-strcpy'.
20576         * modules/unistr/u32-strcpy-tests: New file.
20577         * tests/unistr/test-u32-strcpy.c: New file.
20578
20579         Tests for module 'unistr/u16-strcpy'.
20580         * modules/unistr/u16-strcpy-tests: New file.
20581         * tests/unistr/test-u16-strcpy.c: New file.
20582
20583         Tests for module 'unistr/u8-strcpy'.
20584         * modules/unistr/u8-strcpy-tests: New file.
20585         * tests/unistr/test-u8-strcpy.c: New file.
20586         * tests/unistr/test-strcpy.h: New file.
20587
20588         Tests for module 'unistr/u32-strnlen'.
20589         * modules/unistr/u32-strnlen-tests: New file.
20590         * tests/unistr/test-u32-strnlen.c: New file.
20591
20592         Tests for module 'unistr/u16-strnlen'.
20593         * modules/unistr/u16-strnlen-tests: New file.
20594         * tests/unistr/test-u16-strnlen.c: New file.
20595
20596         Tests for module 'unistr/u8-strnlen'.
20597         * modules/unistr/u8-strnlen-tests: New file.
20598         * tests/unistr/test-u8-strnlen.c: New file.
20599         * tests/unistr/test-strnlen.h: New file.
20600
20601         Tests for module 'unistr/u32-strlen'.
20602         * modules/unistr/u32-strlen-tests: New file.
20603         * tests/unistr/test-u32-strlen.c: New file.
20604
20605         Tests for module 'unistr/u16-strlen'.
20606         * modules/unistr/u16-strlen-tests: New file.
20607         * tests/unistr/test-u16-strlen.c: New file.
20608
20609         Tests for module 'unistr/u8-strlen'.
20610         * modules/unistr/u8-strlen-tests: New file.
20611         * tests/unistr/test-u8-strlen.c: New file.
20612
20613         Tests for module 'unistr/u32-prev'.
20614         * modules/unistr/u32-prev-tests: New file.
20615         * tests/unistr/test-u32-prev.c: New file.
20616
20617         Tests for module 'unistr/u16-prev'.
20618         * modules/unistr/u16-prev-tests: New file.
20619         * tests/unistr/test-u16-prev.c: New file.
20620
20621         Tests for module 'unistr/u8-prev'.
20622         * modules/unistr/u8-prev-tests: New file.
20623         * tests/unistr/test-u8-prev.c: New file.
20624
20625         Tests for module 'unistr/u32-next'.
20626         * modules/unistr/u32-next-tests: New file.
20627         * tests/unistr/test-u32-next.c: New file.
20628
20629         Tests for module 'unistr/u16-next'.
20630         * modules/unistr/u16-next-tests: New file.
20631         * tests/unistr/test-u16-next.c: New file.
20632
20633         Tests for module 'unistr/u8-next'.
20634         * modules/unistr/u8-next-tests: New file.
20635         * tests/unistr/test-u8-next.c: New file.
20636
20637         Tests for module 'unistr/u32-strmbtouc'.
20638         * modules/unistr/u32-strmbtouc-tests: New file.
20639         * tests/unistr/test-u32-strmbtouc.c: New file.
20640
20641         Tests for module 'unistr/u16-strmbtouc'.
20642         * modules/unistr/u16-strmbtouc-tests: New file.
20643         * tests/unistr/test-u16-strmbtouc.c: New file.
20644
20645         Tests for module 'unistr/u8-strmbtouc'.
20646         * modules/unistr/u8-strmbtouc-tests: New file.
20647         * tests/unistr/test-u8-strmbtouc.c: New file.
20648
20649         Tests for module 'unistr/u32-strmblen'.
20650         * modules/unistr/u32-strmblen-tests: New file.
20651         * tests/unistr/test-u32-strmblen.c: New file.
20652
20653         Tests for module 'unistr/u16-strmblen'.
20654         * modules/unistr/u16-strmblen-tests: New file.
20655         * tests/unistr/test-u16-strmblen.c: New file.
20656
20657         Tests for module 'unistr/u8-strmblen'.
20658         * modules/unistr/u8-strmblen-tests: New file.
20659         * tests/unistr/test-u8-strmblen.c: New file.
20660
20661         Tests for module 'unistr/u32-cpy-alloc'.
20662         * modules/unistr/u32-cpy-alloc-tests: New file.
20663         * tests/unistr/test-u32-cpy-alloc.c: New file.
20664
20665         Tests for module 'unistr/u16-cpy-alloc'.
20666         * modules/unistr/u16-cpy-alloc-tests: New file.
20667         * tests/unistr/test-u16-cpy-alloc.c: New file.
20668
20669         Tests for module 'unistr/u8-cpy-alloc'.
20670         * modules/unistr/u8-cpy-alloc-tests: New file.
20671         * tests/unistr/test-u8-cpy-alloc.c: New file.
20672         * tests/unistr/test-cpy-alloc.h: New file.
20673
20674         Tests for module 'unistr/u32-mbsnlen'.
20675         * modules/unistr/u32-mbsnlen-tests: New file.
20676         * tests/unistr/test-u32-mbsnlen.c: New file.
20677
20678         Tests for module 'unistr/u16-mbsnlen'.
20679         * modules/unistr/u16-mbsnlen-tests: New file.
20680         * tests/unistr/test-u16-mbsnlen.c: New file.
20681
20682         Tests for module 'unistr/u8-mbsnlen'.
20683         * modules/unistr/u8-mbsnlen-tests: New file.
20684         * tests/unistr/test-u8-mbsnlen.c: New file.
20685
20686         Tests for module 'unistr/u32-chr'.
20687         * modules/unistr/u32-chr-tests: New file.
20688         * tests/unistr/test-u32-chr.c: New file.
20689
20690         Tests for module 'unistr/u16-chr'.
20691         * modules/unistr/u16-chr-tests: New file.
20692         * tests/unistr/test-u16-chr.c: New file.
20693
20694         Tests for module 'unistr/u8-chr'.
20695         * modules/unistr/u8-chr-tests: New file.
20696         * tests/unistr/test-u8-chr.c: New file.
20697         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
20698
20699         Tests for module 'unistr/u32-cmp2'.
20700         * modules/unistr/u32-cmp2-tests: New file.
20701         * tests/unistr/test-u32-cmp2.c: New file.
20702
20703         Tests for module 'unistr/u16-cmp2'.
20704         * modules/unistr/u16-cmp2-tests: New file.
20705         * tests/unistr/test-u16-cmp2.c: New file.
20706
20707         Tests for module 'unistr/u8-cmp2'.
20708         * modules/unistr/u8-cmp2-tests: New file.
20709         * tests/unistr/test-u8-cmp2.c: New file.
20710         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
20711
20712         Tests for module 'unistr/u32-cmp'.
20713         * modules/unistr/u32-cmp-tests: New file.
20714         * tests/unistr/test-u32-cmp.c: New file.
20715
20716         Tests for module 'unistr/u16-cmp'.
20717         * modules/unistr/u16-cmp-tests: New file.
20718         * tests/unistr/test-u16-cmp.c: New file.
20719
20720         Tests for module 'unistr/u8-cmp'.
20721         * modules/unistr/u8-cmp-tests: New file.
20722         * tests/unistr/test-u8-cmp.c: New file.
20723         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
20724
20725         Tests for module 'unistr/u32-set'.
20726         * modules/unistr/u32-set-tests: New file.
20727         * tests/unistr/test-u32-set.c: New file.
20728
20729         Tests for module 'unistr/u16-set'.
20730         * modules/unistr/u16-set-tests: New file.
20731         * tests/unistr/test-u16-set.c: New file.
20732
20733         Tests for module 'unistr/u8-set'.
20734         * modules/unistr/u8-set-tests: New file.
20735         * tests/unistr/test-u8-set.c: New file.
20736         * tests/unistr/test-set.h: New file.
20737
20738         Tests for module 'unistr/u32-move'.
20739         * modules/unistr/u32-move-tests: New file.
20740         * tests/unistr/test-u32-move.c: New file.
20741
20742         Tests for module 'unistr/u16-move'.
20743         * modules/unistr/u16-move-tests: New file.
20744         * tests/unistr/test-u16-move.c: New file.
20745
20746         Tests for module 'unistr/u8-move'.
20747         * modules/unistr/u8-move-tests: New file.
20748         * tests/unistr/test-u8-move.c: New file.
20749         * tests/unistr/test-move.h: New file.
20750
20751         Tests for module 'unistr/u32-cpy'.
20752         * modules/unistr/u32-cpy-tests: New file.
20753         * tests/unistr/test-u32-cpy.c: New file.
20754
20755         Tests for module 'unistr/u16-cpy'.
20756         * modules/unistr/u16-cpy-tests: New file.
20757         * tests/unistr/test-u16-cpy.c: New file.
20758
20759         Tests for module 'unistr/u8-cpy'.
20760         * modules/unistr/u8-cpy-tests: New file.
20761         * tests/unistr/test-u8-cpy.c: New file.
20762         * tests/unistr/test-cpy.h: New file.
20763
20764 2010-01-09  Bruno Haible  <bruno@clisp.org>
20765
20766         Tests for module 'unistr/u32-uctomb'.
20767         * modules/unistr/u32-uctomb-tests: New file.
20768         * tests/unistr/test-u32-uctomb.c: New file.
20769
20770         Tests for module 'unistr/u16-uctomb'.
20771         * modules/unistr/u16-uctomb-tests: New file.
20772         * tests/unistr/test-u16-uctomb.c: New file.
20773
20774         Tests for module 'unistr/u8-uctomb'.
20775         * modules/unistr/u8-uctomb-tests: New file.
20776         * tests/unistr/test-u8-uctomb.c: New file.
20777
20778         Tests for module 'unistr/u32-mbtoucr'.
20779         * modules/unistr/u32-mbtoucr-tests: New file.
20780         * tests/unistr/test-u32-mbtoucr.c: New file.
20781
20782         Tests for module 'unistr/u16-mbtoucr'.
20783         * modules/unistr/u16-mbtoucr-tests: New file.
20784         * tests/unistr/test-u16-mbtoucr.c: New file.
20785
20786         Tests for module 'unistr/u8-mbtoucr'.
20787         * modules/unistr/u8-mbtoucr-tests: New file.
20788         * tests/unistr/test-u8-mbtoucr.c: New file.
20789
20790         Tests for module 'unistr/u32-mbtouc'.
20791         * modules/unistr/u32-mbtouc-tests: New file.
20792         * tests/unistr/test-u32-mbtouc.c: New file.
20793
20794         Tests for module 'unistr/u16-mbtouc'.
20795         * modules/unistr/u16-mbtouc-tests: New file.
20796         * tests/unistr/test-u16-mbtouc.c: New file.
20797
20798         Tests for module 'unistr/u8-mbtouc'.
20799         * modules/unistr/u8-mbtouc-tests: New file.
20800         * tests/unistr/test-u8-mbtouc.c: New file.
20801
20802         Tests for module 'unistr/u32-mbtouc-unsafe'.
20803         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
20804         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
20805         * tests/unistr/test-u32-mbtouc.h: New file.
20806
20807         Tests for module 'unistr/u16-mbtouc-unsafe'.
20808         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
20809         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
20810         * tests/unistr/test-u16-mbtouc.h: New file.
20811
20812         Tests for module 'unistr/u8-mbtouc-unsafe'.
20813         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
20814         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
20815         * tests/unistr/test-u8-mbtouc.h: New file.
20816
20817         Tests for module 'unistr/u32-mblen'.
20818         * modules/unistr/u32-mblen-tests: New file.
20819         * tests/unistr/test-u32-mblen.c: New file.
20820
20821         Tests for module 'unistr/u16-mblen'.
20822         * modules/unistr/u16-mblen-tests: New file.
20823         * tests/unistr/test-u16-mblen.c: New file.
20824
20825         Tests for module 'unistr/u8-mblen'.
20826         * modules/unistr/u8-mblen-tests: New file.
20827         * tests/unistr/test-u8-mblen.c: New file.
20828
20829         Tests for module 'unistr/u32-to-u16'.
20830         * modules/unistr/u32-to-u16-tests: New file.
20831         * tests/unistr/test-u32-to-u16.c: New file.
20832
20833         Tests for module 'unistr/u32-to-u8'.
20834         * modules/unistr/u32-to-u8-tests: New file.
20835         * tests/unistr/test-u32-to-u8.c: New file.
20836
20837         Tests for module 'unistr/u16-to-u32'.
20838         * modules/unistr/u16-to-u32-tests: New file.
20839         * tests/unistr/test-u16-to-u32.c: New file.
20840
20841         Tests for module 'unistr/u16-to-u8'.
20842         * modules/unistr/u16-to-u8-tests: New file.
20843         * tests/unistr/test-u16-to-u8.c: New file.
20844
20845         Tests for module 'unistr/u8-to-u32'.
20846         * modules/unistr/u8-to-u32-tests: New file.
20847         * tests/unistr/test-u8-to-u32.c: New file.
20848
20849         Tests for module 'unistr/u8-to-u16'.
20850         * modules/unistr/u8-to-u16-tests: New file.
20851         * tests/unistr/test-u8-to-u16.c: New file.
20852
20853         Tests for module 'unistr/u32-check'.
20854         * modules/unistr/u32-check-tests: New file.
20855         * tests/unistr/test-u32-check.c: New file.
20856
20857         Tests for module 'unistr/u16-check'.
20858         * modules/unistr/u16-check-tests: New file.
20859         * tests/unistr/test-u16-check.c: New file.
20860
20861         Tests for module 'unistr/u8-check'.
20862         * modules/unistr/u8-check-tests: New file.
20863         * tests/unistr/test-u8-check.c: New file.
20864
20865         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
20866         (category_equals): New function.
20867         (main): Add more tests.
20868         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
20869
20870         * tests/unictype/test-bidi_byname.c (main): Add more tests.
20871
20872 2010-01-10  Bruno Haible  <bruno@clisp.org>
20873
20874         unistr/u*-strcoll: Try harder to distinguish different strings.
20875         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
20876         compare s1 and s2 to see if they are different.
20877
20878 2010-01-10  Bruno Haible  <bruno@clisp.org>
20879
20880         unistr/u*-stpncpy: Fix the return value.
20881         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
20882         description of the return value consistent with stpncpy in glibc.
20883         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
20884         written non-NUL unit.
20885
20886 2010-01-10  Bruno Haible  <bruno@clisp.org>
20887
20888         unistr/u*-next: Add missing dependencies.
20889         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
20890         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
20891         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
20892
20893 2010-01-10  Bruno Haible  <bruno@clisp.org>
20894
20895         unistr/u8-mbsnlen: Fix return value for incomplete character.
20896         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
20897         u8_mblen.
20898         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
20899         Remove unistr/u8-mblen.
20900         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
20901         u16_mblen.
20902         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
20903         Remove unistr/u16-mblen.
20904
20905 2010-01-10  Bruno Haible  <bruno@clisp.org>
20906
20907         wchar: Fix compilation error when <wchar.h> is used from coreutils.
20908         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
20909         Reported by Brian Gough <bjg@gnu.org> and
20910         Chris Clayton <chris2553@googlemail.com> via
20911         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
20912
20913 2010-01-09  Bruno Haible  <bruno@clisp.org>
20914
20915         unistr/u16-to-u32: Reject invalid input.
20916         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
20917         u16_mbtouc.
20918         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
20919         Remove unistr/u16-mbtouc.
20920
20921         unistr/u16-to-u8: Reject invalid input.
20922         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
20923         u16_mbtouc.
20924         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
20925         Remove unistr/u16-mbtouc.
20926
20927         unistr/u8-to-u32: Reject invalid input.
20928         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
20929         u8_mbtouc.
20930         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
20931         Remove unistr/u8-mbtouc.
20932
20933         unistr/u8-to-u16: Reject invalid input.
20934         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
20935         u8_mbtouc.
20936         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
20937         Remove unistr/u8-mbtouc.
20938
20939 2010-01-09  Bruno Haible  <bruno@clisp.org>
20940
20941         Tests for module 'getlogin'.
20942         * modules/getlogin-tests: New file.
20943         * tests/test-getlogin.c: New file.
20944
20945         New module 'getlogin'.
20946         * lib/unistd.in.h (getlogin): New declaration.
20947         * lib/getlogin.c: New file.
20948         * m4/getlogin.m4: New file.
20949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
20950         HAVE_GETLOGIN.
20951         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
20952         HAVE_GETLOGIN.
20953         * modules/getlogin: New file.
20954         * doc/posix-functions/getlogin.texi: Mention the new module.
20955         Reported by John W. Eaton <jwe@gnu.org>.
20956
20957 2010-01-09  Bruno Haible  <bruno@clisp.org>
20958
20959         getlogin_r: Support for native Windows.
20960         * lib/getlogin_r.c: Include <windows.h>
20961         (getlogin_r): Implement for native Windows.
20962         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
20963         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
20964         via John W. Eaton <jwe@gnu.org>.
20965
20966 2010-01-09  Bruno Haible  <bruno@clisp.org>
20967
20968         getlogin_r: Small fixes.
20969         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
20970         succeeds.
20971         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
20972         before testing whether getlogin_r is declared. No need to set
20973         HAVE_DECL_GETLOGIN_R to 1.
20974         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
20975
20976 2010-01-09  Bruno Haible  <bruno@clisp.org>
20977
20978         * lib/unistd.in.h (getlogin_r): Add comment.
20979
20980 2010-01-09  Bruno Haible  <bruno@clisp.org>
20981
20982         Tests for module 'getlogin_r'.
20983         * modules/getlogin_r-tests: New file.
20984         * tests/test-getlogin_r.c: New file.
20985
20986 2010-01-09  Jim Meyering  <meyering@redhat.com>
20987
20988         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
20989         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
20990         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
20991
20992 2010-01-08  Simon Josefsson  <simon@josefsson.org>
20993
20994         * lib/dup2.c (rpl_dup2): Improve comment.
20995
20996 2010-01-08  Eric Blake  <ebb9@byu.net>
20997
20998         maint.mk: allow packages to add makefile @@ exceptions
20999         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
21000         (sc_makefile_check): Rename...
21001         (sc_makefile_at_at_check): ...to this, and use hook.
21002
21003         dup2: work around mingw bug
21004         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
21005         Reported by Simon Josefsson.
21006
21007 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
21008
21009         glob: Fix C++ compilation.
21010         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
21011         C++.
21012
21013 2010-01-07  Bruno Haible  <bruno@clisp.org>
21014
21015         Fix indentation of wctype.in.h, broken since 2007-01-06.
21016         * lib/wctype.in.h: Fix indentation of preprocessor directives.
21017
21018 2010-01-07  Bruno Haible  <bruno@clisp.org>
21019
21020         mbslen: Avoid collision with system function.
21021         * lib/string.in.h [MirBSD]: Include <wchar.h>.
21022         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
21023         * m4/mbslen.m4: New file.
21024         * modules/mbslen (Files): Add it.
21025         (configure.ac): Invoke gl_MBSLEN.
21026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
21027         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
21028         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
21029         via Ian Beckwith <ianb@erislabs.net>.
21030
21031 2010-01-07  Bruno Haible  <bruno@clisp.org>
21032
21033         dirent: Document the last fix.
21034         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
21035
21036 2010-01-07  Bruno Haible  <bruno@clisp.org>
21037
21038         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
21039         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
21040         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
21041         va_list are defined.
21042         * doc/posix-headers/stdio.texi: Document the bug of missing types.
21043         Reported by Eric Blake.
21044
21045 2010-01-07  Bruno Haible  <bruno@clisp.org>
21046
21047         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
21048         * modules/xlist (Depends-on): Add 'list',
21049         * modules/xoset (Depends-on): Add 'oset'.
21050         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21051
21052 2010-01-07  Bruno Haible  <bruno@clisp.org>
21053
21054         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
21055         * doc/posix-functions/strncasecmp.texi: Likewise.
21056
21057 2010-01-07  Bruno Haible  <bruno@clisp.org>
21058
21059         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
21060
21061 2010-01-07  John W. Eaton  <jwe@octave.org>
21062
21063         wctype: allow C++ use
21064         * lib/wctype.in.h: Add extern "C" block for C++.
21065
21066 2010-01-06  Eric Blake  <ebb9@byu.net>
21067
21068         maint.mk: detect incorrect GFDL usage
21069         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
21070
21071 2010-01-06  Jim Meyering  <meyering@redhat.com>
21072         and Eric Blake  <ebb9@byu.net>
21073
21074         maint.mk: ignore multi-line copyright in NEWS
21075         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
21076
21077 2010-01-06  Eric Blake  <ebb9@byu.net>
21078
21079         select: add missing dependency
21080         * modules/select-tests (Depends-on): Move sockets dependency...
21081         * modules/select (Depends-on): ...here.
21082         Reported by Ian Beckwith.
21083
21084         doc: regenerate INSTALL
21085         * doc/INSTALL: Reflect recent autoconf update.
21086         * doc/INSTALL.ISO: Likewise.
21087         * doc/INSTALL.UTF-8: Likewise.
21088
21089         pread: fix compilation on glibc
21090         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
21091         Reported by Ralf Wildenhues.
21092
21093         dirent: fix test failure
21094         * lib/dirent.in.h (includes): Guarantee ino_t.
21095         Reported by Ralf Wildenhues.
21096
21097 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
21098
21099         linkat, renameat: avoid bad free
21100         * lib/at-func2.c (at_func2): Fix typo.
21101         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
21102
21103 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21104
21105         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
21106         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
21107         to avoid failure of symlink test later.
21108
21109 2010-01-06  Eric Blake  <ebb9@byu.net>
21110
21111         stdio, unistd: guarantee ssize_t
21112         * lib/unistd.in.h (includes): Ensure that types required by POSIX
21113         2008 are exposed when needed.
21114         * lib/stdio.in.h (includes): Likewise.
21115         Reported by Ralf Wildenhues.
21116
21117 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
21118
21119         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
21120         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
21121         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
21122
21123 2010-01-06  Jim Meyering  <meyering@redhat.com>
21124
21125         readtokens: this module *does* require xalloc.h
21126         It uses only functions that were omitted by the old syntax-check rule.
21127         * lib/readtokens.c: Include "xalloc.h" once again.
21128         * modules/readtokens (Depends-on): Add xalloc.
21129         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
21130
21131 2010-01-05  Eric Blake  <ebb9@byu.net>
21132
21133         maint: support 'make announcement' from a VPATH build
21134         * top/maint.mk (announcement): Look for correct NEWS file.
21135
21136 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
21137
21138         utimens (fdutimens): ignore a negative FD, per contract
21139         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
21140         when we have a valid file descriptor.  Otherwise, using a brand
21141         new glibc (with just-patched futimens that now fails with EBADF)
21142         would cause this function to fail with ENOSYS.
21143         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
21144         See also http://bugzilla.redhat.com/552320.
21145
21146 2010-01-05  Eric Blake  <ebb9@byu.net>
21147
21148         strcase: document what it provides
21149         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
21150         gnulib module.
21151         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
21152         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
21153
21154 2010-01-05  Jim Meyering  <meyering@redhat.com>
21155
21156         maint: remove useless inclusions of "xalloc.h"
21157         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
21158         * lib/readtokens.c: Likewise.
21159         * lib/same.c: Likewise.
21160         * modules/getloadavg (Depends-on): Remove xalloc.
21161         * modules/readtokens: Likewise.
21162         * modules/same: Likewise.
21163
21164         maint.mk: include 4 more function names in alloca.h-checking regexp
21165         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
21166         regexp.  Before, we would give a false-positive (saying alloca.h
21167         is included unnecessarily) when the only uses involved omitted symbols.
21168
21169         xalloc.h: use consistent formatting
21170         * lib/xalloc.h: Move declarations to start in the first column.
21171
21172 2010-01-05  Eric Blake  <ebb9@byu.net>
21173
21174         mkdir: avoid xalloc
21175         * lib/mkdir.c (includes): Drop unused header.
21176         Reported by John W. Eaton.
21177
21178 2010-01-04  Jim Meyering  <meyering@redhat.com>
21179
21180         nl_langinfo: avoid configure-time syntax error
21181         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
21182         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
21183         the empty string.  Don't let that provoke a shell syntax error.
21184
21185         regcomp, regexec, fnmatch: avoid array bounds read error
21186         * lib/regcomp.c (build_equiv_class): From glibc:
21187         Use only the low 24 bits of a findidx return value as an index
21188         into the weights array.  Patch by Ulrich Drepper:
21189         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
21190         * lib/regexec.c (check_node_accept_bytes): Likewise.
21191         * lib/fnmatch_loop.c (FCT): Likewise.
21192
21193         regcomp: skip collseq lookup when there are no rules
21194         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
21195         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
21196
21197         regcomp: recognize ill-formed { } expressions
21198         * lib/regcomp.c (parse_dup_op): From glibc:
21199         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
21200
21201         regcomp: fix typo in comment
21202         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
21203         s/satisfy/satisfies/.
21204
21205         regcomp: sync from glibc: remove dead store
21206         * lib/regcomp.c (duplicate_node_closure): Remove useless
21207         search_duplicated_node call and dead store.
21208
21209         regcomp: sync from glibc; always use nl_langinfo
21210         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
21211         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
21212         * modules/regex (Depends-on): Add nl_langinfo.
21213
21214 2010-01-04  Eric Blake  <ebb9@byu.net>
21215
21216         fdopendir: fix configure test
21217         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
21218
21219 2010-01-01  Bruno Haible  <bruno@clisp.org>
21220
21221         wchar: Remove unused configure check.
21222         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
21223
21224 2010-01-01  Eric Blake  <ebb9@byu.net>
21225
21226         headers: make check of system header explicit
21227         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
21228         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
21229         ourselves.
21230         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21231         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21232         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21233         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
21234         internals.
21235         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
21236         missing.
21237         Suggested by Bruno Haible.
21238
21239 2010-01-01  Jim Meyering  <meyering@redhat.com>
21240
21241         ChangeLog: tweak to eliminate unnecessary copyright line
21242         * ChangeLog: Remove a copyright line that was mistakenly updated
21243         by today's update-copyright run.  Reported by Eric Blake.
21244
21245         test-update-copyright: don't let envvar setting cause test failure
21246         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21247
21248 2010-01-01  Bruno Haible  <bruno@clisp.org>
21249
21250         localename: Avoid gcc warning.
21251         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
21252         function if it is not used.
21253
21254 2010-01-01  Jim Meyering  <meyering@redhat.com>
21255
21256         update nearly all FSF copyright year lists to include 2010
21257         Use the same procedure as for 2009, outlined in
21258         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
21259
21260         version-etc: set COPYRIGHT_YEAR to 2010
21261         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
21262
21263 2009-12-31  Eric Blake  <ebb9@byu.net>
21264
21265         doc: correct availability of cygwin 1.5.x getopt
21266         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
21267         variables.
21268         * doc/posix-functions/opterr.texi (opterr): Likewise.
21269         * doc/posix-functions/optind.texi (optind): Likewise.
21270         * doc/posix-functions/optopt.texi (optopt): Likewise.
21271         * doc/posix-functions/tzname.texi (tzname): Likewise.
21272
21273         openat: update maintainer
21274         * modules/openat (Maintainer): Add myself.
21275
21276         utimens: avoid shadowing warning
21277         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
21278         buffers into one, to avoid shadowing, as well as avoiding a
21279         redundant stat.
21280         Reported by Jim Meyering.
21281
21282         test-dup2: avoid compiler warning
21283         * tests/test-dup2.c (is_inheritable): Only define if used.
21284
21285 2010-01-01  Bruno Haible  <bruno@clisp.org>
21286
21287         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
21288         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
21289         defined, use wctomb instead of wcrtomb.
21290
21291 2010-01-01  Bruno Haible  <bruno@clisp.org>
21292
21293         iconv: Reject native Solaris iconv.
21294         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
21295         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
21296
21297 2009-12-31  Bruno Haible  <bruno@clisp.org>
21298
21299         * tests/test-signal.c (main): Remove test of 'SIG'.
21300
21301 2009-12-31  Bruno Haible  <bruno@clisp.org>
21302
21303         spawn: Fix incomplete fix.
21304         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21305         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21306         warnings for GNULIB_POSIXCHECK again.
21307         Reported by Eric Blake.
21308
21309 2009-12-31  Bruno Haible  <bruno@clisp.org>
21310
21311         Avoid namespace pollution on glibc systems.
21312         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
21313         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
21314         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
21315         glibc systems.
21316
21317 2009-12-31  Bruno Haible  <bruno@clisp.org>
21318
21319         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
21320         (gl_REPLACE_WCHAR_H): Turn into a no-op.
21321         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
21322         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21323         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21324         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21325         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21326
21327 2009-12-31  Bruno Haible  <bruno@clisp.org>
21328
21329         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21330         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
21331         afterwards.
21332
21333 2009-12-31  Bruno Haible  <bruno@clisp.org>
21334
21335         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
21336         SYS_UTSNAME_H.
21337
21338 2009-12-31  Bruno Haible  <bruno@clisp.org>
21339
21340         spawn: Fix misapplied patch.
21341         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21342         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21343         warnings for GNULIB_POSIXCHECK.
21344
21345 2009-12-31  Bruno Haible  <bruno@clisp.org>
21346
21347         times: Update after sys_times changed.
21348         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
21349         * modules/times (Files): Add it.
21350         (configure.ac): Invoke gl_FUNC_TIMES.
21351
21352 2009-12-31  Bruno Haible  <bruno@clisp.org>
21353
21354         Use AC_C_INLINE where necessary.
21355         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
21356         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21357         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21358         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21359         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21360         * m4/mbiter.m4 (gl_MBITER): Likewise.
21361         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21362         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21363         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
21364         * modules/u64 (configure.ac): Likewise.
21365
21366 2009-12-31  Bruno Haible  <bruno@clisp.org>
21367
21368         Use AC_C_INLINE instead of module 'inline' where possible.
21369         * modules/inline (Description): Clarify purpose.
21370         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
21371         * modules/count-one-bits (Depends-on): Remove inline.
21372         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
21373         * modules/openat (Depends-on): Remove inline.
21374         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
21375         instead of depending on module 'inline'.
21376         * modules/filevercmp (Depends-on, configure.ac): Likewise.
21377         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
21378         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
21379         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
21380         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
21381         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
21382         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
21383         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
21384         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
21385         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
21386         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
21387         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
21388         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
21389         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
21390         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
21391         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
21392         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
21393         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
21394         Likewise.
21395         * modules/unictype/property-ascii-hex-digit (Depends-on,
21396         configure.ac): Likewise.
21397         * modules/unictype/property-bidi-arabic-digit (Depends-on,
21398         configure.ac): Likewise.
21399         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
21400         configure.ac): Likewise.
21401         * modules/unictype/property-bidi-block-separator (Depends-on,
21402         configure.ac): Likewise.
21403         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
21404         configure.ac): Likewise.
21405         * modules/unictype/property-bidi-common-separator (Depends-on,
21406         configure.ac): Likewise.
21407         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
21408         Likewise.
21409         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
21410         configure.ac): Likewise.
21411         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
21412         configure.ac): Likewise.
21413         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
21414         configure.ac): Likewise.
21415         * modules/unictype/property-bidi-european-digit (Depends-on,
21416         configure.ac): Likewise.
21417         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
21418         configure.ac): Likewise.
21419         * modules/unictype/property-bidi-left-to-right (Depends-on,
21420         configure.ac): Likewise.
21421         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
21422         configure.ac): Likewise.
21423         * modules/unictype/property-bidi-other-neutral (Depends-on,
21424         configure.ac): Likewise.
21425         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
21426         Likewise.
21427         * modules/unictype/property-bidi-segment-separator (Depends-on,
21428         configure.ac): Likewise.
21429         * modules/unictype/property-bidi-whitespace (Depends-on,
21430         configure.ac): Likewise.
21431         * modules/unictype/property-combining (Depends-on, configure.ac):
21432         Likewise.
21433         * modules/unictype/property-composite (Depends-on, configure.ac):
21434         Likewise.
21435         * modules/unictype/property-currency-symbol (Depends-on,
21436         configure.ac): Likewise.
21437         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
21438         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
21439         Likewise.
21440         * modules/unictype/property-default-ignorable-code-point (Depends-on,
21441         configure.ac): Likewise.
21442         * modules/unictype/property-deprecated (Depends-on, configure.ac):
21443         Likewise.
21444         * modules/unictype/property-diacritic (Depends-on, configure.ac):
21445         Likewise.
21446         * modules/unictype/property-extender (Depends-on, configure.ac):
21447         Likewise.
21448         * modules/unictype/property-format-control (Depends-on, configure.ac):
21449         Likewise.
21450         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
21451         Likewise.
21452         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
21453         Likewise.
21454         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
21455         Likewise.
21456         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
21457         Likewise.
21458         * modules/unictype/property-hyphen (Depends-on, configure.ac):
21459         Likewise.
21460         * modules/unictype/property-id-continue (Depends-on, configure.ac):
21461         Likewise.
21462         * modules/unictype/property-id-start (Depends-on, configure.ac):
21463         Likewise.
21464         * modules/unictype/property-ideographic (Depends-on, configure.ac):
21465         Likewise.
21466         * modules/unictype/property-ids-binary-operator (Depends-on,
21467         configure.ac): Likewise.
21468         * modules/unictype/property-ids-trinary-operator (Depends-on,
21469         configure.ac): Likewise.
21470         * modules/unictype/property-ignorable-control (Depends-on,
21471         configure.ac): Likewise.
21472         * modules/unictype/property-iso-control (Depends-on, configure.ac):
21473         Likewise.
21474         * modules/unictype/property-join-control (Depends-on, configure.ac):
21475         Likewise.
21476         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
21477         Likewise.
21478         * modules/unictype/property-line-separator (Depends-on, configure.ac):
21479         Likewise.
21480         * modules/unictype/property-logical-order-exception (Depends-on,
21481         configure.ac): Likewise.
21482         * modules/unictype/property-lowercase (Depends-on, configure.ac):
21483         Likewise.
21484         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
21485         * modules/unictype/property-non-break (Depends-on, configure.ac):
21486         Likewise.
21487         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
21488         Likewise.
21489         * modules/unictype/property-numeric (Depends-on, configure.ac):
21490         Likewise.
21491         * modules/unictype/property-other-alphabetic (Depends-on,
21492         configure.ac): Likewise.
21493         * modules/unictype/property-other-default-ignorable-code-point
21494         (Depends-on, configure.ac): Likewise.
21495         * modules/unictype/property-other-grapheme-extend (Depends-on,
21496         configure.ac): Likewise.
21497         * modules/unictype/property-other-id-continue (Depends-on,
21498         configure.ac): Likewise.
21499         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
21500         Likewise.
21501         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
21502         Likewise.
21503         * modules/unictype/property-other-math (Depends-on, configure.ac):
21504         Likewise.
21505         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
21506         Likewise.
21507         * modules/unictype/property-paired-punctuation (Depends-on,
21508         configure.ac): Likewise.
21509         * modules/unictype/property-paragraph-separator (Depends-on,
21510         configure.ac): Likewise.
21511         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
21512         Likewise.
21513         * modules/unictype/property-pattern-white-space (Depends-on,
21514         configure.ac): Likewise.
21515         * modules/unictype/property-private-use (Depends-on, configure.ac):
21516         Likewise.
21517         * modules/unictype/property-punctuation (Depends-on, configure.ac):
21518         Likewise.
21519         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
21520         Likewise.
21521         * modules/unictype/property-radical (Depends-on, configure.ac):
21522         Likewise.
21523         * modules/unictype/property-sentence-terminal (Depends-on,
21524         configure.ac): Likewise.
21525         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
21526         Likewise.
21527         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
21528         * modules/unictype/property-terminal-punctuation (Depends-on,
21529         configure.ac): Likewise.
21530         * modules/unictype/property-titlecase (Depends-on, configure.ac):
21531         Likewise.
21532         * modules/unictype/property-unassigned-code-value (Depends-on,
21533         configure.ac): Likewise.
21534         * modules/unictype/property-unified-ideograph (Depends-on,
21535         configure.ac): Likewise.
21536         * modules/unictype/property-uppercase (Depends-on, configure.ac):
21537         Likewise.
21538         * modules/unictype/property-variation-selector (Depends-on,
21539         configure.ac): Likewise.
21540         * modules/unictype/property-white-space (Depends-on, configure.ac):
21541         Likewise.
21542         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
21543         Likewise.
21544         * modules/unictype/property-xid-start (Depends-on, configure.ac):
21545         Likewise.
21546         * modules/unictype/property-zero-width (Depends-on, configure.ac):
21547         Likewise.
21548         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
21549         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
21550         Likewise.
21551
21552 2009-12-31  Bruno Haible  <bruno@clisp.org>
21553
21554         Remove unnecessary AC_C_INLINE invocation.
21555         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
21556         since 2009-08-21.
21557
21558 2009-12-31  Jim Meyering  <meyering@redhat.com>
21559
21560         maint.mk: don't require explicit gpg_key_ID in cfg.mk
21561         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
21562         With this change, we can all remove the gpg_key_ID = ... definition
21563         from our respective cfg.mk files.
21564
21565         maint.mk: create announcement template in ~/, not in /tmp
21566         * top/maint.mk (emit_upload_commands): Adjust.
21567         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
21568         Remove temporary file, .ci-msg.
21569
21570 2009-12-31  Eric Blake  <ebb9@byu.net>
21571
21572         link-warning: always build headers with link warnings
21573         * modules/arpa_inet (Makefile.am): Always build replacement
21574         header.
21575         * modules/ctype (Makefile.am): Likewise.
21576         * modules/dirent (Makefile.am): Likewise.
21577         * modules/inttypes (Makefile.am): Likewise.
21578         * modules/langinfo (Makefile.am): Likewise.
21579         * modules/locale (Makefile.am): Likewise.
21580         * modules/spawn (Makefile.am): Likewise.
21581         * modules/sys_file (Makefile.am): Likewise.
21582         * modules/sys_ioctl (Makefile.am): Likewise.
21583         * modules/sys_select (Makefile.am): Likewise.
21584         * modules/sys_socket (Makefile.am): Likewise.
21585         * modules/sys_times (Makefile.am): Likewise.
21586         * modules/sys_utsname (Makefile.am): Likewise.
21587         * modules/sys_wait (Makefile.am): Likewise.
21588         * modules/wchar (Makefile.am): Likewise.
21589         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
21590         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
21591         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
21592         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
21593         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
21594         Likewise.
21595         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21596         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21597         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
21598         Likewise.
21599         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
21600         Likewise.
21601         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21602         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
21603         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
21604         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21605         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21606         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21607         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21608         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
21609         (gl_WCHAR_H_DEFAULTS): Likewise.
21610
21611 2009-12-31  Eric Blake  <ebb9@byu.net>
21612
21613         signal, spawn: use link warnings
21614         * lib/signal.in.h (sigset_t): Make unconditional.
21615         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
21616         (sigpending, sigprocmask, sigaction): Add link warnings.
21617         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
21618         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
21619         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
21620         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
21621         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
21622         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
21623         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
21624         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
21625         (posix_spawn_file_actions_destroy)
21626         (posix_spawn_file_actions_addopen)
21627         (posix_spawn_file_actions_addclose)
21628         (posix_spawn_file_actions_adddup2): Likewise.
21629         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
21630         * tests/test-signal.c (main): Enhance test.
21631
21632         spawn: improve wrapper support
21633         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
21634         (gl_SPAWN_H_DEFAULTS): New defaults.
21635         * modules/spawn (Makefile.am): Substitute them.
21636         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
21637         Only declare if missing or broken.
21638
21639         sys_times, sys_utsname: use include_next
21640         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
21641         header.
21642         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
21643         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21644         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21645         * modules/sys_times (Depends-on): Add include_next.
21646         (Makefile.am): Substitute additional values.
21647         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21648         * lib/sys_times.in.h (includes): Include native header, if
21649         available.
21650         * lib/sys_utsname.in.h (includes): Likewise.
21651         * tests/test-sys_times.c (main): Enhance test.
21652
21653         fdutimensat: revert prior patch
21654         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
21655         utimens.h.
21656         Reported by Bruno Haible.
21657
21658 2009-12-30  Eric Blake  <ebb9@byu.net>
21659
21660         sys_wait: drop link-warning dependency
21661         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
21662         link-warning efforts.
21663         * lib/sys_wait.in.h: Likewise.
21664
21665         fdutimensat: remove bogus dependency
21666         * modules/fdutimensat (Depends-on): Drop inline.
21667
21668         unistd: fix typo
21669         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
21670
21671 2009-12-30  Bruno Haible  <bruno@clisp.org>
21672
21673         Fix compilation error with Solaris cc.
21674         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
21675         * lib/unicase/u16-is-invariant.c: Likewise.
21676         * lib/unicase/u32-is-invariant.c: Likewise.
21677         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21678
21679 2009-12-30  Bruno Haible  <bruno@clisp.org>
21680
21681         Fix test crash.
21682         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
21683         locales.
21684         Reported by Simon Josefsson <simon@josefsson.org>.
21685
21686 2009-12-30  Bruno Haible  <bruno@clisp.org>
21687
21688         Fix compilation error on most platforms.
21689         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
21690         Reported by Simon Josefsson <simon@josefsson.org>
21691         and Nelson H. F. Beebe <beebe@math.utah.edu>.
21692
21693 2009-12-30  Eric Blake  <ebb9@byu.net>
21694
21695         futimens, utimensat: work around ntfs-3g bug
21696         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
21697         a ctime bug is present, and expand workaround to cover ntfs-3g.
21698         * lib/utimens.c (fdutimens, lutimens): Likewise.
21699         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
21700         (validate_timespec): Adjust return value.
21701         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
21702         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21703         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
21704
21705 2009-12-29  Eric Blake  <ebb9@byu.net>
21706
21707         link-warning: make usage consistent
21708         * modules/ctype (Depends-on): Add link-warning.
21709         (Makefile.am): Update rules accordingly.
21710         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21711         * modules/locale (Depends-on, Makefile.am): Likewise.
21712         * modules/sys_file (Makefile.am): Likewise.
21713         * modules/getopt-posix (Makefile.am): Delete unused link warning
21714         efforts.
21715         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
21716         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
21717         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
21718         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
21719
21720         stdio: remove unused variables
21721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
21722         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
21723         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21724
21725         tests: test more substitute headers
21726         * modules/ctype-tests: New file.
21727         * modules/dirent-tests: Likewise.
21728         * modules/spawn-tests: Likewise.
21729         * modules/sys_file-tests: Likewise.
21730         * modules/sys_ioctl-tests: Likewise.
21731         * modules/sys_wait-tests: Likewise.
21732         * tests/test-ctype.c: Likewise.
21733         * tests/test-dirent.c: Likewise.
21734         * tests/test-spawn.c: Likewise.
21735         * tests/test-sys_file.c: Likewise.
21736         * tests/test-sys_ioctl.c: Likewise.
21737         * tests/test-sys_wait.c: Likewise.
21738         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
21739         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
21740         whether or not flock is in use.
21741
21742         tests: remove License section from module
21743         * modules/arpa_inet-tests: Remove unneeded section.
21744         * modules/byteswap-tests: Likewise.
21745         * modules/ceilf-tests: Likewise.
21746         * modules/ceill-tests: Likewise.
21747         * modules/crypto/des-tests: Likewise.
21748         * modules/crypto/gc-arcfour-tests: Likewise.
21749         * modules/crypto/gc-arctwo-tests: Likewise.
21750         * modules/crypto/gc-des-tests: Likewise.
21751         * modules/crypto/gc-hmac-md5-tests: Likewise.
21752         * modules/crypto/gc-hmac-sha1-tests: Likewise.
21753         * modules/crypto/gc-md2-tests: Likewise.
21754         * modules/crypto/gc-md4-tests: Likewise.
21755         * modules/crypto/gc-md5-tests: Likewise.
21756         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
21757         * modules/crypto/gc-rijndael-tests: Likewise.
21758         * modules/crypto/gc-sha1-tests: Likewise.
21759         * modules/crypto/gc-tests: Likewise.
21760         * modules/crypto/md2-tests: Likewise.
21761         * modules/crypto/md4-tests: Likewise.
21762         * modules/fcntl-h-tests: Likewise.
21763         * modules/floorf-tests: Likewise.
21764         * modules/floorl-tests: Likewise.
21765         * modules/frexp-nolibm-tests: Likewise.
21766         * modules/frexp-tests: Likewise.
21767         * modules/frexpl-nolibm-tests: Likewise.
21768         * modules/frexpl-tests: Likewise.
21769         * modules/getaddrinfo-tests: Likewise.
21770         * modules/inttypes-tests: Likewise.
21771         * modules/isfinite-tests: Likewise.
21772         * modules/isinf-tests: Likewise.
21773         * modules/ldexpl-tests: Likewise.
21774         * modules/locale-tests: Likewise.
21775         * modules/math-tests: Likewise.
21776         * modules/netdb-tests: Likewise.
21777         * modules/netinet_in-tests: Likewise.
21778         * modules/printf-frexp-tests: Likewise.
21779         * modules/printf-frexpl-tests: Likewise.
21780         * modules/priv-set-tests: Likewise.
21781         * modules/random_r-tests: Likewise.
21782         * modules/round-tests: Likewise.
21783         * modules/roundf-tests: Likewise.
21784         * modules/roundl-tests: Likewise.
21785         * modules/search-tests: Likewise.
21786         * modules/select-tests: Likewise.
21787         * modules/signal-tests: Likewise.
21788         * modules/stdbool-tests: Likewise.
21789         * modules/stddef-tests: Likewise.
21790         * modules/stdint-tests: Likewise.
21791         * modules/stdio-tests: Likewise.
21792         * modules/stdlib-tests: Likewise.
21793         * modules/string-tests: Likewise.
21794         * modules/strings-tests: Likewise.
21795         * modules/sys_select-tests: Likewise.
21796         * modules/sys_socket-tests: Likewise.
21797         * modules/sys_stat-tests: Likewise.
21798         * modules/sys_time-tests: Likewise.
21799         * modules/sys_utsname-tests: Likewise.
21800         * modules/sysexits-tests: Likewise.
21801         * modules/time-tests: Likewise.
21802         * modules/trunc-tests: Likewise.
21803         * modules/truncf-tests: Likewise.
21804         * modules/truncl-tests: Likewise.
21805         * modules/tsearch-tests: Likewise.
21806         * modules/unistd-tests: Likewise.
21807         * modules/wchar-tests: Likewise.
21808         * modules/wctype-tests: Likewise.
21809
21810         tests: fix license on several tests
21811         * tests/test-des.c: Update to GPLv3+.
21812         * tests/test-flock.c: Likewise.
21813         * tests/test-fsync.c: Likewise.
21814         * tests/test-futimens.h: Likewise.
21815         * tests/test-gc-arcfour.c: Likewise.
21816         * tests/test-gc-arctwo.c: Likewise.
21817         * tests/test-gc-des.c: Likewise.
21818         * tests/test-gc-hmac-md5.c: Likewise.
21819         * tests/test-gc-hmac-sha1.c: Likewise.
21820         * tests/test-gc-md2.c: Likewise.
21821         * tests/test-gc-md4.c: Likewise.
21822         * tests/test-gc-md5.c: Likewise.
21823         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21824         * tests/test-gc-rijndael.c: Likewise.
21825         * tests/test-gc-sha1.c: Likewise.
21826         * tests/test-gc.c: Likewise.
21827         * tests/test-getcwd.c: Likewise.
21828         * tests/test-link.c: Likewise.
21829         * tests/test-link.h: Likewise.
21830         * tests/test-lutimens.h: Likewise.
21831         * tests/test-md2.c: Likewise.
21832         * tests/test-md4.c: Likewise.
21833         * tests/test-mkdir.h: Likewise.
21834         * tests/test-rename.c: Likewise.
21835         * tests/test-rename.h: Likewise.
21836         * tests/test-safe-alloc.c: Likewise.
21837         * tests/test-utimens-common.h: Likewise.
21838         * tests/test-utimens.h: Likewise.
21839
21840         maint: sync license texts
21841         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
21842         * doc/gpl-3.0.texi: Revert copyright year update.
21843         * doc/lgpl-3.0.texi: Likewise.
21844
21845 2009-12-29  Jim Meyering  <meyering@redhat.com>
21846
21847         update nearly all FSF copyright year lists to include 2009
21848         The files named by the following are exempted:
21849             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
21850               test -f "$dst" && { echo "$dst"; continue; }
21851               test -d "$dst" || continue
21852               echo "$dst"/$(basename "$src")
21853             done > exempt
21854             git ls-files tests/unictype >> exempt
21855         In the remaining files, convert to all-interval notation if
21856         - there is already at least one year interval like 2000-2003
21857         - the file is maintained by me
21858         - the file is in lib/uni*/, where that style already prevails
21859         Otherwise, use update-copyright's default.
21860
21861 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21862         and Eric Blake  <ebb9@byu.net>
21863
21864         tests: don't require debug system() to pass
21865         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
21866         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21867         * tests/test-unlink.h (test_unlink_func): Likewise.
21868         * tests/test-fstatat.c (main): ...into callers.
21869         * tests/test-lstat.c (main): Likewise.
21870         * tests/test-rmdir.c (main): Likewise.
21871         * tests/test-unlink.c (main): Likewise.
21872         * tests/test-unlinkat.c (main): Likewise.
21873         * tests/test-areadlink-with-size.c (main): Don't require a
21874         debug-only system call to pass, aiding cross-testing to mingw.
21875         * tests/test-areadlink.c (main): Likewise.
21876         * tests/test-areadlinkat-with-size.c (main): Likewise.
21877         * tests/test-areadlinkat.c (main): Likewise.
21878         * tests/test-canonicalize-lgpl.c (main): Likewise.
21879         * tests/test-canonicalize.c (main): Likewise.
21880         * tests/test-chown.c (main): Likewise.
21881         * tests/test-fchownat.c (main): Likewise.
21882         * tests/test-lchown.c (main): Likewise.
21883         * tests/test-fdutimensat.c (main): Likewise.
21884         * tests/test-futimens.c (main): Likewise.
21885         * tests/test-link.c (main): Likewise.
21886         * tests/test-linkat.c (main): Likewise.
21887         * tests/test-mkdir.c (main): Likewise.
21888         * tests/test-mkdirat.c (main): Likewise.
21889         * tests/test-mkfifo.c (main): Likewise.
21890         * tests/test-mkfifoat.c (main): Likewise.
21891         * tests/test-mknod.c (main): Likewise.
21892         * tests/test-readlink.c (main): Likewise.
21893         * tests/test-remove.c (main): Likewise.
21894         * tests/test-rename.c (main): Likewise.
21895         * tests/test-renameat.c (main): Likewise.
21896         * tests/test-symlink.c (main): Likewise.
21897         * tests/test-symlinkat.c (main): Likewise.
21898         * tests/test-utimens.c (main): Likewise.
21899         * tests/test-utimensat.c (main): Likewise.
21900
21901 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21902
21903         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
21904         on $(UNUSED_PARAMETER_H) to avoid build failure.
21905
21906 2009-12-28  Jim Meyering  <meyering@redhat.com>
21907
21908         update-copyright: you may specify a max. line length other than 72
21909         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21910
21911         maint: use consistent FSF copyright line syntax
21912         * lib/posixtm.c: Add missing comma in FSF copyright line.
21913         * lib/posixtm.h: Likewise.
21914         * lib/getugroups.c: Add missing ", Inc.".
21915
21916         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
21917         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
21918         FSF copyright line.  Remove trailing blanks.
21919
21920 2009-12-28  Eric Blake  <ebb9@byu.net>
21921
21922         test-dup2: reduce dependencies
21923         * modules/cloexec (Configure.ac): Set witness.
21924         * modules/dup2-tests (Depends-on): Drop cloexec.
21925         * tests/test-dup2.c (main): Skip portion of test if cloexec module
21926         not present.
21927         Suggested by Bruno Haible.
21928
21929 2009-12-26  Bruno Haible  <bruno@clisp.org>
21930
21931         Remove an unneeded dependency.
21932         * modules/fseterr (Depends-on): Remove dup2.
21933
21934 2009-12-26  Eric Blake  <ebb9@byu.net>
21935
21936         tests: use macros.h in more places
21937         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
21938         (ASSERT_STREAM): Provide default of stderr.
21939         * tests/test-dirent-safer.c: Include macros.h, using alternate
21940         stream for assertions.
21941         * tests/test-dup-safer.c: Likewise.
21942         * tests/test-freopen-safer.c: Likewise.
21943         * tests/test-getopt.c: Likewise.
21944         * tests/test-openat-safer.c: Likewise.
21945         * tests/test-pipe.c: Likewise.
21946         * tests/test-popen-safer.c: Likewise.
21947         * modules/dirent-safer-tests (Files): Include macros.h.
21948         * modules/unistd-safer-tests (Files): Likewise.
21949         * modules/freopen-safer-tests (Files): Likewise.
21950         * modules/getopt-posix-tests (Files): Likewise.
21951         * modules/openat-safer-tests (Files): Likewise.
21952         * modules/pipe-tests (Files): Likewise.
21953
21954 2009-12-26  Bruno Haible  <bruno@clisp.org>
21955
21956         javacomp: Portability fix.
21957         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
21958         that it also works on Solaris.
21959
21960 2009-12-26  Bruno Haible  <bruno@clisp.org>
21961
21962         localename: Fix storage allocation of gl_locale_name_thread's result.
21963         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
21964         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
21965         all platforms that have 'uselocale'.
21966         (gl_locale_name_thread_unsafe): New function, extracted from
21967         gl_locale_name_thread.
21968         (gl_locale_name_thread): Call struniq on all platforms that have
21969         'uselocale'.
21970         * tests/test-localename.c (test_locale_name_thread): Check that the
21971         resulting strings are permanently allocated.
21972         * modules/localename-tests (Depends-on): Add strdup.
21973
21974 2009-12-26  Bruno Haible  <bruno@clisp.org>
21975
21976         * tests/test-localename.c (categories): Fill in the strings.
21977
21978 2009-12-26  Jim Meyering  <meyering@redhat.com>
21979
21980         isdir: complete the removal of m4/isdir.m4
21981         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
21982
21983         isdir: clean up, since at least grep still uses it
21984         * lib/isdir.c: Include "isdir.h".
21985         (S_ISDIR): Remove now-unneeded definition.
21986         * modules/isdir (Files): Add lib/isdir.h.
21987         * lib/isdir.h: New file, with declaration.
21988         * m4/isdir.m4: Remove file -- unneeded.
21989
21990 2009-12-25  Bruno Haible  <bruno@clisp.org>
21991
21992         selinux-h: Make generated .h files standalone.
21993         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
21994         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
21995         * lib/se-selinux.in.h: Likewise.
21996         * modules/selinux-h (Depends-on): Add unused-parameter.
21997         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
21998         selinux/selinux.h and selinux/context.h.
21999         Suggested by Eric Blake.
22000
22001 2009-12-25  Bruno Haible  <bruno@clisp.org>
22002
22003         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
22004         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
22005         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
22006         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
22007         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
22008
22009 2009-12-24  Bruno Haible  <bruno@clisp.org>
22010
22011         openat: Fix warning.
22012         * lib/openat-proc.c: Include <unistd.h>.
22013
22014 2009-12-24  Bruno Haible  <bruno@clisp.org>
22015
22016         New module 'unused-parameter'.
22017         * build-aux/unused-parameter.h: New file, extracted from earlier
22018         gnulib-common.m4.
22019         * modules/unused-parameter: New file.
22020         * lib/unistr.h: Include unused-parameter.h.
22021         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
22022         _GL_UNUSED.
22023         * modules/unistr/base (Depends-on): Add unused-parameter.
22024
22025 2009-12-24  Bruno Haible  <bruno@clisp.org>
22026
22027         Add missing dependencies to 'extensions' module.
22028         * m4/extensions.m4: Add comment.
22029         * modules/accept4 (Depends-on): Add extensions.
22030         * modules/dup3 (Depends-on): Likewise.
22031         * modules/fcntl (Depends-on): Likewise.
22032         * modules/futimens (Depends-on): Likewise.
22033         * modules/mknod (Depends-on): Likewise.
22034         * modules/pipe2 (Depends-on): Likewise.
22035         * modules/stat-time (Depends-on): Likewise.
22036         * modules/strcasestr-simple (Depends-on): Likewise.
22037         * modules/strsignal (Depends-on): Likewise.
22038         * modules/utimensat (Depends-on): Likewise.
22039         * modules/localcharset (Depends-on): Likewise. Needed because of
22040         gl_FCNTL_O_FLAGS.
22041         * modules/wcrtomb (Depends-on): Likewise. Needed because of
22042         AC_TYPE_MBSTATE_T.
22043         * modules/wcsnrtombs (Depends-on): Likewise.
22044         * modules/wcsrtombs (Depends-on): Likewise.
22045
22046 2009-12-24  Bruno Haible  <bruno@clisp.org>
22047
22048         binary-io: Avoid gcc warning due to SET_BINARY.
22049         * lib/binary-io.h (SET_BINARY): Cast the result to void.
22050         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
22051
22052 2009-12-24  Bruno Haible  <bruno@clisp.org>
22053
22054         Avoid future namespace pollution on glibc systems.
22055         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
22056         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
22057         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
22058         glibc systems.
22059
22060 2009-12-24  Bruno Haible  <bruno@clisp.org>
22061
22062         Refactor common macros used in tests.
22063         * tests/macros.h: New file.
22064         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
22065         and/or <stdlib.h>, if appropriate.
22066         (ASSERT, SIZEOF): Remove macros.
22067         * tests/test-areadlink-with-size.c: Likewise.
22068         * tests/test-areadlinkat.c: Likewise.
22069         * tests/test-areadlinkat-with-size.c: Likewise.
22070         * tests/test-argmatch.c: Likewise.
22071         * tests/test-argv-iter.c: Likewise.
22072         * tests/test-array-mergesort.c: Likewise.
22073         * tests/test-array_list.c: Likewise.
22074         * tests/test-array_oset.c: Likewise.
22075         * tests/test-avltree_list.c: Likewise.
22076         * tests/test-avltree_oset.c: Likewise.
22077         * tests/test-avltreehash_list.c: Likewise.
22078         * tests/test-base64.c: Likewise.
22079         * tests/test-binary-io.c: Likewise.
22080         * tests/test-bitrotate.c: Likewise.
22081         * tests/test-btowc.c: Likewise.
22082         * tests/test-byteswap.c: Likewise.
22083         * tests/test-c-ctype.c: Likewise.
22084         * tests/test-c-stack.c: Likewise.
22085         * tests/test-c-strcasecmp.c: Likewise.
22086         * tests/test-c-strcasestr.c: Likewise.
22087         * tests/test-c-strncasecmp.c: Likewise.
22088         * tests/test-c-strstr.c: Likewise.
22089         * tests/test-canonicalize-lgpl.c: Likewise.
22090         * tests/test-canonicalize.c: Likewise.
22091         * tests/test-carray_list.c: Likewise.
22092         * tests/test-ceilf1.c: Likewise.
22093         * tests/test-ceilf2.c: Likewise.
22094         * tests/test-ceill.c: Likewise.
22095         * tests/test-chown.c: Likewise.
22096         * tests/test-cloexec.c: Likewise.
22097         * tests/test-copy-acl.c: Likewise.
22098         * tests/test-copy-file.c: Likewise.
22099         * tests/test-count-one-bits.c: Likewise.
22100         * tests/test-dprintf-posix.c: Likewise.
22101         * tests/test-dup2.c: Likewise.
22102         * tests/test-dup3.c: Likewise.
22103         * tests/test-duplocale.c: Likewise.
22104         * tests/test-fbufmode.c: Likewise.
22105         * tests/test-fchdir.c: Likewise.
22106         * tests/test-fchownat.c: Likewise.
22107         * tests/test-fcntl-safer.c: Likewise.
22108         * tests/test-fcntl.c: Likewise.
22109         * tests/test-fdopendir.c: Likewise.
22110         * tests/test-fdutimensat.c: Likewise.
22111         * tests/test-fflush2.c: Likewise.
22112         * tests/test-file-has-acl.c: Likewise.
22113         * tests/test-filevercmp.c: Likewise.
22114         * tests/test-flock.c: Likewise.
22115         * tests/test-floorf1.c: Likewise.
22116         * tests/test-floorf2.c: Likewise.
22117         * tests/test-floorl.c: Likewise.
22118         * tests/test-fnmatch.c: Likewise.
22119         * tests/test-fopen.h: Likewise.
22120         * tests/test-fpending.c: Likewise.
22121         * tests/test-fprintf-posix.c: Likewise.
22122         * tests/test-fpurge.c: Likewise.
22123         * tests/test-freadable.c: Likewise.
22124         * tests/test-freadahead.c: Likewise.
22125         * tests/test-freading.c: Likewise.
22126         * tests/test-freadptr.c: Likewise.
22127         * tests/test-freadptr2.c: Likewise.
22128         * tests/test-freadseek.c: Likewise.
22129         * tests/test-freopen.c: Likewise.
22130         * tests/test-frexp.c: Likewise.
22131         * tests/test-frexpl.c: Likewise.
22132         * tests/test-fseek.c: Likewise.
22133         * tests/test-fseeko.c: Likewise.
22134         * tests/test-fstatat.c: Likewise.
22135         * tests/test-fstrcmp.c: Likewise.
22136         * tests/test-fsync.c: Likewise.
22137         * tests/test-ftell.c: Likewise.
22138         * tests/test-ftello.c: Likewise.
22139         * tests/test-func.c: Likewise.
22140         * tests/test-futimens.c: Likewise.
22141         * tests/test-fwritable.c: Likewise.
22142         * tests/test-fwriting.c: Likewise.
22143         * tests/test-getcwd.c: Likewise.
22144         * tests/test-getdate.c: Likewise.
22145         * tests/test-getdelim.c: Likewise.
22146         * tests/test-getdtablesize.c: Likewise.
22147         * tests/test-getgroups.c: Likewise.
22148         * tests/test-getline.c: Likewise.
22149         * tests/test-getndelim2.c: Likewise.
22150         * tests/test-glob.c: Likewise.
22151         * tests/test-hash.c: Likewise.
22152         * tests/test-i-ring.c: Likewise.
22153         * tests/test-iconv-utf.c: Likewise.
22154         * tests/test-iconv.c: Likewise.
22155         * tests/test-idpriv-drop.c: Likewise.
22156         * tests/test-idpriv-droptemp.c: Likewise.
22157         * tests/test-inet_ntop.c: Likewise.
22158         * tests/test-inet_pton.c: Likewise.
22159         * tests/test-isblank.c: Likewise.
22160         * tests/test-isfinite.c: Likewise.
22161         * tests/test-isinf.c: Likewise.
22162         * tests/test-isnan.c: Likewise.
22163         * tests/test-isnand.h: Likewise.
22164         * tests/test-isnanf.h: Likewise.
22165         * tests/test-isnanl.h: Likewise.
22166         * tests/test-lchown.c: Likewise.
22167         * tests/test-ldexpl.c: Likewise.
22168         * tests/test-link.c: Likewise.
22169         * tests/test-linkat.c: Likewise.
22170         * tests/test-linked_list.c: Likewise.
22171         * tests/test-linkedhash_list.c: Likewise.
22172         * tests/test-localename.c: Likewise.
22173         * tests/test-lseek.c: Likewise.
22174         * tests/test-lstat.c: Likewise.
22175         * tests/test-mbmemcasecmp.c: Likewise.
22176         * tests/test-mbmemcasecoll.c: Likewise.
22177         * tests/test-mbrtowc.c: Likewise.
22178         * tests/test-mbscasecmp.c: Likewise.
22179         * tests/test-mbscasestr1.c: Likewise.
22180         * tests/test-mbscasestr2.c: Likewise.
22181         * tests/test-mbscasestr3.c: Likewise.
22182         * tests/test-mbscasestr4.c: Likewise.
22183         * tests/test-mbschr.c: Likewise.
22184         * tests/test-mbscspn.c: Likewise.
22185         * tests/test-mbsinit.c: Likewise.
22186         * tests/test-mbsncasecmp.c: Likewise.
22187         * tests/test-mbsnrtowcs.c: Likewise.
22188         * tests/test-mbspbrk.c: Likewise.
22189         * tests/test-mbspcasecmp.c: Likewise.
22190         * tests/test-mbsrchr.c: Likewise.
22191         * tests/test-mbsrtowcs.c: Likewise.
22192         * tests/test-mbsspn.c: Likewise.
22193         * tests/test-mbsstr1.c: Likewise.
22194         * tests/test-mbsstr2.c: Likewise.
22195         * tests/test-mbsstr3.c: Likewise.
22196         * tests/test-memchr.c: Likewise.
22197         * tests/test-memchr2.c: Likewise.
22198         * tests/test-memcmp.c: Likewise.
22199         * tests/test-memmem.c: Likewise.
22200         * tests/test-memrchr.c: Likewise.
22201         * tests/test-mkdir.c: Likewise.
22202         * tests/test-mkdirat.c: Likewise.
22203         * tests/test-mkfifo.c: Likewise.
22204         * tests/test-mkfifoat.c: Likewise.
22205         * tests/test-mknod.c: Likewise.
22206         * tests/test-nanosleep.c: Likewise.
22207         * tests/test-nl_langinfo.c: Likewise.
22208         * tests/test-obstack-printf.c: Likewise.
22209         * tests/test-open.c: Likewise.
22210         * tests/test-openat.c: Likewise.
22211         * tests/test-pipe-filter-gi1.c: Likewise.
22212         * tests/test-pipe-filter-gi2-main.c: Likewise.
22213         * tests/test-pipe-filter-ii1.c: Likewise.
22214         * tests/test-pipe-filter-ii2-main.c: Likewise.
22215         * tests/test-pipe2.c: Likewise.
22216         * tests/test-popen.h: Likewise.
22217         * tests/test-posixtm.c: Likewise.
22218         * tests/test-pread.c: Likewise.
22219         * tests/test-printf-frexp.c: Likewise.
22220         * tests/test-printf-frexpl.c: Likewise.
22221         * tests/test-printf-posix.c: Likewise.
22222         * tests/test-priv-set.c: Likewise.
22223         * tests/test-quotearg.c: Likewise.
22224         * tests/test-random_r.c: Likewise.
22225         * tests/test-rawmemchr.c: Likewise.
22226         * tests/test-rbtree_list.c: Likewise.
22227         * tests/test-rbtree_oset.c: Likewise.
22228         * tests/test-rbtreehash_list.c: Likewise.
22229         * tests/test-readlink.c: Likewise.
22230         * tests/test-remove.c: Likewise.
22231         * tests/test-rename.c: Likewise.
22232         * tests/test-renameat.c: Likewise.
22233         * tests/test-rmdir.c: Likewise.
22234         * tests/test-round1.c: Likewise.
22235         * tests/test-roundf1.c: Likewise.
22236         * tests/test-roundl.c: Likewise.
22237         * tests/test-safe-alloc.c: Likewise.
22238         * tests/test-sameacls.c: Likewise.
22239         * tests/test-set-mode-acl.c: Likewise.
22240         * tests/test-setenv.c: Likewise.
22241         * tests/test-sigaction.c: Likewise.
22242         * tests/test-signbit.c: Likewise.
22243         * tests/test-sleep.c: Likewise.
22244         * tests/test-snprintf-posix.c: Likewise.
22245         * tests/test-snprintf.c: Likewise.
22246         * tests/test-sprintf-posix.c: Likewise.
22247         * tests/test-stat-time.c: Likewise.
22248         * tests/test-stat.c: Likewise.
22249         * tests/test-strcasestr.c: Likewise.
22250         * tests/test-strchrnul.c: Likewise.
22251         * tests/test-strerror.c: Likewise.
22252         * tests/test-striconv.c: Likewise.
22253         * tests/test-striconveh.c: Likewise.
22254         * tests/test-striconveha.c: Likewise.
22255         * tests/test-strsignal.c: Likewise.
22256         * tests/test-strstr.c: Likewise.
22257         * tests/test-strtod.c: Likewise.
22258         * tests/test-strverscmp.c: Likewise.
22259         * tests/test-symlink.c: Likewise.
22260         * tests/test-symlinkat.c: Likewise.
22261         * tests/test-trunc1.c: Likewise.
22262         * tests/test-trunc2.c: Likewise.
22263         * tests/test-truncf1.c: Likewise.
22264         * tests/test-truncf2.c: Likewise.
22265         * tests/test-truncl.c: Likewise.
22266         * tests/test-uname.c: Likewise.
22267         * tests/test-unlink.c: Likewise.
22268         * tests/test-unlinkat.c: Likewise.
22269         * tests/test-unsetenv.c: Likewise.
22270         * tests/test-usleep.c: Likewise.
22271         * tests/test-utimens.c: Likewise.
22272         * tests/test-utimensat.c: Likewise.
22273         * tests/test-vasnprintf-posix.c: Likewise.
22274         * tests/test-vasnprintf-posix2.c: Likewise.
22275         * tests/test-vasnprintf.c: Likewise.
22276         * tests/test-vasprintf-posix.c: Likewise.
22277         * tests/test-vasprintf.c: Likewise.
22278         * tests/test-vdprintf-posix.c: Likewise.
22279         * tests/test-vfprintf-posix.c: Likewise.
22280         * tests/test-vprintf-posix.c: Likewise.
22281         * tests/test-vsnprintf-posix.c: Likewise.
22282         * tests/test-vsnprintf.c: Likewise.
22283         * tests/test-vsprintf-posix.c: Likewise.
22284         * tests/test-wcrtomb.c: Likewise.
22285         * tests/test-wcsnrtombs.c: Likewise.
22286         * tests/test-wcsrtombs.c: Likewise.
22287         * tests/test-wctype.c: Likewise.
22288         * tests/test-wcwidth.c: Likewise.
22289         * tests/test-xfprintf-posix.c: Likewise.
22290         * tests/test-xmemdup0.c: Likewise.
22291         * tests/test-xprintf-posix.c: Likewise.
22292         * tests/test-xvasprintf.c: Likewise.
22293         * tests/unicase/test-locale-language.c: Likewise.
22294         * tests/unicase/test-mapping-part1.h: Likewise.
22295         * tests/unicase/test-predicate-part1.h: Likewise.
22296         * tests/unicase/test-u8-casecmp.c: Likewise.
22297         * tests/unicase/test-u8-casecoll.c: Likewise.
22298         * tests/unicase/test-u8-casefold.c: Likewise.
22299         * tests/unicase/test-u8-is-cased.c: Likewise.
22300         * tests/unicase/test-u8-is-casefolded.c: Likewise.
22301         * tests/unicase/test-u8-is-lowercase.c: Likewise.
22302         * tests/unicase/test-u8-is-titlecase.c: Likewise.
22303         * tests/unicase/test-u8-is-uppercase.c: Likewise.
22304         * tests/unicase/test-u8-tolower.c: Likewise.
22305         * tests/unicase/test-u8-totitle.c: Likewise.
22306         * tests/unicase/test-u8-toupper.c: Likewise.
22307         * tests/unicase/test-u16-casecmp.c: Likewise.
22308         * tests/unicase/test-u16-casecoll.c: Likewise.
22309         * tests/unicase/test-u16-casefold.c: Likewise.
22310         * tests/unicase/test-u16-is-cased.c: Likewise.
22311         * tests/unicase/test-u16-is-casefolded.c: Likewise.
22312         * tests/unicase/test-u16-is-lowercase.c: Likewise.
22313         * tests/unicase/test-u16-is-titlecase.c: Likewise.
22314         * tests/unicase/test-u16-is-uppercase.c: Likewise.
22315         * tests/unicase/test-u16-tolower.c: Likewise.
22316         * tests/unicase/test-u16-totitle.c: Likewise.
22317         * tests/unicase/test-u16-toupper.c: Likewise.
22318         * tests/unicase/test-u32-casecmp.c: Likewise.
22319         * tests/unicase/test-u32-casecoll.c: Likewise.
22320         * tests/unicase/test-u32-casefold.c: Likewise.
22321         * tests/unicase/test-u32-is-cased.c: Likewise.
22322         * tests/unicase/test-u32-is-casefolded.c: Likewise.
22323         * tests/unicase/test-u32-is-lowercase.c: Likewise.
22324         * tests/unicase/test-u32-is-titlecase.c: Likewise.
22325         * tests/unicase/test-u32-is-uppercase.c: Likewise.
22326         * tests/unicase/test-u32-tolower.c: Likewise.
22327         * tests/unicase/test-u32-totitle.c: Likewise.
22328         * tests/unicase/test-u32-toupper.c: Likewise.
22329         * tests/unicase/test-ulc-casecmp.c: Likewise.
22330         * tests/unicase/test-ulc-casecoll.c: Likewise.
22331         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22332         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22333         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22334         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22335         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22336         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22337         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22338         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22339         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22340         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22341         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22342         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22343         * tests/unictype/test-bidi_byname.c: Likewise.
22344         * tests/unictype/test-bidi_name.c: Likewise.
22345         * tests/unictype/test-bidi_of.c: Likewise.
22346         * tests/unictype/test-bidi_test.c: Likewise.
22347         * tests/unictype/test-block_list.c: Likewise.
22348         * tests/unictype/test-block_of.c: Likewise.
22349         * tests/unictype/test-block_test.c: Likewise.
22350         * tests/unictype/test-categ_and.c: Likewise.
22351         * tests/unictype/test-categ_and_not.c: Likewise.
22352         * tests/unictype/test-categ_byname.c: Likewise.
22353         * tests/unictype/test-categ_name.c: Likewise.
22354         * tests/unictype/test-categ_none.c: Likewise.
22355         * tests/unictype/test-categ_of.c: Likewise.
22356         * tests/unictype/test-categ_or.c: Likewise.
22357         * tests/unictype/test-categ_test_withtable.c: Likewise.
22358         * tests/unictype/test-combining.c: Likewise.
22359         * tests/unictype/test-decdigit.c: Likewise.
22360         * tests/unictype/test-digit.c: Likewise.
22361         * tests/unictype/test-mirror.c: Likewise.
22362         * tests/unictype/test-numeric.c: Likewise.
22363         * tests/unictype/test-pr_byname.c: Likewise.
22364         * tests/unictype/test-pr_test.c: Likewise.
22365         * tests/unictype/test-predicate-part1.h: Likewise.
22366         * tests/unictype/test-scripts.c: Likewise.
22367         * tests/unictype/test-sy_c_ident.c: Likewise.
22368         * tests/unictype/test-sy_java_ident.c: Likewise.
22369         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
22370         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
22371         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
22372         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
22373         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
22374         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
22375         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
22376         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
22377         * tests/uninorm/test-canonical-decomposition.c: Likewise.
22378         * tests/uninorm/test-compat-decomposition.c: Likewise.
22379         * tests/uninorm/test-composition.c: Likewise.
22380         * tests/uninorm/test-decomposing-form.c: Likewise.
22381         * tests/uninorm/test-decomposition.c: Likewise.
22382         * tests/uninorm/test-u8-nfc.c: Likewise.
22383         * tests/uninorm/test-u8-nfd.c: Likewise.
22384         * tests/uninorm/test-u8-nfkc.c: Likewise.
22385         * tests/uninorm/test-u8-nfkd.c: Likewise.
22386         * tests/uninorm/test-u8-normcmp.c: Likewise.
22387         * tests/uninorm/test-u8-normcoll.c: Likewise.
22388         * tests/uninorm/test-u16-nfc.c: Likewise.
22389         * tests/uninorm/test-u16-nfd.c: Likewise.
22390         * tests/uninorm/test-u16-nfkc.c: Likewise.
22391         * tests/uninorm/test-u16-nfkd.c: Likewise.
22392         * tests/uninorm/test-u16-normcmp.c: Likewise.
22393         * tests/uninorm/test-u16-normcoll.c: Likewise.
22394         * tests/uninorm/test-u32-nfc.c: Likewise.
22395         * tests/uninorm/test-u32-nfd.c: Likewise.
22396         * tests/uninorm/test-u32-nfkc.c: Likewise.
22397         * tests/uninorm/test-u32-nfkd.c: Likewise.
22398         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22399         * tests/uninorm/test-u32-normcmp.c: Likewise.
22400         * tests/uninorm/test-u32-normcoll.c: Likewise.
22401         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
22402         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22403         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22404         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22405         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22406         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22407         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22408         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22409         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22410         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22411         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22412         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22413         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22414         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22415         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22416         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22417         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22418         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22419         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22420         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22421         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22422         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22423         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22424         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22425         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22426         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22427         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22428         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22429         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22430         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
22431         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
22432         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
22433         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
22434         * tests/uniwidth/test-u8-strwidth.c: Likewise.
22435         * tests/uniwidth/test-u8-width.c: Likewise.
22436         * tests/uniwidth/test-u16-strwidth.c: Likewise.
22437         * tests/uniwidth/test-u16-width.c: Likewise.
22438         * tests/uniwidth/test-u32-strwidth.c: Likewise.
22439         * tests/uniwidth/test-u32-width.c: Likewise.
22440         * tests/uniwidth/test-uc_width.c: Likewise.
22441         * tests/uniwidth/test-uc_width2.c: Likewise.
22442         * modules/acl-tests (Files): Add tests/macros.h.
22443         * modules/areadlink-tests (Files): Likewise.
22444         * modules/areadlink-with-size-tests (Files): Likewise.
22445         * modules/areadlinkat-tests (Files): Likewise.
22446         * modules/areadlinkat-with-size-tests (Files): Likewise.
22447         * modules/argmatch-tests (Files): Likewise.
22448         * modules/argv-iter-tests (Files): Likewise.
22449         * modules/array-list-tests (Files): Likewise.
22450         * modules/array-mergesort-tests (Files): Likewise.
22451         * modules/array-oset-tests (Files): Likewise.
22452         * modules/avltree-list-tests (Files): Likewise.
22453         * modules/avltree-oset-tests (Files): Likewise.
22454         * modules/avltreehash-list-tests (Files): Likewise.
22455         * modules/base64-tests (Files): Likewise.
22456         * modules/binary-io-tests (Files): Likewise.
22457         * modules/bitrotate-tests (Files): Likewise.
22458         * modules/btowc-tests (Files): Likewise.
22459         * modules/byteswap-tests (Files): Likewise.
22460         * modules/c-ctype-tests (Files): Likewise.
22461         * modules/c-stack-tests (Files): Likewise.
22462         * modules/c-strcase-tests (Files): Likewise.
22463         * modules/c-strcasestr-tests (Files): Likewise.
22464         * modules/c-strstr-tests (Files): Likewise.
22465         * modules/canonicalize-lgpl-tests (Files): Likewise.
22466         * modules/canonicalize-tests (Files): Likewise.
22467         * modules/carray-list-tests (Files): Likewise.
22468         * modules/ceilf-tests (Files): Likewise.
22469         * modules/ceill-tests (Files): Likewise.
22470         * modules/chown-tests (Files): Likewise.
22471         * modules/cloexec-tests (Files): Likewise.
22472         * modules/copy-file-tests (Files): Likewise.
22473         * modules/count-one-bits-tests (Files): Likewise.
22474         * modules/dprintf-posix-tests (Files): Likewise.
22475         * modules/dup2-tests (Files): Likewise.
22476         * modules/dup3-tests (Files): Likewise.
22477         * modules/duplocale-tests (Files): Likewise.
22478         * modules/fbufmode-tests (Files): Likewise.
22479         * modules/fchdir-tests (Files): Likewise.
22480         * modules/fcntl-safer-tests (Files): Likewise.
22481         * modules/fcntl-tests (Files): Likewise.
22482         * modules/fdopendir-tests (Files): Likewise.
22483         * modules/fdutimensat-tests (Files): Likewise.
22484         * modules/fflush-tests (Files): Likewise.
22485         * modules/filevercmp-tests (Files): Likewise.
22486         * modules/flock-tests (Files): Likewise.
22487         * modules/floorf-tests (Files): Likewise.
22488         * modules/floorl-tests (Files): Likewise.
22489         * modules/fnmatch-tests (Files): Likewise.
22490         * modules/fopen-safer-tests (Files): Likewise.
22491         * modules/fopen-tests (Files): Likewise.
22492         * modules/fpending-tests (Files): Likewise.
22493         * modules/fprintf-posix-tests (Files): Likewise.
22494         * modules/fpurge-tests (Files): Likewise.
22495         * modules/freadable-tests (Files): Likewise.
22496         * modules/freadahead-tests (Files): Likewise.
22497         * modules/freading-tests (Files): Likewise.
22498         * modules/freadptr-tests (Files): Likewise.
22499         * modules/freadseek-tests (Files): Likewise.
22500         * modules/freopen-tests (Files): Likewise.
22501         * modules/frexp-nolibm-tests (Files): Likewise.
22502         * modules/frexp-tests (Files): Likewise.
22503         * modules/frexpl-nolibm-tests (Files): Likewise.
22504         * modules/frexpl-tests (Files): Likewise.
22505         * modules/fseek-tests (Files): Likewise.
22506         * modules/fseeko-tests (Files): Likewise.
22507         * modules/fstrcmp-tests (Files): Likewise.
22508         * modules/fsync-tests (Files): Likewise.
22509         * modules/ftell-tests (Files): Likewise.
22510         * modules/ftello-tests (Files): Likewise.
22511         * modules/func-tests (Files): Likewise.
22512         * modules/futimens-tests (Files): Likewise.
22513         * modules/fwritable-tests (Files): Likewise.
22514         * modules/fwriting-tests (Files): Likewise.
22515         * modules/getcwd-tests (Files): Likewise.
22516         * modules/getdate-tests (Files): Likewise.
22517         * modules/getdelim-tests (Files): Likewise.
22518         * modules/getdtablesize-tests (Files): Likewise.
22519         * modules/getgroups-tests (Files): Likewise.
22520         * modules/getline-tests (Files): Likewise.
22521         * modules/getndelim2-tests (Files): Likewise.
22522         * modules/glob-tests (Files): Likewise.
22523         * modules/hash-tests (Files): Likewise.
22524         * modules/i-ring-tests (Files): Likewise.
22525         * modules/iconv-tests (Files): Likewise.
22526         * modules/iconv_open-utf-tests (Files): Likewise.
22527         * modules/idpriv-drop-tests (Files): Likewise.
22528         * modules/idpriv-droptemp-tests (Files): Likewise.
22529         * modules/inet_ntop-tests (Files): Likewise.
22530         * modules/inet_pton-tests (Files): Likewise.
22531         * modules/isblank-tests (Files): Likewise.
22532         * modules/isfinite-tests (Files): Likewise.
22533         * modules/isinf-tests (Files): Likewise.
22534         * modules/isnan-tests (Files): Likewise.
22535         * modules/isnand-nolibm-tests (Files): Likewise.
22536         * modules/isnand-tests (Files): Likewise.
22537         * modules/isnanf-nolibm-tests (Files): Likewise.
22538         * modules/isnanf-tests (Files): Likewise.
22539         * modules/isnanl-nolibm-tests (Files): Likewise.
22540         * modules/isnanl-tests (Files): Likewise.
22541         * modules/lchown-tests (Files): Likewise.
22542         * modules/ldexpl-tests (Files): Likewise.
22543         * modules/link-tests (Files): Likewise.
22544         * modules/linkat-tests (Files): Likewise.
22545         * modules/linked-list-tests (Files): Likewise.
22546         * modules/linkedhash-list-tests (Files): Likewise.
22547         * modules/localename-tests (Files): Likewise.
22548         * modules/lseek-tests (Files): Likewise.
22549         * modules/lstat-tests (Files): Likewise.
22550         * modules/mbmemcasecmp-tests (Files): Likewise.
22551         * modules/mbmemcasecoll-tests (Files): Likewise.
22552         * modules/mbrtowc-tests (Files): Likewise.
22553         * modules/mbscasecmp-tests (Files): Likewise.
22554         * modules/mbscasestr-tests (Files): Likewise.
22555         * modules/mbschr-tests (Files): Likewise.
22556         * modules/mbscspn-tests (Files): Likewise.
22557         * modules/mbsinit-tests (Files): Likewise.
22558         * modules/mbsncasecmp-tests (Files): Likewise.
22559         * modules/mbsnrtowcs-tests (Files): Likewise.
22560         * modules/mbspbrk-tests (Files): Likewise.
22561         * modules/mbspcasecmp-tests (Files): Likewise.
22562         * modules/mbsrchr-tests (Files): Likewise.
22563         * modules/mbsrtowcs-tests (Files): Likewise.
22564         * modules/mbsspn-tests (Files): Likewise.
22565         * modules/mbsstr-tests (Files): Likewise.
22566         * modules/memchr-tests (Files): Likewise.
22567         * modules/memchr2-tests (Files): Likewise.
22568         * modules/memcmp-tests (Files): Likewise.
22569         * modules/memmem-tests (Files): Likewise.
22570         * modules/memrchr-tests (Files): Likewise.
22571         * modules/mkdir-tests (Files): Likewise.
22572         * modules/mkfifo-tests (Files): Likewise.
22573         * modules/mkfifoat-tests (Files): Likewise.
22574         * modules/mknod-tests (Files): Likewise.
22575         * modules/nanosleep-tests (Files): Likewise.
22576         * modules/nl_langinfo-tests (Files): Likewise.
22577         * modules/obstack-printf-tests (Files): Likewise.
22578         * modules/open-tests (Files): Likewise.
22579         * modules/openat-tests (Files): Likewise.
22580         * modules/pipe-filter-gi-tests (Files): Likewise.
22581         * modules/pipe-filter-ii-tests (Files): Likewise.
22582         * modules/pipe2-tests (Files): Likewise.
22583         * modules/popen-safer-tests (Files): Likewise.
22584         * modules/popen-tests (Files): Likewise.
22585         * modules/posixtm-tests (Files): Likewise.
22586         * modules/pread-tests (Files): Likewise.
22587         * modules/printf-frexp-tests (Files): Likewise.
22588         * modules/printf-frexpl-tests (Files): Likewise.
22589         * modules/printf-posix-tests (Files): Likewise.
22590         * modules/priv-set-tests (Files): Likewise.
22591         * modules/quotearg-tests (Files): Likewise.
22592         * modules/random_r-tests (Files): Likewise.
22593         * modules/rawmemchr-tests (Files): Likewise.
22594         * modules/rbtree-list-tests (Files): Likewise.
22595         * modules/rbtree-oset-tests (Files): Likewise.
22596         * modules/rbtreehash-list-tests (Files): Likewise.
22597         * modules/readlink-tests (Files): Likewise.
22598         * modules/remove-tests (Files): Likewise.
22599         * modules/rename-tests (Files): Likewise.
22600         * modules/renameat-tests (Files): Likewise.
22601         * modules/rmdir-tests (Files): Likewise.
22602         * modules/round-tests (Files): Likewise.
22603         * modules/roundf-tests (Files): Likewise.
22604         * modules/roundl-tests (Files): Likewise.
22605         * modules/safe-alloc-tests (Files): Likewise.
22606         * modules/setenv-tests (Files): Likewise.
22607         * modules/sigaction-tests (Files): Likewise.
22608         * modules/signbit-tests (Files): Likewise.
22609         * modules/sleep-tests (Files): Likewise.
22610         * modules/snprintf-posix-tests (Files): Likewise.
22611         * modules/snprintf-tests (Files): Likewise.
22612         * modules/sprintf-posix-tests (Files): Likewise.
22613         * modules/stat-tests (Files): Likewise.
22614         * modules/stat-time-tests (Files): Likewise.
22615         * modules/strcasestr-tests (Files): Likewise.
22616         * modules/strchrnul-tests (Files): Likewise.
22617         * modules/strerror-tests (Files): Likewise.
22618         * modules/striconv-tests (Files): Likewise.
22619         * modules/striconveh-tests (Files): Likewise.
22620         * modules/striconveha-tests (Files): Likewise.
22621         * modules/strsignal-tests (Files): Likewise.
22622         * modules/strstr-tests (Files): Likewise.
22623         * modules/strtod-tests (Files): Likewise.
22624         * modules/strverscmp-tests (Files): Likewise.
22625         * modules/symlink-tests (Files): Likewise.
22626         * modules/symlinkat-tests (Files): Likewise.
22627         * modules/trunc-tests (Files): Likewise.
22628         * modules/truncf-tests (Files): Likewise.
22629         * modules/truncl-tests (Files): Likewise.
22630         * modules/uname-tests (Files): Likewise.
22631         * modules/unicase/cased-tests (Files): Likewise.
22632         * modules/unicase/ignorable-tests (Files): Likewise.
22633         * modules/unicase/locale-language-tests (Files): Likewise.
22634         * modules/unicase/tolower-tests (Files): Likewise.
22635         * modules/unicase/totitle-tests (Files): Likewise.
22636         * modules/unicase/toupper-tests (Files): Likewise.
22637         * modules/unicase/u8-casecmp-tests (Files): Likewise.
22638         * modules/unicase/u8-casecoll-tests (Files): Likewise.
22639         * modules/unicase/u8-casefold-tests (Files): Likewise.
22640         * modules/unicase/u8-is-cased-tests (Files): Likewise.
22641         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
22642         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
22643         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
22644         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
22645         * modules/unicase/u8-tolower-tests (Files): Likewise.
22646         * modules/unicase/u8-totitle-tests (Files): Likewise.
22647         * modules/unicase/u8-toupper-tests (Files): Likewise.
22648         * modules/unicase/u16-casecmp-tests (Files): Likewise.
22649         * modules/unicase/u16-casecoll-tests (Files): Likewise.
22650         * modules/unicase/u16-casefold-tests (Files): Likewise.
22651         * modules/unicase/u16-is-cased-tests (Files): Likewise.
22652         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
22653         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
22654         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
22655         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
22656         * modules/unicase/u16-tolower-tests (Files): Likewise.
22657         * modules/unicase/u16-totitle-tests (Files): Likewise.
22658         * modules/unicase/u16-toupper-tests (Files): Likewise.
22659         * modules/unicase/u32-casecmp-tests (Files): Likewise.
22660         * modules/unicase/u32-casecoll-tests (Files): Likewise.
22661         * modules/unicase/u32-casefold-tests (Files): Likewise.
22662         * modules/unicase/u32-is-cased-tests (Files): Likewise.
22663         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
22664         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
22665         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
22666         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
22667         * modules/unicase/u32-tolower-tests (Files): Likewise.
22668         * modules/unicase/u32-totitle-tests (Files): Likewise.
22669         * modules/unicase/u32-toupper-tests (Files): Likewise.
22670         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
22671         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
22672         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
22673         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
22674         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
22675         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
22676         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
22677         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
22678         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
22679         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
22680         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
22681         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
22682         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
22683         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
22684         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
22685         * modules/unictype/bidicategory-name-tests (Files): Likewise.
22686         * modules/unictype/bidicategory-of-tests (Files): Likewise.
22687         * modules/unictype/bidicategory-test-tests (Files): Likewise.
22688         * modules/unictype/block-list-tests (Files): Likewise.
22689         * modules/unictype/block-of-tests (Files): Likewise.
22690         * modules/unictype/block-test-tests (Files): Likewise.
22691         * modules/unictype/category-C-tests (Files): Likewise.
22692         * modules/unictype/category-Cc-tests (Files): Likewise.
22693         * modules/unictype/category-Cf-tests (Files): Likewise.
22694         * modules/unictype/category-Cn-tests (Files): Likewise.
22695         * modules/unictype/category-Co-tests (Files): Likewise.
22696         * modules/unictype/category-Cs-tests (Files): Likewise.
22697         * modules/unictype/category-L-tests (Files): Likewise.
22698         * modules/unictype/category-Ll-tests (Files): Likewise.
22699         * modules/unictype/category-Lm-tests (Files): Likewise.
22700         * modules/unictype/category-Lo-tests (Files): Likewise.
22701         * modules/unictype/category-Lt-tests (Files): Likewise.
22702         * modules/unictype/category-Lu-tests (Files): Likewise.
22703         * modules/unictype/category-M-tests (Files): Likewise.
22704         * modules/unictype/category-Mc-tests (Files): Likewise.
22705         * modules/unictype/category-Me-tests (Files): Likewise.
22706         * modules/unictype/category-Mn-tests (Files): Likewise.
22707         * modules/unictype/category-N-tests (Files): Likewise.
22708         * modules/unictype/category-Nd-tests (Files): Likewise.
22709         * modules/unictype/category-Nl-tests (Files): Likewise.
22710         * modules/unictype/category-No-tests (Files): Likewise.
22711         * modules/unictype/category-P-tests (Files): Likewise.
22712         * modules/unictype/category-Pc-tests (Files): Likewise.
22713         * modules/unictype/category-Pd-tests (Files): Likewise.
22714         * modules/unictype/category-Pe-tests (Files): Likewise.
22715         * modules/unictype/category-Pf-tests (Files): Likewise.
22716         * modules/unictype/category-Pi-tests (Files): Likewise.
22717         * modules/unictype/category-Po-tests (Files): Likewise.
22718         * modules/unictype/category-Ps-tests (Files): Likewise.
22719         * modules/unictype/category-S-tests (Files): Likewise.
22720         * modules/unictype/category-Sc-tests (Files): Likewise.
22721         * modules/unictype/category-Sk-tests (Files): Likewise.
22722         * modules/unictype/category-Sm-tests (Files): Likewise.
22723         * modules/unictype/category-So-tests (Files): Likewise.
22724         * modules/unictype/category-Z-tests (Files): Likewise.
22725         * modules/unictype/category-Zl-tests (Files): Likewise.
22726         * modules/unictype/category-Zp-tests (Files): Likewise.
22727         * modules/unictype/category-Zs-tests (Files): Likewise.
22728         * modules/unictype/category-and-not-tests (Files): Likewise.
22729         * modules/unictype/category-and-tests (Files): Likewise.
22730         * modules/unictype/category-byname-tests (Files): Likewise.
22731         * modules/unictype/category-name-tests (Files): Likewise.
22732         * modules/unictype/category-none-tests (Files): Likewise.
22733         * modules/unictype/category-of-tests (Files): Likewise.
22734         * modules/unictype/category-or-tests (Files): Likewise.
22735         * modules/unictype/category-test-withtable-tests (Files): Likewise.
22736         * modules/unictype/combining-class-tests (Files): Likewise.
22737         * modules/unictype/ctype-alnum-tests (Files): Likewise.
22738         * modules/unictype/ctype-alpha-tests (Files): Likewise.
22739         * modules/unictype/ctype-blank-tests (Files): Likewise.
22740         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
22741         * modules/unictype/ctype-digit-tests (Files): Likewise.
22742         * modules/unictype/ctype-graph-tests (Files): Likewise.
22743         * modules/unictype/ctype-lower-tests (Files): Likewise.
22744         * modules/unictype/ctype-print-tests (Files): Likewise.
22745         * modules/unictype/ctype-punct-tests (Files): Likewise.
22746         * modules/unictype/ctype-space-tests (Files): Likewise.
22747         * modules/unictype/ctype-upper-tests (Files): Likewise.
22748         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
22749         * modules/unictype/decimal-digit-tests (Files): Likewise.
22750         * modules/unictype/digit-tests (Files): Likewise.
22751         * modules/unictype/mirror-tests (Files): Likewise.
22752         * modules/unictype/numeric-tests (Files): Likewise.
22753         * modules/unictype/property-alphabetic-tests (Files): Likewise.
22754         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
22755         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
22756         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
22757         Likewise.
22758         * modules/unictype/property-bidi-block-separator-tests (Files):
22759         Likewise.
22760         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
22761         Likewise.
22762         * modules/unictype/property-bidi-common-separator-tests (Files):
22763         Likewise.
22764         * modules/unictype/property-bidi-control-tests (Files): Likewise.
22765         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
22766         Likewise.
22767         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
22768         Likewise.
22769         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
22770         Likewise.
22771         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
22772         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
22773         Likewise.
22774         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
22775         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
22776         Likewise.
22777         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
22778         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
22779         * modules/unictype/property-bidi-segment-separator-tests (Files):
22780         Likewise.
22781         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
22782         * modules/unictype/property-byname-tests (Files): Likewise.
22783         * modules/unictype/property-combining-tests (Files): Likewise.
22784         * modules/unictype/property-composite-tests (Files): Likewise.
22785         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
22786         * modules/unictype/property-dash-tests (Files): Likewise.
22787         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
22788         * modules/unictype/property-default-ignorable-code-point-tests (Files):
22789         Likewise.
22790         * modules/unictype/property-deprecated-tests (Files): Likewise.
22791         * modules/unictype/property-diacritic-tests (Files): Likewise.
22792         * modules/unictype/property-extender-tests (Files): Likewise.
22793         * modules/unictype/property-format-control-tests (Files): Likewise.
22794         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
22795         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
22796         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
22797         * modules/unictype/property-hex-digit-tests (Files): Likewise.
22798         * modules/unictype/property-hyphen-tests (Files): Likewise.
22799         * modules/unictype/property-id-continue-tests (Files): Likewise.
22800         * modules/unictype/property-id-start-tests (Files): Likewise.
22801         * modules/unictype/property-ideographic-tests (Files): Likewise.
22802         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
22803         * modules/unictype/property-ids-trinary-operator-tests (Files):
22804         Likewise.
22805         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
22806         * modules/unictype/property-iso-control-tests (Files): Likewise.
22807         * modules/unictype/property-join-control-tests (Files): Likewise.
22808         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
22809         * modules/unictype/property-line-separator-tests (Files): Likewise.
22810         * modules/unictype/property-logical-order-exception-tests (Files):
22811         Likewise.
22812         * modules/unictype/property-lowercase-tests (Files): Likewise.
22813         * modules/unictype/property-math-tests (Files): Likewise.
22814         * modules/unictype/property-non-break-tests (Files): Likewise.
22815         * modules/unictype/property-not-a-character-tests (Files): Likewise.
22816         * modules/unictype/property-numeric-tests (Files): Likewise.
22817         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
22818         * modules/unictype/property-other-default-ignorable-code-point-tests
22819         (Files): Likewise.
22820         * modules/unictype/property-other-grapheme-extend-tests (Files):
22821         Likewise.
22822         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
22823         * modules/unictype/property-other-id-start-tests (Files): Likewise.
22824         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
22825         * modules/unictype/property-other-math-tests (Files): Likewise.
22826         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
22827         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
22828         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
22829         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
22830         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
22831         * modules/unictype/property-private-use-tests (Files): Likewise.
22832         * modules/unictype/property-punctuation-tests (Files): Likewise.
22833         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
22834         * modules/unictype/property-radical-tests (Files): Likewise.
22835         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
22836         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
22837         * modules/unictype/property-space-tests (Files): Likewise.
22838         * modules/unictype/property-terminal-punctuation-tests (Files):
22839         Likewise.
22840         * modules/unictype/property-test-tests (Files): Likewise.
22841         * modules/unictype/property-titlecase-tests (Files): Likewise.
22842         * modules/unictype/property-unassigned-code-value-tests (Files):
22843         Likewise.
22844         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
22845         * modules/unictype/property-uppercase-tests (Files): Likewise.
22846         * modules/unictype/property-variation-selector-tests (Files): Likewise.
22847         * modules/unictype/property-white-space-tests (Files): Likewise.
22848         * modules/unictype/property-xid-continue-tests (Files): Likewise.
22849         * modules/unictype/property-xid-start-tests (Files): Likewise.
22850         * modules/unictype/property-zero-width-tests (Files): Likewise.
22851         * modules/unictype/scripts-tests (Files): Likewise.
22852         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
22853         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
22854         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
22855         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
22856         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
22857         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
22858         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
22859         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
22860         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
22861         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
22862         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
22863         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
22864         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
22865         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
22866         * modules/uninorm/composition-tests (Files): Likewise.
22867         * modules/uninorm/decomposing-form-tests (Files): Likewise.
22868         * modules/uninorm/decomposition-tests (Files): Likewise.
22869         * modules/uninorm/filter-tests (Files): Likewise.
22870         * modules/uninorm/nfc-tests (Files): Likewise.
22871         * modules/uninorm/nfd-tests (Files): Likewise.
22872         * modules/uninorm/nfkc-tests (Files): Likewise.
22873         * modules/uninorm/nfkd-tests (Files): Likewise.
22874         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
22875         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
22876         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
22877         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
22878         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
22879         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
22880         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
22881         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22882         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
22883         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
22884         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
22885         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
22886         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22887         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
22888         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
22889         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
22890         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
22891         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22892         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
22893         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
22894         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
22895         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
22896         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22897         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
22898         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
22899         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
22900         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
22901         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
22902         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
22903         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
22904         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
22905         * modules/uniwidth/u8-width-tests (Files): Likewise.
22906         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
22907         * modules/uniwidth/u16-width-tests (Files): Likewise.
22908         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
22909         * modules/uniwidth/u32-width-tests (Files): Likewise.
22910         * modules/uniwidth/width-tests (Files): Likewise.
22911         * modules/unlink-tests (Files): Likewise.
22912         * modules/unsetenv-tests (Files): Likewise.
22913         * modules/usleep-tests (Files): Likewise.
22914         * modules/utimens-tests (Files): Likewise.
22915         * modules/utimensat-tests (Files): Likewise.
22916         * modules/vasnprintf-posix-tests (Files): Likewise.
22917         * modules/vasnprintf-tests (Files): Likewise.
22918         * modules/vasprintf-posix-tests (Files): Likewise.
22919         * modules/vasprintf-tests (Files): Likewise.
22920         * modules/vdprintf-posix-tests (Files): Likewise.
22921         * modules/vfprintf-posix-tests (Files): Likewise.
22922         * modules/vprintf-posix-tests (Files): Likewise.
22923         * modules/vsnprintf-posix-tests (Files): Likewise.
22924         * modules/vsnprintf-tests (Files): Likewise.
22925         * modules/vsprintf-posix-tests (Files): Likewise.
22926         * modules/wcrtomb-tests (Files): Likewise.
22927         * modules/wcsnrtombs-tests (Files): Likewise.
22928         * modules/wcsrtombs-tests (Files): Likewise.
22929         * modules/wctype-tests (Files): Likewise.
22930         * modules/wcwidth-tests (Files): Likewise.
22931         * modules/xmemdup0-tests (Files): Likewise.
22932         * modules/xprintf-posix-tests (Files): Likewise.
22933         * modules/xvasprintf-tests (Files): Likewise.
22934
22935 2009-12-24  Eric Blake  <ebb9@byu.net>
22936
22937         test-nanosleep: fix typo
22938         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
22939         patch.
22940         Reported by Bruno Haible.
22941
22942 2009-12-24  Bruno Haible  <bruno@clisp.org>
22943
22944         Reduce namespace pollution on glibc systems.
22945         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
22946         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
22947         systems.
22948         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
22949         <getopt.h> on glibc systems.
22950         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
22951         systems.
22952         * lib/fcntl.c: Include <unistd.h> here instead.
22953
22954 2009-12-24  Bruno Haible  <bruno@clisp.org>
22955
22956         * lib/stdlib.in.h (includes): Fix typo in today's commit.
22957
22958 2009-12-24  Eric Blake  <ebb9@byu.net>
22959
22960         tests: add signature checks
22961         * tests/signature.h (SIGNATURE_CHECK): New file.
22962         * modules/atexit-tests (Files): Use it.
22963         * modules/btowc-tests (Files): Likewise.
22964         * modules/canonicalize-lgpl-tests (Files): Likewise.
22965         * modules/ceilf-tests (Files): Likewise.
22966         * modules/ceill-tests (Files): Likewise.
22967         * modules/chown-tests (Files): Likewise.
22968         * modules/dprintf-posix-tests (Files): Likewise.
22969         * modules/dup2-tests (Files): Likewise.
22970         * modules/dup3-tests (Files): Likewise.
22971         * modules/duplocale-tests (Files): Likewise.
22972         * modules/fchdir-tests (Files): Likewise.
22973         * modules/fcntl-tests (Files): Likewise.
22974         * modules/fdopendir-tests (Files): Likewise.
22975         * modules/fflush-tests (Files): Likewise.
22976         * modules/flock-tests (Files): Likewise.
22977         * modules/floorf-tests (Files): Likewise.
22978         * modules/floorl-tests (Files): Likewise.
22979         * modules/fnmatch-tests (Files): Likewise.
22980         * modules/fopen-tests (Files): Likewise.
22981         * modules/fprintf-posix-tests (Files): Likewise.
22982         * modules/freopen-tests (Files): Likewise.
22983         * modules/frexp-nolibm-tests (Files): Likewise.
22984         * modules/frexp-tests (Files): Likewise.
22985         * modules/frexpl-nolibm-tests (Files): Likewise.
22986         * modules/frexpl-tests (Files): Likewise.
22987         * modules/fseek-tests (Files): Likewise.
22988         * modules/fseeko-tests (Files): Likewise.
22989         * modules/fsync-tests (Files): Likewise.
22990         * modules/ftell-tests (Files): Likewise.
22991         * modules/ftello-tests (Files): Likewise.
22992         * modules/futimens-tests (Files): Likewise.
22993         * modules/getaddrinfo-tests (Files): Likewise.
22994         * modules/getcwd-tests (Files): Likewise.
22995         * modules/getdelim-tests (Files): Likewise.
22996         * modules/getdtablesize-tests (Files): Likewise.
22997         * modules/getgroups-tests (Files): Likewise.
22998         * modules/gethostname-tests (Files): Likewise.
22999         * modules/getline-tests (Files): Likewise.
23000         * modules/getopt-posix-tests (Files): Likewise.
23001         * modules/gettimeofday-tests (Files): Likewise.
23002         * modules/glob-tests (Files): Likewise.
23003         * modules/iconv-tests (Files): Likewise.
23004         * modules/inet_ntop-tests (Files): Likewise.
23005         * modules/inet_pton-tests (Files): Likewise.
23006         * modules/isblank-tests (Files): Likewise.
23007         * modules/lchown-tests (Files): Likewise.
23008         * modules/ldexpl-tests (Files): Likewise.
23009         * modules/link-tests (Files): Likewise.
23010         * modules/linkat-tests (Files): Likewise.
23011         * modules/lseek-tests (Files): Likewise.
23012         * modules/lstat-tests (Files): Likewise.
23013         * modules/mbrtowc-tests (Files): Likewise.
23014         * modules/mbsinit-tests (Files): Likewise.
23015         * modules/mbsnrtowcs-tests (Files): Likewise.
23016         * modules/mbsrtowcs-tests (Files): Likewise.
23017         * modules/memchr-tests (Files): Likewise.
23018         * modules/memcmp-tests (Files): Likewise.
23019         * modules/memmem-tests (Files): Likewise.
23020         * modules/memrchr-tests (Files): Likewise.
23021         * modules/mkdir-tests (Files): Likewise.
23022         * modules/mkfifo-tests (Files): Likewise.
23023         * modules/mkfifoat-tests (Files): Likewise.
23024         * modules/mknod-tests (Files): Likewise.
23025         * modules/nanosleep-tests (Files): Likewise.
23026         * modules/nl_langinfo-tests (Files): Likewise.
23027         * modules/obstack-printf-tests (Files): Likewise.
23028         * modules/open-tests (Files): Likewise.
23029         * modules/openat-tests (Files): Likewise.
23030         * modules/perror-tests (Files): Likewise.
23031         * modules/pipe2-tests (Files): Likewise.
23032         * modules/poll-tests (Files): Likewise.
23033         * modules/popen-tests (Files): Likewise.
23034         * modules/posix_spawn-tests (Files): Likewise.
23035         * modules/posix_spawnp-tests (Files): Likewise.
23036         * modules/pread-tests (Files): Likewise.
23037         * modules/printf-posix-tests (Files): Likewise.
23038         * modules/pty-tests (Files): Likewise.
23039         * modules/random_r-tests (Files): Likewise.
23040         * modules/rawmemchr-tests (Files): Likewise.
23041         * modules/readlink-tests (Files): Likewise.
23042         * modules/remove-tests (Files): Likewise.
23043         * modules/rename-tests (Files): Likewise.
23044         * modules/renameat-tests (Files): Likewise.
23045         * modules/rmdir-tests (Files): Likewise.
23046         * modules/round-tests (Files): Likewise.
23047         * modules/roundf-tests (Files): Likewise.
23048         * modules/roundl-tests (Files): Likewise.
23049         * modules/select-tests (Files): Likewise.
23050         * modules/setenv-tests (Files): Likewise.
23051         * modules/sigaction-tests (Files): Likewise.
23052         * modules/sleep-tests (Files): Likewise.
23053         * modules/snprintf-posix-tests (Files): Likewise.
23054         * modules/snprintf-tests (Files): Likewise.
23055         * modules/sprintf-posix-tests (Files): Likewise.
23056         * modules/stat-tests (Files): Likewise.
23057         * modules/strcasestr-tests (Files): Likewise.
23058         * modules/strchrnul-tests (Files): Likewise.
23059         * modules/strerror-tests (Files): Likewise.
23060         * modules/strsignal-tests (Files): Likewise.
23061         * modules/strstr-tests (Files): Likewise.
23062         * modules/strtod-tests (Files): Likewise.
23063         * modules/strverscmp-tests (Files): Likewise.
23064         * modules/symlink-tests (Files): Likewise.
23065         * modules/symlinkat-tests (Files): Likewise.
23066         * modules/times-tests (Files): Likewise.
23067         * modules/trunc-tests (Files): Likewise.
23068         * modules/truncf-tests (Files): Likewise.
23069         * modules/truncl-tests (Files): Likewise.
23070         * modules/tsearch-tests (Files): Likewise.
23071         * modules/uname-tests (Files): Likewise.
23072         * modules/unlink-tests (Files): Likewise.
23073         * modules/unsetenv-tests (Files): Likewise.
23074         * modules/usleep-tests (Files): Likewise.
23075         * modules/utimensat-tests (Files): Likewise.
23076         * modules/vasprintf-tests (Files): Likewise.
23077         * modules/vdprintf-posix-tests (Files): Likewise.
23078         * modules/vfprintf-posix-tests (Files): Likewise.
23079         * modules/vprintf-posix-tests (Files): Likewise.
23080         * modules/vsnprintf-posix-tests (Files): Likewise.
23081         * modules/vsnprintf-tests (Files): Likewise.
23082         * modules/vsprintf-posix-tests (Files): Likewise.
23083         * modules/wcrtomb-tests (Files): Likewise.
23084         * modules/wcsnrtombs-tests (Files): Likewise.
23085         * modules/wcsrtombs-tests (Files): Likewise.
23086         * modules/wcwidth-tests (Files): Likewise.
23087         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
23088         * tests/test-isinf.c (isinf): Likewise.
23089         * tests/test-isnan.c (isnan): Likewise.
23090         * tests/test-signbit.c (signbit): Likewise.
23091         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
23092         declaration, either as macro or with correct signature.
23093         (select): Ensure function under test is declared with correct
23094         signature in correct header.
23095         * tests/test-atexit.c (atexit): Likewise.
23096         * tests/test-btowc.c (btowc): Likewise.
23097         * tests/test-canonicalize-lgpl.c (realpath)
23098         (canonicalize_file_name): Likewise.
23099         * tests/test-ceilf1.c (ceilf): Likewise.
23100         * tests/test-ceill.c (ceill): Likewise.
23101         * tests/test-chown.c (chown): Likewise.
23102         * tests/test-dprintf-posix.c (dprintf): Likewise.
23103         * tests/test-dup2.c (dup2): Likewise.
23104         * tests/test-dup3.c (dup3): Likewise.
23105         * tests/test-duplocale.c (duplocale): Likewise.
23106         * tests/test-fchdir.c (fchdir): Likewise.
23107         * tests/test-fchownat.c (fchownat): Likewise.
23108         * tests/test-fcntl.c (fcntl): Likewise.
23109         * tests/test-fdopendir.c (fdopendir): Likewise.
23110         * tests/test-fflush.c (fflush): Likewise.
23111         * tests/test-flock.c (flock): Likewise.
23112         * tests/test-floorf1.c (floorf): Likewise.
23113         * tests/test-floorl.c (floorl): Likewise.
23114         * tests/test-fnmatch.c (fnmatch): Likewise.
23115         * tests/test-fopen.c (fopen): Likewise.
23116         * tests/test-fprintf-posix.c (fprintf): Likewise.
23117         * tests/test-freopen.c (freopen): Likewise.
23118         * tests/test-frexp.c (frexp): Likewise.
23119         * tests/test-frexpl.c (frexpl): Likewise.
23120         * tests/test-fseek.c (fseek): Likewise.
23121         * tests/test-fseeko.c (fseeko): Likewise.
23122         * tests/test-fstatat.c (fstatat): Likewise.
23123         * tests/test-fsync.c (fsync): Likewise.
23124         * tests/test-ftell.c (ftell): Likewise.
23125         * tests/test-ftello.c (ftello): Likewise.
23126         * tests/test-futimens.c (futimens): Likewise.
23127         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
23128         (gai_strerror): Likewise.
23129         * tests/test-getcwd.c (getcwd): Likewise.
23130         * tests/test-getdelim.c (getdelim): Likewise.
23131         * tests/test-getdtablesize.c (getdtablesize): Likewise.
23132         * tests/test-getgroups.c (getgroups): Likewise.
23133         * tests/test-gethostname.c (gethostname): Likewise.
23134         * tests/test-getline.c (getline): Likewise.
23135         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
23136         Likewise.
23137         * tests/test-gettimeofday.c (gettimeofday): Likewise.
23138         * tests/test-glob.c (glob, globfree): Likewise.
23139         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
23140         * tests/test-inet_ntop.c (inet_ntop): Likewise.
23141         * tests/test-inet_pton.c (inet_pton): Likewise.
23142         * tests/test-isblank.c (isblank): Likewise.
23143         * tests/test-lchown.c (lchown): Likewise.
23144         * tests/test-ldexpl.c (ldexpl): Likewise.
23145         * tests/test-link.c (link): Likewise.
23146         * tests/test-linkat.c (linkat): Likewise.
23147         * tests/test-lseek.c (lseek): Likewise.
23148         * tests/test-lstat.c (lstat): Likewise.
23149         * tests/test-mbrtowc.c (mbrtowc): Likewise.
23150         * tests/test-mbsinit.c (mbsinit): Likewise.
23151         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
23152         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
23153         * tests/test-memchr.c (memchr): Likewise.
23154         * tests/test-memcmp.c (memcmp): Likewise.
23155         * tests/test-memmem.c (memmem): Likewise.
23156         * tests/test-memrchr.c (memrchr): Likewise.
23157         * tests/test-mkdir.c (mkdir): Likewise.
23158         * tests/test-mkdirat.c (mkdirat): Likewise.
23159         * tests/test-mkfifo.c (mkfifo): Likewise.
23160         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
23161         * tests/test-mknod.c (mknod): Likewise.
23162         * tests/test-nanosleep.c (nanosleep): Likewise.
23163         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
23164         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
23165         Likewise.
23166         * tests/test-open.c (open): Likewise.
23167         * tests/test-openat.c (openat): Likewise.
23168         * tests/test-perror.c (perror): Likewise.
23169         * tests/test-pipe2.c (pipe2): Likewise.
23170         * tests/test-poll.c (poll): Likewise.
23171         * tests/test-popen.c (popen, pclose): Likewise.
23172         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
23173         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
23174         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
23175         (posix_spawn_file_actions_destroy)
23176         (posix_spawn_file_actions_addclose)
23177         (posix_spawn_file_actions_addopen)
23178         (posix_spawn_file_actions_adddup2): Likewise.
23179         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
23180         * tests/test-pread.c (pread): Likewise.
23181         * tests/test-printf-posix.c (printf): Likewise.
23182         * tests/test-pty.c (openpty, forkpty): Likewise.
23183         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
23184         (random_r): Likewise.
23185         * tests/test-rawmemchr.c (rawmemchr): Likewise.
23186         * tests/test-readlink.c (readlink): Likewise.
23187         * tests/test-remove.c (remove): Likewise.
23188         * tests/test-rename.c (rename): Likewise.
23189         * tests/test-renameat.c (renameat): Likewise.
23190         * tests/test-rmdir.c (rmdir): Likewise.
23191         * tests/test-round1.c (round): Likewise.
23192         * tests/test-roundf1.c (roundf): Likewise.
23193         * tests/test-roundl.c (roundl): Likewise.
23194         * tests/test-setenv.c (setenv): Likewise.
23195         * tests/test-sigaction.c (sigaction): Likewise.
23196         * tests/test-sleep.c (sleep): Likewise.
23197         * tests/test-snprintf.c (snprintf): Likewise.
23198         * tests/test-sprintf-posix.c (sprintf): Likewise.
23199         * tests/test-stat.c (stat): Likewise.
23200         * tests/test-stpncpy.c (stpncpy): Likewise.
23201         * tests/test-strcasestr.c (strcasestr): Likewise.
23202         * tests/test-strchrnul.c (strchrnul): Likewise.
23203         * tests/test-strerror.c (strerror): Likewise.
23204         * tests/test-strsignal.c (strsignal): Likewise.
23205         * tests/test-strstr.c (strstr): Likewise.
23206         * tests/test-strtod.c (strtod): Likewise.
23207         * tests/test-strverscmp.c (strverscmp): Likewise.
23208         * tests/test-symlink.c (symlink): Likewise.
23209         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
23210         * tests/test-times.c (times): Likewise.
23211         * tests/test-trunc1.c (trunc): Likewise.
23212         * tests/test-truncf1.c (truncf): Likewise.
23213         * tests/test-truncl.c (truncl): Likewise.
23214         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
23215         Likewise.
23216         * tests/test-uname.c (uname): Likewise.
23217         * tests/test-unlink.c (unlink): Likewise.
23218         * tests/test-unlinkat.c (unlinkat): Likewise.
23219         * tests/test-unsetenv.c (unsetenv): Likewise.
23220         * tests/test-usleep.c (usleep): Likewise.
23221         * tests/test-utimensat.c (utimensat): Likewise.
23222         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
23223         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
23224         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
23225         * tests/test-vprintf-posix.c (vprintf): Likewise.
23226         * tests/test-vsnprintf.c (vsnprintf): Likewise.
23227         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
23228         * tests/test-wcrtomb.c (wcrtomb): Likewise.
23229         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
23230         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
23231         * tests/test-wcwidth.c (wcwidth): Likewise.
23232
23233         build: pull in conditional headers during GNULIB_POSIXCHECK
23234         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
23235         definitions from any conditionally-included headers.
23236         * lib/stdlib.in.h (includes): Likewise.
23237         * lib/unistd.in.h (includes): Likewise.
23238
23239 2009-12-24  Bruno Haible  <bruno@clisp.org>
23240
23241         * tests/test-argv-iter.c: Include header file being tested immediately
23242         after config.h.
23243         * tests/test-base64.c: Likewise.
23244         * tests/test-flock.c: Likewise.
23245         * tests/test-fsync.c: Likewise.
23246         * tests/test-getdate.c: Likewise.
23247         * tests/test-getndelim2.c: Likewise.
23248         * tests/test-isfinite.c: Likewise.
23249         * tests/test-isinf.c: Likewise.
23250         * tests/test-strerror.c: Likewise.
23251         * tests/test-strsignal.c: Likewise.
23252
23253 2009-12-23  Eric Blake  <ebb9@byu.net>
23254
23255         unistd: work around cygwin bug
23256         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
23257         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
23258         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23259
23260 2009-12-23  Bruno Haible  <bruno@clisp.org>
23261
23262         localename: More tests.
23263         * tests/test-localename.c (SIZEOF): New macro.
23264         (categories): New variable.
23265         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
23266         test_locale_name_default): Add test w.r.t. thread locale.
23267         (test_locale_name_thread): New function.
23268         (main): Invoke it.
23269
23270         localename: Make aware of thread locale.
23271         * lib/localename.h (gl_locale_name_thread): New declaration.
23272         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
23273         behaviour with respect to thread locale.
23274         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
23275         <langinfo.h>, glthread/lock.h.
23276         (SIZE_BITS): New macro.
23277         (string_hash): New function.
23278         (struct hash_node): New type.
23279         (HASH_TABLE_SIZE): New macro.
23280         (struniq_hash_table, struniq_lock): New variables.
23281         (struniq): New function.
23282         (gl_locale_name_thread): New function.
23283         (gl_locale_name): Invoke it.
23284         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
23285         * modules/localename (Depends-on): Add lock.
23286         Reported by Mike Gran <spk121@yahoo.com>.
23287
23288 2009-12-23  Eric Blake  <ebb9@byu.net>
23289
23290         va-args: new module
23291         * modules/va-args: New file.
23292         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
23293         * MODULES.html.sh (Core language properties): Mention it.
23294
23295         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
23296         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
23297         named alias for __attribute__((__unused__)).
23298         * lib/chown.c: Update client.
23299         * lib/fchmodat.c: Likewise.
23300         * lib/fts.c: Likewise.
23301         * lib/getdate.y: Likewise.
23302         * lib/getgroups.c: Likewise.
23303         * lib/getopt.c: Likewise.
23304         * lib/getugroups.c: Likewise.
23305         * lib/mkdir.c: Likewise.
23306         * lib/mkfifo.c: Likewise.
23307         * lib/mkfifoat.c: Likewise.
23308         * lib/mknod.c: Likewise.
23309         * lib/mknodat.c: Likewise.
23310         * lib/readlink.c: Likewise.
23311         * lib/se-context.in.h: Likewise.
23312         * lib/se-selinux.in.h: Likewise.
23313         * lib/sockets.c: Likewise.
23314         * lib/symlink.c: Likewise.
23315         * lib/symlinkat.c: Likewise.
23316         * lib/unicodeio.c: Likewise.
23317         * lib/unistr.h: Likewise.
23318         * tests/test-areadlink.c: Likewise.
23319         * tests/test-areadlinkat.c: Likewise.
23320         * tests/test-filenamecat.c: Likewise.
23321         * tests/test-fseeko.c: Likewise.
23322         * tests/test-ftello.c: Likewise.
23323         * tests/test-getdate.c: Likewise.
23324         * tests/test-getgroups.c: Likewise.
23325         * tests/test-gethostname.c: Likewise.
23326         * tests/test-quotearg.c: Likewise.
23327         * tests/test-version-etc.c: Likewise.
23328         * tests/test-xalloc-die.c: Likewise.
23329         * tests/test-xfprintf-posix.c: Likewise.
23330         * tests/test-xprintf-posix.c: Likewise.
23331         * tests/test-xvasprintf.c: Likewise.
23332
23333         tests: avoid compiler warnings
23334         * tests/test-fcntl.c (main): Delete unused parameters.
23335         * tests/test-freopen-safer.c (main): Likewise.
23336         * tests/test-xalloc-die.c (main): Mark unused parameters.
23337         * tests/test-fseeko.c (main): Likewise.
23338         * tests/test-ftello.c (main): Likewise.
23339         * tests/test-nanosleep.c (main): Avoid declaration warning.
23340         * tests/test-sleep.c (main): Likewise.
23341         * tests/test-unsetenv.c (main): Silence warning about string
23342         literal.
23343         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23344
23345 2009-12-23  Bruno Haible  <bruno@clisp.org>
23346
23347         * tests/test-localename.c (test_locale_name): New function, extracted
23348         from main. Also test mixed situations.
23349         (test_locale_name_posix, test_locale_name_environ,
23350         test_locale_name_default): New functions.
23351         (main): Invoke them all.
23352         * modules/localename-tests (configure.ac): Test for newlocale.
23353
23354 2009-12-23  Bruno Haible  <bruno@clisp.org>
23355
23356         unistd: Ensure getcwd gets declared before being overridden.
23357         * lib/unistd.in.h: Conditionally include <io.h>.
23358
23359 2009-12-22  Bruno Haible  <bruno@clisp.org>
23360
23361         wchar: Diagnose broken combination of glibc and gcc versions and flags.
23362         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
23363         (gl_WCHAR_H): Invoke it.
23364         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
23365         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
23366         Reported by Karl Berry <karl@freefriends.org>.
23367
23368 2009-12-22  Eric Blake  <ebb9@byu.net>
23369
23370         math, unistd: avoid redundant includes
23371         * lib/math.in.h (isnan): No need to re-include <math.h>.
23372         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
23373
23374         getsubopt: work around cygwin bug
23375         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
23376         avoid conflicting with system getsubopt.
23377         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
23378         bug.
23379
23380         getopt: synchronize from glibc
23381         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
23382         parameter order.  Adjust all callers.
23383         (_getopt_internal_r, main): Adjust quoting in error messages.
23384         Drop considerations for outdated POSIX 1003.2 error message.
23385         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
23386         callers.
23387         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
23388
23389         test-getopt: test stderr behavior
23390         * modules/getopt-posix-tests (Depends-on): Add dup2.
23391         * tests/test-getopt.c (ASSERT): Avoid stderr.
23392         (main): Move stderr to a temporary file.
23393         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
23394         Instead, add parameter to inform caller if output occurred.
23395         (test_getopt): Adjust all existing tests to expect silence, and
23396         add new tests of leading ":".
23397         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23398         glibc shortcomings with leading "-:" or "+:" in optstring.
23399         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23400         Likewise.
23401         * doc/posix-functions/getopt.texi (getopt): Likewise.
23402
23403         test-getopt: enhance test
23404         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
23405         supports optind=0.
23406         * tests/test-getopt.c (OPTIND_MIN): Move...
23407         * tests/test-getopt.h (OPTIND_MIN): ...here.
23408         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
23409         Require that optind=0 works, since modern BSD supports it in
23410         addition to optreset, and since coreutils expects it.
23411         (test_getopt_long_only): New test.
23412         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23413         glibc shortcomings with 'W;', and enforcement of optind=0.
23414         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23415         Likewise.
23416
23417 2009-12-21  Bruno Haible  <bruno@clisp.org>
23418
23419         localename: Improvements for MacOS X and Cygwin.
23420         * lib/localename.h (gl_locale_name_environ): New declaration.
23421         * lib/localename.c (gl_locale_name_environ): New function, extracted from
23422         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
23423         (gl_locale_name_posix): Invoke it.
23424         (gl_locale_name_default): Add comments. Use Windows native API also on
23425         Cygwin.
23426
23427 2009-12-21  Bruno Haible  <bruno@clisp.org>
23428
23429         Update list of Win32 locale ids.
23430         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
23431         (LANG_SAMI): Renamed from LANG_SAAMI.
23432         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
23433         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
23434         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
23435         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
23436         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
23437         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
23438         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
23439         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
23440         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
23441         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
23442         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
23443         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
23444         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
23445         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
23446         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
23447         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
23448         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
23449         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
23450         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
23451         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
23452         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
23453         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
23454         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
23455         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
23456         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
23457         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
23458         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
23459         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
23460         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
23461         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
23462         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
23463         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
23464         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
23465         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
23466         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
23467         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
23468         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
23469         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
23470         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
23471         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
23472         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
23473         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
23474         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
23475         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
23476         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
23477         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
23478         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
23479         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
23480         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
23481         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
23482         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
23483         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
23484         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
23485         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
23486         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
23487         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
23488         Add more languages and countries for Sami, Sorbian. Add more countries
23489         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
23490         for Pashto. Change country for Syriac, Tswana.
23491
23492 2009-12-21  Eric Blake  <ebb9@byu.net>
23493
23494         test-utimens: avoid spurious failure
23495         * tests/test-chown.h (nap): Factor...
23496         * tests/nap.h: ...into new file.
23497         * tests/test-lchown.h (nap): Avoid duplication.
23498         * tests/test-utimens-common.h (nap): Use shared implementation,
23499         necessary on file systems with 1-second resolution.
23500         * modules/chown-tests (Files): Include new file.
23501         * modules/fdutimensat-tests (Files): Likewise.
23502         * modules/futimens-tests (Files): Likewise.
23503         * modules/lchown-tests (Files): Likewise.
23504         * modules/openat-tests (Files): Likewise.
23505         * modules/utimens-tests (Files): Likewise.
23506         * modules/utimensat-tests (Files): Likewise.
23507
23508 2009-12-19  Eric Blake  <ebb9@byu.net>
23509
23510         futimens, utimensat: work around Linux bug
23511         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
23512         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23513         * lib/utimensat.c (rpl_utimensat): Work around it.
23514         * lib/futimens.c (rpl_futimens): Adjust comment.
23515
23516         utimens: work around Linux ctime bug
23517         * lib/utimens.c (detect_ctime_bug): New helper function.
23518         (update_timespec): Differentiate between workaround needed for
23519         this bug vs. what is needed for systems that lack utimensat.
23520         (fdutimens, lutimens): Work around bug.
23521
23522         utimens: check for ctime update
23523         * tests/test-utimens-common.h (check_ctime): Define.
23524         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
23525         * tests/test-futimens.h (test_futimens): Likewise.
23526         * tests/test-lutimens.h (test_lutimens): Likewise.
23527         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23528         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23529
23530 2009-12-19  Bruno Haible  <bruno@clisp.org>
23531
23532         dprintf-posix: Check against memory leak fixed on 2009-12-15.
23533         * tests/test-dprintf-posix2.sh: New file.
23534         * tests/test-dprintf-posix2.c: New file.
23535         * modules/dprintf-posix-tests (Files): Add them.
23536         (configure.ac): Check for getrlimit and setrlimit.
23537         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23538
23539 2009-12-19  Bruno Haible  <bruno@clisp.org>
23540
23541         fprintf-posix: Check against memory leak fixed on 2009-12-15.
23542         * tests/test-fprintf-posix3.sh: New file.
23543         * tests/test-fprintf-posix3.c: New file.
23544         * modules/fprintf-posix-tests (Files): Add them.
23545         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23546
23547 2009-12-19  Eric Blake  <ebb9@byu.net>
23548
23549         dirfd: fix prototype
23550         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
23551         * lib/dirfd.c (dirfd): Likewise.
23552
23553         canonicalize: reduce memory usage
23554         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
23555         allocation to size.
23556         Reported by Solar Designer <solar@openwall.com>.
23557
23558 2009-12-19  Bruno Haible  <bruno@clisp.org>
23559
23560         New module attribute 'Applicability'.
23561         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
23562         * gnulib-tool: New option --extract-applicability.
23563         (func_usage): Document it.
23564         (sed_extract_prog): Recognize it.
23565         (func_get_applicability): New function.
23566         (func_import): Generalize handling of 'link-warning' module.
23567         * modules/link-warning (Applicability): New section.
23568         * modules/arg-nonnull (Applicability): New section.
23569         Repoted by Simon Josefsson <simon@josefsson.org>.
23570
23571 2009-12-19  Bruno Haible  <bruno@clisp.org>
23572
23573         fflush: tweak
23574         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
23575         * lib/fseeko.c (rpl_fseeko): Likewise.
23576
23577 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
23578
23579         * lib/gl_list.h: Fix typo in comment.
23580
23581 2009-12-16  Eric Blake  <ebb9@byu.net>
23582
23583         fcntl: use to simplify other modules
23584         * modules/cloexec (Depends-on): Add fcntl.
23585         * modules/fchdir (Depends-on): Likewise.
23586         * modules/fd-safer-flag (Depends-on): Likewise.
23587         * modules/unistd-safer (Depends-on): Likewise.
23588         * modules/dup3 (configure.ac): Set module indicator.
23589         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
23590         missing.
23591         * lib/fchdir.c (_gl_register_dup): Fix comment.
23592         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
23593         * lib/dup-safer.c (dup_safer): Likewise.
23594         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
23595         * lib/dup3.c (dup3): Likewise.
23596         * tests/test-fchdir.c (main): Enhance test.
23597         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
23598
23599         fcntl: port portions of fcntl to mingw
23600         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
23601         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
23602         replacement for mingw.
23603         * modules/fcntl (Description): Update.
23604         (Depends-on): Add dup2.
23605         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
23606         * modules/fcntl-h (Makefile.am): Substitute it.
23607         * lib/fcntl.in.h (fcntl): Update declaration.
23608         (F_DUPFD, F_GETFD): New macros, when needed.
23609         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23610         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
23611         * tests/test-fcntl.c (check_flags, main): Enhance test for items
23612         we now guarantee.
23613
23614         fcntl: work around cygwin bug in F_DUPFD
23615         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
23616         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
23617         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
23618         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
23619         * doc/posix-functions/fcntl.texi (fcntl): Document it.
23620
23621         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
23622         * modules/fcntl (Files): List new files.
23623         (configure.ac): Run a test.
23624         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
23625         * lib/fcntl.c (rpl_fcntl): Likewise.
23626         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
23627         (gl_FCNTL_H): Always replace fcntl.h.
23628         * modules/fcntl-h (Makefile.am): Substitute witnesses.
23629         * lib/fcntl.in.h (fcntl): Declare replacement.
23630         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
23631         needed, plus a witness.
23632         * doc/posix-functions/fcntl.texi (fcntl): Document this.
23633         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23634         * tests/test-fcntl.c: New file.
23635         * modules/fcntl-tests: Likewise.
23636
23637         binary-io: avoid potential compilation warning
23638         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
23639         directives.
23640
23641         fflush: avoid compilation error on NetBSD
23642         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
23643         between off_t and fpos_t, since the latter is sometimes a struct.
23644         * lib/fseeko.c (rpl_fseeko): Likewise.
23645         Reported by Alexander Nasonov <alnsn@yandex.ru>.
23646
23647 2009-12-15  Eric Blake  <ebb9@byu.net>
23648
23649         fcntl-h, stdio, sys_ioctl: fix declarations
23650         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
23651         function must not take arguments.
23652         * lib/sys_ioctl.in.h (ioctl): Likewise.
23653         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
23654         (open): Add a link warning.
23655
23656 2009-12-15  Jim Meyering  <meyering@redhat.com>
23657
23658         areadlink, areadlink-with-size: relax license to LGPLv2+
23659         * modules/areadlink (License): Relax to LGPLv2+.
23660         * modules/areadlink-with-size (License): Likewise.
23661
23662 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
23663             Bruno Haible  <bruno@clisp.org>
23664
23665         *printf: Fix memory leak.
23666         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
23667         * lib/vfprintf.c (vfprintf): Likewise.
23668         * lib/dprintf.c (dprintf): Likewise.
23669         * lib/vdprintf.c (vdprintf): Likewise.
23670
23671 2009-12-14  Eric Blake  <ebb9@byu.net>
23672
23673         accept4: adjust module dependencies
23674         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
23675
23676         utimens: one more try at avoiding compiler warning
23677         * lib/utimens.c (lutimens): Lower scope of result.
23678
23679 2009-12-13  Bruno Haible  <bruno@clisp.org>
23680
23681         Move the malloc checking from module 'list' to new module 'xlist'.
23682         * modules/xlist: New file.
23683         * lib/gl_xlist.h: New file.
23684         * lib/gl_xlist.c: New file.
23685         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
23686         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
23687         gl_list_add_last, gl_list_add_before, gl_list_add_after,
23688         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
23689         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
23690         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
23691         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
23692         gl_sortedlist_nx_add): New declarations.
23693         (struct gl_list_implementation): Rename and change methods accordingly.
23694         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
23695         (gl_list_nx_create): Renamed from gl_list_create.
23696         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23697         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23698         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23699         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23700         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23701         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23702         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23703         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23704         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
23705         gl_list_create_empty.
23706         (gl_list_nx_create): Renamed from gl_list_create.
23707         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23708         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23709         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23710         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23711         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23712         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23713         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23714         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23715         * lib/gl_array_list.c: Don't include xalloc.h.
23716         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
23717         NULL upon out-of-memory.
23718         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
23719         out-of-memory.
23720         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
23721         Change return type to 'int'.
23722         (gl_array_nx_set_at): Renamed from gl_array_set_at.
23723         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23724         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
23725         upon out-of-memory.
23726         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
23727         upon out-of-memory.
23728         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
23729         upon out-of-memory.
23730         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
23731         upon out-of-memory.
23732         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
23733         out-of-memory.
23734         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
23735         Update.
23736         (gl_array_list_implementation): Update.
23737         * lib/gl_carray_list.c: Don't include xalloc.h.
23738         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
23739         Return NULL upon out-of-memory.
23740         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
23741         out-of-memory.
23742         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
23743         Change return type to 'int'.
23744         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
23745         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23746         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
23747         upon out-of-memory.
23748         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
23749         upon out-of-memory.
23750         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
23751         out-of-memory.
23752         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
23753         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
23754         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
23755         Update.
23756         (gl_carray_list_implementation): Update.
23757         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
23758         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
23759         gl_linked_create_empty. Return NULL upon out-of-memory.
23760         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
23761         out-of-memory.
23762         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
23763         Change return type to 'int'. Return -1 upon out-of-memory.
23764         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
23765         out-of-memory.
23766         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
23767         upon out-of-memory.
23768         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
23769         upon out-of-memory.
23770         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
23771         NULL upon out-of-memory.
23772         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
23773         upon out-of-memory.
23774         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
23775         out-of-memory.
23776         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
23777         Update.
23778         * lib/gl_linked_list.c: Don't include xalloc.h.
23779         (gl_linked_list_implementation): Update.
23780         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
23781         (add_to_bucket): Change return type to 'int'.
23782         (gl_linkedhash_list_implementation): Update.
23783         * lib/gl_anytree_list1.h (free_subtree): New function.
23784         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
23785         gl_tree_create_empty. Return NULL upon out-of-memory.
23786         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
23787         Change return type to 'int'. Return -1 upon out-of-memory.
23788         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
23789         out-of-memory.
23790         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
23791         (gl_tree_remove_node): New function, moved here from
23792         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
23793         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
23794         Update.
23795         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
23796         malloc, not xmalloc. Return NULL upon out-of-memory.
23797         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23798         out-of-memory.
23799         (gl_tree_remove_node_from_tree): New function, extracted from
23800         gl_tree_remove_node.
23801         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23802         upon out-of-memory.
23803         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23804         out-of-memory.
23805         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23806         upon out-of-memory.
23807         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23808         upon out-of-memory.
23809         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23810         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
23811         not xmalloc. Return NULL upon out-of-memory.
23812         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23813         out-of-memory.
23814         (gl_tree_remove_node_from_tree): New function, extracted from
23815         gl_tree_remove_node.
23816         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23817         upon out-of-memory.
23818         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23819         out-of-memory.
23820         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23821         upon out-of-memory.
23822         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23823         upon out-of-memory.
23824         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23825         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
23826         gl_anytree_list1.h before gl_anyavltree_list2.h.
23827         (gl_avltree_list_implementation): Update.
23828         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
23829         gl_anytree_list1.h before gl_anyavltree_list2.h.
23830         (gl_rbtree_list_implementation): Update.
23831         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
23832         Change return type to 'int'. Return -1 upon out-of-memory. Use
23833         __builtin_expect.
23834         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
23835         (gl_avltreehash_list_implementation): Update.
23836         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
23837         (gl_rbtreehash_list_implementation): Update.
23838         * modules/array-list (Depends-on): Remove xalloc.
23839         * modules/carray-list (Depends-on): Likewise.
23840         * modules/linked-list (Depends-on): Likewise.
23841         * modules/linkedhash-list (Depends-on): Likewise.
23842         * modules/avltree-list (Depends-on): Likewise.
23843         * modules/rbtree-list (Depends-on): Likewise.
23844         * modules/avltreehash-list (Depends-on): Likewise.
23845         * modules/rbtreehash-list (Depends-on): Likewise.
23846
23847         * modules/xsublist: New file.
23848         * lib/gl_xsublist.h: New file.
23849         * lib/gl_xsublist.c: New file.
23850         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
23851         (gl_sublist_nx_create): New declaration.
23852         * lib/gl_sublist.c: Don't include xalloc.h.
23853         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
23854         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
23855         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
23856         Change return type to 'int'. Return -1 upon out-of-memory.
23857         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
23858         upon out-of-memory.
23859         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
23860         NULL upon out-of-memory.
23861         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
23862         upon out-of-memory.
23863         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
23864         NULL upon out-of-memory.
23865         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
23866         NULL upon out-of-memory.
23867         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
23868         upon out-of-memory.
23869         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
23870         (gl_sublist_list_implementation): Update.
23871         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
23872         upon out-of-memory.
23873         * modules/sublist (Depends-on): Remove xalloc.
23874
23875         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
23876         * tests/test-carray_list.c: Likewise.
23877         * tests/test-linked_list.c: Likewise.
23878         * tests/test-linkedhash_list.c: Likewise.
23879         * tests/test-avltree_list.c: Likewise.
23880         * tests/test-rbtree_list.c: Likewise.
23881         * tests/test-avltreehash_list.c: Likewise.
23882         * tests/test-rbtreehash_list.c: Likewise.
23883         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
23884         * modules/carray-list-tests (Makefile.am): Likewise.
23885         * modules/linked-list-tests (Makefile.am): Likewise.
23886         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23887         * modules/avltree-list-tests (Makefile.am): Likewise.
23888         * modules/rbtree-list-tests (Makefile.am): Likewise.
23889         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23890         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23891
23892         * NEWS: Mention the changes.
23893
23894         * lib/clean-temp.c: Include gl_xlist.h.
23895         * modules/clean-temp (Depends-on): Add xlist.
23896
23897         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
23898         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
23899
23900         * tests/test-array_oset.c: Include gl_xlist.h.
23901         * modules/array-oset-tests (Depends-on): Add xlist.
23902
23903         Reported by José E. Marchesi <jemarch@gnu.org>.
23904
23905 2009-12-13  Bruno Haible  <bruno@clisp.org>
23906
23907         Move the malloc checking from module 'oset' to new module 'xoset'.
23908         * modules/xoset: New file.
23909         * lib/gl_xoset.h: New file.
23910         * lib/gl_xoset.c: New file.
23911         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
23912         declarations.
23913         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
23914         (struct gl_oset_implementation): Rename and change methods accordingly.
23915         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
23916         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23917         'int'. Mark as __warn_unused_result__.
23918         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
23919         gl_oset_create_empty.
23920         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23921         'int'.
23922         * lib/gl_array_oset.c: Don't include xalloc.h.
23923         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
23924         malloc, not xmalloc.
23925         (grow): Change return type to 'int'. Don't call xalloc_die.
23926         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
23927         to 'int'.
23928         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
23929         'int'.
23930         (gl_array_oset_implementation): Update.
23931         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
23932         gl_tree_create_empty.
23933         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
23934         'int'.
23935         * lib/gl_avltree_oset.c: Don't include xalloc.h.
23936         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23937         xmalloc.
23938         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23939         not xmalloc.
23940         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23941         xmalloc.
23942         (gl_avltree_oset_implementation): Update.
23943         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
23944         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23945         xmalloc.
23946         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23947         not xmalloc.
23948         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23949         xmalloc.
23950         (gl_rbtree_oset_implementation): Update.
23951         * modules/array-oset (Depends-on): Remove xalloc.
23952         * modules/avltree-oset (Depends-on): Likewise.
23953         * modules/rbtree-oset (Depends-on): Likewise.
23954         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
23955         * tests/test-avltree_oset.c: Likewise.
23956         * tests/test-rbtree_oset.c: Likewise.
23957         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
23958         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
23959         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23960         * NEWS: Mention the change.
23961
23962 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
23963
23964         maint.mk: allow a project to override release-prep commands
23965         * top/maint.mk (alpha, beta, stable): Move release-preparatory
23966         commands into a new rule.
23967         (release-prep): New rule.
23968         (release-prep-hook): New overridable variable.
23969
23970 2009-12-13  Bruno Haible  <bruno@clisp.org>
23971
23972         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
23973
23974 2009-12-13  Jim Meyering  <meyering@redhat.com>
23975
23976         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
23977         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
23978
23979 2009-12-12  Bruno Haible  <bruno@clisp.org>
23980
23981         duplocale: Tweak.
23982         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
23983
23984 2009-12-12  Karl Berry  <karl@gnu.org>
23985
23986         * config/srclist.txt (strtoll.c): tab changes, no more sync.
23987
23988 2009-12-12  Bruno Haible  <bruno@clisp.org>
23989
23990         * m4/po.m4: Undo incorrect untabification.
23991
23992 2009-12-12  Bruno Haible  <bruno@clisp.org>
23993
23994         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
23995         * modules/c-strtod (Depends-on): Add locale.
23996         * modules/c-strtold (Depends-on): Likewise.
23997
23998 2009-12-12  Bruno Haible  <bruno@clisp.org>
23999
24000         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
24001
24002 2009-12-11  Eric Blake  <ebb9@byu.net>
24003
24004         setenv: relax requirement in light of POSIX ruling
24005         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
24006         not NULL.
24007         * tests/test-setenv.c (main): Relax test.
24008         * tests/test-unsetenv.c (main): Likewise.
24009         * doc/posix-functions/setenv.texi (setenv): Document this.
24010         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24011
24012 2009-12-11  Bruno Haible  <bruno@clisp.org>
24013
24014         New module 'fd-safer-flag'.
24015         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
24016         * lib/dup-safer.c (dup_safer_flag): Remove function.
24017         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
24018         * lib/fd-safer.c (fd_safer_flag): Remove function.
24019         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
24020         * modules/cloexec (configure.ac): Drop indicator macro.
24021         * modules/fd-safer-flag: New file.
24022         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
24023         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
24024         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
24025
24026 2009-12-11  Bruno Haible  <bruno@clisp.org>
24027
24028         Tests for module 'nl_langinfo'.
24029         * modules/nl_langinfo-tests: New file.
24030         * tests/test-nl_langinfo.sh: New file.
24031         * tests/test-nl_langinfo.c: New file.
24032
24033         New module 'nl_langinfo'.
24034         * lib/nl_langinfo.c: New file.
24035         * m4/nl_langinfo.m4: New file.
24036         * modules/nl_langinfo: New file.
24037         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
24038
24039 2009-12-11  Bruno Haible  <bruno@clisp.org>
24040
24041         Tests for module 'langinfo'.
24042         * modules/langinfo-tests: New file.
24043         * tests/test-langinfo.c: New file.
24044
24045         New module 'langinfo'.
24046         * lib/langinfo.in.h: New file.
24047         * m4/langinfo_h.m4: New file.
24048         * modules/langinfo: New file.
24049         * doc/posix-headers/langinfo.texi: Mention the new module.
24050
24051 2009-12-11  Bruno Haible  <bruno@clisp.org>
24052
24053         * lib/config.charset: Untabify.
24054
24055 2009-12-11  Bruno Haible  <bruno@clisp.org>
24056
24057         * modules/unistd-safer (configure.ac): Drop indicator macro.
24058
24059 2009-12-11  Bruno Haible  <bruno@clisp.org>
24060
24061         Move pipe2-safer code to its own file.
24062         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
24063         * lib/pipe-safer.c (pipe2_safer): Remove function.
24064         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
24065         (Makefile.am): Add it to lib_SOURCES.
24066
24067 2009-12-10  Bruno Haible  <bruno@clisp.org>
24068
24069         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
24070
24071 2009-12-10  Bruno Haible  <bruno@clisp.org>
24072
24073         Declare which arguments expect non-NULL values, for GCC and clang.
24074         * build-aux/arg-nonnull.h: New file.
24075         * modules/arg-nonnull: New file.
24076         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
24077         (inet_ntop, inet_pton): Use it.
24078         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
24079         (closedir, dirfd, opendir, scandir, alphasort): Use it.
24080         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
24081         (open, openat): Use it.
24082         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
24083         (fnmatch): Use it.
24084         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
24085         (getopt, getopt_long, getopt_long_only): Use it.
24086         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
24087         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
24088         Use it.
24089         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
24090         (iconv_open): Use it.
24091         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
24092         (strtoimax, strtoumax): Use it.
24093         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
24094         (duplocale): Use it.
24095         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
24096         (frexp, frexpl): Use it.
24097         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
24098         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
24099         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
24100         (tsearch, tfind, tdelete, twalk): Use it.
24101         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
24102         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24103         sigpending): Use it.
24104         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
24105         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24106         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24107         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24108         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24109         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24110         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24111         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24112         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24113         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24114         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24115         Use it.
24116         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
24117         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
24118         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
24119         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
24120         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
24121         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
24122         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
24123         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
24124         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
24125         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
24126         strtoull, unsetenv): Use it.
24127         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
24128         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24129         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24130         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24131         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24132         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
24133         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
24134         (strcasecmp, strncasecmp): Use it.
24135         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
24136         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
24137         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
24138         rpl_setsockopt): Use it.
24139         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
24140         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
24141         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
24142         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
24143         (gettimeofday): Use it.
24144         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
24145         (times): Use it.
24146         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
24147         (uname): Use it.
24148         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
24149         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
24150         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
24151         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
24152         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
24153         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
24154         unlinkat, write): Use it.
24155         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
24156         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
24157         * lib/argv-iter.h: Include arg-nonnull.h.
24158         (_ATTRIBUTE_NONNULL_): Remove macro.
24159         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
24160         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
24161         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
24162         optimization.
24163         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
24164         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
24165         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
24166         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
24167         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
24168         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
24169         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
24170         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
24171         * modules/arpa_inet (Depends-on): Add arg-nonnull.
24172         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
24173         * modules/dirent (Depends-on): Add arg-nonnull.
24174         (Makefile.am): Insert arg-nonnull.h into dirent.h.
24175         * modules/fcntl-h (Depends-on): Add arg-nonnull.
24176         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
24177         * modules/fnmatch (Depends-on): Add arg-nonnull.
24178         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
24179         * modules/getopt-posix (Depends-on): Add arg-nonnull.
24180         (Makefile.am): Insert arg-nonnull.h into getopt.h.
24181         * modules/glob (Depends-on): Add arg-nonnull.
24182         (Makefile.am): Insert arg-nonnull.h into glob.h.
24183         * modules/iconv_open (Depends-on): Add arg-nonnull.
24184         (Makefile.am): Insert arg-nonnull.h into iconv.h.
24185         * modules/inttypes (Depends-on): Add arg-nonnull.
24186         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
24187         * modules/locale (Depends-on): Add arg-nonnull.
24188         (Makefile.am): Insert arg-nonnull.h into locale.h.
24189         * modules/math (Depends-on): Add arg-nonnull.
24190         (Makefile.am): Insert arg-nonnull.h into math.h.
24191         * modules/netdb (Depends-on): Add arg-nonnull.
24192         (Makefile.am): Insert arg-nonnull.h into netdb.h.
24193         * modules/search (Depends-on): Add arg-nonnull.
24194         (Makefile.am): Insert arg-nonnull.h into search.h.
24195         * modules/signal (Depends-on): Add arg-nonnull.
24196         (Makefile.am): Insert arg-nonnull.h into signal.h.
24197         * modules/spawn (Depends-on): Add arg-nonnull.
24198         (Makefile.am): Insert arg-nonnull.h into spawn.h.
24199         * modules/stdio (Depends-on): Add arg-nonnull.
24200         (Makefile.am): Insert arg-nonnull.h into stdio.h.
24201         * modules/stdlib (Depends-on): Add arg-nonnull.
24202         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
24203         * modules/string (Depends-on): Add arg-nonnull.
24204         (Makefile.am): Insert arg-nonnull.h into string.h.
24205         * modules/strings (Depends-on): Add arg-nonnull.
24206         (Makefile.am): Insert arg-nonnull.h into strings.h.
24207         * modules/sys_socket (Depends-on): Add arg-nonnull.
24208         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
24209         * modules/sys_stat (Depends-on): Add arg-nonnull.
24210         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
24211         * modules/sys_time (Depends-on): Add arg-nonnull.
24212         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
24213         * modules/sys_times (Depends-on): Add arg-nonnull.
24214         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
24215         * modules/sys_utsname (Depends-on): Add arg-nonnull.
24216         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
24217         * modules/time (Depends-on): Add arg-nonnull.
24218         (Makefile.am): Insert arg-nonnull.h into time.h.
24219         * modules/unistd (Depends-on): Add arg-nonnull.
24220         (Makefile.am): Insert arg-nonnull.h into unistd.h.
24221         * modules/wchar (Depends-on): Add arg-nonnull.
24222         (Makefile.am): Insert arg-nonnull.h into wchar.h.
24223         * modules/argv-iter (Depends-on): Add arg-nonnull.
24224         * tests/test-canonicalize.c (null_ptr): New function.
24225         (main): Use it.
24226         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
24227         (main): Use it.
24228         * tests/test-memmem.c (null_ptr): New function.
24229         (main): Use it.
24230         Reported by Jim Meyering.
24231
24232 2009-12-10  Bruno Haible  <bruno@clisp.org>
24233
24234         Use spaces for indentation, not tabs.
24235         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24236         * m4/*.m4: Untabify.
24237         * build-aux/*.h: Untabify.
24238         * tests/**/*.[hc]: Untabify.
24239         * README: New section "Indent with spaces, not TABs", based on
24240         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
24241         * NEWS: Mention the change.
24242
24243 2009-12-10  Bruno Haible  <bruno@clisp.org>
24244
24245         pty test: Fix link error.
24246         * modules/pty-tests (Makefile.am): Add the default LDADD value to
24247         test_pty_LDADD.
24248
24249 2009-12-07  Simon Josefsson  <simon@josefsson.org>
24250
24251         * modules/pty: New file.
24252         * modules/pty-tests: New file.
24253         * m4/pty.m4: New file.
24254         * tests/test-pty.c: New file.
24255         * doc/glibc-headers/pty.texi: Modified.
24256         * doc/glibc-functions/forkpty.texi: Modified.
24257         * doc/glibc-functions/openpty.texi: Modified.
24258
24259 2009-12-10  Bruno Haible  <bruno@clisp.org>
24260
24261         Avoid syntax error in C++ mode.
24262         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
24263
24264 2009-12-10  Bruno Haible  <bruno@clisp.org>
24265
24266         Use sed with option -e.
24267         * gnulib-tool (func_version, func_emit_copyright_notice,
24268         func_emit_initmacro_end, func_import, func_create_testdir): Pass
24269         option -e to sed.
24270         * modules/link-warning (Makefile.am): Likewise.
24271
24272 2009-12-10  Jim Meyering  <meyering@redhat.com>
24273
24274         mgetgroups: do not write bytes beyond end of malloc'd buffer
24275         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
24276         username, we call getgroups with a one-element-shorter buffer,
24277         but still told it the length was original, max_n_groups.
24278
24279 2009-12-09  Eric Blake  <ebb9@byu.net>
24280
24281         cloexec: relax license
24282         * modules/cloexec (Maintainer): Add myself.
24283         (License): Use LGPL, not GPL.
24284
24285         link-warning: optimize generation
24286         * modules/link-warning (Makefile.am): Reduce process usage.
24287
24288 2009-12-09  Bruno Haible  <bruno@clisp.org>
24289
24290         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
24291         workaround was added on 2009-11-17.
24292
24293 2009-12-09  Jim Meyering  <meyering@redhat.com>
24294             Bruno Haible  <bruno@clisp.org>
24295
24296         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
24297         * modules/link-warning (Makefile.am): Make the comment-removing sed
24298         command more robust in the face of bootstrap-prepended comment lines.
24299
24300 2009-12-09  Bruno Haible  <bruno@clisp.org>
24301
24302         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
24303         most one group.
24304
24305 2009-12-09  Simon Josefsson <simon@josefsson.org>
24306             Bruno Haible  <bruno@clisp.org>
24307
24308         * build-aux/link-warning.h: Add copyright notice.
24309         * modules/link-warning (Makefile.am): Generate link-warning.h from
24310         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
24311         * NEWS: Mention change in link-warning module.
24312         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
24313         * modules/dirent (Makefile.am): Add dependency to dirent.h.
24314         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
24315         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
24316         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
24317         * modules/math (Makefile.am): Add dependency to math.h.
24318         * modules/search (Makefile.am): Add dependency to search.h.
24319         * modules/signal (Makefile.am): Add dependency to signal.h.
24320         * modules/spawn (Makefile.am): Add dependency to spawn.h.
24321         * modules/stdio (Makefile.am): Add dependency to stdio.h.
24322         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
24323         * modules/string (Makefile.am): Add dependency to string.h.
24324         * modules/strings (Makefile.am): Add dependency to strings.h.
24325         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
24326         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
24327         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
24328         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
24329         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
24330         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
24331         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
24332         * modules/unistd (Makefile.am): Add dependency to unistd.h.
24333         * modules/wchar (Makefile.am): Add dependency to wchar.h.
24334
24335 2009-12-09  Bruno Haible  <bruno@clisp.org>
24336
24337         fchdir: Optimize away rpl_fstat when possible.
24338         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
24339         REPLACE_OPEN_DIRECTORY.
24340         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
24341
24342 2009-12-09  Bruno Haible  <bruno@clisp.org>
24343
24344         * lib/fchdir.c: Update comment.
24345
24346 2009-12-09  Bruno Haible  <bruno@clisp.org>
24347
24348         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
24349
24350 2009-12-08  Eric Blake  <ebb9@byu.net>
24351
24352         fchdir: avoid memory leak on re-registration.
24353         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
24354
24355 2009-12-08  Jim Meyering  <meyering@redhat.com>
24356
24357         init.sh: avoid Solaris 10 /bin/sh portability problem
24358         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
24359         sourced script:
24360           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
24361           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
24362           bar
24363         tests/init.sh relied on that, accepting a --set-path=DIR argument,
24364         and two tests used that idiom.
24365         * tests/init.sh: Update suggested usage comments.
24366         (path_prepend_): New function, to be used in place
24367         of the --src-path=DIR option.
24368         (setup_): Move PATH-prepending code into path_prepend_.
24369         * tests/test-pread.sh: Adapt to new usage.
24370         * tests/test-xalloc-die.sh: Likewise.
24371
24372 2009-12-08  Simon Josefsson  <simon@josefsson.org>
24373
24374         * doc/gnulib.texi (Glibc pty.h): Add.
24375         * doc/glibc-functions/forkpty.texi: Add.
24376         * doc/glibc-functions/openpty.texi: Add.
24377         Suggested by Bruno Haible.
24378
24379 2009-12-08  Eric Blake  <ebb9@byu.net>
24380
24381         fchdir: fix logic bugs
24382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
24383         * tests/test-fchdir.c (main): Enhance test.
24384         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
24385         is in use.
24386
24387         dup2: fix logic bugs
24388         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
24389         REPLACE_DUP2 to decide when rpl_dup2 is needed.
24390         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
24391         exists.
24392         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
24393
24394 2009-12-07  Eric Blake  <ebb9@byu.net>
24395
24396         unlink: fix m4 detection
24397         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
24398
24399         unistd-safer: add unit test
24400         * modules/unistd-safer-tests: New file.
24401         * tests/test-dup-safer.c: Likewise.
24402         * tests/test-cloexec.c (setmode): Avoid compiler warning.
24403         * tests/test-dup2.c (setmode): Likewise.
24404         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
24405
24406         cloexec: preserve text vs. binary across dup_cloexec
24407         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
24408         mode.
24409         * modules/dup2-tests (Depends-on): Add binary-io.
24410         * modules/cloexec-tests (Depends-on): Likewise.
24411         * tests/test-dup2.c (setmode, is_mode): New helpers.
24412         (main): Add tests that translation mode is preserved.
24413         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
24414         Reported by Bruno Haible.
24415
24416         mgetgroups: reduce duplicate listings
24417         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
24418         resulting array.
24419         * tests/test-chown.h (test_chown): Simplify client.
24420         * tests/test-lchown.h (test_lchown): Likewise.
24421
24422 2009-12-06  Bruno Haible  <bruno@clisp.org>
24423
24424         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
24425         value.
24426
24427 2009-12-06  Bruno Haible  <bruno@clisp.org>
24428
24429         * lib/progname.c: Include stdio.h, stdlib.h.
24430         (set_program_name): Reject a NULL argument.
24431
24432 2009-12-05  Eric Blake  <ebb9@byu.net>
24433
24434         pipe2-safer: new module
24435         * modules/pipe2-safer: New file.
24436         * lib/unistd-safer.h (pipe2_safer): New prototype.
24437         * lib/unistd--.h (pipe2): New wrapper.
24438         * lib/pipe-safer.c (pipe2_safer): New function.
24439         * modules/pipe (Depends-on): Add pipe2-safer.
24440         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
24441
24442         stdlib-safer: preserve cloexec flag for mkostemp[s]
24443         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
24444         fd_safer_flag.
24445
24446         unistd-safer: allow preservation of cloexec status via flag
24447         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
24448         prototypes.
24449         * lib/dup-safer.c (dup_safer_flag): New function.
24450         * lib/fd-safer.c (fd_safer_flag): Likewise.
24451         * modules/cloexec (configure.ac): Set witness.
24452
24453         test-dup2: enhance test
24454         * modules/dup2-tests (Depends-on): Add cloexec.
24455         * tests/test-dup2.c (main): Enhance test.
24456
24457         cloexec: add dup_cloexec
24458         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
24459         header and comments.
24460         * lib/cloexec.c (set_cloexec_flag): Add comments.
24461         (dup_cloexec): New function, with mingw implementation borrowed
24462         from...
24463         * lib/w32spawn.h (dup_noinherit): ...here.
24464         * modules/execute (Depends-on): Add cloexec.
24465         * modules/pipe (Depends-on): Likewise.
24466         * modules/cloexec (Depends-on): Add dup2.
24467         * modules/cloexec-tests (Files): New file.
24468         * tests/test-cloexec.c: Likewise.
24469
24470         test-xalloc-die: fix test for mingw
24471         * modules/xalloc-die-tests (Files): Add tests/init.sh.
24472         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
24473         directory and .exe suffix off argv[0] output.
24474
24475         test-fseeko: fix test for mingw
24476         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
24477         than undefining fseek, so test will pass on mingw.
24478
24479 2009-12-05  Bruno Haible  <bruno@clisp.org>
24480
24481         * lib/progname.h (set_program_name): Clarify specification.
24482         * lib/progname.c (set_program_name): Likewise.
24483         Reported by Jim Meyering.
24484
24485 2009-12-05  Jim Meyering  <meyering@redhat.com>
24486
24487         maint.mk: backslash-escape parens in default regexp
24488         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
24489         backslash-escape the literal parentheses.
24490
24491         maint.mk: news-date-check: use grep -E
24492         * top/maint.mk (today): Define a Make variable, not a...
24493         (news-date-check): ...shell variable.
24494         (news-date-regexp): Use the Make variable.
24495         Use grep's -E option.  Change the failing diagnostic to mention
24496         the variable, $(news-date-regexp).
24497
24498 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
24499
24500         maintainer-makefile: allow customization of NEWS entry format
24501         * top/maint.mk (news-date-regexp): New overridable variable.
24502         (news-date-check): Use it.
24503
24504 2009-12-04  Eric Blake  <ebb9@byu.net>
24505
24506         mgetgroups: add xgetgroups, and avoid ENOSYS failures
24507         * lib/mgetgroups.h (xgetgroups): New prototype.
24508         * lib/mgetgroups.c (xgetgroups): New wrapper.
24509         (mgetgroups): Handle ENOSYS.
24510         * modules/mgetgroups (Depends-on): Add realloc.
24511         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
24512
24513         mgetgroups: avoid argument promotion issues with -1
24514         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
24515         for invalid gid_t.
24516         * tests/test-chown.h (getegid, test_chown): Likewise.
24517         * tests/test-lchown.h (getegid, test_lchown): Likewise.
24518
24519 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
24520
24521         exclude: Fix header file problems.
24522         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
24523
24524 2009-12-01  Jim Meyering  <meyering@redhat.com>
24525
24526         fts: fts_open: do not let an empty string cause immediate failure
24527         This is required in support of GNU rm, for which the command
24528         "rm A '' B" must process and remove both A and B, in spite of
24529         the empty string argument.
24530         * lib/fts.c (fts_open): Do not let the presence of an empty string
24531         cause fts_open to fail immediately.  Most fts-using tools must be
24532         able to process all arguments, in order, and can be expected to
24533         diagnose such arguments themselves.
24534
24535 2009-11-30  Eric Blake  <ebb9@byu.net>
24536
24537         utimens: fix compilation error
24538         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
24539         Declare variable at right scope.
24540
24541 2009-11-29  Jim Meyering  <meyering@redhat.com>
24542
24543         bootstrap: handle perl-5.11's changed --version output
24544         * build-aux/bootstrap (get_version): Handle perl separately,
24545         since perl-5.11's --version output is different.
24546
24547 2009-11-28  Jim Meyering  <meyering@redhat.com>
24548
24549         userspec: depend on the inttostr module, too
24550         * modules/userspec (Depends-on): Add inttostr.
24551
24552         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
24553         * lib/userspec.c (parse_with_separator): Do not accept a user ID
24554         number of MAXUID when it evaluates to (uid_t) -1.
24555         Likewise for group ID.  Reported by Matt McCutchen in
24556         <http://savannah.gnu.org/bugs/?28113>
24557
24558         userspec: reformat to use spaces, not TABs
24559         * lib/userspec.c: Expand TABs to spaces.
24560         Add Emacs' "indent-tabs-mode: nil" hint.
24561
24562 2009-11-27  Eric Blake  <ebb9@byu.net>
24563
24564         getopt-gnu: flush out another BSD bug
24565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
24566         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
24567         flush out BSD bug.
24568         * tests/test-getopt.h (test_getopt): End lists with NULL.
24569         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24570         (test_getopt_long_posix): Enhance test.
24571         * modules/getopt-posix-tests (Depends-on): Add stdbool.
24572         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
24573         getopt-gnu.
24574         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24575         Likewise.
24576
24577 2009-11-27  Simon Josefsson  <simon@josefsson.org>
24578
24579         * modules/idpriv-droptemp-tests (Notice): Fix text.
24580
24581 2009-11-27  Jim Meyering  <meyering@redhat.com>
24582
24583         test-xalloc-die: avoid spurious failure due to libtool argv difference
24584         In a libtool-enabled project, this test would fail due to a difference
24585         in the emitted program name, e.g.,
24586         -test-xalloc-die: memory exhausted
24587         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
24588         Use program to avoid that.
24589         * modules/xalloc-die-tests (Depends-on): Add progname.
24590         * tests/test-xalloc-die.c: Include progname.h".
24591         (program_name): Remove decl.
24592         (main): Call set_program_name.
24593         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
24594
24595 2009-11-26  Richard Jones  <rjones@redhat.com>
24596
24597         w32sock: leave win32 error in place.
24598         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
24599
24600 2009-11-26  Eric Blake  <ebb9@byu.net>
24601
24602         init.sh: suggest to use skip_ and fail_ functions in comments
24603         * tests/init.sh: Add a sentence.
24604
24605 2009-11-25  Bruno Haible  <bruno@clisp.org>
24606
24607         init.sh: add documentation in comments
24608         * tests/init.sh: Add some developer and user documentation.
24609
24610 2009-11-26  Jim Meyering  <meyering@redhat.com>
24611
24612         init.sh: accommodate even those who specify bogus srcdir manually
24613         * tests/init.sh: Normally, srcdir is guaranteed by automake and
24614         configure-time tests to be sanitized, so that there is no need to
24615         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
24616         (with no double quotes) suffices.  However, since tests may be
24617         invoked manually, and since you may explicitly set srcdir to the
24618         name of a directory containing spaces, do quote its uses here.
24619         * tests/test-pread.sh: Likewise.
24620         Suggested by Bruno Haible.
24621
24622         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
24623         * tests/test-pread.sh: Write no data into the pipe, because
24624         test-pread actually reads none.  This avoids a diagnostic,
24625         "bash: echo: write error: Broken pipe", that arises in the unusual
24626         event something is ignoring SIGPIPE, and might be interpreted
24627         as some sort of failure.  Reported by Bruno Haible.
24628
24629 2009-11-25  Jim Meyering  <meyering@redhat.com>
24630
24631         test-pread: cover failure with ESPIPE and EINVAL
24632         * tests/test-pread.c (main): Test for failure, too.
24633         * tests/test-pread.sh: Invoke with stdin on a pipe.
24634         Suggested by Eric Blake.
24635
24636         pread: improvement and fix
24637         * modules/pread (Depends-on): Depend on lseek, for portability to
24638         e.g., mingw.  Suggested by Eric Blake.
24639         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
24640
24641         unistd.in.h: correct declaration of pread
24642         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
24643         Reported by Richard W.M. Jones.
24644
24645         test-pread.sh: distribute the test script
24646         * modules/pread-tests (Files): Include test-pread.sh.
24647
24648         test-pread.sh: clean up
24649         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
24650         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
24651         That is unnecessary, since it's always ".".
24652         Suggestion from Eric Blake.
24653
24654         test-pread.sh: make executable
24655         * tests/test-pread.sh: Set executable bit.
24656         Reported by Eric Blake.
24657
24658         correct typo in test-pread.sh
24659         * tests/test-pread.sh: Add #! line.
24660
24661         test pread
24662         * tests/test-pread.c: New file.
24663         * tests/test-pread.sh: Likewise.
24664         * modules/pread-tests: Likewise.
24665
24666         pread: new module
24667         * modules/pread: New file.
24668         * lib/unistd.in.h (pread): Define/declare.
24669         * lib/pread.c (pread): New file.
24670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
24671         * modules/unistd (Makefile.am): Substitute witnesses.
24672         * doc/posix-functions/pread.texi (pread): Update.
24673         * MODULES.html.sh: Add pread.
24674
24675 2009-11-25  Jim Meyering  <meyering@redhat.com>
24676
24677         tests/init.sh: new file to be used via most *.sh tests
24678         * tests/init.sh: New file.
24679
24680 2009-11-25  Eric Blake  <ebb9@byu.net>
24681
24682         utimens: work around older Linux failure with symlinks
24683         * lib/utimens.c (lutimensat_works_really): New variable.
24684         (fdutimens, lutimens): Use it to manage kernels that support
24685         nanosecond times on files, but not on symlinks.
24686         Reported by OndÅ™ej Vašík.
24687
24688         utimes: fix configure grammar
24689         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
24690
24691 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
24692
24693         regex: Fix fastmap for multibyte character ranges.
24694         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
24695         characters when a multibyte character range is included.
24696
24697 2009-11-22  Andy Wingo  <wingo@pobox.com>
24698
24699         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
24700         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
24701
24702 2009-11-24  Bruno Haible  <bruno@clisp.org>
24703
24704         doc: Most *_l functions exist in MacOS X 10.5.
24705         * doc/posix-functions/duplocale.texi: Update platforms list.
24706         * doc/posix-functions/freelocale.texi: Likewise.
24707         * doc/posix-functions/newlocale.texi: Likewise.
24708         * doc/posix-functions/uselocale.texi: Likewise.
24709         * doc/posix-functions/isalnum_l.texi: Likewise.
24710         * doc/posix-functions/isalpha_l.texi: Likewise.
24711         * doc/posix-functions/isblank_l.texi: Likewise.
24712         * doc/posix-functions/iscntrl_l.texi: Likewise.
24713         * doc/posix-functions/isdigit_l.texi: Likewise.
24714         * doc/posix-functions/isgraph_l.texi: Likewise.
24715         * doc/posix-functions/islower_l.texi: Likewise.
24716         * doc/posix-functions/isprint_l.texi: Likewise.
24717         * doc/posix-functions/ispunct_l.texi: Likewise.
24718         * doc/posix-functions/isspace_l.texi: Likewise.
24719         * doc/posix-functions/isupper_l.texi: Likewise.
24720         * doc/posix-functions/iswalnum_l.texi: Likewise.
24721         * doc/posix-functions/iswalpha_l.texi: Likewise.
24722         * doc/posix-functions/iswblank_l.texi: Likewise.
24723         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24724         * doc/posix-functions/iswctype_l.texi: Likewise.
24725         * doc/posix-functions/iswdigit_l.texi: Likewise.
24726         * doc/posix-functions/iswgraph_l.texi: Likewise.
24727         * doc/posix-functions/iswlower_l.texi: Likewise.
24728         * doc/posix-functions/iswprint_l.texi: Likewise.
24729         * doc/posix-functions/iswpunct_l.texi: Likewise.
24730         * doc/posix-functions/iswspace_l.texi: Likewise.
24731         * doc/posix-functions/iswupper_l.texi: Likewise.
24732         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24733         * doc/posix-functions/isxdigit_l.texi: Likewise.
24734         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
24735         * doc/posix-functions/strcasecmp_l.texi: Likewise.
24736         * doc/posix-functions/strcoll_l.texi: Likewise.
24737         * doc/posix-functions/strfmon_l.texi: Likewise.
24738         * doc/posix-functions/strftime_l.texi: Likewise.
24739         * doc/posix-functions/strncasecmp_l.texi: Likewise.
24740         * doc/posix-functions/strxfrm_l.texi: Likewise.
24741         * doc/posix-functions/tolower_l.texi: Likewise.
24742         * doc/posix-functions/toupper_l.texi: Likewise.
24743         * doc/posix-functions/towctrans_l.texi: Likewise.
24744         * doc/posix-functions/towlower_l.texi: Likewise.
24745         * doc/posix-functions/towupper_l.texi: Likewise.
24746         * doc/posix-functions/wcscoll_l.texi: Likewise.
24747         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24748         * doc/posix-functions/wctrans_l.texi: Likewise.
24749         * doc/posix-functions/wctype_l.texi: Likewise.
24750         * doc/glibc-functions/strptime_l.texi: Likewise.
24751         * doc/glibc-functions/strtod_l.texi: Likewise.
24752         * doc/glibc-functions/strtof_l.texi: Likewise.
24753         * doc/glibc-functions/strtol_l.texi: Likewise.
24754         * doc/glibc-functions/strtold_l.texi: Likewise.
24755         * doc/glibc-functions/strtoll_l.texi: Likewise.
24756         * doc/glibc-functions/strtoul_l.texi: Likewise.
24757         * doc/glibc-functions/strtoull_l.texi: Likewise.
24758         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24759         * doc/glibc-functions/wcstod_l.texi: Likewise.
24760         * doc/glibc-functions/wcstof_l.texi: Likewise.
24761         * doc/glibc-functions/wcstol_l.texi: Likewise.
24762         * doc/glibc-functions/wcstold_l.texi: Likewise.
24763         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24764         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24765         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24766
24767 2009-11-24  Bruno Haible  <bruno@clisp.org>
24768
24769         duplocale: Fix logic bug.
24770         * lib/duplocale.c: Don't include <langinfo.h>.
24771         (_NL_LOCALE_NAME): Remove macro.
24772         (rpl_duplocale): Use setlocale instead of nl_langinfo.
24773         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
24774
24775 2009-11-23  Jim Meyering  <meyering@redhat.com>
24776
24777         test-update-copyright: don't hard-code /usr/bin/perl
24778         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
24779         perl to print the current year.  Gilles Espinasse reported that
24780         the replaced use of perl was hard-coded as /usr/bin/perl.
24781
24782 2009-11-23  Bruno Haible  <bruno@clisp.org>
24783
24784         duplocale: Add support for glibc 2.3.x.
24785         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
24786
24787 2009-11-22  Bruno Haible  <bruno@clisp.org>
24788
24789         vasnprintf: Tiny optimization.
24790         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
24791         MacOS X.
24792
24793 2009-11-22  Bruno Haible  <bruno@clisp.org>
24794
24795         Tests for module 'duplocale'.
24796         * modules/duplocale-tests: New file.
24797         * tests/test-duplocale.c: New file.
24798
24799         New module 'duplocale'.
24800         * m4/duplocale.m4: New file.
24801         * lib/locale.in.h (duplocale): New declaration.
24802         * lib/duplocale.c: New file.
24803         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
24804         gl_LOCALE_H_DEFAULTS): New macros.
24805         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
24806         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
24807         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
24808         REPLACE_DUPLOCALE.
24809         * modules/duplocale: New file.
24810         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
24811
24812 2009-11-22  Bruno Haible  <bruno@clisp.org>
24813
24814         * modules/locale-tests (configure.ac): Test for newlocale function.
24815         * tests/test-locale.c: When the system has extended locale functions,
24816         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
24817
24818         locale: Make locale_t available when possible.
24819         * lib/locale.in.h: Include <xlocale.h> when it exists.
24820         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
24821         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
24822         * modules/locale (Depends-on): Add extensions.
24823         (Makefile.am): Also substitute HAVE_XLOCALE_H.
24824         * doc/posix-headers/locale.texi: Document the problem with locale_t.
24825
24826 2009-11-22  Bruno Haible  <bruno@clisp.org>
24827
24828         Add comments.
24829         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
24830         invocation.
24831         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24832         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24833         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24834
24835 2009-11-22  Bruno Haible  <bruno@clisp.org>
24836
24837         error: account for the possibility of freopen (stdout).
24838         * lib/error.c: Include <unistd.h>.
24839         (flush_stdout): New function, extracted from error and error_at_line.
24840         Determine stdout's fd dynamically.
24841         (error, error_at_line): Invoke flush_stdout.
24842         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
24843         * modules/error (Depends-on): Add unistd.
24844
24845 2009-11-22  Bruno Haible  <bruno@clisp.org>
24846
24847         diffseq: Add comment.
24848         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
24849
24850 2009-11-22  Jim Meyering  <meyering@redhat.com>
24851
24852         c-stack: avoid defining an unused static function
24853         * lib/c-stack.c (find_stack_direction): Do not define this function
24854         when it will not be used.
24855
24856         diffseq: avoid spurious gcc warnings
24857         * lib/diffseq.h (IF_LINT2): Define.
24858         (compareseq): Use it to initialize two members of "part".
24859         This avoids two used-uninitialized warnings.
24860
24861 2009-11-21  Jim Meyering  <meyering@redhat.com>
24862
24863         c-stack: avoid "ignoring return value of `write'" warning
24864         * lib/c-stack.c: Include "ignore-value.h".
24865         (die): Explicitly ignore each write return value.
24866         * modules/c-stack (Depends-on): Add ignore-value.
24867
24868 2009-11-21  Bruno Haible  <bruno@clisp.org>
24869
24870         diffseq: reduce scope of variable 'best'.
24871         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
24872         variable, earlier used for two different purposes.
24873
24874 2009-11-21  Jim Meyering  <meyering@redhat.com>
24875
24876         diffseq: remove useless assignment to "best"
24877         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
24878         assignment.  At that point "best" is already guaranteed to be zero.
24879
24880 2009-11-20  Eric Blake  <ebb9@byu.net>
24881
24882         build: mention ftp redirector in release announcements
24883         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
24884         values that used to come from cfg.mk; mention FTP redirect URL.
24885         * build-aux/announce-gen: Mention the mirror list.
24886         Suggested by Karl Berry.
24887
24888         nanosleep: improve port to mingw
24889         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
24890         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
24891         LIB_NANOSLEEP, but only when needed.
24892         * modules/select (Link): Document LIBSOCKET.
24893         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
24894         enough.
24895
24896         nanosleep: work around cygwin bug
24897         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
24898         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
24899         bug.
24900         (getnow): Delete, not needed.
24901         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
24902         LIB_CLOCK_GETTIME.
24903         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
24904         clock-time, gettime.
24905         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
24906         bug.
24907         * modules/nanosleep-tests: New test.
24908         * tests/test-nanosleep.c: New file.
24909
24910         sleep: work around cygwin bug
24911         * lib/sleep.c (rpl_sleep): Work around the bug.
24912         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
24913         (gl_PREREQ_SLEEP): Delete unused macro.
24914         * modules/sleep (Depends-on): Add verify.
24915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24916         * modules/unistd (Makefile.am): Substitute witness.
24917         * lib/unistd.in.h (sleep): Update prototype.
24918         * doc/posix-functions/sleep.texi (sleep): Document the bug.
24919         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
24920         * modules/sleep-tests (Depends-on): Check for alarm.
24921
24922 2009-11-20  Jim Meyering  <meyering@redhat.com>
24923
24924         maint.mk: improve sc_prohibit_magic_number_exit
24925         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
24926         so it does not match uses like System.exit(1).
24927         Add comments showing how to correct all offenders.
24928
24929 2009-11-19  Eric Blake  <ebb9@byu.net>
24930
24931         xalloc-die-tests: add missing library
24932         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
24933
24934         test-xvasprintf: silence compiler warnings
24935         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
24936         empty string from gcc.
24937
24938 2009-11-19  Jim Meyering  <meyering@redhat.com>
24939
24940         xfreopen: new module, from coreutils
24941         * modules/xfreopen: New module.
24942         * lib/xfreopen.c: New file.
24943         * lib/xfreopen.h: New file.
24944         * MODULES.html.sh (File stream based Input/Output"): Add it.
24945
24946 2009-11-19  Eric Blake  <ebb9@byu.net>
24947
24948         manywarnings: depend on warnings
24949         * modules/manywarnings (Depends-on): Add warnings.
24950
24951         build: avoid compiler warnings
24952         * lib/select.c (rpl_select): Delete unused variable.
24953         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
24954
24955 2009-11-18  Eric Blake  <ebb9@byu.net>
24956
24957         tests: avoid false negative with --with-packager
24958         * tests/test-version-etc.sh: Discard packager information.
24959         * tests/test-argp-version-etc-1.sh: Likewise.
24960         Reported by Mike Frysinger.
24961
24962         utimens: fix regression on Solaris
24963         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
24964         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
24965         can only change fd timestamps via futimesat.  Instead, use an
24966         additional witness macro to avoid BSD bug.
24967         Reported by Jim Meyering.
24968
24969 2009-11-17  Eric Blake  <ebb9@byu.net>
24970
24971         usleep: use it to simplify tests
24972         * modules/stat-time-tests (Depends-on): Add usleep.
24973         (configure.ac): Drop usleep check.
24974         * modules/chown-tests (Depends-on, configure.ac): Likewise.
24975         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
24976         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
24977         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
24978         * modules/openat-tests (Depends-on, configure.ac): Likewise.
24979         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
24980         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
24981         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
24982         Likewise.
24983         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
24984         * tests/test-lchown.h (nap): Likewise.
24985         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
24986         * tests/test-stat-time.c (nap): Likewise.
24987         * tests/test-utimens-common.h (nap): Update comments.
24988
24989         usleep: new module
24990         * modules/usleep: New file.
24991         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
24992         * lib/usleep.c (usleep): Likewise.
24993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24994         * modules/unistd (Makefile.am): Substitute witnesses.
24995         * lib/unistd.in.h (usleep): Add declaration.
24996         * doc/pastposix-functions/usleep.texi (usleep): Document this.
24997         * MODULES.html.sh (Date and time): Likewise.
24998         * modules/usleep-tests (Depends-on): New test.
24999         * tests/test-usleep.c: New file.
25000
25001         chown: work around OpenBSD bug
25002         * lib/chown.c (rpl_chown): Work around the bug.
25003         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
25004         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
25005         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
25006         * modules/chown (Depends-on): Add stdbool.
25007         * modules/lchown (Depends-on): Likewise.
25008         * doc/posix-functions/chown.texi (chown): Document the bug.
25009         * doc/posix-functions/lchown.texi (lchown): Likewise.
25010         * tests/test-lchown.h (test_chown): Relax test.
25011
25012         mkstemp: avoid conflict with C++ keyword template
25013         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
25014         * lib/mkostemp.c (mkostemp): Likewise.
25015         * lib/mkostemps.c (mkostemps): Likewise.
25016         * lib/mkstemp.c (mkstemp): Likewise.
25017         * lib/mkstemps.c (mkstemps): Likewise.
25018
25019         xalloc-die-tests: optimize
25020         * tests/test-xalloc-die.sh: Reduce number of processes.
25021
25022 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25023
25024         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
25025         patch from ludo@gnu.org (Ludovic Courtès).
25026
25027 2009-11-17  Jim Meyering  <meyering@redhat.com>
25028
25029         version-etc: use proper license string
25030         * modules/version-etc (License): Use LGPL, not LGPLv3+.
25031         * modules/version-etc-fsf: Likewise.
25032
25033 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25034
25035         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
25036         printed to stdout.  Deal with EOL differences.
25037
25038 2009-11-17  Eric Blake  <ebb9@byu.net>
25039
25040         unsetenv: work around Solaris bug
25041         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
25042         * lib/unsetenv.c (rpl_unsetenv): Work around it.
25043         Reported by Jim Meyering.
25044
25045         vasnprintf: avoid compiler warnings
25046         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
25047         variables.
25048         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
25049
25050 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25051
25052         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
25053         settings since xalloc-die is no longer the self test,
25054         xalloc-die.sh is.
25055
25056 2009-11-17  Jim Meyering  <meyering@redhat.com>
25057
25058         test-xalloc-die.sh: make the code agree with the commit log
25059         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
25060         at the end, just in case you happen to have a test-xalloc-die
25061         program in some other PATH directory.
25062
25063         test-xalloc-die.sh: fix a portability bug
25064         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
25065         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
25066         Otherwise, argv[0] (as often seen in diagnostics) would be too
25067         system-dependent, sometimes with, and sometimes without the leading "./".
25068
25069         version-etc-fsf: relax license to LGPLv3+
25070         * modules/version-etc-fsf (License): Relax license.
25071
25072 2009-11-16  Eric Blake  <ebb9@byu.net>
25073
25074         xalloc-die-tests: avoid printing null pointer
25075         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
25076         shell script.
25077         * tests/test-xalloc-die.c (program_name): Declare.
25078         * tests/test-xalloc-die.sh (tmpfiles): New file.
25079
25080         setenv, unsetenv: work around various bugs
25081         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
25082         (setenv) [HAVE_SETENV]: Work around bugs.
25083         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
25084         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
25085         for bugs.
25086         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
25087         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
25088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
25089         * modules/stdlib (Makefile.am): Update substitutions.
25090         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
25091         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
25092         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25093         * modules/setenv-tests: New test.
25094         * modules/unsetenv-tests: Likewise.
25095         * tests/test-setenv.c: New file.
25096         * tests/test-unsetenv.c: Likewise.
25097
25098 2009-11-16  Jim Meyering  <meyering@redhat.com>
25099
25100         version-etc: relax license to LGPLv3+
25101         * modules/version-etc (License): Relax license.
25102
25103         better AC_REQUIRE expanded-before-required-warning avoidance
25104         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
25105         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
25106         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
25107         which is no longer needed.
25108
25109 2009-11-16  Eric Blake  <ebb9@byu.net>
25110
25111         test-freading: clean up temporary file
25112         * tests/test-freading.c (main): Remove file on success, and use
25113         ASSERT more liberally.
25114         Reported by Jim Meyering.
25115
25116 2009-11-16  Jim Meyering  <meyering@redhat.com>
25117
25118         avoid new AC_REQUIRE expanded-before-required warnings
25119         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
25120         merely using it.
25121         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
25122         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
25123
25124 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25125
25126         * tests/test-xalloc-die.c: New file.
25127         * modules/xalloc-die-tests: New file.
25128         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
25129         XFAIL_TESTS so it can be appended by modules.
25130
25131 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25132
25133         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
25134         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
25135
25136 2009-11-14  Eric Blake  <ebb9@byu.net>
25137
25138         fnmatch: avoid compiler warning
25139         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
25140         to silence compiler warning about mismatch signedness in ?:.
25141         Reported by Robert Millan.
25142
25143         intprops: add double-inclusion guard
25144         * lib/intprops.h: Allow idempotent includes.
25145         Suggested by Bruce Korb.
25146
25147         openat: detect Solaris fchownat bug
25148         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
25149         penalizing glibc chownat when only lchownat is broken.
25150         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
25151         trailing slash bugs.
25152         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
25153         * modules/openat-tests (Files): Include more files.
25154         (Depends-on): Add mgetgroups, sleep, stat-time.
25155         (configure.ac): Add additional checks.
25156         (Makefile.am): Build new test.
25157         * tests/test-fchownat.c: New file.
25158
25159         lchown: detect Solaris and FreeBSD bug
25160         * lib/lchown.c (rpl_lchown): Work around bug.
25161         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
25162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25163         * modules/unistd (Makefile.am): Populate it.
25164         * lib/unistd.in.h (lchown): Update declaration.
25165         * doc/posix-functions/lchown.texi (lchown): Document the bug.
25166         * modules/lchown-tests: New file.
25167         * tests/test-lchown.h (test_lchown): Likewise.
25168         * tests/test-lchown.c (main): Likewise.
25169
25170         chown: detect Solaris and FreeBSD bug
25171         * lib/chown.c (rpl_chown): Work around bug.
25172         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
25173         (gl_PREREQ_CHOWN): Delete.
25174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25175         * modules/unistd (Makefile.am): Populate it.
25176         * lib/unistd.in.h (chown): Update declaration.
25177         * lib/lchown.c (chown): Update client.
25178         * modules/lchown (Depends-on): Add lstat.
25179         * doc/posix-functions/chown.texi (chown): Document the bug.
25180         * doc/posix-functions/getgroups.texi (getgroups): Document
25181         getgroups pitfall.
25182         * modules/chown-tests: New file.
25183         * tests/test-chown.h (test_chown): Likewise.
25184         * tests/test-chown.c (main): Likewise.
25185
25186 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
25187
25188         gnulib-tool: correctly detect absence of m4 directories
25189         * gnulib-tool: Avoid extra newline on data passed to wc -l.
25190
25191 2009-11-14  Jim Meyering  <meyering@redhat.com>
25192
25193         maint.mk: Prohibit inclusion of "xalloc.h" without use.
25194         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25195
25196 2009-11-14  John W. Eaton  <jwe@gnu.org>
25197
25198         strftime.h: wrap funtion declaration in extern "C" block
25199         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
25200
25201 2009-11-13  Eric Blake  <ebb9@byu.net>
25202
25203         getgroups: avoid compiler warning
25204         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
25205
25206         getgroups: work around FreeBSD bug
25207         * lib/getgroups.c (rpl_getgroups): Work around the bug.
25208         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
25209         * doc/posix-functions/getgroups.texi (getgroups): Document it.
25210         * tests/test-getgroups.c (main): Fix buffer overrun.
25211
25212         getgroups: avoid compilation failure
25213         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
25214         * modules/getgroups (Depends-on): Add stdint.
25215
25216 2009-11-13  Jim Meyering  <meyering@redhat.com>
25217
25218         test-getgroups: avoid compilation failure
25219         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
25220
25221 2009-11-13  Eric Blake  <ebb9@byu.net>
25222
25223         mgetgroups: new module, taken from coreutils
25224         * modules/mgetgroups: New file.
25225         * lib/mgetgroups.h: Likewise.
25226         * lib/mgetgroups.c (mgetgroups): Likewise.
25227         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
25228         * MODULES.html.sh (Users and groups): Mention it.
25229
25230         getgroups: don't expose GETGROUPS_T to user
25231         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
25232         an element at a time if GETGROUPS_T is wrong size.
25233         * lib/getugroups.h (getugroups): Change signature.
25234         * lib/unistd.in.h (getgroups): Likewise.
25235         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
25236         signature needs fixing.
25237         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
25238         AC_TYPE_GETGROUPS.
25239         * modules/group-member (Depends-on): Add getgroups.
25240         * lib/group-member.c (group_info, get_group_info): Use gid_t.
25241         (group_member): Rely on getgroups replacement.
25242         * lib/getugroups.c (getugroups): Use gid_t.
25243         * tests/test-getgroups.c (main): Likewise.
25244         * NEWS: Mention the signature change.
25245         * doc/posix-functions/getgroups.texi (getgroups): Mention the
25246         problem with signature.
25247         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
25248         GETGROUPS_T is still useful for setgroups.
25249
25250         getgroups, getugroups: provide stubs for mingw
25251         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
25252         * lib/getugroups.c (getugroups): Likewise.
25253         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
25254         function.  Modernize replacement scheme.
25255         (gl_PREREQ_GETGROUPS): Delete.
25256         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
25257         * modules/getgroups (configure.ac): Declare witness.
25258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25259         * modules/unistd (Depends-on): Substitute witness.
25260         * lib/unistd.in.h (getgroups): Declare replacement.
25261
25262         getgroups: avoid calling exit
25263         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
25264         drop xalloc.
25265         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
25266         dependencies.
25267         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
25268         exiting, in the rare case of malloc failure.
25269
25270         getgroups: fix logic error
25271         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
25272         has more than 20 groups.
25273         * modules/getgroups-tests: New test.
25274         * tests/test-getgroups.c: New file.
25275
25276 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25277
25278         * tests/test-base64.c: Improve.
25279
25280 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25281
25282         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
25283         Blake <ebb9@byu.net>.
25284
25285 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25286
25287         * tests/test-xvasprintf.c: Add %s%s related checks.
25288
25289 2009-11-12  Eric Blake  <ebb9@byu.net>
25290
25291         version-etc: match standards.texi style
25292         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
25293         and use <> only for URLs.
25294
25295 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
25296
25297         fts: do not fail on a submount during traversal
25298         * lib/fts.c (fts_build): Read the stat info again after opening
25299         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
25300         Original report at http://bugzilla.redhat.com/501848.
25301
25302 2009-11-12  Jim Meyering  <meyering@redhat.com>
25303
25304         bootstrap: sync from coreutils
25305         * build-aux/bootstrap (bootstrap_epilogue): New function.
25306         Use git_modules_config in one more place.  This make bootstrap's
25307         --gnulib-srcdir option more useful for testing.
25308
25309         bootstrap: generalize autoheader check
25310         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
25311         AC_CONFIG_HEADERS.
25312
25313 2009-11-11  Eric Blake  <ebb9@byu.net>
25314
25315         mkfifoat: use new modules for Solaris and BSD bugs
25316         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
25317         * lib/mkfifoat.c (mknodat): Split...
25318         * lib/mknodat.c (mknodat): ...into new file.
25319         * modules/mkfifoat (Files): Ship new file.
25320         (Depends-on): Add mkfifo, mknod.
25321         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
25322         (Depends-on): Add symlink.
25323         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
25324         redundant with test_mkfifo.h.
25325         (do_mkfifoat, do_mknodat): New helpers.
25326
25327         mknod: new module
25328         * modules/mknod: New file.
25329         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
25330         * lib/mknod.c (mknod): Likewise.
25331         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25332         defaults.
25333         * modules/sys_stat (Makefile.am): Substitute them.
25334         * lib/sys_stat.in.h (mknod): Declare replacement.
25335         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25336         Document it.
25337         * doc/posix-functions/mknod.texi (mknod): Likewise.
25338         * modules/mknod-tests: New test.
25339         * tests/test-mknod.c: Likewise.
25340
25341         mkfifo: new module
25342         * modules/mkfifo: New file.
25343         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25344         * lib/mkfifo.c (mkfifo): Likewise.
25345         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25346         defaults.
25347         * modules/sys_stat (Makefile.am): Substitute them.
25348         * lib/sys_stat.in.h (mkfifo): Declare replacement.
25349         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25350         Document it.
25351         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
25352         * modules/mkfifo-tests: New test.
25353         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
25354         from test-mkfifoat.c.
25355         * tests/test-mkfifo.c: New file.
25356
25357         readlink: detect FreeBSD bug
25358         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
25359         slash on symlink.
25360         * doc/posix-functions/readlink.texi (readlink): Document the bug.
25361         * tests/test-readlink.h (test_readlink): Enhance test.
25362
25363         symlink: detect FreeBSD bug
25364         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
25365         slash on symlink.
25366         * doc/posix-functions/symlink.texi (symlink): Document the bug.
25367         * tests/test-symlink.h (test_symlink): Enhance test.
25368
25369 2009-11-10  Eric Blake  <ebb9@byu.net>
25370
25371         link: detect FreeBSD bug
25372         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
25373         symlink.
25374         * doc/posix-functions/link.texi (link): Document the bug.
25375         * tests/test-link.h (test_link): Enhance test.
25376         * tests/test-linkat.c (main): Update caller.
25377
25378         unlink, remove: detect FreeBSD bug
25379         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
25380         slash on symlink.
25381         * doc/posix-functions/unlink.texi (unlink): Document the bug.
25382         * doc/posix-functions/remove.texi (remove): Likewise.
25383         * tests/test-unlink.h (test_unlink): Enhance test.
25384         * tests/test-remove.c (main): Likewise.
25385
25386 2009-11-09  Eric Blake  <ebb9@byu.net>
25387
25388         rename: detect FreeBSD bug
25389         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
25390         slash on symlink.
25391         * modules/renameat-tests (Depends-on): Add filenamecat.
25392         * tests/test-rename.h (test_rename): Allow one more errno.
25393         * tests/test-renameat.c (main): Likewise.
25394         * doc/posix-functions/rename.texi (rename): Document the bug.
25395
25396         open: detect FreeBSD bug
25397         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
25398         symlink.
25399         * doc/posix-functions/open.texi (open): Document the bug.
25400         * doc/posix-functions/utimes.texi (utimes): Likewise.
25401         * tests/test-open.h (test_open): Add parameters, and test symlink
25402         handling.
25403         * tests/test-open.c (main): Adjust caller.
25404         * tests/test-fcntl-safer.c (main): Likewise.
25405         * modules/open-tests (Depends-on): Add stdbool, symlink.
25406         * modules/fcntl-safer-tests (Depends-on): Likewise.
25407         * tests/test-openat.c (main): Add test-open tests.
25408
25409         stat: detect FreeBSD bug
25410         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
25411         symlink.
25412         * doc/posix-functions/stat.texi (stat): Document the bug.
25413         * tests/test-stat.h (test_stat_func): Add argument.
25414         * tests/test-stat.c (main): Adjust caller.
25415         * tests/test-fstatat.c (main): Likewise.
25416         * modules/stat-tests (Depends-on): Add stdbool, symlink.
25417         Reported by Jim Meyering.
25418
25419 2009-11-09  James Youngman  <jay@gnu.org>
25420
25421         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
25422         * lib/strftime.c: Correct placement of #include "ignore-value.h".
25423
25424 2009-11-08  Jim Meyering  <meyering@redhat.com>
25425
25426         utimens: remove invalid futimesat call
25427         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
25428         It used the file descriptor of the target file as the DIR_FD
25429         parameter and NULL as the file name.  That caused failure with
25430         errno == EFAULT on FreeBSD-8.0-rc2
25431
25432 2009-11-07  Eric Blake  <ebb9@byu.net>
25433
25434         fflush, freadseek: use fseeko, not fseek
25435         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
25436         (clear_ungetc_buffer): Avoid potential problems on large files.
25437         * lib/freadseek.c (freadseek): Likewise.
25438         * modules/freadseek (Depends-on): Add fseeko.
25439         * modules/fseek (configure.ac): Set a witness.
25440         * tests/test-fflush.c (main): Use fseeko.
25441         * tests/test-fpurge.c (fseek): Disable link warning.
25442         * tests/test-freadable.c (fseek): Likewise.
25443         * tests/test-freading.c (fseek): Likewise.
25444         * tests/test-fseeko.c (fseek): Likewise.
25445         * tests/test-ftell.c (fseek): Likewise.
25446         * tests/test-ftello.c (fseek): Likewise.
25447         * tests/test-fwritable.c (fseek): Likewise.
25448         * tests/test-fwriting.c (fseek): Likewise.
25449
25450 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25451
25452         * modules/memchr (Depends-on): Drop getpagesize dependency.
25453
25454 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25455
25456         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
25457         Reported by Ludovic Courtès.
25458         * build-aux/pmccabe2html: Improve example usage.
25459         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
25460
25461 2009-11-06  Jim Meyering  <meyering@redhat.com>
25462
25463         do-release-commit-and-tag: New module.
25464         Automate the release-commit and tag process.
25465         * build-aux/do-release-commit-and-tag: New script, from coreutils.
25466         * modules/do-release-commit-and-tag: New file.
25467         * MODULES.html.sh (Support for maintaining and releasing): Add it.
25468
25469 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25470
25471         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
25472         because test-select.c uses inet_pton.
25473
25474 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25475
25476         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
25477         GETADDRINFO_LIB.  Bump serial number.
25478         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
25479         Suggested by Eric Blake <ebb9@byu.net>.
25480
25481 2009-11-05  Eric Blake  <ebb9@byu.net>
25482
25483         strtod: detect darwin bug
25484         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
25485         Reported by Leo Davis.
25486
25487         freopen-safer: new module
25488         * modules/freopen-safer: New module.
25489         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
25490         * lib/freopen-safer.c (freopen_safer): New file.
25491         * lib/stdio-safer.h (freopen_safer): New declaration.
25492         * lib/stdio--.h (freopen): New override.
25493         * MODULES.html.sh (File stream based Input/Output): Mention it.
25494         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
25495         freopen-safer module.
25496         * doc/posix-functions/stderr.texi (stderr): Likewise.
25497         * doc/posix-functions/stdin.texi (stdin): Likewise.
25498         * doc/posix-functions/stdout.texi (stdout): Likewise.
25499         * modules/freopen-safer-tests: New test.
25500         * tests/test-reopen-safer.c: New file.
25501
25502 2009-11-05  Jim Meyering  <meyering@redhat.com>
25503
25504         maint.mk: Prohibit inclusion of "close-stream.h" without use.
25505         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25506
25507 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25508
25509         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
25510
25511 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25512
25513         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
25514
25515 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25516
25517         Fix link error.
25518         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25519         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25520
25521 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25522
25523         * tests/test-func.c: Also test value of __func__.
25524
25525 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25526
25527         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
25528         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
25529
25530 2009-11-05  Bruno Haible  <bruno@clisp.org>
25531
25532         Fix link error.
25533         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25534         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25535         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
25536
25537 2009-11-05  Bruno Haible  <bruno@clisp.org>
25538
25539         Tests for module 'inet_pton'.
25540         * modules/inet_pton-tests: New file.
25541         * tests/test-inet_pton.c: New file.
25542
25543 2009-11-05  Bruno Haible  <bruno@clisp.org>
25544
25545         Tests for module 'inet_ntop'.
25546         * modules/inet_ntop-tests: New file.
25547         * tests/test-inet_ntop.c: New file.
25548
25549 2009-11-04  Eric Blake  <ebb9@byu.net>
25550
25551         stdlib-safer: wrap all mkstemp variants
25552         * modules/mkostemp (configure.ac): Set witness.
25553         * modules/mkostemps (configure.ac): Likewise.
25554         * modules/mkstemps (configure.ac): Likewise.
25555         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
25556         (mkstemps_safer): Wrap more functions.
25557         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
25558         wrapping.
25559         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
25560         (mkstemps_safer): Implement the wrappers.
25561
25562         mkstemps, mkostemps: new modules
25563         * modules/mkostemps: New module.
25564         * modules/mkstemps: Likewise.
25565         * lib/mkostemps.c (mkostemps): New file.
25566         * lib/mkstemps.c (mkstemps): Likewise.
25567         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
25568         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
25569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
25570         * modules/stdlib (Makefile.am): Substitute them.
25571         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
25572         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
25573         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25574         * doc/gnulib.texi (Glibc stdlib.h): Include them.
25575         * MODULES.html.sh (File system functions): Mention them.
25576
25577         tempname: resync from glibc
25578         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
25579         same values for __GT_FILE as glibc.  Abort even when assertions
25580         are disabled.
25581         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
25582         match its value otherwise.  Allow idempotent inclusion.
25583         * lib/mkdtemp.c (mkdtemp): Adjust caller.
25584         * lib/mkostemp.c (mkostemp): Likewise.
25585         * lib/mkstemp.c (mkstemp): Likewise.
25586         * lib/tmpfile.c (tmpfile): Likewise.
25587         * NEWS: Document this.
25588
25589         utimens: fix use of futimens on older Linux
25590         * lib/utimens.c (fdutimens): Use updated, rather than original,
25591         timespec to avoid bug in older Linux kernel.
25592         Reported by Simon Josefsson.
25593
25594 2009-11-04  Bruno Haible  <bruno@clisp.org>
25595
25596         Make num_processors more flexible and consistent.
25597         * lib/nproc.h (enum nproc_query): New type.
25598         (num_processors): Add a 'query' argument.
25599         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
25600         (num_processors): Add a 'query' argument. Test the value of the
25601         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
25602         mingw, count the number of CPUs available for the current process.
25603         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
25604         Check for sched_getaffinity and sched_getaffinity_np.
25605         * modules/nproc (Depends-on): Add c-ctype, extensions.
25606         * NEWS: Mention the change.
25607
25608 2009-11-03  Bruno Haible  <bruno@clisp.org>
25609
25610         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
25611
25612 2009-11-03  Jim Meyering  <meyering@redhat.com>
25613
25614         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
25615         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
25616         if it is defined.
25617
25618 2009-11-02  Eric Blake  <ebb9@byu.net>
25619
25620         mktime, timegm: share common declaration
25621         * lib/mktime-internal.h: New file.
25622         * lib/mktime.c: Use it rather than open-coding a declaration.
25623         * lib/timegm.c: Likewise.
25624         * modules/mktime (Files): Ship it.
25625         * modules/timegm (Files): Likewise.
25626         Suggested by Bruno Haible.
25627
25628         test-update-copyright: update test to match script changes
25629         * tests/test-update-copyright.sh: Avoid hard-coding perl
25630         location.  Don't update *.bak created by earlier runs.
25631
25632 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
25633             Simon Josefsson  <simon@josefsson.org>
25634             Bruno Haible  <bruno@clisp.org>
25635
25636         Fix link error on Solaris 8.
25637         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
25638         also in libnsl. Define also INET_PTON_LIB.
25639         * modules/inet_pton (Link): New section.
25640
25641 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25642             Bruno Haible  <bruno@clisp.org>
25643
25644         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
25645         * modules/inet_ntop (Link): New section.
25646         Reported by Boyan Kasarov <bkasarov@gmail.com>.
25647
25648 2009-11-02  Eric Blake  <ebb9@byu.net>
25649
25650         maint: avoid compiler warnings in m4 macros
25651         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
25652         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
25653
25654 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25655
25656         * m4/pmccabe2html.m4: Remove file.
25657         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
25658         function.  Change maintainer.
25659         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
25660         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
25661         Courtès).
25662
25663 2009-10-31  Eric Blake  <ebb9@byu.net>
25664
25665         fseeko: fix m4 regression
25666         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
25667         regression from 2009-10-27.
25668         Reported by Ralf Wildenhues.
25669
25670 2009-10-31  Jim Meyering  <meyering@redhat.com>
25671
25672         inttostr: aesthetics and improved (compile-time) safety
25673         Define inttype_is_signed rather than inttype_is_unsigned,
25674         since the sole use is via "#if inttype_is_signed".
25675         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
25676         inttype_is_unsigned.
25677         * lib/offtostr.c (inttype_is_signed): Likewise.
25678         * lib/uinttostr.c (inttype_is_signed): Likewise.
25679         * lib/umaxtostr.c (inttype_is_signed): Likewise.
25680         * lib/inttostr.c (inttostr): Use verify to cross-check the
25681         inttype_is_signed value and the signedness of the actual type.
25682         * modules/inttostr (Depends-on): Add verify.
25683
25684 2009-10-30  Eric Blake  <ebb9@byu.net>
25685
25686         build: avoid compiler warnings
25687         * lib/fchmodat.c (lchmod): Mark unused variables.
25688         * lib/getopt.c (_getopt_initialize): Likewise.
25689         * lib/mktime.c (__mktime_internal): Provide prototype.
25690         * lib/inttostr.c (inttostr): Avoid compiler warning even with
25691         older gcc that do not understand #pragma GCC diagnostic.
25692         * lib/uinttostr.c (inttype_is_unsigned): Define.
25693         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
25694
25695 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
25696
25697         stat: fix compilation on AIX
25698         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
25699         only see struct stat64.
25700
25701 2009-10-30  Eric Blake  <ebb9@byu.net>
25702
25703         exclude: make more robust
25704         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
25705         rather than masking a coding bug.
25706         Suggested by Bruno Haible.
25707
25708 2009-10-30  Jim Meyering  <meyering@redhat.com>
25709
25710         perl scripts: remove #!/usr/bin/perl in favor of more portable...
25711         Rather than putting #!/usr/bin/perl on the first line,
25712         start with a variant of what's recommended by "man perlrun" that
25713         invokes the first "perl" program from your shell's search path.
25714         * build-aux/gitlog-to-changelog: Replace #!... as above.
25715         Add a "Local Variables" perl mode setting.
25716         Prompted by a patch from Ludovic Courtès.
25717         Improved by Eric Blake.
25718         * build-aux/useless-if-before-free: Likewise.
25719         * build-aux/announce-gen: Likewise.
25720         * build-aux/update-copyright: Likewise.
25721
25722 2009-10-29  Eric Blake  <ebb9@byu.net>
25723
25724         filenamecat-lgpl: adjust clients
25725         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
25726         filenamecat.
25727         * modules/renameat (Depends-on): Likewise.
25728
25729         filenamecat: split into filenamecat-lgpl
25730         * modules/filenamecat-lgpl: New module.
25731         * modules/filenamecat (Files): Move library-safe files into
25732         filenamecat-lgpl.
25733         (Depends-on): Add filenamecat-lgpl.
25734         (configure.ac): Declare witness.
25735         * lib/filenamecat.h (file_name_concat): Only declare when using
25736         GPL module.
25737         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
25738         Move...
25739         * lib/filenamecat-lgpl.c: ...into new file.
25740         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
25741         (gl_FILE_NAME_CONCAT): Use it.
25742         * MODULES.html.sh (File system functions): Mention new module.
25743
25744         argp: avoid memory leak
25745         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
25746         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
25747         base_name, since the latter malloc()s and can call exit().
25748         Leak introduced 2006-07-03.
25749
25750         dirname-lgpl: adjust clients that don't need full dirname
25751         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
25752         * modules/filenamecat (Depends-on): Likewise.
25753         * modules/linkat (Depends-on): Likewise.
25754         * modules/mkancesdirs (Depends-on): Likewise.
25755         * modules/mkdir (Depends-on): Likewise.
25756         * modules/openat (Depends-on): Likewise.
25757         * modules/savewd (Depends-on): Likewise.
25758         * modules/rename (Depends-on): Likewise.
25759         (License): Relax license.
25760         * modules/mkdir-tests (Depends-on): Drop progname.
25761         (Makefile.am): Delete unneeded LDADD.
25762         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
25763
25764         dirname: split into dirname-lgpl
25765         * modules/dirname-lgpl: New module.
25766         * modules/dirname (Files): Move library-safe files into
25767         dirname-lgpl.
25768         (Depends-on): Add dirname-lgpl.
25769         (configure.ac): Declare witness.
25770         * modules/double-slash-root (License): Relax license.
25771         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
25772         module.
25773         * lib/dirname.c (dir_len, mdir_name): Move...
25774         * lib/dirname-lgpl.c: ...into new file.
25775         * lib/basename.c (last_component, base_len): Move...
25776         * lib/basename-lgpl.c: ...into new file.
25777         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
25778         (gl_DIRNAME): Use it.
25779         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
25780         Mention new module.
25781         * modules/dirname-tests (Depends-on): Add progname.
25782         * tests/test-dirname.c (program_name): Delete.
25783
25784         mkdir: make safe for libraries
25785         * modules/mkdir (Depends-on): Drop xalloc.
25786         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
25787         exit.
25788
25789         tests: avoid some compiler warnings
25790         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
25791         literals.
25792         * tests/test-memchr.c (main): Avoid type mismatch.
25793         * tests/test-arpa_inet.c (main): Avoid unused parameters.
25794         * tests/test-base64.c (main): Likewise.
25795         * tests/test-getdelim.c (main): Likewise.
25796         * tests/test-gethostname.c (main): Likewise.
25797         * tests/test-getline.c (main): Likewise.
25798         * tests/test-netinet_in.c (main): Likewise.
25799         * tests/test-select.c (open_server_socket, main): Likewise.
25800         * tests/test-select-stdin.c (main): Likewise.
25801         * tests/test-sockets.c (main): Likewise.
25802         * tests/test-strsignal.c (main): Likewise.
25803         * tests/test-sys_select.c (main): Likewise.
25804         * tests/test-sys_socket.c (main): Likewise.
25805         * tests/test-u64.c (main): Likewise.
25806         * tests/test-xfprintf-posix.c (main): Likewise.
25807         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
25808
25809         sockets: avoid compiler warning
25810         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
25811
25812         maint: detect usage(1) and other suspicious exits
25813         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
25814
25815 2009-10-29  Jim Meyering  <meyering@redhat.com>
25816
25817         timespec: long-to-int truncation could make timespec_cmp malfunction
25818         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
25819         a multiple of 2^32 nanoseconds as no difference.
25820
25821 2009-10-28  Jim Meyering  <meyering@redhat.com>
25822
25823         fprintftime: wrap macro code argument in "do {...} while(0)"
25824         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
25825         cpy macro must be a statement that can be followed by a semicolon.
25826         Now that the else clause contains a comment and is hence longer
25827         than one line, I require curly braces.  That in turn requires
25828         that we wrap this code block in the standard do...while(0).
25829
25830         fprintftime: remove stray semicolon from previous change
25831         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
25832
25833         fprintftime: avoid a warning about ignored fwrite return value
25834         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
25835         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
25836         that is unsafe.
25837         * modules/fprintftime (Depends-on): Add ignore-value.
25838
25839         exclude: avoid an unwarranted warning
25840         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
25841
25842 2009-10-27  Eric Blake  <ebb9@byu.net>
25843
25844         fseek: avoid compilation failure when fflush is replaced
25845         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
25846         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
25847         module is in use.
25848         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
25849         module is not in use; since REPLACE_FSEEK worked otherwise.
25850         (GNULIB_FTELLO): Likewise for ftell.
25851         Reported by Ian Beckwith and others.
25852
25853 2009-10-27  Bruno Haible  <bruno@clisp.org>
25854
25855         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
25856         Reported by Jim Meyering.
25857
25858 2009-10-27  Jim Meyering  <jim@meyering.net>
25859             Bruno Haible  <bruno@clisp.org>
25860
25861         Avoid warning despite dropping the return value of fwrite.
25862         * lib/unicodeio.c: Include ignore-value.h.
25863         (fwrite_success_callback): Explicitly ignore fwrite's return value.
25864         * modules/unicodeio (Depends-on): Add ignore-value.
25865
25866 2009-10-26  Eric Blake  <ebb9@byu.net>
25867
25868         areadlinkat: fix fallback path
25869         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
25870         pointer and zero.
25871
25872 2009-10-22  Pádraig Brady  <P@draigBrady.com>
25873
25874         Use a better IO block size for modern systems
25875         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
25876         * lib/md2.c: Likewise.
25877         * lib/md4.c: Likewise.
25878         * lib/md5.c: Likewise.
25879         * lib/sha1.c: Likewise.
25880         * lib/sha256.c: Likewise.
25881         * lib/sha512.c: Likewise.
25882
25883 2009-10-22  Eric Blake  <ebb9@byu.net>
25884
25885         tests: avoid several compiler warnings
25886         * tests/test-getcwd.c (main): Avoid buffer underflow.
25887         * tests/test-getdate.c (main): String literals are not safe with
25888         putenv, so use setenv.  Declare unused argument.
25889         * modules/getdate-tests (Depends-on): Add setenv.
25890         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
25891         problems with string literals in char *.
25892         * tests/test-hash.c (main): Avoid shadowing declaration.
25893         (insert_new): Treat string literals as char const *.
25894         * tests/test-getopt.h (test_getopt): Likewise.
25895         (getopt_loop): Alter types to minimize casting elsewhere.
25896         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
25897         (test_getopt_long_posix): Likewise.
25898         (do_getopt_long): Add wrapper to minimize casting.
25899         * tests/test-atexit.c (clear_temp_file): Use void.
25900         * tests/test-areadlink-with-size.c (main): Declare unused
25901         arguments.
25902         * tests/test-areadlink.c (main): Likewise.
25903         * tests/test-areadlinkat-with-size.c (main): Likewise.
25904         * tests/test-areadlinkat.c (main): Likewise.
25905         * tests/test-canonicalize-lgpl.c (main): Likewise.
25906         * tests/test-canonicalize.c (main): Likewise.
25907         * tests/test-dirent-safer.c (main): Likewise.
25908         * tests/test-dirname.c (main): Likewise.
25909         * tests/test-dup2.c (main): Likewise.
25910         * tests/test-fchdir.c (main): Likewise.
25911         * tests/test-fcntl-h.c (main): Likewise.
25912         * tests/test-fcntl-safer.c (main): Likewise.
25913         * tests/test-fdopendir.c (main): Likewise.
25914         * tests/test-fdutimensat.c (main): Likewise.
25915         * tests/test-fflush.c (main): Likewise.
25916         * tests/test-filenamecat.c (main): Likewise.
25917         * tests/test-filevercmp.c (main): Likewise.
25918         * tests/test-fopen-safer.c (main): Likewise.
25919         * tests/test-fopen.c (main): Likewise.
25920         * tests/test-fpending.c (main): Likewise.
25921         * tests/test-fpurge.c (main): Likewise.
25922         * tests/test-freading.c (main): Likewise.
25923         * tests/test-fstatat.c (main): Likewise.
25924         * tests/test-fsync.c (main): Likewise.
25925         * tests/test-futimens.c (main): Likewise.
25926         * tests/test-getndelim2.c (main): Likewise.
25927         * tests/test-gettimeofday.c (main): Likewise.
25928         * tests/test-getopt.c (main): Likewise.
25929         * tests/test-i-ring.c (main): Likewise.
25930         * tests/test-inttypes.c (main): Likewise.
25931         * tests/test-link.c (main): Likewise.
25932         * tests/test-lstat.c (main): Likewise.
25933         * tests/test-math.c (main): Likewise.
25934         * tests/test-md5.c (main): Likewise.
25935         * tests/test-memchr2.c (main): Likewise.
25936         * tests/test-memrchr.c (main): Likewise.
25937         * tests/test-mkdir.c (main): Likewise.
25938         * tests/test-mkdirat.c (main): Likewise.
25939         * tests/test-mkfifoat.c (main): Likewise.
25940         * tests/test-open.c (main): Likewise.
25941         * tests/test-openat-safer.c (main): Likewise.
25942         * tests/test-openat.c (main): Likewise.
25943         * tests/test-quotearg.c (main): Likewise.
25944         * tests/test-rawmemchr.c (main): Likewise.
25945         * tests/test-readlink.c (main): Likewise.
25946         * tests/test-remove.c (main): Likewise.
25947         * tests/test-rename.c (main): Likewise.
25948         * tests/test-renameat.c (main): Likewise.
25949         * tests/test-rmdir.c (main): Likewise.
25950         * tests/test-sha1.c (main): Likewise.
25951         * tests/test-signal.c (main): Likewise.
25952         * tests/test-sigaction.c (main): Likewise.
25953         * tests/test-stat.c (main): Likewise.
25954         * tests/test-stat-time.c (main): Likewise.
25955         * tests/test-stddef.c (main): Likewise.
25956         * tests/test-stdint.c (main): Likewise.
25957         * tests/test-stdio.c (main): Likewise.
25958         * tests/test-stdlib.c (main): Likewise.
25959         * tests/test-strchrnul.c (main): Likewise.
25960         * tests/test-strerror.c (main): Likewise.
25961         * tests/test-string.c (main): Likewise.
25962         * tests/test-strtod.c (main): Likewise.
25963         * tests/test-strverscmp.c (main): Likewise.
25964         * tests/test-symlink.c (main): Likewise.
25965         * tests/test-symlinkat.c (main): Likewise.
25966         * tests/test-sys_stat.c (main): Likewise.
25967         * tests/test-sys_time.c (main): Likewise.
25968         * tests/test-time.c (main): Likewise.
25969         * tests/test-unistd.c (main): Likewise.
25970         * tests/test-unlink.c (main): Likewise.
25971         * tests/test-unlinkat.c (main): Likewise.
25972         * tests/test-utimens.c (main): Likewise.
25973         * tests/test-utimensat.c (main): Likewise.
25974         * tests/test-version-etc.c (main): Likewise.
25975         * tests/test-wchar.c (main): Likewise.
25976         * tests/test-wctype.c (main): Likewise.
25977         * tests/test-xprintf-posix.c (main): Likewise.
25978         * tests/test-posixtm.c (main): Likewise.
25979         (STREQ): Delete unused macro.
25980         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
25981         shadowed variables.
25982         * tests/test-memchr.c (main): Likewise.
25983
25984 2009-10-21  Eric Blake  <ebb9@byu.net>
25985
25986         areadlinkat: avoid failure on older glibc
25987         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
25988         rather than mis-comparing 0 against FUNC_RESULT of char*.
25989
25990 2009-10-21  Bruno Haible  <bruno@clisp.org>
25991
25992         * modules/stpncpy (License): Relicense under LGPLv2+.
25993         Reported by David Lutterkort <lutter@redhat.com>.
25994
25995 2009-10-20  Eric Blake  <ebb9@byu.net>
25996
25997         utimensat: work around Solaris 9 bug
25998         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
25999         has trailing slash bugs.
26000         * tests/test-lutimens.h (test_lutimens): Enhance test.
26001         * tests/test-utimens.h (test_utimens): Likewise.
26002         * doc/posix-functions/utime.texi (utime): Enhance documentation.
26003         * doc/posix-functions/utimes.texi (utimes): Likewise.
26004         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26005         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
26006         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
26007         * doc/posix-functions/futimens.texi (futimens): Likewise.
26008
26009         fdutimensat: new module
26010         * modules/fdutimensat: New file.
26011         * lib/fdutimensat.c (fdutimensat): Likewise.
26012         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
26013         * MODULES.html.sh (File system functions): Mention module.
26014         * modules/fdutimensat-tests: New test.
26015         * tests/test-fdutimensat.c: Likewise.
26016
26017         doc: regenerate INSTALL
26018         * doc/INSTALL: Reflect recent autoconf update.
26019         * doc/INSTALL.ISO: Likewise.
26020         * doc/INSTALL.UTF-8: Likewise.
26021
26022 2009-10-20  Pádraig Brady  <P@draigBrady.com>
26023
26024         acl: warn if ACL support is not detected
26025         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
26026
26027 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
26028
26029         * lib/nproc.h: Add extern "C" block for C++.
26030
26031 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
26032             Bruno Haible  <bruno@clisp.org>
26033
26034         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
26035         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
26036         * doc/posix-functions/isalpha.texi: Likewise.
26037         * doc/posix-functions/isblank.texi: Likewise.
26038         * doc/posix-functions/iscntrl.texi: Likewise.
26039         * doc/posix-functions/isdigit.texi: Likewise.
26040         * doc/posix-functions/isgraph.texi: Likewise.
26041         * doc/posix-functions/islower.texi: Likewise.
26042         * doc/posix-functions/isprint.texi: Likewise.
26043         * doc/posix-functions/ispunct.texi: Likewise.
26044         * doc/posix-functions/isspace.texi: Likewise.
26045         * doc/posix-functions/isupper.texi: Likewise.
26046         * doc/posix-functions/isxdigit.texi: Likewise.
26047
26048 2009-10-18  Bruno Haible  <bruno@clisp.org>
26049
26050         Tests for module 'isblank'.
26051         * modules/isblank-tests: New file.
26052         * tests/test-isblank.c: New file.
26053
26054         New module 'isblank'.
26055         * lib/isblank.c: New file.
26056         * m4/isblank.m4: New file.
26057         * modules/isblank: New file.
26058         * doc/posix-functions/isblank.texi: Mention the new module.
26059
26060 2009-10-18  Bruno Haible  <bruno@clisp.org>
26061
26062         New module 'ctype'.
26063         * lib/ctype.in.h: New file.
26064         * m4/ctype.m4: New file.
26065         * modules/ctype: New file.
26066         * doc/posix-headers/ctype.texi: Mention the new module.
26067
26068 2009-10-18  Jim Meyering  <meyering@redhat.com>
26069
26070         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
26071         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
26072         right after its initialization, rather than farther down.
26073         Keeping these in close proximity makes it easier to ensure
26074         that each such variable is initialized.  E.g.,
26075
26076             LIB_CLOCK_GETTIME=
26077             AC_SUBST([LIB_CLOCK_GETTIME])
26078
26079         This change also increments these serial numbers.
26080         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
26081         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26082         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26083
26084 2009-10-18  Bruno Haible  <bruno@clisp.org>
26085
26086         Don't let environment variables perturb build.
26087         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
26088         (gl_PREREQ_GETHRXTIME): ... not here.
26089
26090 2009-10-18  Bruno Haible  <bruno@clisp.org>
26091
26092         Avoid symlink attack in localcharset module.
26093         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
26094         (O_NOFOLLOW): Define fallback.
26095         (get_charset_aliases): Don't open the file if it is a symbolic link.
26096         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
26097         gl_FCNTL_H.
26098         (gl_FCNTL_H): Require it.
26099         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
26100         * modules/localcharset (Files): Add m4/fcntl_h.m4.
26101         Reported by Fergal Glynn <fglynn@veracode.com>.
26102
26103 2009-10-18  Bruno Haible  <bruno@clisp.org>
26104
26105         Implement nproc for mingw.
26106         * lib/nproc.c: Include <windows.h>
26107         (num_processors): On native Windows platforms, try GetSystemInfo.
26108
26109 2009-10-18  Bruno Haible  <bruno@clisp.org>
26110
26111         Implement nproc for IRIX.
26112         * lib/nproc.c: Include <sys/sysmp.h>.
26113         (num_processors): On IRIX systems, try sysmp.
26114         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
26115
26116 2009-10-18  Bruno Haible  <bruno@clisp.org>
26117
26118         Implement nproc for HP-UX.
26119         * lib/nproc.c: Include <sys/pstat.h>
26120         (num_processors): On HP-UX systems, try pstat_getdynamic.
26121         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
26122         pstat_getdynamic.
26123
26124 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
26125             Bruno Haible  <bruno@clisp.org>
26126
26127         Implement nproc for NetBSD, OpenBSD.
26128         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
26129         (ARRAY_SIZE): New macro.
26130         (num_processors): On BSD systems, try sysctl of HW_NCPU.
26131         * m4/nproc.m4: New file.
26132         * modules/nproc (Files): Add m4/nproc.m4.
26133         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
26134         (Makefile.am): Instead, augment lib_SOURCES.
26135
26136 2009-10-18  Bruno Haible  <bruno@clisp.org>
26137
26138         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
26139         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
26140         sys/param.h.
26141
26142 2009-10-16  Eric Blake  <ebb9@byu.net>
26143
26144         utimensat: new module
26145         * modules/utimensat: New file.
26146         * lib/utimensat.c (utimensat): Likewise.
26147         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26148         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
26149         so we can work around Linux bugs.
26150         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26151         * modules/sys_stat (Makefile.am): Substitute them.
26152         * lib/sys_stat.in.h (utimensat): Declare it.
26153         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26154         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26155         * modules/utimensat-tests: New test.
26156         * tests/test-utimensat.c: Likewise.
26157
26158         utimens: let lutimens work on non-symlinks
26159         * lib/utimens.c (lutimens): Fall back to utimens rather than
26160         failing with ENOSYS, when file is not a symlink.
26161         (utimens): Reduce redirection.
26162         * tests/test-lutimens.h (test_lutimens): Update test to cover
26163         non-symlinks.
26164         * tests/test-utimens.h (test_utimens): Update test to cover
26165         symlinks.
26166         * tests/test-utimens.c (main): Update caller.
26167
26168         utimens: cache whether utimensat syscall works
26169         * lib/utimens.c (utimensat_works_really): New cache variable.
26170         (fdutimens, lutimens): Use it to avoid failing syscall.
26171
26172         test-stat-time, test-utimens: improve portability
26173         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
26174         ext4 on alpha, and for cygwin.
26175         * tests/test-utimens-common.h: New file.
26176         (nap): Factor delays into single function.
26177         * tests/test-lutimens.h (test_lutimens): Use new header.
26178         * tests/test-futimens.h (test_futimens): Likewise.
26179         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
26180         timestamps to occur from same machine, as was done previously for
26181         test_utimens.
26182         * modules/utimens-tests (Files): Ship new file.
26183         * modules/futimens-tests (Files): Likewise.
26184         Reported in part by Jim Meyering.
26185
26186         sys_stat: sort replacement declarations
26187         * lib/sys_stat.in.h: Sort declarations.
26188         * lib/futimens.c (futimens): Fix typo.
26189
26190 2009-10-15  Jim Meyering  <meyering@redhat.com>
26191
26192         don't let environment settings perturb build
26193         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
26194         could cause a configure-time and/or build-time malfunction.
26195         Typically, a configure-time function-in-library test is performed
26196         via code like this:
26197
26198           LIB_VAR=
26199           AC_SUBST([LIB_VAR])
26200           prefix_saved_LIBS=$LIBS
26201             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
26202                        [test "$ac_cv_search_FUNC" = "none required" ||
26203                         LIB_VAR=$ac_cv_search_FUNC])
26204           LIBS=$prefix_saved_LIBS
26205
26206         However, in each of the files affected by this change, the LIB_VAR=
26207         initialization was omitted.  Thus, when set in the environment, its
26208         value would propagate into generated Makefiles when FUNC is not found
26209         in LIB_NAME.
26210         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
26211         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26212         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26213
26214 2009-10-14  Eric Blake  <ebb9@byu.net>
26215
26216         fchdir: avoid infinite recursion in mingw
26217         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
26218         recursing.
26219
26220         test-stat-time: port to mingw
26221         * tests/test-stat-time.c (force_unlink): Return a value.
26222         (test_ctime) [W32]: Fix compilation error.
26223         (nap): Don't call usleep with too large an argument.  Use
26224         force_unlink.
26225         * doc/pastposix-functions/usleep.texi (usleep): Document the
26226         portability issue.
26227
26228 2009-10-13  Jim Meyering  <meyering@redhat.com>
26229
26230         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
26231         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
26232         * modules/pipe-filter-ii: Likewise.
26233         * modules/sys_socket-tests: Likewise.
26234         * modules/tsearch-tests: Likewise.
26235         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
26236         (check): Depend on it.
26237
26238 2009-10-12  Eric Blake  <ebb9@byu.net>
26239
26240         utimens-tests: port to NFS file systems
26241         * tests/test-utimens.h (test_utimens): Refactor utimecmp
26242         comparisons to avoid spurious failures from timestamp drift
26243         between NFS machines.
26244
26245 2009-10-12  Eric Blake  <ebb9@byu.net>
26246
26247         stat-time-tests: minor cleanups
26248         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
26249         * tests/test-stat-time.c (nap): Separate assignment from call.
26250         Suggested by Paolo Bonzini and Bruno Haible.
26251
26252         sys_stat: guarantee struct timespec
26253         * lib/sys_stat.in.h (includes): Always include <time.h>
26254         * modules/sys_stat (Depends-on): Add time.
26255         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
26256         mode_t permission values.
26257         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
26258         get at subsecond timestamps.
26259
26260 2009-10-10  Eric Blake  <ebb9@byu.net>
26261
26262         futimens: new module
26263         * modules/futimens: New file.
26264         * lib/futimens.c (futimens): Likewise.
26265         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
26266         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
26267         we can work around Linux bugs.
26268         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26269         * modules/sys_stat (Makefile.am): Substitute them.
26270         * lib/sys_stat.in.h (futimens): Declare it.
26271         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26272         * doc/posix-functions/futimens.texi (futimens): Likewise.
26273         * modules/futimens-tests: New test.
26274         * tests/test-futimens.c: Likewise.
26275
26276         utimens: introduce fdutimens
26277         * lib/utimens.h (fdutimens): New prototype.
26278         * lib/utimens.c (gl_futimens): Move guts...
26279         (fdutimens): ...to new interface.
26280         * tests/test-utimens.c (do_fdutimens): Use it.
26281
26282         utimens: add UTIME_NOW and UTIME_OMIT support
26283         * lib/utimens.c (validate_timespec, update_timespec): New helper
26284         functions.
26285         (gl_futimens, lutimens): Use them.
26286         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
26287         stdbool, sys_stat.
26288         (Link): Mention resulting library dependency.
26289         * modules/utimecmp (Link): Likewise.
26290         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
26291         (Makefile.am): Pick up library dependency.
26292         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
26293         definition.
26294         * tests/test-sys_stat.c: Test the definitions.
26295         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
26296         * NEWS: Document library dependency.
26297
26298         utimecmp: support symlink timestamps
26299         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
26300         hashing when possible.  Use pathconf when available.
26301         (SYSCALL_RESOLUTION): Recognize tighter resolution.
26302         * modules/utimecmp (Depends-on): Add lstat.
26303
26304         utimens: add lutimens interface
26305         * lib/utimens.c (lutimens): New function.
26306         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
26307         * lib/utimens.h (lutimens): Declare new interface.
26308         * tests/test-utimens.c (main): Enhance test.
26309         * tests/test-lutimens.h (test_lutimens): New file.
26310         * modules/utimens-tests (Files): Distribute it.
26311         (Depends-on): Add symlink.
26312         (configure.ac): Check for usleep.
26313
26314         utimens: validate futimens usage
26315         * lib/utimens.c (gl_futimens): Require valid fd up front, using
26316         fewer syscalls on failure later on.  Avoid compiler warning on
26317         mingw.
26318         * modules/utimens (Depends-on): Add dup2.
26319
26320         utimens: add test
26321         * modules/utimens-tests: New test.
26322         * tests/test-utimens.h: New file.
26323         * tests/test-futimens.h: Likewise.
26324         * tests/test-utimens.c: Likewise.
26325
26326         doc: mention timestamp portability issues
26327         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
26328         instead.
26329         * doc/posix-functions/utime.texi (utime): Likewise.
26330         * doc/posix-functions/utimes.texi (utimes): Likewise.
26331         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
26332         instead.
26333         * doc/posix-functions/futimens.texi (futimens): Mention utimens
26334         module.
26335         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26336         Mention weakness with symlink timestamps.
26337         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
26338         to utimensat/futimens instead.
26339         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
26340
26341         test-dup2: enhance test
26342         * tests/test-dup2.c (main): Also check AT_FDCWD.
26343
26344         test-stat-time: avoid more spurious failures
26345         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
26346         xfs; and avoid race if the two timestamps cross quantization edge.
26347
26348         relocatable: prefer 'file system' over 'filesystem'
26349         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
26350         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
26351         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
26352         * doc/relocatable.texi (Enabling Relocatability): Likewise.
26353         * lib/relocatable.c (compute_curr_prefix): Likewise.
26354
26355 2009-10-10  Jim Meyering  <meyering@redhat.com>
26356
26357         stat-time-tests: check for the usleep function
26358         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
26359
26360 2009-10-10  Bruno Haible  <bruno@clisp.org>
26361
26362         * modules/xnanosleep: Put the Link section after the Include section.
26363
26364 2009-10-09  Eric Blake  <ebb9@byu.net>
26365
26366         dup2: work around FreeBSD 6.1 bug
26367         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
26368         * doc/posix-functions/dup2.texi (dup2): Document it.
26369         Reported by Nelson H. F. Beebe and Jim Meyering.
26370
26371         test-stat-time: port to buggy NFS clients
26372         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
26373         (test_ctime): Also skip test if mtime and ctime are skewed.
26374
26375         maint: prefer 'file system' over 'filesystem'
26376         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26377         * doc/posix-functions/lstat.texi (lstat): Likewise.
26378         * lib/file-has-acl.c (file_has_acl): Likewise.
26379         * lib/fwriteerror.c [TEST]: Likewise.
26380         * tests/test-areadlink.h (test_areadlink): Likewise.
26381         * tests/test-areadlinkat-with-size.c (main): Likewise.
26382         * tests/test-areadlinkat.c (main): Likewise.
26383         * tests/test-canonicalize-lgpl.c (main): Likewise.
26384         * tests/test-canonicalize.c (main): Likewise.
26385         * tests/test-fstatat.c (main): Likewise.
26386         * tests/test-linkat.c (main): Likewise.
26387         * tests/test-lstat.h (test_lstat_func): Likewise.
26388         * tests/test-mkdir.h (test_mkdir): Likewise.
26389         * tests/test-readlink.h (test_readlink): Likewise.
26390         * tests/test-remove.c (main): Likewise.
26391         * tests/test-rename.h (test_rename): Likewise.
26392         * tests/test-renameat.c (main): Likewise.
26393         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26394         * tests/test-symlink.h (test_symlink): Likewise.
26395         * tests/test-symlinkat.c (main): Likewise.
26396         * tests/test-unlink.h (test_unlink_func): Likewise.
26397         * tests/test-unlinkat.c (main): Likewise.
26398
26399         maint: make realtime library usage explicit
26400         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
26401         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
26402         * modules/settime (Link): Likewise.
26403         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
26404
26405         test-stat-time: speed up execution
26406         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
26407         warning on mingw.
26408         (nap): New helper function.
26409         (prepare_test): Use it to reduce sleep time.
26410         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
26411         execution.
26412         * modules/stat-time-tests (configure.ac): Check for usleep.
26413
26414 2009-10-09  Jim Meyering  <meyering@redhat.com>
26415
26416         selinux-h: always use getfilecon wrappers
26417         * lib/getfilecon.c: New file.
26418         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
26419         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
26420         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
26421         (fgetfilecon): Provide a stub.
26422         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
26423         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
26424         file unconditionally.
26425         When <selinux/selinux.h> is found, arrange to use wrappers.
26426         * modules/selinux-h (Files): Add getfilecon.c.
26427         (Makefile.am): Substitute include-next-related bits
26428         into the now-always-generated selinux/selinux.h file.
26429         * doc/glibc-functions/lgetfilecon.texi: New file.
26430         * doc/glibc-functions/fgetfilecon.texi: New file.
26431         * doc/glibc-functions/getfilecon.texi: New file.
26432         * doc/glibc-functions/getfilecon-desc.texi: New file.
26433         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
26434         which to pull in the new files.
26435         * MODULES.html.sh (Misc): Add selinux-h.
26436
26437 2009-10-08  Jim Meyering  <meyering@redhat.com>
26438
26439         unistd: fix comment typo
26440         * lib/unistd.in.h (euidaccess): Fix a comment typo.
26441
26442 2009-10-08  Eric Blake  <ebb9@byu.net>
26443
26444         areadlink: use SIZE_MAX consistently
26445         * modules/areadlink (Depends-on): Add stdint.
26446         * modules/areadlink-with-size (Depends-on): Likewise.
26447         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
26448         gives NULL; drop sys/types, since unistd gives size_t; and add
26449         stdint for SIZE_MAX.
26450         (SIZE_MAX): Rely on headers.
26451         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
26452         and add stdint.
26453         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
26454         (SIZE_MAX): Likewise.
26455         (INITIAL_BUF_SIZE): Turn into enum.
26456         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
26457
26458 2009-10-08  Jim Meyering  <meyering@redhat.com>
26459
26460         areadlinkat: avoid compilation failure
26461         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
26462         Fix typo in comment.
26463
26464 2009-10-07  Eric Blake  <ebb9@byu.net>
26465
26466         areadlinkat-with-size: new module
26467         * modules/areadlinkat-with-size: New module.
26468         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
26469         * lib/areadlink.h (areadlinkat): Declare it.
26470         * MODULES.html.sh (File system functions): Mention it.
26471         * modules/areadlinkat-with-size-tests: New test.
26472         * tests/test-areadlinkat-with-size.c: New file.
26473
26474         xreadlinkat: new module
26475         * modules/xreadlinkat: New module.
26476         * lib/xreadlinkat.c (xreadlinkat): New file.
26477         * lib/xreadlink.h (xreadlinkat): Declare it.
26478         * MODULES.html.sh (File system functions): Mention it.
26479
26480         areadlinkat: new module
26481         * lib/at-func.c (FUNC_FAIL): New define.
26482         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
26483         * modules/areadlinkat: New module.
26484         * lib/linkat.c (areadlinkat): Move...
26485         * lib/areadlinkat.c (areadlinkat): ...to new file.
26486         * lib/areadlink.h (areadlinkat): Declare it.
26487         * modules/linkat (Depends-on): Add areadlinkat.
26488         * MODULES.html.sh (File system functions): Mention it.
26489         * modules/areadlinkat-tests: New test.
26490         * tests/test-areadlinkat.c: New file.
26491
26492         areadlink, areadlink-with-size: add tests
26493         * modules/areadlink-tests: New test.
26494         * modules/areadlink-with-size-tests: Likewise.
26495         * tests/test-areadlink.h: New file.
26496         * tests/test-areadlink.c: Likewise.
26497         * tests/test-areadlink-with-size.c: Likewise.
26498
26499         maint: minor cleanups
26500         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
26501         _UNUSED_PARAMETER_ instead.
26502         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
26503         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
26504         * modules/linkat-tests (Files): Distribute test-link.h.
26505
26506         openat, utimens: whitespace cleanup
26507         * lib/openat.c: Prefer space throughout, rather than mix of 8
26508         spaces vs. tabs.
26509         * lib/at-func.c: Likewise.
26510         * lib/utimens.c: Likewise.
26511
26512         openat: avoid using wrong fd
26513         * lib/openat.c (openat_permissive): Reject user's fd if saving the
26514         working directory chooses same fd.
26515         * lib/at-func.c (AT_FUNC_NAME): Likewise.
26516
26517         mkdir, mkdirat: fix cygwin 1.5.x bug
26518         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
26519         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
26520         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
26521         bug.
26522         (gl_PREREQ_MKDIR): Delete unused macro.
26523         * modules/mkdir (Files): Track file rename.
26524         (configure.ac): Update macro name.
26525         * modules/openat (Depends-on): Add mkdir.
26526         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
26527
26528         mkdir, mkdirat: add tests
26529         * modules/mkdir-tests: New test.
26530         * tests/test-mkdir.h: New file.
26531         * tests/test-mkdir.c: Likewise.
26532         * tests/test-mkdirat.c: Likewise.
26533         * modules/openat-tests (Files): Add new files.
26534         (Makefile.am): Run new test.
26535
26536 2009-10-06  Eric Blake  <ebb9@byu.net>
26537
26538         doc: tweak *at function documentation
26539         * doc/posix-functions/faccessat.texi (faccessat): Mention
26540         known issue with replacement.
26541         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
26542         * doc/posix-functions/linkat.texi (linkat): Likewise.
26543         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26544         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26545         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26546         * doc/posix-functions/renameat.texi (renameat): Likewise.
26547         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26548
26549         openat: fix GNU/Hurd bug in unlinkat
26550         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
26551         broken.
26552         * doc/posix-functions/unlink.texi (unlink): Document this.
26553         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
26554
26555         fdopendir: fix GNU/Hurd bug
26556         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
26557         allowing non-directory fds.
26558         * lib/fdopendir.c (rpl_fdopendir): Work around it.
26559         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26560         * modules/dirent (Makefile.am): Substitute it.
26561         * lib/dirent.in.h (fdopendir): Declare replacement.
26562         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
26563         * tests/test-fdopendir.c (main): Test something other than
26564         /dev/null, since on Hurd that behaves like a directory.
26565
26566         test-symlink: port to GNU/Hurd
26567         * tests/test-symlink.h (test_symlink): Relax expected errno.
26568
26569         doc: tweak more cygwin information
26570         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
26571         now compatible with glibc.
26572         * doc/posix-functions/getopt.texi (getopt): Likewise.
26573
26574         getopt-gnu: add another test
26575         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
26576         guarantee behavior relied on by m4.
26577         * tests/test-getopt.c (main): Use it.
26578         * modules/getopt-posix-tests (Depends-on): Add setenv.
26579         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
26580
26581         getopt: fix compilation on darwin
26582         * lib/getopt.in.h (includes): Leave breadcrumbs during system
26583         include.
26584         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
26585         Reported by Ludovic Courtès.
26586
26587 2009-10-06  Bruno Haible  <bruno@clisp.org>
26588
26589         * modules/size_max (Description): Discourage its use.
26590         Reported by Simon Josefsson.
26591
26592 2009-10-06  Jim Meyering  <meyering@redhat.com>
26593
26594         linkat: avoid compilation failure
26595         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
26596
26597 2009-10-05  Eric Blake  <ebb9@byu.net>
26598
26599         linkat: support Linux 2.6.17
26600         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
26601         linkat on Linux, but allow cache variable override.
26602         * lib/linkat.c (rpl_linkat): Define override.
26603         * modules/linkat (Depends-on): Add symlinkat.
26604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
26605         * modules/unistd (Makefile.am): Substitute it.
26606         * lib/unistd.in.h (linkat): Declare replacement.
26607         Reported by Pádraig Brady.
26608
26609         quotearg: port test to systems with C.UTF-8 locale
26610         * tests/test-quotearg.c (struct result_strings): Add another
26611         member, differentiating between C.ASCII and C.UTF-8 handling.
26612         (compare_strings): Add parameter.
26613         (main): Adjust all callers.
26614
26615         getopt: avoid clash with FreeBSD _getopt_internal
26616         * lib/getopt.in.h (_getopt_internal): Override the name.
26617         * lib/getopt_int.h (includes): Pick up any overrides.
26618         Reported by Reuben Thomas.
26619
26620         hash: allow C89 compilation
26621         * lib/hash.c (check_tuning): Move declaration before statement.
26622         Reported by Reuben Thomas.
26623
26624 2009-10-05  Karl Berry  <karl@gnu.org>
26625
26626         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
26627
26628 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
26629             Bruno Haible  <bruno@clisp.org>
26630
26631         * lib/uname.c (uname): Use a table-driven algorithm to compute
26632         Windows NT versions.
26633
26634 2009-10-04  Bruno Haible  <bruno@clisp.org>
26635
26636         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
26637         program_invocation_short_name.
26638         * modules/progname (configure.ac): Test for presence of
26639         program_invocation_short_name.
26640         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26641
26642 2009-10-04  Bruno Haible  <bruno@clisp.org>
26643
26644         * lib/progname.c (set_program_name): Fix comment.
26645         Reported by Jim Meyering.
26646
26647 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26648             Bruno Haible  <bruno@clisp.org>
26649
26650         * lib/uname.c: Include <string.h>.
26651         (uname): Do only one call to GetVersionEx in the common case.
26652
26653 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26654             Bruno Haible  <bruno@clisp.org>
26655
26656         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
26657         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
26658         (uname): Add support for Windows CE and various non-x86 CPU types.
26659
26660 2009-10-03  Bruno Haible  <bruno@clisp.org>
26661
26662         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
26663         invocation to tests/configure.ac.
26664         Reported by Ian Beckwith <ianb@erislabs.net>.
26665
26666 2009-10-02  Eric Blake  <ebb9@byu.net>
26667
26668         fchdir: avoid compiler warning
26669         * lib/fchdir.c (canonicalize_file_name)
26670         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
26671
26672         test-open: support mingw errno values
26673         * tests/test-open.h (test_open): Relax test.
26674         * tests/test-fopen.h (test_fopen): Likewise.
26675         * tests/test-openat-safer.c (main): Likewise.
26676
26677         open: fix opening directory on mingw
26678         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
26679
26680         test-open: on GNU/Hurd, /dev/null is a directory
26681         * tests/test-fopen.h (main): Rename...
26682         (test_fopen): ...to this.  Use a guaranteed non-directory when
26683         confirming open behavior on trailing slash.
26684         * tests/test-openat-safer.c (main): Likewise.
26685         * tests/test-open.h (main): Likewise....
26686         (test_open): ...to this.
26687         * tests/test-fopen.c (main): Adjust caller.
26688         * tests/test-fopen-safer.c (main): Likewise.
26689         * tests/test-open.c (main): Likewise.
26690         * tests/test-fcntl-safer.c (main): Likewise.
26691         Reported by Samuel Thibault.
26692
26693         rename, fchdir: don't ignore chdir failure
26694         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
26695         * lib/rename.c (rpl_rename) [W32]: Likewise.
26696         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
26697         an empty destination directory if source cannot be renamed,
26698         although there is still possibility for failure.
26699         * doc/posix-functions/rename.texi (rename): Document the race.
26700         Reported by Jim Meyering.
26701
26702         maint: cleanup whitespace in recent commits
26703         * lib/rename.c (rpl_rename): Remove tabs.
26704         * tests/test-link.h (test_link): Likewise.
26705         * lib/fchdir.c (get_name): Likewise.
26706         Reported by Jim Meyering.
26707
26708 2009-10-02  Ben Pfaff  <blp@gnu.org>
26709
26710         relocatable-prog-wrapper: Add missing dependency on
26711         double-slash-root.
26712         * modules/relocatable-prog-wrapper: Add dependency.
26713         Reported by Ian Beckwith <ianb@erislabs.net>.
26714
26715 2009-10-02  Eric Blake  <ebb9@byu.net>
26716
26717         renameat: fix Solaris bugs
26718         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
26719         needed fixing.
26720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
26721         * modules/stdio (Makefile.am): Substitute it.
26722         * lib/stdio.in.h (renameat): Declare replacement.
26723         * lib/renameat.c (rpl_renameat): Implement fix.
26724
26725         renameat: new module
26726         * modules/renameat: New file.
26727         * lib/renameat.c (renameat): Likewise.
26728         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
26729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26730         * modules/stdio (Makefile.am): Substitute them.
26731         * lib/stdio.in.h (renameat): Declare it.
26732         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26733         * doc/posix-functions/renameat.texi (renameat): Likewise.
26734         * modules/renameat-tests: New test.
26735         * tests/test-renameat.c: Likewise.
26736
26737         rename: fix mingw bugs
26738         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
26739         directory overwrite bugs.
26740
26741         rename: fix another cygwin 1.5 bug
26742         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
26743         checks.
26744         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
26745         unnecessary cygwin workarounds.  Also work around bug with moving
26746         full directory onto an empty one.
26747         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
26748
26749         rename-dest-slash: merge into rename module
26750         * modules/rename-dest-slash (Status): Mark obsolete.
26751         (Depends-on): Add rename.
26752         (Files): Let rename do it all.
26753         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
26754         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
26755         * m4/rename-dest-slash.m4: ...so this file can be deleted.
26756         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
26757         * lib/rename.c (rpl_rename): Update comments.
26758
26759         rename: fix cygwin 1.5.x bugs
26760         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
26761         * lib/rename.c (rpl_rename): Work around them.
26762         * modules/rename (Depends-on): Add same-inode.
26763
26764         rename: fix Solaris 10 bug
26765         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26766         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
26767         was the only bug.
26768
26769         rename: fix Solaris 9 bug
26770         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
26771         on non-directory.  Avoid calling exit.
26772         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
26773         strdup.
26774         * modules/rename-tests (Depends-on): Drop lstat.
26775         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26776         (gl_PREREQ_RENAME): Delete unused macro.
26777
26778         rename-dest-slash: fix NetBSD bug
26779         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
26780         links.
26781         * modules/rename-dest-slash (Depends-on): Add same-inode.
26782
26783         rename-tests: new test, exposes several platform bugs
26784         * modules/rename-tests: New file.
26785         * tests/test-rename.h: Likewise.
26786         * tests/test-rename.c: Likewise.
26787         * doc/posix-functions/rename.texi (rename): Improve documentation,
26788         including bugs that will eventually be fixed in gnulib.
26789
26790 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
26791
26792         * lib/uname.c: Include <stdlib.h>
26793         (uname): Assume version info is available.
26794
26795 2009-10-02  Jim Meyering  <meyering@redhat.com>
26796
26797         gnu-web-doc-update: correct --help output
26798         * build-aux/gnu-web-doc-update: Make --help output relevant.
26799
26800         gnu-web-doc-update: add standard options
26801         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
26802
26803         gnu-web-doc-update: New module.
26804         Use this script to automatically update the on-line web documentation
26805         for your GNU project at http://www.gnu.org/software/$pkg/manual/
26806         * modules/gnu-web-doc-update: New file, from coreutils.
26807         * build-aux/gnu-web-doc-update: New script.
26808
26809 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
26810
26811         link: LoadLibrary is not needed.
26812         * lib/link.c: Use GetModuleHandle.
26813
26814 2009-10-01  Eric Blake  <ebb9@byu.net>
26815
26816         getopt: bump serial number
26817         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
26818         change.
26819
26820         tests: tighten link, rmdir, and remove tests
26821         * tests/test-link.h (includes): No need to use <config.h> here.
26822         Clean up if directory hard link was created, otherwise test for
26823         trailing '.'.
26824         * tests/test-linkat.c (main): Simplify.
26825         * tests/test-remove.c (main): Enhance test for trailing '.'.
26826         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26827
26828 2009-10-01  Jim Meyering  <meyering@redhat.com>
26829
26830         maint.mk: requiring "make major" was annoying, for a "minor" release.
26831         What is intended is "stable", to contrast with alpha and beta,
26832         so require "make stable", not "make major".
26833         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
26834         (get_tool_versions): Likewise.
26835         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
26836
26837 2009-09-30  Ben Pfaff  <blp@gnu.org>
26838
26839         Fix broken build of replacement for Windows tmpfile().
26840         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
26841         flags argument added along with the 'mkostemp' module.
26842
26843 2009-09-28  Bruno Haible  <bruno@clisp.org>
26844
26845         Avoid identifier clash with POSIX function 'remove' defined as a macro.
26846         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
26847         to 'remove_elt'.
26848         (gl_list_remove): Update.
26849         * lib/gl_list.c (gl_list_remove): Update.
26850         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
26851         to 'remove_elt'.
26852         (gl_oset_remove): Update.
26853         * lib/gl_list.c (gl_oset_remove): Update.
26854         Reported by Eric Blake.
26855
26856 2009-09-28  Eric Blake  <ebb9@byu.net>
26857
26858         doc: mention yet more cygwin 1.7 status
26859         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
26860         cygwin.
26861         * doc/glibc-functions/execvpe.texi (execvpe): New file.
26862         * doc/gnulib.texi (Glibc unistd.h): Mention it.
26863
26864         argp: fix test failure
26865         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
26866         that are not upper-case.  Pass correct range to tolower.
26867
26868 2009-09-27  Jim Meyering  <meyering@redhat.com>
26869
26870         test-yesno: work around sparc-dash here-document infelicity
26871         Without this change, the literal \177 byte in a here document
26872         would make dash 0.5.5.1-3 access uninitialized memory.
26873         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
26874         Instead, use a marker, "@", and filter through tr to create the desired
26875         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
26876
26877 2009-09-27  Bruno Haible  <bruno@clisp.org>
26878
26879         Disable untested support for new flavours of ACLs on AIX.
26880         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
26881         progress.
26882         * lib/set-mode-acl.c (qset_acl): Likewise.
26883
26884 2008-12-07  Bruno Haible  <bruno@clisp.org>
26885
26886         Add support for new flavours of ACLs on AIX. (Untested.)
26887         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
26888         (file_has_acl): Add support for newer AIX.
26889         * lib/set-mode-acl.c (qset_acl): Likewise.
26890         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
26891         Rainer Tammer <tammer@tammer.net>.
26892
26893 2009-09-26  Eric Blake  <ebb9@byu.net>
26894
26895         argp: fix compilation of getopt
26896         * lib/getopt.in.h (includes): Use different guard than glibc.
26897         Reported by Sergey Poznyakoff.
26898
26899         doc: mention more cygwin 1.7 status
26900         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
26901         bug.
26902         * doc/posix-functions/execl.texi (execl): Likewise.
26903         * doc/posix-functions/execle.texi (execle): Likewise.
26904         * doc/posix-functions/execlp.texi (execlp): Likewise.
26905         * doc/posix-functions/execv.texi (execv): Likewise.
26906         * doc/posix-functions/execve.texi (execve): Likewise.
26907         * doc/posix-functions/execvp.texi (execvp): Likewise.
26908         * doc/glibc-functions/canonicalize_file_name.texi
26909         (canonicalize_file_name): Cygwin 1.7 now provides this.
26910         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
26911         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
26912         on AT_SYMLINK_NOFOLLOW.
26913
26914 2009-09-24  Eric Blake  <ebb9@byu.net>
26915
26916         test-linkat: make test more robust
26917         * tests/test-linkat.c (main): Avoid collision with EEXIST.
26918
26919         getopt: fix inclusion guards for cygwin
26920         * modules/getopt-posix (Depends-on): Add include-next.
26921         (Makefile.am): Substitute more items in replacement header.
26922         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
26923         <getopt.h>.
26924         * lib/getopt.in.h (includes): Use split inclusion guard, and
26925         prefer <getopt.h> over include <unistd.h> when one is present.
26926         (option): Also override name of 'struct option'.
26927
26928         same-inode: revert prior change; it is not yet ready
26929         * NEWS: Undo mention of this change.
26930         * lib/same-inode.h (same-inode.h): Undo tri-state change.
26931         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26932         * lib/cycle-check.c (cycle_check): Likewise.
26933         * lib/same.c (same_name): Likewise.
26934         * lib/at-func2.c (at_func2): Likewise.
26935
26936 2009-09-23  Eric Blake  <ebb9@byu.net>
26937
26938         linkat: new module
26939         * modules/linkat: New file.
26940         * lib/at-func2.c (at_func2): Likewise.
26941         * lib/linkat.c (linkat): Likewise.
26942         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26943         * lib/openat-priv.h (at_func2): Add declaration.
26944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26945         * modules/unistd (Makefile.am): Substitute them.
26946         * lib/unistd.in.h (linkat): Declare it.
26947         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26948         * doc/posix-functions/linkat.texi (linkat): Likewise.
26949         * doc/posix-functions/link.texi (link): Tweak wording.
26950         * tests/test-link.c (main): Move guts...
26951         * tests/test-link.h (test_link): ...into new file.
26952         * modules/linkat-tests: New test.
26953         * tests/test-linkat.c: Likewise.
26954         * modules/link-tests (Files): Ship new file.
26955         (Depends-on): Add stdbool.
26956
26957         dirname: add library-safe mdir_name
26958         * lib/dirname.h (mdir_name): New prototype.
26959         * lib/dirname.c (dir_name): Move guts...
26960         (mdir_name): ...to new function that avoids xalloc_die.
26961
26962         fchdir: another mingw fix
26963         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
26964         * lib/fchdir.c (get_name): New helper method; skips canonicalize
26965         on mingw (where it has not yet been ported), and make it optional
26966         elsewhere.
26967         (_gl_register_fd): Use it.
26968
26969         same-inode: make SAME_INODE tri-state, to port to mingw
26970         * NEWS: Mention this change.
26971         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
26972         st_ino always being 0.
26973         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26974         * lib/cycle-check.c (cycle_check): Likewise.
26975         * lib/same.c (same_name): Likewise.
26976
26977         lstat: avoid mingw compilation error
26978         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
26979         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
26980         lstat ourselves.
26981         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
26982         was adequate.
26983         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
26984         the checks for lstat.
26985         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
26986
26987         link: fix test failure on Solaris 9
26988         * lib/link.c (rpl_link): Don't assume link will catch bogus
26989         trailing slash on source.
26990
26991         test-symlinkat: enhance test
26992         * tests/test-readlink.c (main): Move guts...
26993         * tests/test-readlink.h (test_readlink): ...into new file.
26994         * tests/test-symlink.c (main): Move guts...
26995         * tests/test-symlink.h (test_symlink): ...into new file.
26996         * tests/test-symlinkat.c (main): Use new files for further
26997         coverage.
26998         (do_symlink, do_readlink): New helper functions.
26999         * modules/symlink-tests (Files): Ship new file.
27000         (Depends-on): Add stdbool.
27001         * modules/readlink-tests (Files): Ship new file.
27002         (Depends-on): Add stdbool.
27003         * modules/symlinkat-tests (Files): Use new files.
27004
27005 2009-09-23  Eric Blake  <ebb9@byu.net>
27006
27007         readlink: document portability issue with symlink length
27008         * doc/posix-functions/lstat.texi (lstat): Mention that some file
27009         systems have bogus st_size on symlinks, and mention the
27010         areadlink-with-size module.
27011         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27012         * doc/posix-functions/readlink.texi (readlink): Mention the
27013         areadlink module, and ERANGE failure.
27014         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27015         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
27016
27017         readlink: fix Solaris 9 bug with trailing slash
27018         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
27019         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
27020         * doc/posix-functions/readlink.texi (readlink): Document this.
27021         * modules/readlink-tests: New test.
27022         * tests/test-readlink.c: Likewise.
27023
27024         readlink: fix cygwin 1.5.x bug with return type
27025         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
27026         * lib/unistd.in.h (readlink): Use ssize_t.
27027         * lib/readlink.c (readlink): Likewise.
27028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27029         * modules/unistd (Makefile.am): Substitute it.
27030         * lib/unistd.in.h (readlink): Declare replacement.
27031         * doc/posix-functions/readlink.texi (readlink): Document this.
27032
27033         symlink: use throughout gnulib
27034         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
27035         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
27036         symlink is not used.
27037         * modules/symlinkat (Depends-on): Add symlink.
27038         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27039         * modules/canonicalize-tests (Depends-on): Likewise.
27040         * modules/lstat-tests (Depends-on): Likewise.
27041         * modules/openat-tests (Depends-on): Likewise.
27042         * modules/remove-tests (Depends-on): Likewise.
27043         * modules/rmdir-tests (Depends-on): Likewise.
27044         * modules/unlink-tests (Depends-on): Likewise.
27045         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
27046         * tests/test-canonicalize.c (symlink): Likewise.
27047         * tests/test-fstatat.c (symlink): Likewise.
27048         * tests/test-lstat.c (symlink): Likewise.
27049         * tests/test-remove.c (symlink): Likewise.
27050         * tests/test-rmdir.c (symlink): Likewise.
27051         * tests/test-unlink.c (symlink): Likewise.
27052         * tests/test-unlinkat.c (symlink): Likewise.
27053
27054         symlink: new module, for Solaris 9 bug
27055         * modules/symlink: New file.
27056         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27057         * lib/symlink.c: Likewise.
27058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27059         * modules/unistd (Makefile.am): Substitute them.
27060         * lib/unistd.in.h (symlink): Declare replacement.
27061         * MODULES.html.sh (File system functions): Mention it.
27062         * doc/posix-functions/symlink.texi (symlink): Likewise.
27063         * modules/symlink-tests: New test.
27064         * tests/test-symlink.c: Likewise.
27065
27066 2009-09-23  Bruno Haible  <bruno@clisp.org>
27067
27068         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
27069         when needed.
27070         Test case: gnulib-tool --import --with-tests atexit inttypes.
27071         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
27072
27073 2009-09-23  Bruno Haible  <bruno@clisp.org>
27074
27075         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
27076         subcommand, not in a subshell.
27077
27078 2009-09-22  Eric Blake  <ebb9@byu.net>
27079
27080         unistd: sort replacement declarations
27081         * lib/unistd.in.h: Sort declarations.
27082
27083         open, openat: minor optimization
27084         * lib/open.c (open): If open succeeded, len is non-zero.
27085         * lib/openat.c (rpl_openat): Likewise.
27086
27087         link-follow: ensure correct result
27088         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
27089         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
27090         distinguish between possible failures.
27091
27092 2009-09-21  Eric Blake  <ebb9@byu.net>
27093
27094         fts: avoid compiler warning
27095         * lib/fts.c (dirent_inode_sort_may_be_useful)
27096         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
27097
27098 2009-09-19  Bruno Haible  <bruno@clisp.org>
27099
27100         * lib/progreloc.c (canonicalize_file_name): New declaration.
27101
27102 2009-09-19  Eric Blake  <ebb9@byu.net>
27103
27104         link: fix quoting
27105         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
27106
27107         openat: fix openat bugs on Solaris 9
27108         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
27109         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
27110         * modules/openat (Depends-on): Add open.
27111         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
27112         * modules/fcntl-h (Makefile.am): Substitute it.
27113         * lib/fcntl.in.h (openat): Declare replacement.
27114         * doc/posix-functions/openat.texi (openat): Document this.
27115
27116         openat: move fstatat and unlinkat into correct files
27117         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
27118         compiled.
27119         * lib/openat.c (fstatat, unlinkat): Move...
27120         * lib/fstatat.c (fstatat): ...into correct files.
27121         * lib/unlinkat.c (unlinkat): Likewise.
27122
27123         openat: fix unlinkat bugs on Solaris 9
27124         * lib/unlinkat.c (unlinkat): New file.
27125         * modules/openat (Depends-on): Add unlink.
27126         (Files): Distribute it.
27127         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
27128         trailing slash behavior is broken.
27129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27130         * modules/unistd (Makefile.am): Substitute it.
27131         * lib/unistd.in.h (unlinkat): Declare replacement.
27132         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
27133
27134         openat: fix fstatat bugs on Solaris 9
27135         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
27136         stat.
27137         * doc/posix-functions/fstatat.texi (fstatat): Document this.
27138
27139         test-unlinkat: enhance test, to expose Solaris 9 bug
27140         * tests/test-unlink.c (main): Factor guts...
27141         * tests/test-unlink.h (test_rmdir_func): ...into new file.
27142         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
27143         * tests/test-rmdir.c (main): Adjust caller.
27144         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
27145         (unlinker): New helper function.
27146         (rmdirat): Enhance check.
27147         * modules/rmdir-tests (Depends-on): Add stdbool.
27148         * modules/unlink-tests (Depends-on): Likewise.
27149         (Files): Add test-unlink.h.
27150         * modules/openat-tests (Files): Likewise.
27151         (Depends-on): Add unlinkdir.
27152
27153         test-fstatat: new test, to expose Solaris 9 bugs
27154         * tests/test-stat.c (main): Factor guts...
27155         * tests/test-stat.h (test_stat_func): ...into new file.
27156         * tests/test-lstat.c (main): Factor guts...
27157         * tests/test-lstat.h (test_lstat_func): ...into new file.
27158         * tests/test-fstatat.c: New file.
27159         * modules/stat-tests (Files): Add test-stat.h.
27160         * modules/lstat-tests (Files): Add test-lstat.h.
27161         (Depends-on): Add stdbool.
27162         * modules/openat-tests (Depends-on): Add pathmax.
27163         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
27164         (Makefile.am): Run new test.
27165
27166         remove: new module, for mingw and Solaris 9 bugs
27167         * modules/remove: New file.
27168         * lib/remove.c: Likewise.
27169         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
27170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27171         * modules/stdio (Makefile.am): Use them.
27172         * lib/stdio.in.h (remove): Declare replacement.
27173         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27174         * doc/posix-functions/remove.texi (remove): Likewise.
27175         * modules/remove-tests: New test.
27176         * tests/test-remove.c: Likewise.
27177
27178         unlink: new module, for Solaris 9 bug
27179         * modules/unlink: New file.
27180         * lib/unlink.c: Likewise.
27181         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27183         * modules/unistd (Makefile.am): Use them.
27184         * lib/unistd.in.h (stat): Declare replacement.
27185         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27186         * doc/posix-functions/unlink.texi (unlink): Likewise.
27187         * modules/unlink-tests: New test.
27188         * tests/test-unlink.c: Likewise.
27189
27190         lstat: fix Solaris 9 bug
27191         * lib/lstat.c (lstat): Also check for trailing slash on
27192         non-symlink, non-directories.  Use stat module to simplify logic.
27193         * doc/posix-functions/lstat.texi (lstat): Document it.
27194         * modules/lstat-tests (Depends-on): Add errno, same-inode.
27195         (configure.ac): Check for symlink.
27196         * tests/test-lstat.c (main): Add more tests.
27197
27198         stat: add as dependency to other modules
27199         * modules/chown (Depends-on): Add stat.
27200         * modules/euidaccess (Depends-on): Likewise.
27201         * modules/fchdir (Depends-on): Likewise.
27202         * modules/isdir (Depends-on): Likewise.
27203         * modules/link (Depends-on): Likewise.
27204         * modules/lstat (Depends-on): Likewise.
27205         * modules/mkdir-p (Depends-on): Likewise.
27206         * modules/modechange (Depends-on): Likewise.
27207         * modules/open (Depends-on): Likewise.
27208         * modules/readlink (Depends-on): Likewise.
27209         * modules/same (Depends-on): Likewise.
27210
27211         stat: fix Solaris 9 bug
27212         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
27213         slash.
27214         * lib/stat.c (rpl_stat): Work around it.
27215         * doc/posix-functions/stat.texi (stat): Update documentation.
27216
27217         stat: new module, for mingw bug
27218         * modules/stat: New file.
27219         * lib/stat.c: Likewise.
27220         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27221         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27222         * modules/sys_stat (Makefile.am): Use them.
27223         * lib/sys_stat.in.h (stat): Declare replacement.
27224         * lib/openat.c (fstatat): Deal with lstat and stat being function
27225         macros.
27226         * modules/openat (Depends-on): Add inline.
27227         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27228         * doc/posix-functions/stat.texi (stat): Likewise.
27229         * modules/stat-tests: New test.
27230         * tests/test-stat.c: Likewise.
27231
27232 2009-09-19  Jim Meyering  <meyering@redhat.com>
27233
27234         syntax-check: detect unnecessary inclusion of canonicalize.h
27235         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
27236
27237 2009-09-19  Eric Blake  <ebb9@byu.net>
27238
27239         canonicalize-lgpl: adjust clients to use correct header
27240         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27241         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
27242         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
27243         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
27244         * lib/progreloc.c (includes): Likewise.
27245
27246 2009-09-19  Jim Meyering  <meyering@redhat.com>
27247
27248         test-posixtm.c: correct a comment
27249         * tests/test-posixtm.c: Correct first-line comment.
27250         Spotted by Eric Blake.
27251
27252 2009-09-16  Jim Meyering  <meyering@redhat.com>
27253
27254         posixtm-tests: make T const-correct; add a test case
27255         * tests/test-posixtm.c (T): Declare const.
27256         Add a test for -(2^31+1).
27257         Remove useless can-succeed-only-in-2002 test.
27258
27259         posixtm-tests: adjust the sole failing test
27260         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
27261         expected output matches what mktime now produces.  Cross-checked via
27262         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
27263
27264         posixtm: move #ifdef'd tests into a new module
27265         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
27266         * tests/test-posixtm.c: ... this new file.
27267         * modules/posixtm-tests: New module.
27268
27269 2009-09-19  Eric Blake  <ebb9@byu.net>
27270
27271         openat: simplify use of at-func.c
27272         * lib/at-func.c (includes): Include prerequisites here, to
27273         simplify requirements on client files.
27274         * lib/openat-priv.h: Add double-inclusion guard.
27275         * lib/faccessat.c (includes): Simplify.
27276         * lib/fchmodat.c (includes): Likewise.
27277         * lib/fchownat.c (includes): Likewise.
27278         * lib/mkdirat.c (includes): Likewise.
27279         * lib/mkfifoat.c (includes): Likewise.
27280         * lib/symlinkat.c (includes): Likewise.
27281
27282         openat: allow return of fd 0
27283         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
27284         * modules/save-cwd (Depends-on): Replace fcntl-safer with
27285         unistd-safer.
27286         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
27287         <fcntl.h>; this module does not leak fds.
27288         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
27289         must be allowed to return 0, leaving openat_safer to add the
27290         safety.
27291         (openat_permissive): Avoid writing to just-opened fd 2 if
27292         restoring the current directory fails.
27293         * lib/openat-die.c (openat_restore_fail): Add comment.
27294         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
27295         (save_cwd): Guarantee safe fd, but without use of open_safer.
27296         * tests/test-openat.c: New test.
27297         * modules/openat-tests (Files, Makefile.am): Distribute and build
27298         new file.
27299
27300         relocatable-prog-wrapper: fix build
27301         * modules/relocatable-prog-wrapper (Files): Update name of
27302         canonicalize m4 file, broken on 2009-09-17.
27303         Reported by emad hajjar <aleppos@hotmail.com>.
27304
27305 2009-09-19  Bruno Haible  <bruno@clisp.org>
27306
27307         * lib/safe-alloc.h: Use the standard header with GPL copyright.
27308         * lib/safe-alloc.c: Likewise.
27309         Reported by Ian Beckwith <ianb@erislabs.net>.
27310
27311 2009-09-18  Bruno Haible  <bruno@clisp.org>
27312
27313         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
27314         Reported by <erobles@sensacd.com.mx>.
27315
27316 2009-09-17  Eric Blake  <ebb9@byu.net>
27317
27318         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
27319         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
27320         slashes when checking if last component is missing.
27321         * tests/test-canonicalize.c (main): Test this.
27322
27323         canonicalize, canonicalize-lgpl: honor // if distinct from /
27324         * modules/canonicalize (Files): Add double-slash-root.m4.
27325         * modules/canonicalize-lgpl (Files): Likewise.
27326         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27327         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
27328         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
27329         fallback definition.
27330         (canonicalize_filename_mode): Use it to protect //.
27331         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
27332         (__realpath): Likewise.
27333         * tests/test-canonicalize.c (main): Test this.
27334         * tests/test-canonicalize-lgpl.c (main): Likewise.
27335         * modules/canonicalize-tests (Depends-on): Add same-inode.
27336         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27337
27338         canonicalize-lgpl: fix glibc bug with trailing slash
27339         * m4/canonicalize-lgpl.m4: Move contents...
27340         * m4/canonicalize.m4: ...here.
27341         (gl_CANONICALIZE_LGPL): Factor realpath check...
27342         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
27343         glibc 2.3.5 bug, fixed 2005-04-27.
27344         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
27345         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
27346         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
27347         * modules/canonicalize-lgpl (Files): Manage file rename.
27348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27349         * modules/stdlib (Makefile.am): Substitute witness.
27350         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
27351         is needed.
27352         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
27353         replacement is required.
27354         * lib/canonicalize.c (canonicalize_file_name): Likewise.
27355         * doc/glibc-functions/canonicalize_file_name.texi
27356         (canonicalize_file_name): Document this.
27357         * doc/posix-functions/realpath.texi (realpath): Likewise.
27358
27359         canonicalize-lgpl: reject non-directory with trailing slash
27360         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
27361         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
27362         catches failures in glibc 2.3.5.
27363         * tests/test-canonicalize.c (main): Likewise.
27364
27365         canonicalize-lgpl: use native realpath if it works
27366         * lib/canonicalize-lgpl.c (realpath): Guard with
27367         FUNC_REALPATH_WORKS.
27368         * lib/stdlib.in.h (realpath): Make declaration optional based on
27369         HAVE_REALPATH.
27370         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
27371         native realpath works.
27372         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27373         * modules/stdlib (Makefile.am): Substitute witness.
27374
27375         canonicalize, canonicalize-lgpl: use <stdlib.h>
27376         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
27377         (Include): Mention <stdlib.h>.
27378         (configure.ac): Mention functions we provide.
27379         * modules/canonicalize (configure.ac): Likewise.
27380         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
27381         realpath if canonicalize_file_name is missing.
27382         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
27383         * modules/stdlib (Makefile.am): Substitute witnesses.
27384         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
27385         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
27386         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
27387         * NEWS: Document this.
27388         * doc/glibc-functions/canonicalize_file_name.texi
27389         (canonicalize_file_name): Likewise.
27390         * doc/posix-functions/realpath.texi (realpath): Likewise.
27391         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
27392
27393         test-canonicalize: consolidate into single C program
27394         * tests/test-canonicalize.sh: Delete; move setup into...
27395         * tests/test-canonicalize.c (main): ...the program, making it
27396         easier to run in debugger.  Add some tests.
27397         * modules/canonicalize-tests (Files): Remove unused file.
27398         (Depends-on): Add progname.
27399         (configure.ac, Makefile.am): Simplify.
27400
27401         test-canonicalize-lgpl: consolidate into single C program
27402         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
27403         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
27404         easier to run in debugger.  Add some tests.
27405         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
27406         (configure.ac, Makefile.am): Simplify.
27407
27408         canonicalize: avoid resolvepath
27409         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
27410         unnecessary checks.
27411         * lib/canonicalize.c (includes): Simplify.
27412         (canonicalize_file_name): Drop resolvepath implementation.
27413         * modules/canonicalize (Depends-on): Drop filenamecat.
27414
27415         canonicalize: don't lose errno
27416         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
27417         over calls to free.
27418
27419         canonicalize: simplify errno handling
27420         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
27421         assignment.
27422
27423         canonicalize, canonicalize-lgpl: update module dependencies
27424         * modules/canonicalize (Depends-on): Add extensions, lstat,
27425         pathmax, stdlib.
27426         (Files): Drop pathmax.h.
27427         (configure.ac): Adjust macro name.
27428         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
27429         lstat, stdlib, sys_stat.
27430         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
27431         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
27432         extensions.
27433         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
27434         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
27435         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
27436         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
27437         declaration, if available.
27438         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
27439         we can rely on the readlink module.
27440         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
27441         (includes): Use <unistd.h> unconditionally.
27442
27443 2009-09-17  Eric Blake  <ebb9@byu.net>
27444
27445         maint: make Include sections of modules consistent
27446         * modules/alloca: Use only header name; no need to list #include.
27447         * modules/alloca-opt: Likewise.
27448         * modules/arpa_inet: Likewise.
27449         * modules/canon-host: Likewise.
27450         * modules/configmake: Likewise.
27451         * modules/dirent: Likewise.
27452         * modules/eealloc: Likewise.
27453         * modules/environ: Likewise.
27454         * modules/fchdir: Likewise.
27455         * modules/fcntl: Likewise.
27456         * modules/fcntl-h: Likewise.
27457         * modules/gethrxtime: Likewise.
27458         * modules/gettime: Likewise.
27459         * modules/ignore-value: Likewise.
27460         * modules/inet_ntop: Likewise.
27461         * modules/inet_pton: Likewise.
27462         * modules/inttypes: Likewise.
27463         * modules/isnand-nolibm: Likewise.
27464         * modules/isnanf-nolibm: Likewise.
27465         * modules/mbchar: Likewise.
27466         * modules/mbfile: Likewise.
27467         * modules/mbiter: Likewise.
27468         * modules/mbuiter: Likewise.
27469         * modules/netdb: Likewise.
27470         * modules/netinet_in: Likewise.
27471         * modules/nproc: Likewise.
27472         * modules/pagealign_alloc: Likewise.
27473         * modules/poll: Likewise.
27474         * modules/printf-frexp: Likewise.
27475         * modules/pthread: Likewise.
27476         * modules/putenv: Likewise.
27477         * modules/random_r: Likewise.
27478         * modules/relocatable-prog: Likewise.
27479         * modules/search: Likewise.
27480         * modules/select: Likewise.
27481         * modules/selinux-h: Likewise.
27482         * modules/settime: Likewise.
27483         * modules/signal: Likewise.
27484         * modules/size_max: Likewise.
27485         * modules/socklen: Likewise.
27486         * modules/ssize_t: Likewise.
27487         * modules/stdarg: Likewise.
27488         * modules/stdbool: Likewise.
27489         * modules/stddef: Likewise.
27490         * modules/stdint: Likewise.
27491         * modules/stdio: Likewise.
27492         * modules/stdlib: Likewise.
27493         * modules/string: Likewise.
27494         * modules/strings: Likewise.
27495         * modules/sys_file: Likewise.
27496         * modules/sys_ioctl: Likewise.
27497         * modules/sys_select: Likewise.
27498         * modules/sys_socket: Likewise.
27499         * modules/sys_stat: Likewise.
27500         * modules/sys_time: Likewise.
27501         * modules/sys_times: Likewise.
27502         * modules/sys_utsname: Likewise.
27503         * modules/sys_wait: Likewise.
27504         * modules/sysexits: Likewise.
27505         * modules/time: Likewise.
27506         * modules/times: Likewise.
27507         * modules/tmpfile: Likewise.
27508         * modules/trim: Likewise.
27509         * modules/unistd: Likewise.
27510         * modules/wchar: Likewise.
27511         * modules/wctype: Likewise.
27512
27513 2009-09-17  Bruno Haible  <bruno@clisp.org>
27514
27515         Make getdate.y compile on QNX and NetBSD 5 / i386.
27516         * m4/getdate.m4 (gl_GETDATE): Conditionally define
27517         TIME_T_FITS_IN_LONG_INT.
27518         * lib/getdate.y (long_time_t): New type.
27519         (relative_time): Change type of 'seconds' field to long_time_t.
27520         (get_date): Update types of local variables. Check against overflow
27521         during conversion from long_time_t to time_t.
27522         Reported by Matt Kraai <kraai@ftbfs.org>
27523         and Hasso Tepper <hasso@netbsd.org>.
27524
27525 2009-09-17  Bruno Haible  <bruno@clisp.org>
27526
27527         * modules/COPYING: Update copyright years.
27528         * modules/README: Likeiwse.
27529         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
27530         Reported by Ian Beckwith <ianb@erislabs.net>.
27531
27532 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27533
27534         * users.txt: Update references for gnuit package.
27535
27536 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27537
27538         * m4/getdelim.m4: Fix typo in copyright line.
27539
27540 2009-09-17  Bruno Haible  <bruno@clisp.org>
27541
27542         * lib/atoll.c: Use the standard header with GPL copyright.
27543         * lib/argz.in.h: Likewise.
27544         * lib/glob.c: Likewise.
27545         * lib/glob-libc.h: Likewise.
27546         * lib/random_r.c: Likewise.
27547         * lib/siglist.h: Likewise.
27548         * lib/strsignal.c: Likewise.
27549         Reported by Ian Beckwith <ianb@erislabs.net>.
27550
27551 2009-09-17  Eric Blake  <ebb9@byu.net>
27552
27553         rmdir: ensure correct dependency order
27554         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
27555
27556 2009-09-17  Bruno Haible  <bruno@clisp.org>
27557
27558         Disable assertion that fails on NetBSD 5 / i386.
27559         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
27560         Reported by Sam Steingold <sds@gnu.org>
27561         and Hasso Tepper <hasso@netbsd.org>.
27562
27563 2009-09-16  Eric Blake  <ebb9@byu.net>
27564
27565         unlinkdir: port to mingw
27566         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
27567         on which no one can unlink a directory.
27568
27569         stdlib: sort witness names
27570         * modules/stdlib (Makefile.am): Sort replacements.
27571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27572         * lib/stdlib.in.h: Likewise.
27573
27574         parse-duration-tests: avoid link failure
27575         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
27576         LIBINTL.
27577         Reported by Tom G. Christensen.
27578
27579         openat-tests: ensure unlinkat behaves like rmdir
27580         * tests/test-rmdir.c (main): Factor guts...
27581         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
27582         * modules/rmdir-tests (Files): Ship new file.
27583         * modules/openat-tests: New test.
27584         * tests/test-unlinkat.c: Likewise.
27585
27586         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
27587         * modules/rmdir-errno (Status, Notice): Now obsolete.
27588
27589         rmdir: work around cygwin 1.5.x and mingw bugs
27590         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
27591         * lib/rmdir.c (rmdir): Work around it.
27592         * modules/rmdir (Status, Notice): No longer obsolete.
27593         (Files): Add dos.m4.
27594         (Depends-on): Add unistd.
27595         (configure.ac): Set witnesses.
27596         (License): Relax to LGPLv2+.
27597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
27598         * modules/unistd (Makefile.am): Substitute witnesses.
27599         * lib/unistd.in.h (rmdir): Declare replacement.
27600         * doc/posix-functions/rmdir.texi (rmdir): Document this.
27601         * modules/rmdir-tests: New tests.
27602         * tests/test-rmdir.c: Likewise.
27603
27604 2009-09-15  Eric Blake  <ebb9@byu.net>
27605
27606         fchdir: improve use of replacement functions
27607         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
27608         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
27609         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
27610         REPLACE_CLOSEDIR.
27611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
27612         * modules/sys_stat (Makefile.am): Substitute correct witness.
27613         * modules/dirent (Makefile.am): Likewise.
27614         * modules/unistd (Makefile.am): Likewise.
27615         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
27616         * lib/unistd.in.h (dup): Likewise.
27617         * lib/sys_stat.in.h (fstat): Likewise.
27618
27619         maint: ignore gnulib-tool temp files
27620         * .gitignore: Ignore files created during gnulib-tool --test.
27621
27622 2009-09-13  Jim Meyering  <meyering@redhat.com>
27623
27624         posixtm: don't reject a time that specify "60" as the number of seconds
27625         * lib/posixtm.c (posixtime): The code to reject invalid dates
27626         would also reject a time specified with the .60 suffix.
27627         But POSIX allows that, in order to accommodate leap seconds.
27628         So don't reject it.
27629         (main): Adjust tests accordingly.
27630         * modules/posixtm (Depends-on): Add stpcpy.
27631
27632 2009-09-11  Jim Meyering  <meyering@redhat.com>
27633
27634         announce-gen: include [$release_type] in emitted Subject:
27635         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
27636         e.g., [stable] in the emitted Subject: line.
27637
27638 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27639
27640         Remove obsolete macros from several modules.
27641         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
27642         obsolete Autoconf macros with their modern counterparts.
27643         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
27644         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
27645         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27646         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
27647         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
27648         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27649         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27650         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27651         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27652         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
27653         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
27654         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
27655         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
27656         * m4/sockets.m4 (gl_SOCKETS): Likewise.
27657         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
27658         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
27659         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
27660         * m4/time_r.m4 (gl_TIME_R): Likewise.
27661         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27662         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
27663         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
27664
27665         Fix copyright header in build-aux scripts.
27666         * build-aux/git-version-gen: Fix copyright header to match GPLv3
27667         recommendation.
27668         * build-aux/ncftpput-ftp: Likewise.
27669         * build-aux/update-copyright: Likewise.
27670
27671 2009-09-09  Eric Blake  <ebb9@byu.net>
27672
27673         test-link: allow Linux choice of errno
27674         * tests/test-link.c (main): Relax test for alternate error.
27675
27676         strndup: fix improper m4 caching
27677         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
27678         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
27679         (gl_PREREQ_STRNDUP): Delete.
27680         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
27681         * modules/string (Makefile.am): Substitute it.
27682         * lib/string.in.h (strndup): Modernize prototype.
27683
27684         getcwd: port to mingw
27685         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
27686         different from the POSIX assumptions made throughout the getcwd
27687         module; fortunately, the mingw getcwd does not need replacement.
27688         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
27689         * modules/getcwd-tests: New test.
27690         * tests/test-getcwd.c: Likewise.
27691
27692         link: fix platform bugs
27693         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
27694         * lib/link.c (link): Work around them.  Fix related mingw bug.
27695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
27696         * modules/unistd (Makefile.am): Substitute it.
27697         * lib/unistd.in.h (link): Declare replacement.
27698         * doc/posix-functions/link.texi (link): Document this.
27699         * modules/link (Depends-on): Add strdup-posix, sys_stat.
27700
27701         test-link: consolidate into single C program, test more cases
27702         * tests/test-link.sh: Delete.
27703         * tests/test-link.c: Test more error conditions.  Exposes bugs on
27704         at least Cygwin and Solaris.
27705         * modules/link-tests (Files): Remove unused file.
27706         (Depends-on): Add errno, sys_stat.
27707         (Makefile.am): Simplify.
27708
27709 2009-09-08  Bruno Haible  <bruno@clisp.org>
27710
27711         Work around towlower, towupper bug on mingw.
27712         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
27713         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
27714         * doc/posix-functions/towlower.texi: Mention the mingw bug.
27715         * doc/posix-functions/towupper.texi: Likewise.
27716         Reported by Eric Blake.
27717
27718 2009-09-08  Jim Meyering  <meyering@redhat.com>
27719
27720         build: don't try to run autoheader if we don't use it
27721         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
27722         is not used in configure.ac.
27723
27724 2009-09-08  Eric Blake  <ebb9@byu.net>
27725
27726         euidaccess: fix compilation error
27727         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
27728
27729         rawmemchr: relax license
27730         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
27731         okay.
27732         Reported by Jim Meyering.
27733
27734         mkfifoat: new module
27735         * modules/mkfifoat: New file.
27736         * lib/mkfifoat.c: Likewise.
27737         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
27738         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27739         * modules/sys_stat (Makefile.am): Use them.
27740         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
27741         * MODULES.html.sh (File system functions): Mention module.
27742         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27743         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27744         * modules/mkfifoat-tests: New test.
27745         * tests/test-mkfifoat.c: Likewise.
27746
27747         strchrnul: relax license
27748         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
27749         okay.
27750         Reported by Jim Meyering.
27751
27752 2009-09-08  Eric Blake  <ebb9@byu.net>
27753
27754         fstatat: fix compilation on Solaris
27755         * lib/fstatat.c (includes): Add fcntl.h.
27756         Reported by Pádraig Brady.
27757
27758 2009-09-07  Eric Blake  <ebb9@byu.net>
27759
27760         rename: modernize replacement
27761         * modules/rename (Depends-on): Add stdio.
27762         (configure.ac): Declare witness.
27763         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
27764         stdio take care of replacement.
27765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
27766         * modules/stdio (Makefile.am): Substitute them.
27767         * lib/stdio.in.h (rename): Declare replacement.
27768         * lib/rename.c (includes): Allow cross-compilation to non-windows
27769         machines.
27770         * doc/posix-functions/rename.texi (rename): Improve
27771         documentation.
27772
27773         stdio: sort witness names
27774         * modules/stdio (Makefile.am): Sort replacements.
27775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27776         * lib/stdio.in.h: Likewise.
27777
27778         getcwd: minor cleanups
27779         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
27780         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
27781
27782         openat: provide more convenience names
27783         * modules/faccessat (configure.ac): Add C witness.
27784         * lib/unistd.in.h (readlinkat): Fix typo.
27785         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
27786         convenience wrappers.
27787         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
27788         wrappers in syntax checks.
27789
27790 2009-09-06  Eric Blake  <ebb9@byu.net>
27791
27792         doc: fix comments in recent patches
27793         * lib/faccessat.c: Mention correct function.
27794         * lib/fchmodat.c: Likewise.
27795         * lib/fchownat.c: Likewise.
27796         * lib/symlinkat.c: Likewise.
27797         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
27798         constants.
27799
27800         faccessat, symlinkat: continue cleanup of previous patch
27801         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
27802         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27803         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
27804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
27805         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
27806         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
27807         set.
27808
27809 2009-09-06  Bruno Haible  <bruno@clisp.org>
27810
27811         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
27812         (fstatat): Declare if GNULIB_FSTATAT is set.
27813         (mkdirat): Declare if GNULIB_MKDIRAT is set.
27814         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
27815         (unlinkat): Declare if GNULIB_UNLINKAT is set.
27816         * modules/fcntl-h (Files): Remove m4/openat.m4.
27817         * modules/sys_stat (Files): Remove m4/openat.m4.
27818         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
27819         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
27820         * modules/unistd (Files): Remove m4/openat.m4.
27821         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
27822         GNULIB_OPENAT.
27823         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
27824         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
27825         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
27826         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
27827         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
27828         gl_OPENAT_DEFAULTS.
27829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
27830         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
27831         Don't require gl_OPENAT_DEFAULTS.
27832         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
27833         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
27834         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
27835         (gl_OPENAT_DEFAULTS): Remove macro.
27836
27837 2009-09-06  Bruno Haible  <bruno@clisp.org>
27838
27839         * modules/openat (configure.ac): Remove unneeded witness.
27840
27841 2009-09-06  Bruno Haible  <bruno@clisp.org>
27842
27843         Set errno to ENOSYS when a function is entirely unsupported.
27844         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
27845         EOPNOTSUPP.
27846         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27847         * modules/chown (Depends-on): Remove errno.
27848
27849 2009-09-06  Bruno Haible  <bruno@clisp.org>
27850
27851         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
27852
27853 2009-09-06  Bruno Haible  <bruno@clisp.org>
27854
27855         * lib/sys_stat.in.h: Fix preprocessor command indentation.
27856
27857 2009-09-06  Ben Pfaff  <blp@gnu.org>
27858             Bruno Haible  <bruno@clisp.org>
27859
27860         Work around a glibc bug in strtok_r.
27861         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
27862         Undefine if UNDEFINE_STRTOK_R is set.
27863         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
27864         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27865         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
27866         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
27867         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
27868         UNDEFINE_STRTOK_R.
27869         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
27870
27871 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27872
27873         exclude: minor fix
27874         * lib/exclude.c: Include wctype.h
27875
27876 2009-09-06  Akim Demaille  <demaille@gostai.com>
27877
27878         bootstrap: improve error message
27879         * build-aux/bootstrap (find_tool): Upon failure, report the list
27880         of candidates.
27881         Honor the initial value of the envvar.
27882
27883 2009-09-05  Eric Blake  <ebb9@byu.net>
27884
27885         symlinkat: new module
27886         * modules/symlinkat: New file.
27887         * lib/symlinkat.c: Likewise.
27888         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
27889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27890         * modules/unistd (Makefile.am): Use them.
27891         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
27892         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
27893         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
27894         * MODULES.html.sh (File system functions): Mention module.
27895         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27896         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27897         * modules/symlinkat-tests: New test.
27898         * tests/test-symlinkat.c: Likewise.
27899
27900         test-openat-safer: add more checks
27901         * tests/test-openat-safer.c (main): Check more code paths.
27902
27903 2009-09-05  Jim Meyering  <meyering@redhat.com>
27904
27905         syntax-check: detect unnecessary inclusion of openat.h
27906         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
27907
27908 2009-09-05  Bruno Haible  <bruno@clisp.org>
27909
27910         Support towlower, towupper.
27911         * doc/posix-functions/towlower.texi: Mention module wctype.
27912         * doc/posix-functions/towupper.texi: Likewise.
27913         * lib/wctype.in.h (towlower, towupper): New functions.
27914         * tests/test-wctype.c: Include stdio.h, stdlib.h.
27915         (ASSERT): New macro.
27916         (e): New variable.
27917         (main): Test also towlower, towupper. Test WEOF argument.
27918         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27919
27920 2009-09-05  Bruno Haible  <bruno@clisp.org>
27921
27922         Fix conversion behaviour when the input is invalid.
27923         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
27924         mark occurring in first pass of indirect conversion.
27925         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
27926         input.
27927         Found by clang's static analyzer.
27928
27929 2009-09-05  Bruno Haible  <bruno@clisp.org>
27930
27931         * tests/test-striconveh.c (main): Test indirect conversion on platforms
27932         where direct conversion is possible.
27933
27934 2009-09-04  Eric Blake  <ebb9@byu.net>
27935
27936         openat: fail with ENOENT on empty name
27937         * lib/openat-proc.c (openat_proc_name): Special-case the empty
27938         buffer.
27939
27940         link-follow: fix logic bug in prior patch
27941         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
27942         reversed sense of yes and no in prior patch.  Avoid confusing
27943         compilation failure with desired semantics.
27944
27945         link-follow: accomodate mingw and cross-compilation
27946         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
27947         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
27948         cross-compilation results to -1, to make linkat easier to
27949         implement when cross-compiling.  Trivially support mingw.
27950         * modules/link-follow (configure.ac): Call new name.
27951         * NEWS: Mention this.
27952
27953 2009-09-03  Eric Blake  <ebb9@byu.net>
27954
27955         faccessat: compile replacement
27956         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
27957         needed.
27958
27959         fts: fix compilation error
27960         * lib/fts.c (includes): Re-add "openat.h", for
27961         openat_needs_fchdir.
27962
27963         faccessat: new module
27964         * modules/faccessat: New file.
27965         * lib/faccessat.c: Likewise.
27966         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27968         * modules/unistd (Makefile.am): Use it.
27969         * lib/unistd.in.h (faccessat): Declare it.
27970         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
27971         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
27972         * MODULES.html.sh (File system functions): Mention it.
27973         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
27974         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27975
27976         euidaccess: prefer POSIX over non-standard implementation
27977         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
27978         * lib/euidaccess.c (euidaccess): Use it if available.
27979
27980         openat: make template easier to use
27981         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
27982         AT_FUNC_F2 to be undefined.
27983         (VALIDATE_FLAG): New macro; use it to reject bad flags.
27984         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
27985         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
27986         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
27987         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
27988         Likewise.
27989         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
27990         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
27991         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
27992         Likewise.
27993
27994         openat: declare in POSIX headers
27995         * NEWS: Mention this.
27996         * modules/openat (configure.ac): Declare witnesses.
27997         (Depends-on): Add fcntl-h, sys_stat, unistd.
27998         (Include): Mention correct headers.
27999         * modules/fcntl-h (Depends-on): Add link-warning.
28000         (Files): Add openat.m4.
28001         (Makefile.am): Substitute witnesses.
28002         * modules/sys_stat (Files, Makefile.am): Likewise.
28003         * modules/unistd (Files, Makefile.am): Likewise.
28004         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
28005         (gl_OPENAT_DEFAULTS): New macro.
28006         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
28007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
28008         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
28009         (SYS_STAT_H): Remove unused variable.
28010         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
28011         * lib/fcntl--.h (includes): Remove unneeded header.
28012         * lib/openat-safer.c (includes): Likewise.
28013         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
28014         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
28015         appropriate headers.
28016         (__OPENAT_PREFIX): Delete.
28017         * lib/fcntl.in.h (openat): Provide declaration.
28018         (AT_FDCWD): Fix Solaris bug.
28019         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
28020         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
28021         * lib/fchmodat.c (includes):  Adjust to find declaration.
28022         * lib/fchownat.c (includes): Likewise.
28023         * lib/mkdirat.c (includes): Likewise.
28024         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
28025         still visible.
28026
28027 2009-09-02  Eric Blake  <ebb9@byu.net>
28028
28029         errno: use consistently
28030         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
28031         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
28032         * lib/canonicalize.c (ELOOP): Likewise.
28033         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
28034         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
28035         * lib/lchown.c (EOPNOTSUPP): Likewise.
28036         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
28037         * lib/savewd.c (ESTALE): Likewise.
28038         * lib/settime.c (ENOSYS): Likewise.
28039         * lib/utimens.c (ENOSYS): Likewise.
28040         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
28041         * lib/chdir-safer.c (ELOOP): Likewise.
28042         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
28043         * modules/c-stack (Depends-on): Add errno.
28044         * modules/canonicalize (Depends-on): Likewise.
28045         * modules/chdir-safer (Depends-on): Likewise.
28046         * modules/fdopendir (Depends-on): Likewise.
28047         * modules/inet_ntop (Depends-on): Likewise.
28048         * modules/inet_pton (Depends-on): Likewise.
28049         * modules/lchown (Depends-on): Likewise.
28050         * modules/openat (Depends-on): Likewise.
28051         * modules/savewd (Depends-on): Likewise.
28052         * modules/settime (Depends-on): Likewise.
28053         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
28054
28055         fts: avoid leaking fds
28056         * modules/fts (Depends-on): Add cloexec.
28057         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
28058         flag.
28059
28060         fts: make directory fds more robust
28061         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
28062         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
28063
28064         backupfile, chdir-long, fts, savedir: make safer
28065         * lib/backupfile.c (includes): Use "dirent--.h", since
28066         numbered_backup can write to stderr during readdir.
28067         * lib/savedir.c (includes): Likewise.
28068         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
28069         emulation can write to stderr on failure.
28070         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
28071         * lib/getcwd.c: Document why opendir_safer is unused.
28072         * lib/glob.c: Likewise.
28073         * lib/scandir.c: Likewise.
28074         * lib/openat-proc.c: Likewise, for open_safer.
28075         * modules/backupfile (Depends-on): Add dirent-safer.
28076         * modules/savedir (Depends-on): Likewise.
28077         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
28078         * modules/chdir-long (Depends-on): Add openat-safer.
28079
28080         openat-safer: new module
28081         * modules/openat-safer: New file.
28082         * lib/openat-safer.c: Likewise.
28083         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
28084         * lib/fcntl-safer.h (openat_safer): Declare.
28085         * lib/fcntl--.h (openat): Override.
28086         * MODULES.html.sh (File descriptor based I/O): Mention it.
28087         * lib/openat.h: Add double-inclusion guards.
28088         * lib/openat.c (includes): Only include "fcntl-safer.h", not
28089         "fcntl--.h", so we can implement openat.
28090         * modules/openat-safer-tests: New test.
28091         * tests/test-openat-safer.c: New file.
28092
28093         dirent-safer: new module
28094         * modules/dirent-safer: New file.
28095         * lib/dirent--.h: Likewise.
28096         * lib/dirent-safer.h: Likewise.
28097         * lib/opendir-safer.c: Likewise.
28098         * m4/dirent-safer.m4: Likewise.
28099         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
28100         * modules/dirent-safer-tests: New test.
28101         * tests/test-dirent-safer.c: New file.
28102         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
28103
28104         fdopendir: optimize on mingw
28105         * lib/unistd.in.h (_gl_directory_name): New prototype.
28106         * lib/fchdir.c (_gl_directory_name): Implement it.
28107         (fchdir): Use it to simplify implementation.
28108         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
28109         fchdir, when available, to avoid calling [f]chdir().
28110
28111         fdopendir: split into its own module
28112         * lib/openat.c (fdopendir): Move...
28113         * lib/fdopendir.c: ...into new file.
28114         * modules/fdopendir: New module.
28115         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
28116         * modules/openat (Depends-on): Add fdopendir.
28117         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
28118         fdopendir here.
28119         * modules/savedir (Depends-on): Only need fdopendir, not full
28120         openat.
28121         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
28122         * lib/openat.h (fdopendir): Drop prototype.
28123         * lib/dirent.in.h (fdopendir): Provide prototype.
28124         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
28125         * modules/dirent (Makefile.am): Substitute them.
28126         * MODULES.html.sh (File system functions): Mention it.
28127         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
28128         * modules/fdopendir-tests: New file.
28129         * tests/test-fdopendir.c: Likewise.
28130
28131         fchdir: use more consistent macro convention
28132         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
28133         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
28134         REPLACE_FCHDIR, rather than relying on config.h macros.
28135         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
28136         inside a single make-time REPLACE_FCHDIR block, rather than using
28137         the config.h FCHDIR_REPLACEMENT.
28138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
28139         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
28140         Manage fstat replacement.
28141         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
28142         REPLACE_FCHDIR.
28143         * modules/sys_stat (Files): Add m4/unistd_h.m4.
28144         (Makefile.am): Substitute REPLACE_FCHDIR.
28145         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
28146         FCHDIR_REPLACEMENT.
28147         * lib/dup-safer.c (dup_safer): Likewise.
28148         * lib/dup2.c (rpl_dup2): Likewise.
28149         * lib/dup3.c (rpl_dup3): Likewise.
28150         * lib/open.c (rpl_open): Likewise.
28151
28152         fchdir: simplify error handling, and support dup3
28153         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
28154         stdbool, malloc-posix, realloc-posix.
28155         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
28156         (ensure_dirs_slot): Return false on allocation failure.
28157         (rpl_dup2): Delete.
28158         (_gl_register_dup): New function.
28159         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
28160         (_gl_register_fd): Close fd on allocation failure.
28161         * lib/fcntl.in.h (_gl_register_fd): Update signature.
28162         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
28163         prototype.
28164         (rpl_dup2_fchdir): Delete prototype.
28165         * lib/open.c (open): Update caller.
28166         * lib/dup2.c (dup2): Track fchdir metadata.
28167         * lib/dup3.c (dup3): Likewise.
28168         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
28169         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
28170
28171 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28172
28173         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
28174         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
28175         don't pass arguments to AC_OUTPUT.
28176
28177 2009-09-02  Bruno Haible  <bruno@clisp.org>
28178
28179         * modules/mkdtemp (License): Relicense under LGPLv2+.
28180         Reported by Paolo Bonzini.
28181
28182 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28183
28184         Replace uses of obsolete autoconf macros in Jim's modules.
28185         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
28186         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
28187         can evoke a warning from autoconf when run with -Wobsolete
28188         enabled.  They were declared obsolete for good reasons (see
28189         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
28190         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
28191         should not continue using the deprecated macros.
28192         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
28193         obsolete Autoconf macros with modern counterparts.
28194         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28195         * m4/dos.m4 (gl_AC_DOS): Likewise.
28196         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
28197         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28198         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
28199         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
28200         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
28201         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
28202         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
28203         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
28204         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28205         Likewise.
28206         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28207         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28208         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
28209         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
28210         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28211         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28212
28213 2009-09-01  Eric Blake  <ebb9@byu.net>
28214
28215         fchdir: fix off-by-one bug in previous patch
28216         * lib/fchdir.c (rpl_fstat): Use correct bounds.
28217         (_gl_unregister_fd): Delete useless if.
28218
28219 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
28220
28221         maint.mk: sort the list of syntax-check rules
28222         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
28223         easier to get a sense of progress when the rules are run sequentially
28224         and take a long time.
28225
28226 2009-09-01  Simon Josefsson  <simon@josefsson.org>
28227
28228         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
28229         * modules/netinet_in: Likewise.
28230         * modules/sys_file: Likewise.
28231         * modules/sys_ioctl: Likewise.
28232         * modules/sys_select: Likewise.
28233         * modules/sys_socket: Likewise.
28234         * modules/sys_stat: Likewise.
28235         * modules/sys_time: Likewise.
28236         * modules/sys_times: Likewise.
28237         * modules/sys_utsname: Likewise.
28238         * modules/sys_wait: Likewise.
28239
28240 2009-09-01  Jim Meyering  <meyering@redhat.com>
28241
28242         fts: help ensure that return values are not ignored
28243         * lib/fts_.h (__GNUC_PREREQ): Define.
28244         (__attribute_warn_unused_result__): Define.
28245         (fts_children, fts_close, fts_open, fts_read): Declare with
28246         __attribute_warn_unused_result__.
28247
28248         fts: fts_close now fails also when closing a dir file descriptor fails
28249         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
28250         and propagate to caller, along with errno.
28251
28252         announce-gen: correct formatting in --help output
28253         * build-aux/announce-gen (usage): Move the one-line description in
28254         --help output "up", to where it belongs, just after Usage:.
28255
28256 2009-08-31  Eric Blake  <ebb9@byu.net>
28257
28258         fchdir: port to mingw
28259         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
28260         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
28261         opened, then use a substitute.
28262         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
28263         replacement.
28264         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
28265         (_gl_register_fd): No need to check stat if open already filters
28266         all directories.
28267         (fchdir): Fix error condition to match POSIX.
28268         * modules/fchdir (Depends-on): Add sys_stat.
28269         * doc/posix-functions/open.texi (open): Document the limitation.
28270         * modules/fchdir-tests: New file.
28271         * tests/test-fchdir.c: Likewise.
28272
28273         canonicalize: allow cross-testing from cygwin to mingw
28274         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
28275         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
28276         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
28277         Likewise.
28278         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
28279         target does not support symlinks.
28280         * tests/test-canonicalize-lgpl.sh: Likewise.
28281
28282         chown: avoid compilation warning on mingw
28283         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
28284         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
28285         mingw.
28286         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28287         * modules/chown (Depends-on): Add errno.
28288
28289 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28290
28291         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
28292         command.
28293
28294 2009-08-31  Jim Meyering  <meyering@redhat.com>
28295
28296         canonicalize: remove useless initialization
28297         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
28298         initialization of local, "end".
28299
28300 2009-08-30  Bruno Haible  <bruno@clisp.org>
28301
28302         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
28303         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
28304         ENOSYS.
28305
28306 2009-08-30  Bruno Haible  <bruno@clisp.org>
28307
28308         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
28309         /usr/xpg4/bin/tr when it exists.
28310         * tests/test-pipe-filter-gi1.sh: Likewise.
28311
28312 2009-08-30  Bruno Haible  <bruno@clisp.org>
28313
28314         Work around deficient /usr/bin/id program on Solaris.
28315         * tests/test-file-has-acl.sh (ID): New variable.
28316         * tests/test-set-mode-acl.sh (ID): Likewise.
28317         * tests/test-copy-acl.sh (ID): Likewise.
28318         * tests/test-copy-file.sh (ID): Likewise.
28319
28320 2009-08-30  Bruno Haible  <bruno@clisp.org>
28321
28322         New module 'xstriconveh'.
28323         * lib/xstriconveh.h: New file.
28324         * lib/xstriconveh.c: New file.
28325         * modules/xstriconveh: New file.
28326
28327 2009-08-30  Bruno Haible  <bruno@clisp.org>
28328
28329         Make it easier to use mem_cd_iconveh.
28330         * lib/striconveh.h (iconveh_t): New type.
28331         (iconveh_open, iconveh_close): New declarations.
28332         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28333         with a single 'const iconveh_t *' argument.
28334         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
28335         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28336         with a single 'const iconveh_t *' argument.
28337         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
28338         * tests/test-striconveh.c (main): Update.
28339         * NEWS: Mention the change.
28340
28341 2009-08-30  Bruno Haible  <bruno@clisp.org>
28342
28343         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
28344         problem.
28345
28346 2009-08-30  Bruno Haible  <bruno@clisp.org>
28347
28348         Work around iconv_open problem on Solaris.
28349         * lib/iconv_open-solaris.gperf: New file.
28350         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
28351         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
28352         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
28353         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
28354         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
28355         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
28356
28357 2009-08-29  Jim Meyering  <meyering@redhat.com>
28358
28359         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
28360         * top/maint.mk (cvs-check): Remove target; it was just an alias
28361         to the better-named vc-diff-check.
28362         (maintainer-distcheck): Remove rule.  It was used only from
28363         the (alpha/beta/major) target, and all of its commands but one
28364         were coreutils-specific.
28365         (vc-dist): Remove rule.
28366         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
28367         Run vc-diff-check, not vc-dist.
28368         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
28369
28370 2009-08-27  Bruno Haible  <bruno@clisp.org>
28371
28372         * tests/test-bitrotate.c (main): Remove test that uses a shift count
28373         of 0.
28374
28375 2009-08-27  Bruno Haible  <bruno@clisp.org>
28376
28377         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
28378         compilers.
28379         * doc/func.texi: Document the SunPRO C bug.
28380
28381 2009-08-27  Bruno Haible  <bruno@clisp.org>
28382
28383         Fix link error on Solaris.
28384         * tests/test-parse-duration.c (xstrdup): Remove function.
28385
28386 2009-08-26  Pádraig Brady  <P@draigbrady.com>
28387
28388         ignore-value: handle pointer types, too
28389         * lib/ignore-value.h (__attribute__): Remove definition.
28390         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
28391         of a more concise and more-often effective "(void) i" statement.
28392         (ignore_ptr): New function to suppress warnings from functions that
28393         return pointers, and to make it explicit that one function doesn't
28394         handle all cases.
28395
28396 2009-08-25  Bruno Haible  <bruno@clisp.org>
28397
28398         dup2: work around a Linux bug.
28399         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
28400         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
28401         * doc/posix-functions/dup2.texi: Mention the Linux bug.
28402         Reported by Simon Josefsson.
28403
28404 2009-08-25  Jim Meyering  <meyering@redhat.com>
28405
28406         libguestfs uses gnulib
28407         * users.txt: Add libguestfs.
28408
28409 2009-08-24  Eric Blake  <ebb9@byu.net>
28410
28411         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
28412         * lib/pipe2.c (includes): Add binary-io.h.
28413         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
28414
28415 2009-08-24  Bruno Haible  <bruno@clisp.org>
28416
28417         Tolerate declared but missing accept4 syscall.
28418         * lib/accept4.c (accept4): Invoke original accept4 function first, if
28419         available.
28420         * lib/sys_socket.in.h (accept4): If the function is already present,
28421         override it.
28422         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
28423         * modules/accept4 (Makefile.am): Compile accept4.c always.
28424         Reported by Paolo Bonzini and Eric Blake.
28425
28426 2009-08-23  Bruno Haible  <bruno@clisp.org>
28427
28428         New module 'accept4'.
28429         * lib/sys_socket.in.h (accept4): New declaration.
28430         * lib/accept4.c: New file.
28431         * m4/accept4.m4: New file.
28432         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28433         GNULIB_ACCEPT4, HAVE_ACCEPT4.
28434         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
28435         HAVE_ACCEPT4.
28436         * modules/accept4: New file.
28437         * doc/glibc-functions/accept4.texi: Mention the new module.
28438
28439 2009-08-24  Jim Meyering  <meyering@redhat.com>
28440
28441         progname: also set global program_invocation_name, when possible
28442         Before this change, a libtool-enabled program that calls glibc's
28443         error function would report the program name as
28444         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
28445         * modules/progname (configure.ac): Check for a declaration of
28446         program_invocation_name.
28447         * lib/progname.c:  Include <errno.h>.
28448         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
28449         Set program_invocation_name.
28450
28451 2009-08-23  Bruno Haible  <bruno@clisp.org>
28452
28453         * lib/dup3.c: Include <string.h>.
28454
28455 2009-08-23  Bruno Haible  <bruno@clisp.org>
28456
28457         * lib/dup3.c (dup3): Test only once whether the system actually exists.
28458         * lib/pipe2.c (pipe2): Likewise.
28459         Suggested by Eric Blake.
28460
28461 2009-08-23  Bruno Haible  <bruno@clisp.org>
28462
28463         Tolerate declared but missing dup3 syscall.
28464         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
28465         * lib/unistd.in.h (dup3): If the function is already present,
28466         override it.
28467         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
28468         * modules/dup3 (Makefile.am): Compile dup3.c always.
28469         Reported by Paolo Bonzini.
28470
28471 2009-08-23  Bruno Haible  <bruno@clisp.org>
28472
28473         Tolerate declared but missing pipe2 syscall.
28474         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
28475         available.
28476         * lib/unistd.in.h (pipe2): If the function is already present,
28477         override it.
28478         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
28479         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
28480         Reported by Paolo Bonzini.
28481
28482 2009-08-23  Bruno Haible  <bruno@clisp.org>
28483
28484         * lib/pipe2.c (pipe2): Move #ifs inside function.
28485
28486 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28487
28488         quotearg: document limitations of quote_these_too
28489         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
28490         those limitations are created.
28491         * lib/quotearg.h (set_char_quoting): Document that digits and
28492         letters that are special after backslash are not permitted.
28493         (quotearg_char): Cross-reference set_char_quoting documentation.
28494
28495 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
28496
28497         quotearg: implement custom_quoting_style
28498         * lib/quotearg.c: (struct quoting_options): Add left_quote and
28499         right_quote fields.
28500         (set_custom_quoting): New public function.
28501         (quotearg_buffer_restyled): Add left_quote and right_quote
28502         arguments, handle them very much like locale quoting, and update
28503         all uses.
28504         (quotearg_n_custom): New public function.
28505         (quotearg_n_custom_mem): New public function.
28506         (quotearg_custom): New public function.
28507         (quotearg_custom_mem): New public function.
28508         * lib/quotearg.h: Prototype and document new public functions.
28509         (enum quoting_style): For escape_quoting_style and
28510         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
28511         ignored even though they're otherwise like c_quoting_style.
28512         Add custom_quoting_style member and document with comparison to
28513         clocale_quoting_style.
28514         * tests/test-quotearg.c (custom_quotes): New array.
28515         (custom_results): New array.
28516         (main): Extend to test custom quoting.
28517
28518 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28519
28520         quotearg: fix right quote escaping when it's in quote_these_too
28521         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
28522         quote, be sure to prepend only one backslash.
28523         * tests/test-quotearg.c (use_quote_double_quotes): New function.
28524         (main): Test it.
28525
28526 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28527
28528         quotearg-tests: test escaping of embedded locale quotes
28529         * tests/test-quotearg.c (struct result_strings): Add member for
28530         new input.
28531         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
28532         (inputs): Add new input.
28533         (results_g): Add expected results.
28534         (flag_results): Likewise.
28535         (locale_results): Likewise.
28536         (compare_strings): Check those.
28537
28538 2009-08-23  Bruno Haible  <bruno@clisp.org>
28539
28540         Tests for module 'dup3'.
28541         * modules/dup3-tests: New file.
28542         * tests/test-dup3.c: New file.
28543
28544         New module 'dup3'.
28545         * lib/unistd.in.h (dup3): New declaration.
28546         * lib/dup3.c: New file.
28547         * m4/dup3.m4: New file.
28548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
28549         HAVE_DUP3.
28550         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
28551         * modules/dup3: New file.
28552         * doc/glibc-functions/dup3.texi: Mention the new module.
28553
28554 2009-08-23  Bruno Haible  <bruno@clisp.org>
28555
28556         Tweak the dup2 test.
28557         * tests/test-dup2.c (main): Create the test file empty. Verify that an
28558         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
28559         the test file is still empty. Fix argument order of lseek.
28560
28561 2009-08-23  Bruno Haible  <bruno@clisp.org>
28562
28563         Avoid test link errors when the modules getopt-gnu, gettext are used.
28564         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
28565         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28566
28567 2009-08-23  Bruno Haible  <bruno@clisp.org>
28568
28569         Fix getdtablesize() on mingw.
28570         * lib/getdtablesize.c (getdtablesize): Implement differently.
28571         * lib/unistd.in.h (getdtablesize): Improve comment.
28572
28573 2009-08-23  Bruno Haible  <bruno@clisp.org>
28574
28575         New module 'mkostemp'.
28576         Based on Ulrich Drepper's 2007-08-10 change in glibc.
28577         * lib/stdlib.in.h (mksotemp): New declaration.
28578         * lib/mkostemp.c: New file, from glibc with modifications.
28579         * lib/tempname.h (GT_FILE): Remove outdated comment.
28580         (gen_tempname): Add flags argument.
28581         * lib/tempname.c (__GT_BIGFILE): Remove macro.
28582         (__GT_FILE): Map to 1.
28583         (small_open, large_open): Remove macros.
28584         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
28585         * lib/mkstemp.c (mkstemp): Update.
28586         * lib/mkdtemp.c (mkdtemp): Likewise.
28587         * m4/mkostemp.m4: New file.
28588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
28589         HAVE_MKOSTEMP.
28590         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
28591         HAVE_MKOSTEMP.
28592         * modules/mkostemp: New file, based on modules/mkstemp.
28593         * doc/glibc-functions/mkostemp.texi: Mention the new module.
28594         * NEWS: Mention the change.
28595
28596 2009-08-23  Bruno Haible  <bruno@clisp.org>
28597
28598         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
28599         Reported by Eric Blake.
28600
28601 2009-08-23  Bruno Haible  <bruno@clisp.org>
28602
28603         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
28604         Reported by Eric Blake.
28605
28606 2009-08-23  Bruno Haible  <bruno@clisp.org>
28607
28608         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
28609         * modules/pipe2 (Depends-on): Likewise.
28610
28611 2009-08-23  Eric Blake  <ebb9@byu.net>
28612
28613         fcntl-h: add O_TTY_INIT support
28614         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
28615         * tests/test-fcntl-h.c (o): Test it.
28616         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28617
28618         fcntl-h: rename from fcntl, in preparation for fcntl(2)
28619         * modules/fcntl: Move <fcntl.h> header replacement...
28620         * modules/fcntl-h: ...to new name, so as not to collide with
28621         like-named function.
28622         * tests/test-fcntl.c: Rename...
28623         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
28624         * modules/fcntl-tests: Rename...
28625         * modules/fcntl-h-tests: ...to this.  Update test file name.
28626         * modules/chdir-long (Depends-on): Update clients.
28627         * modules/chdir-safer (Depends-on): Likewise.
28628         * modules/fcntl-safer (Depends-on): Likewise.
28629         * modules/fts (Depends-on): Likewise.
28630         * modules/mkancesdirs (Depends-on): Likewise.
28631         * modules/mkdir-p (Depends-on): Likewise.
28632         * modules/open (Depends-on): Likewise.
28633         * modules/savewd (Depends-on): Likewise.
28634         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
28635         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28636
28637 2009-08-22  Bruno Haible  <bruno@clisp.org>
28638
28639         * modules/binary-io (License): Relicense under LGPL.
28640         * modules/pipe2 (License): Likewise.
28641
28642 2009-08-22  Bruno Haible  <bruno@clisp.org>
28643
28644         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
28645         return value.
28646         * lib/pipe-filter-gi.c (filter_init): Likewise.
28647         Reported by Eric Blake.
28648
28649 2009-08-22  Bruno Haible  <bruno@clisp.org>
28650
28651         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
28652         * modules/pipe (Depends-on): Add pipe2.
28653
28654 2009-08-22  Bruno Haible  <bruno@clisp.org>
28655
28656         Tests for module 'pipe2'.
28657         * modules/pipe2-tests: New file.
28658         * tests/test-pipe2.c: New file.
28659
28660         New module 'pipe2'.
28661         * lib/unistd.in.h (pipe2): New declaration.
28662         * lib/pipe2.c: New file.
28663         * m4/pipe2.m4: New file.
28664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
28665         HAVE_PIPE2.
28666         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
28667         * modules/pipe2: New file.
28668         * doc/glibc-functions/pipe2.texi: Mention the new module.
28669
28670 2009-08-22  Bruno Haible  <bruno@clisp.org>
28671
28672         Reference some new glibc functions.
28673         * doc/glibc-functions/accept4.texi: New file.
28674         * doc/glibc-functions/dup3.texi: New file.
28675         * doc/glibc-functions/mkostemp.texi: New file.
28676         * doc/glibc-functions/pipe2.texi: New file.
28677         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
28678         (Glibc sys/socket.h): Refer to accept4.
28679         (Glibc unistd.h): Refer to dup3, pipe2.
28680         Reported by Eric Blake.
28681
28682 2009-08-22  Jim Meyering  <meyering@redhat.com>
28683             Bruno Haible  <bruno@clisp.org>
28684
28685         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
28686         This makes it so packages using automake-1.11's silent-rules option
28687         can print e.g., a single "GEN    configmake.h" line, rather than
28688         the 30+ statements that perform the job.  If you want to see the
28689         actual commands, you can still run "make V=1".
28690         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
28691         so that make output is abbreviated when those variables are defined
28692         appropriately.
28693         * modules/argz: Likewise.
28694         * modules/arpa_inet: Likewise.
28695         * modules/byteswap: Likewise.
28696         * modules/configmake: Likewise.
28697         * modules/dirent: Likewise.
28698         * modules/errno: Likewise.
28699         * modules/fcntl: Likewise.
28700         * modules/float: Likewise.
28701         * modules/fnmatch: Likewise.
28702         * modules/getopt-posix: Likewise.
28703         * modules/glob: Likewise.
28704         * modules/iconv_open: Likewise.
28705         * modules/inttypes: Likewise.
28706         * modules/localcharset: Likewise.
28707         * modules/locale: Likewise.
28708         * modules/math: Likewise.
28709         * modules/netdb: Likewise.
28710         * modules/netinet_in: Likewise.
28711         * modules/poll: Likewise.
28712         * modules/posix_spawnp-tests: Likewise.
28713         * modules/sched: Likewise.
28714         * modules/search: Likewise.
28715         * modules/selinux-h: Likewise.
28716         * modules/signal: Likewise.
28717         * modules/spawn: Likewise.
28718         * modules/stdarg: Likewise.
28719         * modules/stdbool: Likewise.
28720         * modules/stddef: Likewise.
28721         * modules/stdint: Likewise.
28722         * modules/stdio: Likewise.
28723         * modules/stdlib: Likewise.
28724         * modules/string: Likewise.
28725         * modules/strings: Likewise.
28726         * modules/sys_file: Likewise.
28727         * modules/sys_ioctl: Likewise.
28728         * modules/sys_select: Likewise.
28729         * modules/sys_socket: Likewise.
28730         * modules/sys_stat: Likewise.
28731         * modules/sys_time: Likewise.
28732         * modules/sys_times: Likewise.
28733         * modules/sys_utsname: Likewise.
28734         * modules/sys_wait: Likewise.
28735         * modules/sysexits: Likewise.
28736         * modules/time: Likewise.
28737         * modules/unistd: Likewise.
28738         * modules/wchar: Likewise.
28739         * modules/wctype: Likewise.
28740
28741 2009-08-22  Jim Meyering  <meyering@redhat.com>
28742
28743         announce-gen: detect write failure
28744         * build-aux/announce-gen: Add Coda at end.
28745         Remove equivalent-but-more-verbose block at top.
28746
28747 2009-08-19  Akim Demaille  <demaille@gostai.com>
28748
28749         bootstrap: --help to stdout.
28750         * bootstrap (usage): Don't send --help to stderr.
28751         Use a here doc instead of a long string.
28752
28753 2009-08-21  Eric Blake  <ebb9@byu.net>
28754
28755         test-popen-safer: split from test-popen
28756         * tests/test-popen.c (main): Move...
28757         * tests/test-popen.h: ...into new file.
28758         * tests/test-popen-safer2.c: New file.
28759         * modules/popen-tests (Files): Add test-popen.h.
28760         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
28761         Suggested by Bruno Haible.
28762
28763         test-fcntl-safer: split from test-open
28764         * tests/test-open.c (main): Move...
28765         * tests/test-open.h: ...into new file.
28766         * tests/test-fcntl-safer.c: New file.
28767         * modules/open-tests (Files): Add test-open.h.
28768         * modules/fcntl-safer-tests: New file.
28769         Suggested by Bruno Haible.
28770
28771         test-fopen-safer: split from test-fopen
28772         * tests/test-fopen.c (main): Move...
28773         * tests/test-fopen.h: ...into new file.
28774         * tests/test-fopen-safer.c: New file.
28775         * modules/fopen-tests (Files): Add test-fopen.h.
28776         * modules/fopen-safer-tests: New file.
28777         Suggested by Bruno Haible.
28778
28779 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28780
28781         popen-safer: test O_CLOEXEC at run-time.
28782         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
28783
28784 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28785
28786         fcntl: move more flags to the header
28787         * lib/cloexec.c: Do not define FD_CLOEXEC here.
28788         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
28789         * lib/fcntl.in.h: Do both things here.
28790
28791 2009-08-21  Jim Meyering  <meyering@redhat.com>
28792
28793         consistently remove $@-t before redirecting to it
28794         * modules/argz: Remove $@-t and $@ before redirecting to the former.
28795         * modules/alloca-opt: Likewise.
28796         * modules/byteswap: Likewise.
28797         * modules/fnmatch: Likewise.
28798         * modules/getopt-posix: Likewise.
28799         * modules/glob: Likewise.
28800         * modules/poll: Likewise.
28801         * modules/posix_spawnp-tests: Likewise.
28802         * modules/sys_socket: Likewise.
28803         * modules/sysexits: Likewise.
28804
28805 2009-08-21  Eric Blake  <ebb9@byu.net>
28806
28807         popen: simplify access to original popen
28808         * lib/popen.c (rpl_popen): No need to worry about popen being a
28809         macro.
28810         Reported by Bruno Haible.
28811
28812 2009-08-20  Eric Blake  <ebb9@byu.net>
28813
28814         build: avoid some compiler warnings
28815         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
28816         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
28817         type.
28818         (new_exclude_segment, excluded_file_pattern_p)
28819         (excluded_file_name_p): Reduce scope.
28820         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
28821         old-style declaration.
28822
28823 2009-08-20  Simon Josefsson  <simon@josefsson.org>
28824
28825         * tests/test-exclude1.sh: Handle Windows EOL.
28826         * tests/test-exclude2.sh: Likewise.
28827         * tests/test-exclude3.sh: Likewise.
28828         * tests/test-exclude4.sh: Likewise.
28829         * tests/test-exclude5.sh: Likewise.
28830         * tests/test-exclude6.sh: Likewise.
28831         * tests/test-exclude7.sh: Likewise.
28832
28833 2009-08-19  Akim Demaille  <demaille@gostai.com>
28834
28835         bootstrap: find sha1sum when named gsha1sum.
28836         * bootstrap (find_tool): New.
28837         ($SHA1SUM): New.
28838         Use it.
28839
28840 2009-08-20  Jim Meyering  <meyering@redhat.com>
28841
28842         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
28843         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
28844         expression that converts "." in a file name to "\." in the resulting
28845         regexp.  Start with a dummy statement, so that prior shell variable
28846         definitions are expanded portably.  Reported by Simon Josefsson.
28847
28848 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
28849
28850         Fix polling for writeability of a screen buffer.
28851         * lib/poll.c: Distinguish input and screen buffers for the
28852         Win32 implementation.
28853         * lib/select.c: Likewise.
28854
28855 2009-08-19  Eric Blake  <ebb9@byu.net>
28856
28857         popen-safer: prevent popen from clobbering std descriptors
28858         * modules/popen-safer: New file.
28859         * lib/popen-safer.c: Likewise.
28860         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
28861         * lib/stdio--.h (popen): Provide override.
28862         * lib/stdio-safer.h (popen_safer): Provide declaration.
28863         * tests/test-popen.c (includes): Partially test this.
28864         * modules/popen-safer-tests: New file, for more tests.
28865         * tests/test-popen-safer.c: Likewise.
28866         * MODULES.html.sh (file stream based Input/Output): Mention it.
28867
28868         tests: test some of the *-safer modules
28869         * modules/fopen-safer (Depends-on): Add fopen.
28870         * modules/fcntl-safer (Depends-on): Add fcntl.
28871         * modules/stdlib-safer (Depends-on): Add stdlib.
28872         (configure.ac): Set indicator.
28873         * modules/unistd-safer (configure.ac): Likewise.
28874         * modules/tmpfile-safer (configure.ac): Likewise.
28875         (Depends-on): Add tmpfile.
28876         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
28877         active.
28878         * tests/test-fopen.c (includes): Test safer versions when they are
28879         in use.
28880         * tests/test-open.c (includes): Likewise.
28881
28882         popen: fix cygwin 1.5 bug when stdin closed
28883         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
28884         * modules/popen: New file.
28885         * modules/popen-tests: Likewise.
28886         * tests/test-popen.c: Likewise.
28887         * m4/popen.m4: Likewise.
28888         * lib/popen.c: Likewise.
28889         * lib/stdio.in.h (popen): New declaration.
28890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
28891         * modules/stdio (Makefile.am): Likewise.
28892         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
28893
28894 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
28895
28896         maint.mk: give full control over update-copyright exclusions
28897         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
28898         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
28899         (update-copyright): Don't force inclusion of top-level
28900         ChangeLog.  Don't force exclusion of all COPYING files, but make
28901         them the default exclusion instead.
28902
28903 2009-08-16  Bruno Haible  <bruno@clisp.org>
28904
28905         Fix test failures on Solaris 10.
28906         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
28907         tests when Solaris iconv() is used.
28908         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
28909         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
28910         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
28911         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
28912         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
28913
28914 2009-08-16  Bruno Haible  <bruno@clisp.org>
28915
28916         Fix test failures on Solaris 10.
28917         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
28918         'tr' program and pass it as first argument.
28919         * tests/test-pipe-filter-gi1.sh: Likewise.
28920         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
28921         program as first argument.
28922         * tests/test-pipe-filter-gi1.c (main): Likewise.
28923
28924 2009-08-16  Eric Blake  <ebb9@byu.net>
28925
28926         fpurge: fix previous commits
28927         * modules/fpurge (Makefile.am): Make replacement conditional,
28928         partially reverting 2007-04-29 change; missed in previous
28929         attempt.
28930         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
28931         is missing.
28932
28933 2009-08-16  Bruno Haible  <bruno@clisp.org>
28934
28935         Clarify fpurge's effect on the file position.
28936         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
28937         * tests/test-fpurge.c (main): Make a second pass for checking the file
28938         position.
28939
28940 2009-08-16  Bruno Haible  <bruno@clisp.org>
28941
28942         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
28943         declaration of fpurge is missing.
28944         * tests/test-fpurge.c (main): Check that the file has not more contents
28945         than expected. Close the file before removing it.
28946
28947 2009-08-15  Eric Blake  <ebb9@byu.net>
28948
28949         fpurge: don't wrap working cygwin implementation
28950         * lib/fpurge.c (fpurge): Fix comment typo.
28951         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
28952         1.7 to avoid replacement.
28953         * tests/test-fpurge.c (main): Enhance test.
28954
28955 2009-08-15  Eric Blake  <ebb9@byu.net>
28956         and Jim Meyering  <meyering@redhat.com>
28957
28958         test-update-copyright: skip if perl is insufficient
28959         * tests/test-update-copyright.sh: Failure to run maintainer tool
28960         should not cause testsuite failure on cygwin 1.5.
28961
28962 2009-08-14  Eric Blake  <ebb9@byu.net>
28963
28964         doc: mention more functions added in cygwin 1.7.0
28965         * doc/posix-headers/limits.texi (limits.h): Update for recent
28966         cygwin additions.
28967         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
28968         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
28969         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
28970         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
28971         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
28972
28973 2009-08-14  Eric Blake  <ebb9@byu.net>
28974
28975         maint.mk: simplify update-copyright rule
28976         * top/maint.mk (update-copyright-local): Delete, and document how
28977         to do it in cfg.mk instead.
28978         (update-copyright-exclude-regexp): Delete, and document how to do
28979         it in .x-update-copyright instead.
28980         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
28981         exclude ChangeLog.
28982
28983 2009-08-14  Bruno Haible  <bruno@clisp.org>
28984
28985         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
28986
28987 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28988
28989         maint.mk: support update-copyright-env
28990         * top/maint.mk (update-copyright-env): Define place-holder.
28991         (update-copyright): Expand $(update-copyright-env) before
28992         invoking update-copyright.
28993
28994 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28995
28996         update-copyright: implement forced reformatting
28997         * build-aux/update-copyright: Implement and document
28998         UPDATE_COPYRIGHT_FORCE.
28999         * tests/test-update-copyright.sh: Test it.
29000
29001 2009-08-14  Eric Blake  <ebb9@byu.net>
29002         and Bruno Haible  <bruno@clisp.org>
29003
29004         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
29005         * tests/test-locale.c: Revert previous patch related to NULL.
29006         * tests/test-stdio.c: Likewise.
29007         * tests/test-stdlib.c: Likewise.
29008         * tests/test-string.c: Likewise.
29009         * tests/test-unistd.c: Likewise.
29010         * modules/time-tests (Depends-on): Add verify.
29011         * modules/wchar-tests (Depends-on): Likewise.
29012         * tests/test-time.c: Test for NULL compliance.
29013         * tests/test-wchar.c: Likewise.
29014         * modules/locale (Depends-on): Add stddef.
29015         * modules/stdio (Depends-on): Likewise.
29016         * modules/stdlib (Depends-on): Likewise.
29017         * modules/string (Depends-on): Likewise.
29018         * modules/time (Depends-on): Likewise.
29019         * modules/unistd (Depends-on): Likewise.
29020         * modules/wchar (Depends-on): Likewise.
29021         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
29022         * lib/stdlib.in.h (includes): Likewise.
29023         * lib/string.in.h (includes): Likewise.
29024         * lib/time.in.h (includes): Likewise.
29025         * lib/unistd.in.h (includes): Likewise.
29026         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
29027         replaced.
29028         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29029         * m4/stddef_h.m4: New file.
29030         * modules/stddef: Likewise.
29031         * lib/stddef.in.h: Likewise.
29032         * modules/stddef-tests: Likewise.
29033         * tests/test-stddef.c: Likewise.
29034         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
29035         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
29036         * doc/posix-headers/locale.texi (locale.h): Likewise.
29037         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
29038         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29039         * doc/posix-headers/string.texi (string.h): Likewise.
29040         * doc/posix-headers/time.texi (time.h): Likewise.
29041         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
29042         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
29043
29044 2009-08-14  Eric Blake  <ebb9@byu.net>
29045
29046         doc: improve git diff of texinfo files
29047         * .gitattributes: Add rule for *.texi files, with hint on how to
29048         use it.
29049         Copied from m4, and based on a report by Bruno Haible.
29050
29051 2009-08-14  Bruno Haible  <bruno@clisp.org>
29052
29053         Disable multithread support by default on Cygwin 1.5.x for real.
29054         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
29055
29056 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29057
29058         update-copyright: much ado about intervals
29059         * build-aux/update-copyright: Implement and document
29060         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
29061         of copyright year intervals.
29062         Also, document UPDATE_COPYRIGHT_YEAR.
29063         * tests/test-update-copyright.sh: Test it.
29064
29065         update-copyright: convert 2-digit to 4-digit years
29066         * build-aux/update-copyright: Implement and document.
29067         * tests/test-update-copyright.sh: Update.
29068
29069 2009-08-14  Jim Meyering  <meyering@redhat.com>
29070
29071         test-exclude: avoid coreutils "make check" failure
29072         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
29073         just as in test-argmatch.c.
29074
29075 2009-08-13  Eric Blake  <ebb9@byu.net>
29076
29077         test-dup2: fix bad assumption
29078         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
29079         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
29080
29081         test-version-etc: fix CRLF portability issue
29082         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
29083         recognize \r.
29084         * tests/test-argp-version-etc-1.sh: Likewise.
29085
29086         getopt: update client modules
29087         * modules/argp (Depends-on): Use getopt-gnu.
29088         * modules/git-merge-changelog (Depends-on): Likewise.
29089         * modules/long-options (Depends-on): Likewise.
29090         * modules/xstrtol (Depends-on): Likewise.
29091
29092 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29093
29094         * tests/test-version-etc.sh: Don't fail on different
29095         project/version.  Don't fail on CRLF differences.  Rewrite to use
29096         multiple -e instead of multiple sed forks, suggested by Eric Blake
29097         <ebb9@byu.net>.
29098         * tests/test-argp-version-etc-1.sh: Likewise.
29099
29100 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29101
29102         * tests/test-version-etc.sh: Don't fail on different
29103         project/version.
29104
29105 2009-08-12  Bruno Haible  <bruno@clisp.org>
29106
29107         Tests for modules 'getopt-posix', 'getopt-gnu'.
29108         * modules/getopt-posix-tests: New file.
29109         * tests/test-getopt.c: New file.
29110         * tests/test-getopt.h: New file.
29111         * tests/test-getopt_long.h: New file.
29112
29113         New modules 'getopt-posix', 'getopt-gnu'.
29114         * modules/getopt-gnu: New file, renamed from modules/getopt.
29115         * modules/getopt-posix: New file.
29116         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
29117         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
29118         (gl_GETOPT): Remove macro.
29119         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
29120         Disable the test against BSD systems that declare optreset. Test
29121         against mingw bug. Test against lack of support of optional arguments
29122         on many platforms.
29123         * doc/glibc-headers/getopt.texi: Update module name and list of
29124         relevant platforms.
29125         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
29126         'getopt-gnu' and more portability problems.
29127         * NEWS: Mention the changes.
29128
29129 2009-08-12  Bruno Haible  <bruno@clisp.org>
29130
29131         Ensure that optarg etc. get declared by <unistd.h>.
29132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
29133         AC_USE_SYSTEM_EXTENSIONS.
29134         * modules/getopt (Depends-on): Add 'extensions'.
29135
29136 2009-08-12  Bruno Haible  <bruno@clisp.org>
29137
29138         Avoid test link errors.
29139         * modules/pipe-filter-ii-tests (Makefile.am): Define
29140         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
29141         * modules/pipe-filter-gi-tests (Makefile.am): Define
29142         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
29143         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29144
29145 2009-08-12  Bruno Haible  <bruno@clisp.org>
29146
29147         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
29148         gl_GETOPT_SUBSTITUTE before.
29149         (gl_GETOPT): Use it.
29150         * m4/argp.m4 (gl_ARGP): Update.
29151         Reported by Sergey Poznyakoff.
29152
29153         * m4/getopt.m4: Reorder macros.
29154         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
29155         (gl_GETOPT_SUBSTITUTE): Remove macro.
29156
29157 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29158
29159         Minor improvement in gitlog-to-changelog
29160
29161         * build-aux/gitlog-to-changelog: New option `--format' makes
29162         output format string configurable.
29163
29164 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29165
29166         Optimize exclude: use hash tables for non-wildcard patterns.
29167
29168         * lib/exclude.c: Include hash.h and mbuiter.h
29169         (struct exclude_pattern, exclude_segment): New data types.
29170         (struct exclude): Rewrite.
29171         (fnmatch_pattern_has_wildcards): New function.
29172         (new_exclude_segment, free_exclude_segment): New functions.
29173         (excluded_file_pattern_p, excluded_file_name_p): New functions.
29174         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
29175         * lib/exclude.h (is_fnmatch_pattern): New prototype.
29176         * modules/exclude: Depend on hash and mbuiter.
29177
29178         * modules/exclude-tests: New file.
29179         * tests/test-exclude.c: New file.
29180         * tests/test-exclude1.sh: New file.
29181         * tests/test-exclude2.sh: New file.
29182         * tests/test-exclude3.sh: New file.
29183         * tests/test-exclude4.sh: New file.
29184         * tests/test-exclude5.sh: New file.
29185         * tests/test-exclude6.sh: New file.
29186         * tests/test-exclude7.sh: New file.
29187
29188 2009-08-12  Bruno Haible  <bruno@clisp.org>
29189
29190         Ensure that getopt() gets declared by <unistd.h>.
29191         * lib/unistd.in.h: Conditionally include getopt.h.
29192         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
29193         Set GNULIB_UNISTD_H_GETOPT.
29194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29195         GNULIB_UNISTD_H_GETOPT.
29196         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
29197
29198 2009-08-12  Bruno Haible  <bruno@clisp.org>
29199
29200         Clarify logic.
29201         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
29202         gl_replace_getopt instead of GETOPT_H.
29203
29204 2009-08-12  Bruno Haible  <bruno@clisp.org>
29205
29206         * m4/getopt.m4: Add comments.
29207
29208 2009-08-12  Bruno Haible  <bruno@clisp.org>
29209
29210         Disable multithread support by default on Cygwin 1.5.x.
29211         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
29212         set gl_use_threads=no if not specified otherwise.
29213
29214 2009-08-11  Bruno Haible  <bruno@clisp.org>
29215
29216         Avoid compilation error on NetBSD 5.0.
29217         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
29218         * tests/test-stdio.c: Likewise.
29219         * tests/test-stdlib.c: Likewise.
29220         * tests/test-string.c: Likewise.
29221         * tests/test-unistd.c: Likewise.
29222         Reported by Greg Troxel <gdt@ir.bbn.com>
29223         at <https://savannah.gnu.org/support/?106973>.
29224
29225 2009-08-11  Bruno Haible  <bruno@clisp.org>
29226
29227         * modules/dup2-tests (Depends-on): Remove close.
29228
29229         Undo 2009-07-19 commit.
29230         * modules/acl-tests (Depends-on): Remove close.
29231         * modules/binary-io-tests (Depends-on): Likewise.
29232         * modules/closein-tests (Depends-on): Likewise.
29233         * modules/flock-tests (Depends-on): Likewise.
29234         * modules/fsync-tests (Depends-on): Likewise.
29235         * modules/lseek-tests (Depends-on): Likewise.
29236         * modules/pipe-tests (Depends-on): Likewise.
29237         * modules/posix_spawn-tests (Depends-on): Likewise.
29238         * modules/posix_spawnp-tests (Depends-on): Likewise.
29239         * modules/stat-time-tests (Depends-on): Likewise.
29240         * modules/yesno-tests (Depends-on): Likewise.
29241
29242 2009-08-10  Bruno Haible  <bruno@clisp.org>
29243
29244         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
29245
29246 2009-08-10  Bruno Haible  <bruno@clisp.org>
29247
29248         Fix a gcc warning.
29249         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
29250
29251 2009-08-10  Bruno Haible  <bruno@clisp.org>
29252
29253         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
29254         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
29255         not only the first time.
29256         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
29257         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
29258         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
29259         is 1, not only the the first time.
29260
29261 2009-08-10  Bruno Haible  <bruno@clisp.org>
29262
29263         Make it possible to use module 'gethostname' without module 'close'.
29264         * lib/unistd.in.h (close): Evoke a link error only if
29265         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29267         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29268         * modules/unistd (Makefile.am): Substitute
29269         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29270         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
29271         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29272         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29273         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29274         * modules/sys_ioctl (Makefile.am): Substitute
29275         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29276         * modules/socket (configure.ac): On native Windows, set
29277         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
29278         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29279         Reported by Sam Steingold <sds@gnu.org>.
29280
29281 2009-08-10  Bruno Haible  <bruno@clisp.org>
29282
29283         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
29284         * modules/ioctl (configure.ac): Likewise.
29285
29286 2009-08-10  Bruno Haible  <bruno@clisp.org>
29287
29288         Avoid collision between gnulib wrapper and libintl wrapper.
29289         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
29290         already defined in intl/printf.c.
29291         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
29292         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
29293
29294 2009-08-09  Bruno Haible  <bruno@clisp.org>
29295
29296         Make <sys/select.h> really self-contained, also on Solaris 10.
29297         * lib/sys_select.in.h: Include <string.h>.
29298         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
29299         Solaris 10 problem.
29300         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
29301         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
29302         Reported by Jim Meyering.
29303
29304 2009-08-09  Bruno Haible  <bruno@clisp.org>
29305
29306         Avoid warnings from 'aclocal' that are due to a use of macro name
29307         AM_XGETTEXT_OPTION that is not defined in automake.
29308         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
29309         automake.
29310         * modules/error (configure.ac): Likewise.
29311         * modules/propername (configure.ac): Likewise.
29312         * modules/vasprintf (configure.ac): Likewise.
29313         * modules/verror (configure.ac): Likewise.
29314         * modules/xprintf (configure.ac): Likewise.
29315         * modules/xvasprintf (configure.ac): Likewise.
29316
29317 2009-08-08  Bruno Haible  <bruno@clisp.org>
29318
29319         Avoid compilation error in C++ mode.
29320         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
29321         Reported by Sam Steingold <sds@gnu.org>.
29322
29323 2009-08-08  Bruno Haible  <bruno@clisp.org>
29324
29325         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
29326         for the various Unix platforms.
29327         * doc/posix-headers/limits.texi: Update platforms list regarding
29328         HOST_NAME_MAX.
29329         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29330
29331 2009-08-07  Jim Meyering  <meyering@redhat.com>
29332
29333         selinux-at: fix typo in a comment
29334         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
29335         Spotted by Paolo Bonzini.
29336
29337         selinux-at: remove redundant m4 code, add documentation
29338         * modules/selinux-at (configure.ac): Remove redundant code.
29339         LIB_SELINUX is already set via the dependent module, selinux-h.
29340         (Include): Add quotes around selinux-at.h.
29341         * lib/selinux-at.h: Add documentation.
29342         Reported by Bruno Haible in
29343         http://marc.info/?l=gnulib-bug&m=124958988300749
29344
29345 2009-08-07  Bruno Haible  <bruno@clisp.org>
29346
29347         Avoid link error on MacOS X 10.3 and 10.4.
29348         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
29349         on non-ELF systems.
29350         * lib/argp-pv.c (argp_program_version): Likewise.
29351         Reported by Simon Josefsson.
29352
29353 2009-08-07  Simon Josefsson  <simon@josefsson.org>
29354
29355         * tests/test-version-etc.sh: Use $EXEEXT.
29356
29357 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
29358
29359         update-copyright: update documentation to point to maint.mk
29360         * build-aux/update-copyright: Here.
29361
29362 2009-08-06  Jim Meyering  <meyering@redhat.com>
29363
29364         maint.mk: support update-copyright-local
29365         * top/maint.mk (update-copyright-local): Define place-holder.
29366         (update-copyright): Depend on $(update-copyright-local).
29367
29368 2009-08-06  Jim Meyering  <meyering@redhat.com>
29369
29370         selinux-at: new module
29371         Initially written for coreutils, this module will soon be
29372         used by findutils, too.
29373         * MODULES.html.sh [Misc]: Add selinux-at.
29374         * lib/selinux-at.h: New file, from coreutils.
29375         * lib/selinux-at.c: Likewise.
29376         * modules/selinux-at: Likewise.
29377         (License): Change from LGPL to GPL, since it depends
29378         on the GPL'd openat module.
29379
29380         doc: update README
29381         * README: Remove references to cogito.
29382         Remove cvs-repo-updating instructions from 2007.
29383         Don't imply that CVS is better if you have limited disk space.
29384
29385 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29386
29387         update-copyright: support C-style comments
29388         * build-aux/update-copyright: Implement and document.
29389         * tests/test-update-copyright.sh: Test.
29390
29391 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29392
29393         update-copyright: support omitted "(C)"
29394         * build-aux/update-copyright: Implement and document.  Also,
29395         allow variable whitespace before "(C)".
29396         * tests/test-update-copyright.sh: Test.
29397
29398 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29399
29400         update-copyright: don't trip on non-FSF copyright statements
29401         * build-aux/update-copyright: Fix so that the first correctly
29402         formatted FSF copyright statement is recognized no matter what
29403         appears before it.  Update documentation.
29404         * tests/test-update-copyright.sh: Test that.
29405
29406 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29407
29408         update-copyright: clean up code a little
29409         * build-aux/update-copyright: Append "_re" to the name of any
29410         variable holding a regular expression.
29411         Replace "old" and "new" with "stmt" in variable names.
29412         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
29413         handled correctly.
29414         Format code more consistently.
29415
29416 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29417
29418         update-copyright-tests: improve portability
29419         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
29420         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
29421
29422 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29423
29424         update-copyright: support @copyright{} and &copy;
29425         * build-aux/update-copyright: Implement and document.
29426         * tests/test-update-copyright.sh: Test.
29427
29428 2009-08-04  Jim Meyering  <meyering@redhat.com>
29429
29430         update-copyright-tests: correctly test EOL=\r\n handling
29431         * tests/test-update-copyright.sh: Put \r at the end of some lines
29432         for the dos-eol tests.  Based on a patch by Joel E. Denny.
29433
29434         maint.mk: make update-copyright exclusion list more configurable
29435         * top/maint.mk (update-copyright): Default to excluding COPYING,
29436         but allow an override, in case someone does want to update that file.
29437
29438         maint.mk: don't update copyright date in COPYING
29439         * top/maint.mk (update-copyright): Exclude COPYING.
29440
29441         maint.mk: add a copyright-updating rule
29442         * top/maint.mk (update-copyright): New rule.
29443         Derived from coreutils/Makefile.am.
29444
29445         update-copyright: rename some variables
29446         * build-aux/update-copyright: Rename a few variables for clarity.
29447         Tweak syntax.  List Joel E. Denny as coauthor.
29448
29449 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29450
29451         update-copyright: fix bug for 2-digit last year and add tests
29452         * build-aux/update-copyright: Fix bug.
29453         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
29454         specified.
29455         * modules/update-copyright-tests: New
29456         * tests/test-update-copyright.sh: New.
29457
29458 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29459
29460         update-copyright: handle leading tabs in line prefix
29461         * build-aux/update-copyright: Count leading tabs as 8 spaces
29462         when computing margin.  This helps with the formatting of
29463         ChangeLogs, for example.
29464         Fix documentation a little.
29465
29466 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29467
29468         update-copyright: support EOL=\r\n
29469         * build-aux/update-copyright: Implement that.
29470
29471 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29472
29473         update-copyright: automatically format copyright statements
29474         * build-aux/update-copyright: Implement that.
29475         Also, be a little more predictable and safer by always failing
29476         when the full copyright format is not perfectly recognized as an
29477         unbroken whole.  Discussed at
29478         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
29479         Rewrite documentation.
29480
29481 2009-08-03  Bruno Haible  <bruno@clisp.org>
29482
29483         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
29484
29485 2009-08-02  Bruno Haible  <bruno@clisp.org>
29486
29487         Tests for module 'uname'.
29488         * modules/uname-tests: New file.
29489         * tests/test-uname.c: New file.
29490
29491         New module 'uname'.
29492         * lib/uname.c: New file.
29493         * m4/uname.m4: New file.
29494         * modules/uname: New file.
29495         * doc/posix-functions/uname.texi: Mention the new module.
29496
29497 2009-08-02  Bruno Haible  <bruno@clisp.org>
29498
29499         Tests for module 'sys_utsname'.
29500         * modules/sys_utsname-tests: New file.
29501         * tests/test-sys_utsname.c: New file.
29502
29503         New module 'sys_utsname'.
29504         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
29505         * m4/sys_utsname_h.m4: New file.
29506         * modules/sys_utsname: New file.
29507         * doc/posix-headers/sys_utsname.texi: Mention the new module.
29508
29509 2009-08-02  Bruno Haible  <bruno@clisp.org>
29510
29511         Implicitly initialize the sockets library.
29512         * lib/gethostname.c: Include sockets.h.
29513         (rpl_gethostname): Invoke gl_sockets_startup.
29514         * lib/socket.c: Include sockets.h.
29515         (rpl_socket): Invoke gl_sockets_startup.
29516         * modules/gethostname (Depends-on): Add sockets.
29517         * modules/socket (Depends-on): Likewise.
29518         * tests/test-poll.c: Don't include sockets.h.
29519         (main): Don't invoke gl_sockets_startup.
29520         * tests/test-select.c: Don't include sockets.h.
29521         (main): Don't invoke gl_sockets_startup.
29522
29523 2009-08-02  Bruno Haible  <bruno@clisp.org>
29524
29525         Allow multiple calls to gl_sockets_startup.
29526         * lib/sockets.c (initialized_sockets_version): New variable.
29527         (gl_sockets_startup): Do nothing if already called for this or a higher
29528         version.
29529         (gl_sockets_cleanup): Reset initialized_sockets_version.
29530
29531 2009-08-03  Simon Josefsson  <simon@josefsson.org>
29532
29533         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
29534         different project/version.
29535
29536 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
29537             Bruno Haible  <bruno@clisp.org>
29538
29539         Tests for module 'pipe-filter-gi'.
29540         * modules/pipe-filter-gi-tests: New file.
29541         * tests/test-pipe-filter-gi1.sh: New file.
29542         * tests/test-pipe-filter-gi1.c: New file.
29543         * tests/test-pipe-filter-gi2.sh: New file.
29544         * tests/test-pipe-filter-gi2-main.c: New file.
29545         * tests/test-pipe-filter-gi2-child.c: New file.
29546
29547         New module 'pipe-filter-gi'.
29548         * lib/pipe-filter-gi.c: New file.
29549         * modules/pipe-filter-gi: New file.
29550
29551 2009-08-02  Bruno Haible  <bruno@clisp.org>
29552             Paolo Bonzini  <bonzini@gnu.org>
29553
29554         Tests for module 'pipe-filter-ii'.
29555         * modules/pipe-filter-ii-tests: New file.
29556         * tests/test-pipe-filter-ii1.sh: New file.
29557         * tests/test-pipe-filter-ii1.c: New file.
29558         * tests/test-pipe-filter-ii2.sh: New file.
29559         * tests/test-pipe-filter-ii2-main.c: New file.
29560         * tests/test-pipe-filter-ii2-child.c: New file.
29561
29562         New module 'pipe-filter-ii'.
29563         * lib/pipe-filter.h: New file.
29564         * lib/pipe-filter-ii.c: New file.
29565         * lib/pipe-filter-aux.h: New file.
29566         * modules/pipe-filter-ii: New file.
29567
29568 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29569
29570         * lib/gc-libgcrypt.c: Change copyright to FSF.
29571         * lib/gc-gnulib.c: Likewise.
29572
29573 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
29574
29575         * lib/gethostname.c: Include limits.h.
29576
29577 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29578             Bruno Haible  <bruno@clisp.org>
29579
29580         Ensure HOST_NAME_MAX as part of the gethostname module.
29581         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
29582         define also HOST_NAME_MAX.
29583         * tests/test-gethostname.c: Include <limits.h>.
29584         (main): Check also HOST_NAME_MAX.
29585         * doc/posix-headers/limits.texi: Document the mingw problem.
29586
29587 2009-08-02  Bruno Haible  <bruno@clisp.org>
29588
29589         * lib/gethostname.c (gethostname): Fix handling of large len argument.
29590         Add comments.
29591
29592 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29593
29594         * lib/gethostname.c: Add Windows wrapper.
29595         * m4/gethostname.m4: Look for gethostname in -lws2_32.
29596         * modules/gethostname: Depend on sys_socket & errno, for also
29597         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
29598         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
29599
29600 2009-07-31  Jim Meyering  <meyering@redhat.com>
29601
29602         getloadavg: fix symbol name in comment
29603         * lib/getloadavg.c: Correct a typo I introduced when adding
29604         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
29605         Matt Kraai spotted the problem.
29606
29607 2009-07-29  Matt Kraai  <mkraai@beckman.com>
29608
29609         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
29610         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
29611         code also if ! defined N_NAME_POINTER.
29612         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
29613         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
29614         but the n_name member is a 12-byte array.
29615
29616 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
29617
29618         update-copyright: generalize comment handling
29619         * build-aux/update-copyright: Handle copyright statements
29620         within more comment styles.
29621         Document usage.
29622         Report any file with an external copyright holder or parse failure.
29623
29624 2009-07-29  Jim Meyering  <meyering@redhat.com>
29625
29626         mktime: correct setting of REPLACE_MKTIME
29627         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
29628
29629         update-copyright: new module
29630         * modules/update-copyright: New file.
29631         * build-aux/update-copyright: New file.
29632         * MODULES.html.sh (maint+release support): Add update-copyright.
29633
29634 2009-07-27  Bruno Haible  <bruno@clisp.org>
29635
29636         Fix compilation error when <ctime> is used and mktime is replaced.
29637         * lib/time.in.h (mktime): New declaration.
29638         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
29639         REPLACE_MKTIME instead of defining mktime in config.h.
29640         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
29641         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
29642         Reported by Ross McFarland <rwmcfa1@neces.com>.
29643
29644 2009-07-27  Bruno Haible  <bruno@clisp.org>
29645
29646         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
29647         Reported by Matt Kraai <mkraai@beckman.com>.
29648
29649 2009-07-25  Jim Meyering  <meyering@redhat.com>
29650
29651         maint.mk: avoid warnings about missing files
29652         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
29653         diagnostic when .prev-version does not exist.
29654         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
29655         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
29656         nonexistent cfg.mk.
29657         Suggestions from Simon Josefsson.
29658
29659 2009-07-25  Bruno Haible  <bruno@clisp.org>
29660
29661         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
29662         defined as macros. Needed on QNX 6.4.1.
29663         Reported by Matt Kraai <mkraai@beckman.com>.
29664
29665 2009-07-23  Jim Meyering  <meyering@redhat.com>
29666
29667         maint.mk: invoke "make dist" with a working value of XZ_OPT
29668         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
29669
29670 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
29671
29672         Make fseeko.c compile on QNX.
29673         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
29674
29675 2009-07-22  Peter Simons  <simons@cryp.to>
29676
29677         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
29678         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
29679         * lib/md4.h: Likewise.
29680         * lib/md5.h: Likewise.
29681         * lib/sha1.h: Likewise.
29682         * lib/sha256.h: Likewise.
29683         * lib/sha512.h: Likewise.
29684
29685         tests-sha1: don't assign literal string to 'char *' variable
29686         * tests/test-sha1.c (main): Declare locals with "const" to match
29687         attributes of the right hand side.
29688
29689 2009-07-21  Eric Blake  <ebb9@byu.net>
29690
29691         dup2: fix more mingw problems
29692         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
29693         fd to itself.
29694         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29695         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
29696         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
29697         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
29698         care of mingw bugs.
29699
29700 2009-07-21  Jim Meyering  <meyering@redhat.com>
29701
29702         vc-list-files: avoid failure when /bin/sh is dash
29703         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
29704         On some Debian based systems, /bin/sh is a symlink to dash, and running
29705         this command would omit the "/" following each 'tests' prefix:
29706           dash -x build-aux/vc-list-files -C . tests
29707         That is because bash and dash work differently:
29708           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
29709           bash ok
29710           dash odd
29711
29712 2009-07-21  Eric Blake  <ebb9@byu.net>
29713
29714         dup2-tests: test previous patch
29715         * modules/dup2-tests: New file.
29716         * tests/test-dup2.c: Likewise.
29717         * tests/test-open.c (main): Avoid unspecified behavior.
29718         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
29719         test.
29720
29721         dup2: work around mingw and cygwin 1.5 bug
29722         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
29723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29724         * modules/unistd (Makefile.am): Substitute it.
29725         * lib/unistd.in.h (dup2): Declare the replacement.
29726         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
29727         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
29728         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
29729         * modules/execute (Depends-on): Add dup2.
29730         * modules/fseterr (Depends-on): Likewise.
29731         * modules/pipe (Depends-on): Likewise.
29732         * modules/posix_spawn-internal (Depends-on): Likewise.
29733
29734 2009-07-21  Bruno Haible  <bruno@clisp.org>
29735
29736         * modules/.gitattributes: New file.
29737
29738 2009-07-20  Bruno Haible  <bruno@clisp.org>
29739
29740         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
29741         (main): Use it.
29742
29743 2009-07-20  Eric Blake  <ebb9@byu.net>
29744
29745         test-pipe: make a bit more robust.
29746         * tests/test-pipe.c (myerr): Allow error messages regardless of
29747         what we do to stderr.
29748         (test_pipe): Rearrange to avoid deadlock.
29749         (child_main): Try a larger read, to ensure we avoided deadlock.
29750         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
29751         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
29752         if misused.
29753
29754 2009-07-19  Jim Meyering  <meyering@redhat.com>
29755
29756         fts: avoid false-positive cycle-detection
29757         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
29758         for each new command line argument.
29759
29760 2009-07-19  Bruno Haible  <bruno@clisp.org>
29761
29762         Fix build error on mingw with the modules sys_select and unistd.
29763         * modules/acl-tests (Depends-on): Add close.
29764         * modules/binary-io-tests (Depends-on): Likewise.
29765         * modules/closein-tests (Depends-on): Likewise.
29766         * modules/flock-tests (Depends-on): Likewise.
29767         * modules/fsync-tests (Depends-on): Likewise.
29768         * modules/lseek-tests (Depends-on): Likewise.
29769         * modules/pipe-tests (Depends-on): Likewise.
29770         * modules/posix_spawn-tests (Depends-on): Likewise.
29771         * modules/posix_spawnp-tests (Depends-on): Likewise.
29772         * modules/stat-time-tests (Depends-on): Likewise.
29773         * modules/yesno-tests (Depends-on): Likewise.
29774
29775 2009-07-19  Bruno Haible  <bruno@clisp.org>
29776
29777         Unify conditionals.
29778         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
29779         macros, not at the compiler macros.
29780         * lib/pipe.c: Likewise.
29781         * lib/execute.c: Likewise.
29782         * lib/spawni.c: Likewise.
29783
29784 2009-07-19  Bruno Haible  <bruno@clisp.org>
29785
29786         Fix handling of closed stdin/stdout/stderr on mingw.
29787         * lib/w32spawn.h: Include unistd.h.
29788         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
29789         file descriptor with O_NOINHERIT flag.
29790         (fd_safer_noinherit): New function, based on fd-safer.c.
29791         (dup_safer_noinherit): New function, based on dup-safer.c.
29792         (undup_safer_noinherit): New function.
29793         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
29794         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
29795         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
29796         instead of fd_safer.
29797         * tests/test-pipe.c: Include <windows.h>.
29798         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
29799         result.
29800
29801         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
29802         from main.
29803         (test_pipe): Pass an extra argument for disambiguation.
29804         (main): Invoke parent_main or child_main.
29805
29806         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
29807         consistently.
29808
29809 2009-07-18  Eric Blake  <ebb9@byu.net>
29810
29811         test-pipe: fix mingw build
29812         * tests/test-pipe.c (main): Avoid fcntl on mingw.
29813
29814 2009-07-18  Bruno Haible  <bruno@clisp.org>
29815
29816         * modules/pipe-tests (Makefile.am): Fix typo.
29817
29818 2009-07-18  Eric Blake  <ebb9@byu.net>
29819
29820         error: fix mingw build
29821         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
29822         Reported by Bruno Haible.
29823
29824         error: avoid undefined use of stdout
29825         * lib/error.c (error, error_at_line): Check that fd 1 is open
29826         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
29827         is handling faults and the close_stdout module wants to report the
29828         detection of closed stdout as an error.
29829
29830 2009-07-17  Eric Blake  <ebb9@byu.net>
29831
29832         pipe: be robust in face of closed fds
29833         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
29834         should cause child to misbehave.
29835         * modules/pipe-tests: New module.
29836         * tests/test-pipe.c: New file.
29837         * tests/test-pipe.sh: New file.
29838         Reported by Akim Demaille.
29839
29840 2009-07-14  Bruno Haible  <bruno@clisp.org>
29841
29842         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
29843         Reported by anonymous kc.
29844
29845 2009-07-07  Jim Meyering  <meyering@redhat.com>
29846
29847         maint.mk: don't look for translatable strings in *.m4 or *.mk
29848         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
29849         when searching for translatable strings.
29850
29851 2009-07-05  Jim Meyering  <meyering@redhat.com>
29852
29853         remove superfluous parentheses in STREQ definition
29854         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
29855         * lib/getugroups.c (STREQ): Likewise.
29856         * lib/fnmatch.c (STREQ): Likewise.
29857         Spotted by Bruno Haible.
29858
29859 2009-07-04  Jim Meyering  <meyering@redhat.com>
29860
29861         argv-iter: new module
29862         * MODULES.html.sh: Add argv-iter.
29863         * lib/argv-iter.c, lib/argv-iter.h: New files.
29864         * modules/argv-iter: New file.
29865         * modules/argv-iter-tests: New file.
29866         * tests/test-argv-iter.c: Test it.
29867
29868 2009-07-04  Bruno Haible  <bruno@clisp.org>
29869
29870         Fix assertion.
29871         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
29872         contains more exact copies of a given entry than file2, leave the extra
29873         copies unpaired rather than aborting.
29874         Reported by Eric Blake.
29875
29876 2009-07-02  Bruno Haible  <bruno@clisp.org>
29877
29878         Speedup git-merge-changelog for git cherry-pick.
29879         * lib/git-merge-changelog.c (struct entries_mapping): New type.
29880         (entries_mapping_get): New function, extracted from compute_mapping.
29881         (entries_mapping_reverse_get): New function.
29882         (compute_mapping): Add a 'full' argument. Return the result in a
29883         'struct entries_mapping'.
29884         (main): Update. Access the mappings through entries_mapping_get.
29885         Reported by Eric Blake.
29886
29887 2009-07-02  Bruno Haible  <bruno@clisp.org>
29888
29889         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
29890         best_i.
29891
29892 2009-07-02  Bruno Haible  <bruno@clisp.org>
29893
29894         Speed up approximate search for matching ChangeLog entries.
29895         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
29896         argument. Call fstrcmp_bounded instead of fstrcmp.
29897         (compute_mapping, try_split_merged_entry, main): Update callers.
29898
29899 2009-07-02  Bruno Haible  <bruno@clisp.org>
29900
29901         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
29902
29903 2009-06-30  Bruno Haible  <bruno@clisp.org>
29904
29905         Reduce the number of uc_is_cased calls.
29906         * lib/unicase.h (casing_suffix_context_t): Add
29907         'first_char_except_ignorable' field.
29908         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
29909         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
29910         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
29911         Update initializer.
29912         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
29913         case-ignorable characters.
29914         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
29915         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
29916         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
29917         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
29918         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
29919
29920 2009-06-30  Bruno Haible  <bruno@clisp.org>
29921
29922         Tests for module 'unicase/ignorable'.
29923         * modules/unicase/ignorable-tests: New file.
29924         * tests/unicase/test-ignorable.c: New file, generated by
29925         gen-uni-tables.
29926
29927         Tests for module 'unicase/cased'.
29928         * modules/unicase/cased-tests: New file.
29929         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
29930         * tests/unicase/test-predicate-part1.h: New file, derived from
29931         tests/unictype/test-predicate-part1.h.
29932         * tests/unicase/test-predicate-part2.h: New file, same as
29933         tests/unictype/test-predicate-part2.h.
29934
29935         Fix evaluation of "Before C" condition of FINAL_SIGMA.
29936         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
29937         (output_casing_properties): New function.
29938         (main): Call it.
29939         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
29940         * lib/unicase/cased.c: Include unictype/bitmap.h.
29941         (uc_is_cased): Define through a bitmap lookup.
29942         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
29943         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
29944         (uc_is_case_ignorable): Define through a bitmap lookup.
29945         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
29946         lib/unictype/bitmap.h.
29947         (Depends-on): Add inline. Clean up.
29948         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
29949         lib/unictype/bitmap.h.
29950         (Depends-on): Add inline. Clean up.
29951         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
29952         recognition.
29953         * tests/unicase/test-u16-tolower.c (main): Likewise.
29954         * tests/unicase/test-u32-tolower.c (main): Likewise.
29955
29956 2009-06-30  Bruno Haible  <bruno@clisp.org>
29957
29958         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
29959         * lib/unicase/u16-casemap.c: Likewise.
29960         * lib/unicase/u32-casemap.c: Likewise.
29961
29962 2009-06-29  Bruno Haible  <bruno@clisp.org>
29963
29964         Define u32_casefold as a wrapper around u32_ct_casefold.
29965         * lib/unicase/u32-casefold.c: Update.
29966         * modules/unicase/u32-casefold (Depends-on): Add
29967         unicase/u32-ct-casefold, unicase/empty-prefix-context,
29968         unicase/empty-suffix-context. Clean up.
29969
29970         Define u16_casefold as a wrapper around u16_ct_casefold.
29971         * lib/unicase/u16-casefold.c: Update.
29972         * modules/unicase/u16-casefold (Depends-on): Add
29973         unicase/u16-ct-casefold, unicase/empty-prefix-context,
29974         unicase/empty-suffix-context. Clean up.
29975
29976         Define u8_casefold as a wrapper around u8_ct_casefold.
29977         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
29978         * lib/unicase/u8-casefold.c: Update.
29979         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
29980         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29981
29982         Define u32_totitle as a wrapper around u32_ct_totitle.
29983         * lib/unicase/u32-totitle.c: Update.
29984         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
29985         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29986
29987         Define u16_totitle as a wrapper around u16_ct_totitle.
29988         * lib/unicase/u16-totitle.c: Update.
29989         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
29990         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29991
29992         Define u8_totitle as a wrapper around u8_ct_totitle.
29993         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
29994         functions.
29995         (FUNC): Delegate to U_CT_TOTITLE.
29996         * lib/unicase/u8-totitle.c: Update.
29997         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
29998         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29999
30000         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
30001         invocation.
30002         * modules/unicase/u32-tolower (Depends-on): Add
30003         unicase/empty-prefix-context, unicase/empty-suffix-context.
30004
30005         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
30006         invocation.
30007         * modules/unicase/u16-tolower (Depends-on): Add
30008         unicase/empty-prefix-context, unicase/empty-suffix-context.
30009
30010         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
30011         * modules/unicase/u8-tolower (Depends-on): Add
30012         unicase/empty-prefix-context, unicase/empty-suffix-context.
30013
30014         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
30015         invocation.
30016         * modules/unicase/u32-toupper (Depends-on): Add
30017         unicase/empty-prefix-context, unicase/empty-suffix-context.
30018
30019         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
30020         invocation.
30021         * modules/unicase/u16-toupper (Depends-on): Add
30022         unicase/empty-prefix-context, unicase/empty-suffix-context.
30023
30024         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
30025         * modules/unicase/u8-toupper (Depends-on): Add
30026         unicase/empty-prefix-context, unicase/empty-suffix-context.
30027
30028         New module 'unicase/u32-ct-casefold'.
30029         * lib/unicase/u32-ct-casefold.c: New file.
30030         * modules/unicase/u32-ct-casefold: New file.
30031
30032         New module 'unicase/u16-ct-casefold'.
30033         * lib/unicase/u16-ct-casefold.c: New file.
30034         * modules/unicase/u16-ct-casefold: New file.
30035
30036         New module 'unicase/u8-ct-casefold'.
30037         * lib/unicase/u8-ct-casefold.c: New file.
30038         * lib/unicase/u-ct-casefold.h: New file, derived from
30039         lib/unicase/u-casefold.h.
30040         * modules/unicase/u8-ct-casefold: New file.
30041
30042         New module 'unicase/u32-ct-totitle'.
30043         * lib/unicase/u32-ct-totitle.c: New file.
30044         * modules/unicase/u32-ct-totitle: New file.
30045
30046         New module 'unicase/u16-ct-totitle'.
30047         * lib/unicase/u16-ct-totitle.c: New file.
30048         * modules/unicase/u16-ct-totitle: New file.
30049
30050         New module 'unicase/u8-ct-totitle'.
30051         * lib/unicase/u8-ct-totitle.c: New file.
30052         * lib/unicase/u-ct-totitle.h: New file, derived from
30053         lib/unicase/u-totitle.h.
30054         * modules/unicase/u8-ct-totitle: New file.
30055
30056         New module 'unicase/u32-ct-tolower'.
30057         * lib/unicase/u32-ct-tolower.c: New file.
30058         * modules/unicase/u32-ct-tolower: New file.
30059
30060         New module 'unicase/u16-ct-tolower'.
30061         * lib/unicase/u16-ct-tolower.c: New file.
30062         * modules/unicase/u16-ct-tolower: New file.
30063
30064         New module 'unicase/u8-ct-tolower'.
30065         * lib/unicase/u8-ct-tolower.c: New file.
30066         * modules/unicase/u8-ct-tolower: New file.
30067
30068         New module 'unicase/u32-ct-toupper'.
30069         * lib/unicase/u32-ct-toupper.c: New file.
30070         * modules/unicase/u32-ct-toupper: New file.
30071
30072         New module 'unicase/u16-ct-toupper'.
30073         * lib/unicase/u16-ct-toupper.c: New file.
30074         * modules/unicase/u16-ct-toupper: New file.
30075
30076         New module 'unicase/u8-ct-toupper'.
30077         * lib/unicase/u8-ct-toupper.c: New file.
30078         * modules/unicase/u8-ct-toupper: New file.
30079
30080         Add context arguments to u*_casemap functions.
30081         * lib/unicase/unicasemap.h: Include unicase.h.
30082         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
30083         suffix_context arguments.
30084         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
30085         functions.
30086         (FUNC): Add prefix_context and suffix_context arguments. Use
30087         uc_is_cased and uc_is_case_ignorable.
30088         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
30089         * lib/unicase/u16-casemap.c: Likewise.
30090         * lib/unicase/u32-casemap.c: Likewise.
30091         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
30092         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30093         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
30094         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30095         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
30096         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30097
30098         New module 'unicase/u32-suffix-context'.
30099         * lib/unicase/u32-suffix-context.c: New file.
30100         * modules/unicase/u32-suffix-context: New file.
30101
30102         New module 'unicase/u16-suffix-context'.
30103         * lib/unicase/u16-suffix-context.c: New file.
30104         * modules/unicase/u16-suffix-context: New file.
30105
30106         New module 'unicase/u8-suffix-context'.
30107         * lib/unicase/u8-suffix-context.c: New file.
30108         * lib/unicase/u-suffix-context.h: New file.
30109         * modules/unicase/u8-suffix-context: New file.
30110
30111         New module 'unicase/empty-suffix-context'.
30112         * lib/unicase/empty-suffix-context.c: New file.
30113         * modules/unicase/empty-suffix-context: New file.
30114
30115         New module 'unicase/u32-prefix-context'.
30116         * lib/unicase/u32-prefix-context.c: New file.
30117         * modules/unicase/u32-prefix-context: New file.
30118
30119         New module 'unicase/u16-prefix-context'.
30120         * lib/unicase/u16-prefix-context.c: New file.
30121         * modules/unicase/u16-prefix-context: New file.
30122
30123         New module 'unicase/u8-prefix-context'.
30124         * lib/unicase/u8-prefix-context.c: New file.
30125         * lib/unicase/u-prefix-context.h: New file.
30126         * lib/unicase/context.h: New file.
30127         * modules/unicase/u8-prefix-context: New file.
30128
30129         New module 'unicase/empty-prefix-context'.
30130         * lib/unicase/empty-prefix-context.c: New file.
30131         * modules/unicase/empty-prefix-context: New file.
30132
30133         New module 'unicase/ignorable'.
30134         * lib/unicase/ignorable.c: New file.
30135         * modules/unicase/ignorable: New file.
30136
30137         New module 'unicase/cased'.
30138         * lib/unicase/caseprop.h: New file.
30139         * lib/unicase/cased.c: New file.
30140         * modules/unicase/cased: New file.
30141
30142         New functions for case mapping of substrings.
30143         * lib/unicase.h (casing_prefix_context_t): New type.
30144         (unicase_empty_prefix_context): New variable.
30145         (u8_casing_prefix_context, u16_casing_prefix_context,
30146         u32_casing_prefix_context, u8_casing_prefixes_context,
30147         u16_casing_prefixes_context, u32_casing_prefixes_context): New
30148         declarations.
30149         (casing_suffix_context_t): New type.
30150         (unicase_empty_suffix_context): New variable.
30151         (u8_casing_suffix_context, u16_casing_suffix_context,
30152         u32_casing_suffix_context, u8_casing_suffixes_context,
30153         u16_casing_suffixes_context, u32_casing_suffixes_context,
30154         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
30155         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
30156         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
30157         declarations.
30158
30159 2009-06-28  Jim Meyering  <meyering@redhat.com>
30160
30161         boostrap: indent only with spaces
30162         * build-aux/bootstrap: Indent only with spaces, never TABs.
30163
30164         bootstrap: split long lines
30165         * build-aux/bootstrap: Keep line length < 80.
30166
30167         bootstrap: sync from coreutils
30168         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
30169         just as autoreconf does.  Verify a list of prerequisite
30170         package-name,version-number pairs if defined in bootstrap.conf.
30171         Refer to README-prereq, if prerequisites are not satisfied.
30172
30173 2009-06-27  Eric Blake  <ebb9@byu.net>
30174
30175         tests: add test for bogus NULL definition
30176         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
30177         * tests/test-stdlib.c: Likewise.
30178         * tests/test-string.c: Likewise.
30179         * tests/test-locale.c: Likewise.
30180         * tests/test-unistd.c: Likewise.
30181         * modules/stdio-tests (Depends-on): Add verify.
30182         * modules/stdlib-tests (Depends-on): Likewise.
30183         * modules/string-tests (Depends-on): Likewise.
30184         * modules/locale-tests (Depends-on): Likewise.
30185         * modules/unistd-tests (Depends-on): Likewise.
30186
30187 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
30188
30189         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
30190         self-explaining comment.
30191         * m4/selinux-selinux-h: Update serial.
30192         (gl_LIBSELINUX): New macro, adding a warning for missing development
30193         packages to code extracted from...
30194         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
30195         Add warning for missing development packages here, too.
30196
30197 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
30198
30199         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
30200
30201 2009-06-25  Eric Blake  <ebb9@byu.net>
30202
30203         version-etc: fix regression
30204         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
30205         gcc.
30206         (version_etc): Use it, to catch bugs with trailing NULL.
30207         * lib/version-etc.c (version_etc_arn): Delete unused argument.
30208         (version_etc_va): Fix logic bug.
30209         * modules/version-etc-tests: Add test.
30210         * tests/test-version-etc.c: New file.
30211         * tests/test-version-etc.sh: Likewise.
30212
30213 2009-06-25  Sam Steingold  <sds@gnu.org>
30214
30215         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
30216         mbtowc declaration.
30217
30218 2009-06-25  Eric Blake  <ebb9@byu.net>
30219
30220         fpurge: migrate into <stdio.h>
30221         * lib/fpurge.h: Delete...
30222         * lib/stdio.in.h (fpurge): ...and declare here, instead.
30223         * lib/fpurge.c (fpurge): Change declaring header.
30224         * modules/fpurge (Files): Drop deleted file.
30225         (Depends-on): Add stdio.
30226         (configure.ac): Set witness.
30227         * modules/stdio (Makefile.am): Support fpurge macros.
30228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30229         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
30230         * lib/fflush.c: Update client.
30231         * tests/test-fpurge.c: Likewise.
30232         * NEWS: Mention the change.
30233
30234 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30235
30236         * lib/argp-version-etc.c (program_authors): Add const
30237         qualifier.
30238         * lib/version-etc.c: Fix typos in the comments.
30239         * modules/argp-version-etc: Depends on version-etc.
30240
30241 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30242
30243         argp-version-etc: new module.
30244
30245         * lib/argp-version-etc.c: New file.
30246         * lib/argp-version-etc.h: New file.
30247         * modules/argp-version-etc: New file.
30248         * modules/argp-version-etc-tests: New file.
30249         * tests/test-argp-version-etc.c: New test.
30250         * tests/test-argp-version-etc-1.sh: New test.
30251
30252 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30253
30254         Provide additional interfaces and documentation for version-etc
30255         module.
30256
30257         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
30258         interfaces.
30259         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
30260         prototypes.
30261
30262 2009-06-24  Bruno Haible  <bruno@clisp.org>
30263
30264         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
30265         HAVE_LIB${NAME} macro.
30266         Reported by Sam Steingold <sds@gnu.org>.
30267
30268 2009-06-23  Simon Josefsson  <simon@josefsson.org>
30269
30270         * modules/hash-tests (test_hash_LDADD): Link to libintl when
30271         needed.
30272
30273 2009-06-21  Bruno Haible  <bruno@clisp.org>
30274
30275         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
30276         work.
30277         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
30278         together with LIB${NAME}, LTLIB${NAME}.
30279         Reported by Sam Steingold <sds@gnu.org>.
30280
30281 2009-06-20  Jim Meyering  <meyering@redhat.com>
30282
30283         tests: make sc_require_test_exit_idiom more generic
30284         * top/maint.mk (Exit_witness_file): New overridable variable.
30285         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
30286         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
30287
30288 2009-06-19  Jim Meyering  <meyering@redhat.com>
30289
30290         hash: reverse order of src/dst parameters in an internal interface
30291         * lib/hash.c (transfer_entries): Reverse order of parameters to
30292         put DST before SRC.  Adjust callers.
30293
30294         tests: test-hash: avoid wholesale duplication
30295         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
30296         Instead, use a loop and add a single conditional.
30297
30298         tests: test-hash: allow seed selection via a command line argument
30299         * tests/test-hash.c (get_seed): New function.
30300         (main): Use it.
30301
30302 2009-06-19  Eric Blake  <ebb9@byu.net>
30303
30304         hash: avoid memory leak on allocation failure
30305         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
30306         failure.  Factor repeated algorithm...
30307         (transfer_entries): ...into new helper routine.
30308         (hash_delete): React to hash_rehash return value.
30309
30310         hash: reduce memory pressure in hash_rehash no-op case
30311         * lib/hash.c (next_prime): Avoid overflow.
30312         (hash_initialize): Factor bucket size computation...
30313         (compute_bucket_size): ...into new helper function.
30314         (hash_rehash): Use new function and open coding to reduce memory
30315         pressure, and avoid a memory leak in USE_OBSTACK code.
30316         Reported by Jim Meyering.
30317
30318 2009-06-18  Eric Blake  <ebb9@byu.net>
30319
30320         hash: make rotation more obvious
30321         * modules/hash (Depends-on): Add bitrotate and stdint.
30322         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
30323         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
30324         (SIZE_MAX): Rely on headers for definition.
30325         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
30326         (raw_hasher): Use rotr_sz.
30327         Suggested by Jim Meyering.
30328
30329         hash: fix memory leak in last patch
30330         * lib/hash.c (hash_rehash): Avoid memory leak.
30331
30332         hash: avoid no-op rehashing
30333         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
30334
30335         hash: provide default callback functions
30336         * lib/hash.c (raw_hasher, raw_comparator): New functions.
30337         (hash_initialize): Use them as defaults.
30338         * tests/test-hash.c (main): Test this.
30339
30340         hash: minor optimization
30341         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
30342         when possible.
30343         (hash_initialize): Document this promise.
30344         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
30345         * tests/test-hash.c (hash_compare_strings): Test this.
30346
30347 2009-06-18  Bruno Haible  <bruno@clisp.org>
30348
30349         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
30350         going to be replaced anyway.
30351
30352 2009-06-18  Bruno Haible  <bruno@clisp.org>
30353
30354         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
30355         in one place.
30356         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
30357         be replaced anyway.
30358
30359 2009-06-18  Eric Blake  <ebb9@byu.net>
30360
30361         hash: check for resize before insertion
30362         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
30363         threshold before insertion, so that a pathological hash_rehash
30364         that fills every bucket can still trigger another rehash.
30365
30366 2009-06-18  Jim Meyering  <meyering@redhat.com>
30367
30368         hash-tests: add a loop around the small tests
30369         * tests/test-hash.c (main): Repeat small tests with selected
30370         small initial table sizes.
30371
30372 2009-06-17  Eric Blake  <ebb9@byu.net>
30373
30374         hash: minor cleanups
30375         * lib/hash.h (hash_entry): Make opaque, by moving...
30376         * lib/hash.c (hash_entry): ...here.
30377         (hash_insert): Clarify restrictions on what can be inserted.
30378         (hash_get_next): Clarify when it is safe to remove an element
30379         during traversal.
30380         (check_tuning): Skip verification when tuning is known safe.
30381         (hash_initialize): Clarify restrictions on tuning.
30382
30383 2009-06-17  Jim Meyering  <jim@meyering.net>
30384         and Eric Blake  <ebb9@byu.net>
30385
30386         hash-tests: new module
30387         * modules/hash-tests: New file.
30388         * tests/test-hash.c: New file.
30389
30390 2009-06-17  Eric Blake  <ebb9@byu.net>
30391
30392         strstr-simple: document new module
30393         * MODULES.html.sh: Document new module.
30394
30395         strstr, strcasestr: replace on platforms with broken memchr
30396         * modules/strstr: Split into...
30397         * modules/strstr-simple: ...new module that does not care about
30398         performance, but does care about glibc bug.
30399         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
30400         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
30401         if platform memchr is broken, per Debian bug 521737.
30402         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
30403         memchr.
30404         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
30405         * doc/posix-functions/strstr.texi (strstr): Document the fix.
30406         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30407         * modules/mountlist (Depends-on): Add strstr-simple.
30408         * modules/gen-uni-tables (Depends-on): Likewise.
30409         * modules/argz (Depends-on): Add strstr.
30410
30411 2009-06-17  Bruno Haible  <bruno@clisp.org>
30412
30413         * modules/posix_spawn-internal (Depends-on): Add errno.
30414
30415 2009-06-17  Bruno Haible  <bruno@clisp.org>
30416
30417         Define missing ESTALE on Interix 3.5.
30418         * lib/errno.in.h (ESTALE): Assign a value if missing.
30419         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
30420         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
30421         missing.
30422         * doc/posix-headers/errno.texi: Mention the Interix bug.
30423         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
30424
30425 2009-06-15  Eric Blake  <ebb9@byu.net>
30426
30427         memchr, memchr2: add valgrind exception
30428         * lib/memchr.valgrind: New file.
30429         * lib/memchr2.valgrind: New file.
30430         * modules/memchr (Files): Distribute valgrind file.
30431         * modules/memchr2 (Files): Likewise.
30432
30433         docs: memchr is no longer obsolete
30434         * MODULES.html.sh: Move memchr from obsolete to string.h section.
30435         * lib/string.in.h (memchr): Simplify logic.
30436
30437 2009-06-14  Jim Meyering  <meyering@redhat.com>
30438
30439         link-follow: fix the "checking..." message to not mention trailing slash
30440         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
30441         never considered trailing slashes.
30442
30443 2009-06-14  Bruno Haible  <bruno@clisp.org>
30444
30445         * m4/memchr.m4: Mention also the bug on IA-64.
30446         * doc/posix-functions/memchr.texi: Likewise.
30447
30448 2009-06-12  Eric Blake  <ebb9@byu.net>
30449
30450         memchr: detect broken x86_64 and alpha implementations
30451         * modules/memchr-tests (Depends-on): Move mmap detection...
30452         * modules/memchr (Depends-on): ...here.
30453         (configure.ac): Set indicator.
30454         * lib/string.in.h (memchr): Declare replacement.
30455         * modules/string (Makefile.am): Trigger replacement.
30456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30457         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
30458         bugs.
30459         * doc/posix-functions/memchr.texi (memchr): Document the bug.
30460         * modules/getpagesize (License): Relax license.
30461
30462 2009-06-11  Bruno Haible  <bruno@clisp.org>
30463
30464         * lib/idpriv.h: Add more references.
30465
30466 2009-06-08  Bruno Haible  <bruno@clisp.org>
30467
30468         Tests for module 'idpriv-droptemp'.
30469         * modules/idpriv-droptemp-tests: New file.
30470         * tests/test-idpriv-droptemp.sh: New file.
30471         * tests/test-idpriv-droptemp.su.sh: New file.
30472         * tests/test-idpriv-droptemp.c: New file.
30473
30474         New module 'idpriv-droptemp'.
30475         * lib/idpriv-droptemp.c: New file.
30476         * modules/idpriv-droptemp: New file.
30477
30478 2009-06-08  Bruno Haible  <bruno@clisp.org>
30479
30480         Tests for module 'idpriv-drop'.
30481         * modules/idpriv-drop-tests: New file.
30482         * tests/test-idpriv-drop.sh: New file.
30483         * tests/test-idpriv-drop.su.sh: New file.
30484         * tests/test-idpriv-drop.c: New file.
30485
30486         New module 'idpriv-drop'.
30487         * lib/idpriv.h: New file.
30488         * lib-idpriv-drop.c: New file.
30489         * m4/idpriv.m4: New file.
30490         * modules/idpriv-drop: New file.
30491
30492 2009-06-08  Bruno Haible  <bruno@clisp.org>
30493
30494         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
30495         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30496         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30497         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30498         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30499         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30500         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30501
30502 2009-06-08  Eric Blake  <ebb9@byu.net>
30503
30504         test-strstr: use memory fence, when possible
30505         * tests/test-strstr.c (main): Use memory fence, in order to be
30506         more likely to trigger Debian bug 521737.
30507         * modules/strstr-tests (Files): Pull in additional files.
30508
30509         memchr: no longer obsolete, for wider field testing
30510         * modules/memchr (Status, Notice): Delete, this module is no
30511         longer obsolete.
30512         * modules/vasnprintf (Depends-on): Add memchr.
30513
30514 2009-06-07  Jim Meyering  <meyering@redhat.com>
30515
30516         hash: declare some functions with the warn_unused_result attribute
30517         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
30518
30519 2009-06-07  Bruno Haible  <bruno@clisp.org>
30520
30521         * tests/test-alignof.c: Don't test int64_t if it does not exist.
30522         Reported by Eric Blake.
30523
30524 2009-06-06  Eric Blake  <ebb9@byu.net>
30525
30526         test-alignof: fix typo with long double
30527         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
30528         compiler error.
30529
30530 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
30531
30532         Escape non-texinfo { and }s.
30533         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
30534         markup error.
30535
30536 2009-06-04  Jim Meyering  <meyering@redhat.com>
30537
30538         gitlog-to-changelog: don't infloop on an empty commit log
30539         * build-aux/gitlog-to-changelog: Warn about an empty log message.
30540         Reported by Boris Petersen <transacid@centerim.org>.
30541
30542 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
30543
30544         version-etc: extend for packagers
30545         Add three new configure options, intended for packagers:
30546           --with-packager="packager name"
30547           --with-packager-version="packager-specific version"
30548           --with-packager-bug-reports="packager bug reporting"
30549         An example with coreutils:
30550           $ ./configure \
30551             --with-packager=Gentoo \
30552             --with-packager-bug-report=http://bugs.gentoo.org/ \
30553             --with-packager-version="patchset 1.6"
30554           $ ./src/ls --version | head -n2
30555           ls (GNU coreutils) 7.1-dirty
30556           Packaged by Gentoo (patchset 1.6)
30557         Note that the bug reporting info via --help doesn't show up because
30558         coreutils uses its own custom emit_bug_reporting_address() implementation
30559         in src/system.h.  If it didn't, it'd look like:
30560           $ ./src/ls --help | tail -n4
30561           Report bugs to <bug-coreutils@gnu.org>.
30562           Report Gentoo bugs to <http://bugs.gentoo.org/>.
30563           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
30564           General help using GNU software: <http://www.gnu.org/gethelp/>.
30565         * lib/version-etc.c: Print new information, if provided.
30566         * m4/version-etc.m4: New file.
30567         * modules/version-etc (Files): Add m4/version-etc.m4.
30568         (configure.ac): Add gl_VERSION_ETC.
30569
30570 2009-05-31  Bruno Haible  <bruno@clisp.org>
30571
30572         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
30573         and 'int64_t'.
30574         * modules/alignof-tests (Dependencies): Add stdint.
30575         Reported by Eric Blake.
30576
30577 2009-05-31  Bruno Haible  <bruno@clisp.org>
30578
30579         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
30580         restriction due to compiler bugs.
30581         Reported by Eric Blake.
30582
30583 2009-05-31  Simon Josefsson  <simon@josefsson.org>
30584             Bruno Haible  <bruno@clisp.org>
30585
30586         Fix test-alignof failure.
30587         * lib/alignof.h (alignof_slot): New macro.
30588         (alignof_type): New macro, with the same semantics as the previous
30589         'alignof'.
30590         (alignof): Alias to alignof_slot.
30591         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
30592         check that the results are usable as constant expressions.
30593
30594 2009-05-31  Bruno Haible  <bruno@clisp.org>
30595
30596         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
30597         * tests/test-memchr.c (main): Check that memchr does not read past the
30598         first occurrence of the byte.
30599         * tests/test-strstr.c (main): Update comment.
30600         Suggested by Eric Blake.
30601
30602 2009-05-30  Bruno Haible  <bruno@clisp.org>
30603
30604         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
30605         detail how to use dumpbin.
30606         Reported by David Byron <dbyron@dbyron.com>.
30607
30608 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30609
30610         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
30611
30612 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30613
30614         * m4/manywarnings.m4: Add GCC 4.4 warnings.
30615
30616 2009-05-28  Bruno Haible  <bruno@clisp.org>
30617
30618         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
30619         build-aux/ files.
30620
30621 2009-05-28  Simon Josefsson  <simon@josefsson.org>
30622
30623         * gnulib-tool (func_import): Transform license on build-aux/ files too.
30624
30625 2009-05-27  Simon Josefsson  <simon@josefsson.org>
30626
30627         * gnulib-tool (sed_transform_main_lib_file)
30628         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
30629         regexps.
30630
30631 2009-05-26  Simon Josefsson  <simon@josefsson.org>
30632
30633         * tests/test-strstr.c: Add another self-test.
30634         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
30635         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
30636
30637 2009-05-23  Bruno Haible  <bruno@clisp.org>
30638
30639         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
30640         change.
30641
30642 2009-05-21  Bruno Haible  <bruno@clisp.org>
30643
30644         Simplify use of mode_t varargs.
30645         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
30646         uses 'mode_t' or 'int'.
30647         * lib/openat.c (openat): Likewise.
30648         * lib/open-safer.c (open_safer): Likewise.
30649         * m4/mode_t.m4: New file.
30650         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
30651         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
30652         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
30653         * modules/open (Files): Add m4/mode_t.m4.
30654         * modules/openat (Files): Likewise.
30655         * modules/fcntl-safer (Files): Likewise.
30656         Suggested by Eric Blake.
30657
30658 2009-05-21  Pádraig Brady  <P@draigbrady.com>
30659
30660         * doc/glibc-functions/fallocate.texi: New file.
30661         * doc/gnulib.texi: Include it.
30662
30663 2009-05-21  Eric Blake  <ebb9@byu.net>
30664             Bruno Haible  <bruno@clisp.org>
30665
30666         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
30667         invocations.
30668         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30669
30670 2009-05-21  Eric Blake  <ebb9@byu.net>
30671             Bruno Haible  <bruno@clisp.org>
30672
30673         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
30674         include_next. Fix of 2008-11-20 commit.
30675         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
30676         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
30677         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
30678         NEXT_MATH_H.
30679         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
30680         instead of NEXT_MATH_H.
30681
30682 2009-05-21  Bruno Haible  <bruno@clisp.org>
30683
30684         Avoid redefinition warnings for SIZE_MAX.
30685         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
30686         Reported by Simon Josefsson.
30687
30688 2009-05-21  Bruno Haible  <bruno@clisp.org>
30689
30690         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
30691         AC_CACHE_VAL.
30692
30693 2009-05-20  Bruno Haible  <bruno@clisp.org>
30694
30695         Make zeroptr.h work on mingw.
30696         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
30697         mprotect.
30698         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
30699         * modules/memchr2-tests (configure.ac): Likewise.
30700         * modules/memcmp-tests (configure.ac): Likewise.
30701         * modules/memmem-tests (configure.ac): Likewise.
30702         * modules/memrchr-tests (configure.ac): Likewise.
30703         Reported by Simon Josefsson.
30704
30705 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30706
30707         * tests/test-glob.c: Include string.h for strcmp prototype.
30708
30709 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30710
30711         * modules/getdelim (Depends-on): Add explicit stdint, although it
30712         was implicitly already pulled in via realloc-posix.
30713         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
30714
30715 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30716
30717         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
30718         G. Christensen" <tgc@jupiterrise.com>.
30719         * m4/sys_socket_h.m4: Check for sa_family_t.
30720         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
30721         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
30722         * tests/test-sys_socket.c: Check that sa_family_t works.
30723
30724 2009-05-18  Eric Blake  <ebb9@byu.net>
30725
30726         maint.mk: allow gnulib_dir in VPATH build
30727         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
30728
30729 2009-05-15  Jim Meyering  <meyering@redhat.com>
30730
30731         maint.mk: Give gnulib_dir a default definition.
30732         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
30733         Thus, most packages no longer need to specify this variable in cfg.mk
30734
30735 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
30736
30737         rename.m4: fix typos that would make non-mingw cross-configure fail
30738         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
30739
30740 2009-05-13  Eric Blake  <ebb9@byu.net>
30741
30742         mmap-anon: avoid out-of-order autoconf expansion
30743         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
30744         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
30745         * modules/memchr-tests (Depends-on): Add extensions.
30746         * modules/memchr2-tests (Depends-on): Add extensions.
30747         * modules/memcmp-tests (Depends-on): Add extensions.
30748         * modules/memmem-tests (Depends-on): Add extensions.
30749         * modules/memrchr-tests (Depends-on): Add extensions.
30750
30751 2009-05-13  Bruno Haible  <bruno@clisp.org>
30752
30753         Make some tests ISO C 99 compliant.
30754         * tests/zerosize-ptr.h: New file.
30755         * tests/test-memchr.c: Include zerosize-ptr.h.
30756         (main): Use a zero-size object pointer instead of NULL.
30757         * tests/test-memchr2.c: Include zerosize-ptr.h.
30758         (main): Use a zero-size object pointer instead of NULL.
30759         * tests/test-memcmp.c: Include zerosize-ptr.h.
30760         (main): Use a zero-size object pointer instead of NULL.
30761         * tests/test-memmem.c: Include zerosize-ptr.h.
30762         (main): Use a zero-size object pointer instead of NULL.
30763         * tests/test-memrchr.c: Include zerosize-ptr.h.
30764         (main): Use a zero-size object pointer instead of NULL.
30765         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
30766         m4/mmap-anon.m4.
30767         (Depends-on): Add getpagesize.
30768         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30769         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
30770         m4/mmap-anon.m4.
30771         (Depends-on): Add getpagesize.
30772         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30773         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
30774         m4/mmap-anon.m4.
30775         (Depends-on): Add getpagesize.
30776         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30777         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
30778         m4/mmap-anon.m4.
30779         (Depends-on): Add getpagesize.
30780         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30781         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
30782         m4/mmap-anon.m4.
30783         (Depends-on): Add getpagesize.
30784         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30785
30786 2009-05-12  Bruno Haible  <bruno@clisp.org>
30787
30788         Tests for module 'alignof'.
30789         * modules/alignof-tests: New file.
30790         * tests/test-alignof.c: New file.
30791
30792 2009-05-12  Bruno Haible  <bruno@clisp.org>
30793
30794         Fix alignof macro.
30795         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
30796         vendor compilers that are always correct.
30797
30798 2009-05-12  Bruno Haible  <bruno@clisp.org>
30799
30800         Make the MAP_ANONYMOUS detection work on HP-UX 11.
30801         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
30802         not whether its fully works.
30803
30804 2009-05-12  Bruno Haible  <bruno@clisp.org>
30805
30806         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
30807
30808 2009-05-12  Jim Meyering  <meyering@redhat.com>
30809
30810         * top/maint.mk: Adjust backslash alignment.
30811
30812 2009-05-11  Simon Josefsson  <simon@josefsson.org>
30813
30814         * top/maint.mk: Make $(srcdir)/build-aux configurable.
30815
30816 2009-05-11  Eric Blake  <ebb9@byu.net>
30817
30818         argp: avoid undefined behavior
30819         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
30820         macros.
30821
30822 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30823
30824         * tests/test-vc-list-files-git.sh: Do git config of user.email and
30825         user.name to prevent git commit from complaining.
30826
30827 2009-05-10  Bruno Haible  <bruno@clisp.org>
30828
30829         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
30830         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
30831         it rewrites every file name only once.
30832         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
30833
30834 2009-05-08  Bruno Haible  <bruno@clisp.org>
30835
30836         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
30837         instead of 'max'.
30838
30839 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30840
30841         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
30842         sockaddr_storage test.
30843
30844 2009-05-07  Simon Josefsson  <simon@josefsson.org>
30845
30846         * modules/sys_socket (Makefile.am): Substitute
30847         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
30848         * m4/sys_socket_h.m4: Check for sockaddr_storage.
30849         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
30850         * tests/test-sys_socket.c: Check sockaddr_storage.
30851
30852 2009-05-08  Bruno Haible  <bruno@clisp.org>
30853
30854         New module 'alignof'.
30855         * lib/alignof.h: New file.
30856         * modules/alignof: New file.
30857
30858 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30859             Bruno Haible  <bruno@clisp.org>
30860
30861         Fix test-file-has-acl on FreeBSD.
30862         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
30863         mask is implicitly added.
30864         * tests/test-file-has-acl.c: Include <signal.h>.
30865         (main): Terminate the test after 5 seconds.
30866         * modules/acl-tests (configure.ac): Check for alarm function.
30867
30868 2009-05-04  Bruno Haible  <bruno@clisp.org>
30869
30870         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
30871         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
30872         * modules/errno (configure.ac): Drop AC_REQUIRE.
30873         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
30874         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
30875
30876 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30877
30878         * modules/glob-tests: New module.
30879         * tests/test-glob.c: Add.
30880
30881 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30882
30883         * modules/fnmatch-tests: New module.
30884         * tests/test-fnmatch.c: Add.
30885
30886 2009-05-04  Eric Blake  <ebb9@byu.net>
30887
30888         maint: make the new no-submodule-changes rule VPATH-safe
30889         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
30890
30891 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30892             Bruno Haible  <bruno@clisp.org>
30893
30894         acl: Fix infinite loop on FreeBSD.
30895         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
30896         of return value from acl_get_entry.
30897         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
30898         Likewise.
30899
30900 2009-05-03  Bruno Haible  <bruno@clisp.org>
30901
30902         * lib/acl-internal.h (acl_entries): Clarify return value.
30903         * lib/acl_entries.c (acl_entries): Likewise.
30904
30905 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30906
30907         Bug fix in acl module.
30908         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
30909
30910 2009-05-03  Bruno Haible  <bruno@clisp.org>
30911
30912         Create gperf-generated file in the source dir, not in the build dir.
30913         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
30914         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
30915         * modules/unicase/locale-language (unicase/locale-languages.h):
30916         Likewise.
30917         * modules/unicase/special-casing (unicase/special-casing-table.h):
30918         Likewise.
30919         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
30920         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
30921         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
30922         Reported by Ralf Wildenhues.
30923
30924 2009-05-03  Bruno Haible  <bruno@clisp.org>
30925
30926         * modules/fnmatch (Description, configure.ac): Taken from
30927         fnmatch-posix.
30928         * modules/fnmatch-posix: Turn into a symbolic reference to the
30929         'fnmatch' module, and deprecate.
30930         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
30931
30932 2009-05-03  Bruno Haible  <bruno@clisp.org>
30933
30934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
30935         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
30936         Reported by Ralf Wildenhues.
30937
30938 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30939
30940         * m4/fnmatch.m4: Fix fnmatch re-define.
30941
30942 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30943
30944         priv-set: new module and tests; adapt write-any-file
30945         * lib/priv-set.c: New file.
30946         * lib/priv-set.h: New file.
30947         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
30948         * lib/write-any-file.c: Simplify by using priv-set module.
30949         * m4/priv-set.m4: New file.
30950         * modules/priv-set: New file.
30951         * modules/unlinkdir: Add dependency on priv-set module.
30952         * modules/write-any-file: Likewise.
30953
30954         Tests for module 'priv-set'.
30955         * modules/priv-set-tests: New file.
30956         * tests/test-priv-set.c: New file.
30957
30958 2009-05-03  Jim Meyering  <meyering@redhat.com>
30959             Bruno Haible  <bruno@clisp.org>
30960
30961         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
30962         use the converted UTF-8 variant of the name instead.
30963
30964 2009-05-03  Jim Meyering  <meyering@redhat.com>
30965
30966         tests: tighten some getdate tests
30967         * tests/test-getdate.c (main): Tighten tests: require equality,
30968         not just greater than.  Set TZ envvar to UTC0.
30969
30970 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30971
30972         getdate: correctly interpret "next monday" when run on a Monday
30973         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
30974         that e.g., "next tues" (when run on a tuesday) results in a date
30975         that is one week in the future, and not today's date.
30976         I.e., add a week when the wday is the same as the current one.
30977         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
30978         and earlier by Martin Bernreuther and Jan Minář.
30979         * tests/test-getdate.c (main): Check that "next DAY" is always in
30980         the future and that "last DAY" is always in the past.
30981
30982 2009-05-02  Jim Meyering  <meyering@redhat.com>
30983
30984         build: ensure that a release build fails when a submodule is unclean
30985         * top/maint.mk (no-submodule-changes): New rule.
30986         (alpha beta major): Depend on it.
30987
30988 2009-05-02  Bruno Haible  <bruno@clisp.org>
30989
30990         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
30991         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
30992         shell variable gl_fnmatch_required to detect which variant is
30993         requested.
30994         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
30995         gl_FUNC_FNMATCH_POSIX.
30996         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
30997         exclude fnmatch-posix.
30998
30999 2009-05-02  Bruno Haible  <bruno@clisp.org>
31000
31001         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
31002         * modules/mbsrtowcs (License): Change to LGPLv2+.
31003         * modules/strnlen1 (License): Likewise.
31004         Reported by Simon Josefsson.
31005
31006 2009-05-02  Bruno Haible  <bruno@clisp.org>
31007
31008         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
31009         "cross".
31010         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
31011         gnulib-tool was called with option --source-base=lib.
31012
31013 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31014
31015         Use automake *-local hooks without commands, for extensibility.
31016         * modules/localcharset (Makefile.am): Rename install-exec-local
31017         rule to install-exec-localcharset, and make it a prerequisite of
31018         install-exec-local.  Likewise, rename the uninstall-local rule to
31019         uninstall-localcharset, and make it a prerequisite of the former.
31020
31021 2009-05-01  Bruno Haible  <bruno@clisp.org>
31022
31023         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
31024         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31025         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
31026         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
31027         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
31028         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31029         m4/locale-zh.m4, m4/codeset.m4.
31030
31031         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31032         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
31033         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31034         m4/locale-zh.m4.
31035
31036         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
31037         REPLACE_WCRTOMB if mbstate_t must be replaced.
31038         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
31039         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
31040
31041 2009-05-01  Bruno Haible  <bruno@clisp.org>
31042
31043         Avoid compiler warnings when redefining macros defined by <libintl.h>.
31044         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
31045         dngettext, dcngettext, textdomain, bindtextdomain,
31046         bind_textdomain_codeset): Undefine before redefining.
31047
31048 2009-04-30  Bruno Haible  <bruno@clisp.org>
31049
31050         Fix bug introduced on 2009-04-25.
31051         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
31052         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
31053         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
31054         is defined.
31055         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
31056         is defined.
31057         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
31058         is defined.
31059         Reported by Elbert_Pol <elbert.pol@gmail.com>.
31060
31061 2009-04-28  Bruno Haible  <bruno@clisp.org>
31062
31063         Comment tweaks.
31064         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
31065         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
31066         * lib/unicase.h (u*_casexfrm): Likewise.
31067         Reported by Paolo Bonzini.
31068
31069 2009-04-28  Bruno Haible  <bruno@clisp.org>
31070
31071         Fix a compilation error.
31072         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
31073         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31074         Reported by Jim Meyering.
31075
31076 2009-04-27  Bruno Haible  <bruno@clisp.org>
31077
31078         New module 'libunistring'.
31079         * modules/libunistring: New file.
31080         * m4/libunistring.m4: New file.
31081         * MODULES.html.sh (Unicode string functions): Add it.
31082
31083 2009-04-27  Eric Blake  <ebb9@byu.net>
31084
31085         maint.mk: allow package-specific header to provide <config.h>
31086         * top/maint.mk (sc_require_config_h): New variable.
31087         (sc_require_config_h, sc_require_config_h_first): Use it.
31088
31089 2009-04-27  Simon Josefsson  <simon@josefsson.org>
31090
31091         * top/maint.mk (sc_avoid_if_before_free): Except
31092         useless-if-before-free script.
31093
31094 2009-04-27  Eric Blake  <ebb9@byu.net>
31095
31096         maintainer-makefile: depend on all required helper scripts
31097         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
31098         useless-if-before-free.
31099         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
31100         version, rather than assuming gnulib checkout is available.
31101         Reported by Simen Josefsson.
31102
31103 2009-04-26  Bruno Haible  <bruno@clisp.org>
31104
31105         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
31106         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
31107         "../" or "..".
31108
31109 2009-04-26  Bruno Haible  <bruno@clisp.org>
31110
31111         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
31112         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
31113         AC_LIB_HAVE_LINKFLAGS.
31114
31115 2009-04-26  Bruno Haible  <bruno@clisp.org>
31116
31117         Simplify calling convention of u*_conv_from_encoding.
31118         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
31119         u32_conv_from_encoding): Expect a resultbuf argument and return the
31120         result directly as a pointer.
31121         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
31122         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
31123         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
31124         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
31125         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
31126         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31127         Update.
31128         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
31129         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
31130         * lib/vasnprintf.c (VASNPRINTF): Update.
31131         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
31132         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
31133         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
31134         * NEWS: Mention the change.
31135
31136 2009-04-26  Bruno Haible  <bruno@clisp.org>
31137
31138         Simplify calling convention of u*_conv_to_encoding.
31139         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31140         u32_conv_to_encoding): Expect a resultbuf argument and return the
31141         result directly as a pointer.
31142         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31143         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
31144         freeing scaled_offsets if mem_iconveha failed.
31145         * lib/unicase/u-casexfrm.h (FUNC): Update.
31146         * lib/uninorm/u-normxfrm.h (FUNC): Update.
31147         * lib/vasnprintf.c (VASNPRINTF): Update.
31148         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
31149         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
31150         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
31151         * NEWS: Mention the change.
31152
31153 2009-04-26  Bruno Haible  <bruno@clisp.org>
31154
31155         Avoid test failures on AIX and OSF/1.
31156         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
31157         malloc(0).
31158         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31159         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31160         Likewise.
31161         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
31162         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
31163         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
31164         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
31165         * doc/posix-functions/malloc.texi: Document the portability problem
31166         related to malloc(0).
31167
31168 2009-04-26  Bruno Haible  <bruno@clisp.org>
31169
31170         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
31171         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
31172         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
31173
31174 2009-04-25  Bruno Haible  <bruno@clisp.org>
31175
31176         Avoid link error when creating a namespace clean library.
31177         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
31178         as macro with arguments if already defined as an alias.
31179         * lib/signbitf.c (gl_signbitf): Don't undefine.
31180         * lib/signbitd.c (gl_signbitd): Don't undefine.
31181         * lib/signbitl.c (gl_signbitl): Don't undefine.
31182
31183 2009-04-25  Jim Meyering  <meyering@redhat.com>
31184
31185         vc-list-files: fix another quoting bug
31186         * build-aux/vc-list-files: Avoid sed backslash expansion
31187         of pathological directory names.
31188
31189 2009-04-25  Eric Blake  <ebb9@byu.net>
31190
31191         vc-list-files: fix shell quoting error
31192         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
31193         timestamp.
31194
31195 2009-04-25  Jim Meyering  <meyering@redhat.com>
31196
31197         vc-list-files: restore lost functionality with subdir argument
31198         * build-aux/vc-list-files: When given a non-"." sub-directory
31199         argument, substitute the $dir/ prefix back onto each resulting name.
31200         Otherwise, coreutils' root_tests check would fail.
31201
31202 2009-04-24  Eric Blake  <ebb9@byu.net>
31203
31204         vc-list-files: ignore git symlinks
31205         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
31206         than ls-files, to ignore git symlinks.
31207
31208         maint.mk: import improvements from m4
31209         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
31210         (move_if_change): Delete unused macro.
31211         (news-date-check, vc-diff-check): Support VPATH builds.
31212         (announcement): Likewise.  Split --bootstrap-tools list...
31213         (boostrap-tools): ...into separate list, which can be overridden
31214         in cfg.mk.
31215         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
31216         requiring dependency on useless-if-before-free module.
31217         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
31218         Support VPATH builds.
31219
31220 2009-04-24  Jim Meyering  <meyering@redhat.com>
31221
31222         maint.mk: remove coreutils-specific rules and variables
31223         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
31224         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
31225         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
31226
31227         maint.mk: remove obsolete rule
31228         * top/maint.mk (rel-check): Remove rule.
31229         (WGET, WGETFLAGS): Remove now-unused variables.
31230
31231 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31232
31233         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
31234         consistency.
31235
31236         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
31237         '$(PATH_SEPARATOR)' instead of ':'.
31238
31239 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31240
31241         * lib/getopt1.c (main): Use 'const' for static array.
31242
31243 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31244
31245         * top/maint.mk: Sync with coreutils.
31246         * NEWS: Explain incompatibilities.
31247
31248 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31249             Bruno Haible  <bruno@clisp.org>
31250
31251         Fix cross-compilation results.
31252         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
31253         statement, as third argument of AC_TRY_RUN.
31254         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31255         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31256         Likewise.
31257         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31258         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
31259         Likewise.
31260         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31261         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
31262         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
31263
31264 2009-04-20  Bruno Haible  <bruno@clisp.org>
31265
31266         Avoid test failure on mingw.
31267         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
31268
31269 2009-04-20  Bruno Haible  <bruno@clisp.org>
31270
31271         Avoid compilation error on mingw.
31272         * modules/localename-tests (Depends-on): Add locale.
31273
31274 2009-04-19  Bruno Haible  <bruno@clisp.org>
31275
31276         Support for building a shared library on Windows platforms.
31277         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
31278         (main): Test the presence of UNINORM_NFC here.
31279         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
31280         (main): Test the presence of UNINORM_NFD here.
31281         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
31282         (main): Test the presence of UNINORM_NFKC here.
31283         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
31284         (main): Test the presence of UNINORM_NFKD here.
31285
31286 2009-04-19  Bruno Haible  <bruno@clisp.org>
31287
31288         Avoid a compiler warning.
31289         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
31290         Change type of variable 'sequence'.
31291
31292 2009-04-19  Bruno Haible  <bruno@clisp.org>
31293
31294         * modules/configmake (Makefile.am): When the contents of configmake.h
31295         does not change, arrange to preserve its modification time.
31296
31297 2009-04-17  Simon Josefsson  <simon@josefsson.org>
31298
31299         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
31300         gettext domain.
31301
31302 2009-04-16  Jim Meyering  <meyering@redhat.com>
31303
31304         useless-if-before-free: improve conversion code
31305         * build-aux/useless-if-before-free: Adjust code-in-comment to match
31306         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
31307
31308 2009-04-14  Bruno Haible  <bruno@clisp.org>
31309
31310         * modules/fcntl (Depends-on): Add extensions.
31311         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
31312
31313 2009-04-12  Ben Pfaff  <blp@gnu.org>
31314
31315         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
31316         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
31317
31318 2009-03-20  Ben Pfaff  <blp@gnu.org>
31319
31320         Make rename replace existing destinations on Windows.
31321         * m4/rename.m4: Add test for Mingw.
31322         * lib/rename.c: Add rename replacement that uses MoveFileEx with
31323         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
31324         * doc/posix-functions/rename.texi: Document.
31325
31326 2009-04-10  Bruno Haible  <bruno@clisp.org>
31327
31328         New include file "iconveh.h".
31329         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
31330         * lib/striconveh.h: Include it.
31331         (enum iconv_ilseq_handler): Remove definition.
31332         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
31333         striconveh.h.
31334         * lib/striconveha.c: Include striconveh.h.
31335         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
31336         * modules/striconveh (Files): Add lib/iconveh.h.
31337         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
31338         lib/striconveh.h.
31339
31340 2009-04-10  Bruno Haible  <bruno@clisp.org>
31341
31342         * lib/uniconv.h: Update comment.
31343
31344 2009-04-10  Bruno Haible  <bruno@clisp.org>
31345
31346         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
31347         always.
31348         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31349         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31350         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31351         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
31352         "unistring-notinline.h", so that the function gets defined always.
31353         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31354         * lib/unistr/u8-uctomb.c: Likewise.
31355         * lib/unistr/u16-mbtouc.c: Likewise.
31356         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31357         * lib/unistr/u16-uctomb.c: Likewise.
31358         * lib/unistr/u32-mbtouc.c: Likewise.
31359         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31360         * lib/unistr/u32-uctomb.c: Likewise.
31361
31362 2009-04-10  Bruno Haible  <bruno@clisp.org>
31363
31364         Mark 'utime' obsolete.
31365         * modules/utime (Status, Notice): New sections.
31366         Suggested by Jim Meyering.
31367
31368         Fix cross-compile guess for utime test.
31369         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
31370         autoconf.
31371         * doc/posix-functions/utime.texi: Give more precisions.
31372         Reported by Jan <ipif@ymail.com>.
31373
31374 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
31375
31376         filevercmp: correct today's change
31377         * lib/filevercmp.c: Also handle coreutils' test inputs.
31378         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
31379
31380         Fix regression in 'filevercmp' module. Thanks Sven Joachim
31381         for reporting it.
31382         * lib/filevercmp.c: Special handle for "", "." and "..".
31383         * tests/test-filevercmp.c: Enlarge the set suite.
31384
31385 2009-04-07  Jim Meyering  <meyering@redhat.com>
31386
31387         useless-if-before-free: show how to remove braced useless free, too
31388         * build-aux/useless-if-before-free: still only in a comment, though.
31389
31390 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
31391
31392         maint.mk: import changes to syntax-check macros from coreutils
31393         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
31394         Use them in the relevant macros.
31395
31396 2009-04-06  Bruno Haible  <bruno@clisp.org>
31397
31398         Fix unportable use of bit-fields.
31399         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
31400         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
31401         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
31402
31403 2009-04-06  Bruno Haible  <bruno@clisp.org>
31404
31405         Avoid test failures on AIX and OSF/1.
31406         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
31407         that malloc(0) = NULL.
31408         * tests/unicase/test-u8-tolower.c (check): Likewise.
31409         * tests/unicase/test-u8-totitle.c (check): Likewise.
31410         * tests/unicase/test-u8-toupper.c (check): Likewise.
31411         * tests/unicase/test-u16-casefold.c (check): Likewise.
31412         * tests/unicase/test-u16-tolower.c (check): Likewise.
31413         * tests/unicase/test-u16-totitle.c (check): Likewise.
31414         * tests/unicase/test-u16-toupper.c (check): Likewise.
31415         * tests/unicase/test-u32-casefold.c (check): Likewise.
31416         * tests/unicase/test-u32-tolower.c (check): Likewise.
31417         * tests/unicase/test-u32-totitle.c (check): Likewise.
31418         * tests/unicase/test-u32-toupper.c (check): Likewise.
31419         * tests/uninorm/test-u8-nfc.c (check): Likewise.
31420         * tests/uninorm/test-u8-nfd.c (check): Likewise.
31421         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
31422         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
31423         * tests/uninorm/test-u16-nfc.c (check): Likewise.
31424         * tests/uninorm/test-u16-nfd.c (check): Likewise.
31425         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
31426         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
31427         * tests/uninorm/test-u32-nfc.c (check): Likewise.
31428         * tests/uninorm/test-u32-nfd.c (check): Likewise.
31429         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
31430         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
31431
31432 2009-04-05  Bruno Haible  <bruno@clisp.org>
31433
31434         Work around an autoconf limitation.
31435         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
31436         comment line if it would be longer than 3 KB.
31437
31438 2009-04-05  Bruno Haible  <bruno@clisp.org>
31439
31440         Avoid test failure with libiconv-1.13.
31441         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
31442         of the expected test results.
31443
31444 2009-04-05  Bruno Haible  <bruno@clisp.org>
31445
31446         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
31447         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
31448         that it should be installed.
31449
31450 2009-04-05  Bruno Haible  <bruno@clisp.org>
31451
31452         * gnulib-tool: New option --copy-file.
31453         (func_usage): Document it.
31454         (func_dest_tmpfilename): Moved out of func_import.
31455         (func_add_file, func_update_file): New functions, extracted from
31456         func_import.
31457         (func_import): Update.
31458
31459 2009-04-05  Karl Berry  <karl@gnu.org>
31460
31461         * README: prominently mention gnulib-tool.
31462         Rearrange sections so getting the code is near the top.
31463
31464 2009-04-05  Bruno Haible  <bruno@clisp.org>
31465
31466         * lib/unicase.h: Mention u*_cmp2.
31467         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31468         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
31469         * lib/unicase/ulc-casecmp.c: Likewise.
31470         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
31471         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
31472         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
31473         unistr/u8-cmp.
31474         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
31475         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
31476         unistr/u16-cmp.
31477         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
31478         unistr/u32-cmp.
31479
31480         * lib/uninorm.h: Mention u*_cmp2.
31481         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31482         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
31483         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
31484         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
31485         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
31486         unistr/u8-cmp.
31487         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
31488         unistr/u16-cmp.
31489         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
31490         unistr/u32-cmp.
31491
31492         New module 'unistr/u32-cmp2'.
31493         * lib/unistr/u32-cmp2.c: New file.
31494         * modules/unistr/u32-cmp2: New file.
31495
31496         New module 'unistr/u16-cmp2'.
31497         * lib/unistr/u16-cmp2.c: New file.
31498         * modules/unistr/u16-cmp2: New file.
31499
31500         New module 'unistr/u8-cmp2'.
31501         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
31502         * lib/unistr/u8-cmp2.c: New file.
31503         * lib/unistr/u-cmp2.h: New file.
31504         * modules/unistr/u8-cmp2: New file.
31505
31506 2009-04-05  Bruno Haible  <bruno@clisp.org>
31507
31508         * lib/unictype.h (uc_property_is_valid): New macro.
31509         * tests/unictype/test-pr_byname.c (main): Use it.
31510
31511         * lib/unistr.h: Doc fixes.
31512         * lib/uniconv.h: Doc fixes.
31513         * lib/unictype.h: Doc fixes.
31514
31515 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
31516
31517         Port coreutils 7.2 to Solaris 8.
31518
31519         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
31520         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
31521         for Solaris 8.  This is a bit of a hack, as it means it's the
31522         caller's responsibility to add -lnsl if needed, but most likely it
31523         won't be needed since only getaddrinfo uses this and getaddrinfo
31524         isn't needed on Solaris 8.
31525
31526         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
31527         problem to Solaris 8 encountered with coreutils 7.2, which
31528         resulted in a message "fnmatch.c:292: warning: passing argument 4
31529         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
31530         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
31531
31532 2009-04-03  Simon Josefsson  <simon@josefsson.org>
31533
31534         * m4/ld-version-script.m4: Add FIXME comment.
31535
31536 2009-04-02  Simon Josefsson  <simon@josefsson.org>
31537
31538         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
31539         SOVERSION variable.
31540
31541 2009-04-02  Bruno Haible  <bruno@clisp.org>
31542
31543         * Makefile (info, html, dvi, pdf): Combine the rules.
31544         Suggested by Jim Meyering.
31545
31546 2009-04-01  Bruno Haible  <bruno@clisp.org>
31547
31548         * Makefile (info, html, dvi, pdf): New targets.
31549         Reported by Reuben Thomas <rrt@sc3d.org>.
31550
31551 2009-04-01  Bruno Haible  <bruno@clisp.org>
31552
31553         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
31554         can be put into PATH.
31555         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
31556
31557 2009-04-01  Bruno Haible  <bruno@clisp.org>
31558
31559         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
31560
31561 2009-04-01  Bruno Haible  <bruno@clisp.org>
31562
31563         Rename module 'visibility'.
31564         * modules/lib-symbol-visibility: Renamed from modules/visibility.
31565         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
31566         * doc/gnulib.texi: Update.
31567         * MODULES.html.sh (Misc): Update.
31568         * NEWS: Mention the change.
31569
31570 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31571
31572         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
31573         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
31574         Eric Blake <ebb9@byu.net> for review.
31575         * MODULES.html.sh: Add lib-msvc-compat.
31576         * doc/gnulib.texi: Link to new section.
31577         * m4/ld-output-def.m4: New file.
31578         * doc/ld-output-def.texi: New file.
31579
31580 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31581
31582         Rename ld-version-script to lib-symbol-versions.  Suggested by
31583         Bruno Haible <bruno@clisp.org>.
31584         * modules/ld-version-script: Renamed to lib-symbol-versions.
31585         * doc/ld-version-script.texi: Fix module name.
31586         * MODULES.html.sh: Add lib-symbol-versions.
31587
31588 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31589
31590         * modules/u64-tests: New file.
31591         * tests/test-u64.c: New file.
31592
31593 2009-03-04  Simon Josefsson  <simon@josefsson.org>
31594
31595         * MODULES.html.sh: Mention u64.
31596         * modules/u64: New module.
31597         * modules/crypto/sha512: Depend on u64 module instead of providing
31598         u64.h.
31599
31600 2009-03-27  Eric Blake  <ebb9@byu.net>
31601
31602         test-strerror: make debugging EAI_SYSTEM easier
31603         * modules/getaddrinfo-tests (Depends-on): Add strerror.
31604         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
31605         failure was EAI_SYSTEM.
31606
31607 2009-03-25  Bruno Haible  <bruno@clisp.org>
31608
31609         Fix a problem with --enable-relocatable on Solaris 7.
31610         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
31611         since 2008-02-24.
31612
31613 2009-03-25  Eric Blake  <ebb9@byu.net>
31614
31615         test-sockets: avoid gcc warning
31616         * tests/test-sockets.c (main): Silence compiler warning.
31617
31618 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
31619
31620         New modules nproc, pthread, contributed by Glen Lenker.
31621
31622         * MODULES.html.sh: Add pthread, nproc.
31623         * lib/nproc.c: New file.
31624         * lib/nproc.h: New file.
31625         * lib/pthread.in.h: New file.
31626         * m4/pthread.m4: New file.
31627         * modules/nproc: New file.
31628         * modules/pthread: New file.
31629
31630 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31631
31632         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
31633         New variable.
31634
31635 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
31636
31637         filevercmp: handle simple~ and numbered.~3~ backup suffixes
31638         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
31639         * tests/test-filevercmp.c: Add tests for backup suffixes.
31640
31641 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31642
31643         * modules/stdlib (Depends-on): Add stdint, needed when defining
31644         struct random_data on, for example, HP-UX 10.20.  Reported by
31645         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31646
31647 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31648
31649         * lib/readline.c (readline): Call fflush on stdout after printing
31650         prompt.
31651
31652 2009-03-20  Bruno Haible  <bruno@clisp.org>
31653
31654         Remove dependency from 'close' module to -lws2_32 on native Windows.
31655         * lib/close-hook.h: New file.
31656         * lib/close-hook.c: New file.
31657         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
31658         w32sock.h.
31659         (_gl_close_fd_maybe_socket): Remove function.
31660         (rpl_close): Invoke execute_all_close_hooks instead of
31661         _gl_close_fd_maybe_socket.
31662         * lib/sockets.c: Include close-hook.h, w32sock.h.
31663         (close_fd_maybe_socket): New function, essentially from lib/close.c.
31664         (close_sockets_hook): New variable.
31665         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
31666         (gl_sockets_cleanup): Unregister it.
31667         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
31668         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
31669         * modules/close-hook: New file.
31670         * modules/close (Files): Remove lib/w32sock.h.
31671         (Depends-on): Add close-hook.
31672         (Link): Remove section.
31673         * modules/sockets (Files): Add lib/w32sock.h.
31674         (Depends-on): Add close-hook.
31675         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
31676         invocation.
31677         * NEWS: Mention that LIB_CLOSE is gone.
31678
31679 2009-03-23  Eric Blake  <ebb9@byu.net>
31680
31681         signal-tests: test previous patch
31682         * tests/test-signal.c: New file.
31683         * modules/signal-tests: Likewise.
31684
31685         signal.h: always support 'volatile sig_atomic_t'
31686         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
31687         (gl_SIGNAL_H_DEFAULTS): Add a default.
31688         * modules/signal (Makefile.am): Substitute if needed.
31689         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
31690         users can blindly add volatile.
31691         * doc/posix-headers/signal.texi (signal.h): Document it.
31692         Reported by Matthew Woehlke.
31693
31694 2009-03-23  Jim Meyering  <meyering@redhat.com>
31695
31696         pathmax: PATH_MAX: use pathconf only when available
31697         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
31698         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
31699         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
31700         This avoids a link failure in a PSP cross-compilation environment
31701         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
31702
31703         * lib/vasnprintf.c (divide): Fix typo in comment.
31704
31705 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31706
31707         * gnulib-tool (func_filter_filelist): Fix comment.
31708
31709 2009-03-20  Bruno Haible  <bruno@clisp.org>
31710
31711         Make sockets.h self-contained.
31712         * lib/sockets.c: Include sockets.h first.
31713         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
31714
31715 2009-03-19  Eric Blake  <ebb9@byu.net>
31716
31717         doc: mention more functions added in cygwin 1.7.0
31718         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
31719         addition.
31720         * doc/posix-functions/log2f.texi: Likewise.
31721
31722 2009-03-19  Jim Meyering  <meyering@redhat.com>
31723
31724         fsusage: avoid syntax error due to statement-before-declaration
31725         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
31726         after all declarations.  Reported by Matthew Woehlke in
31727         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
31728
31729 2009-03-18  Eric Blake  <ebb9@byu.net>
31730
31731         build-aux/compile: sync from automake
31732         * build-aux/compile: New file, from automake.
31733         * config/srclist.txt: Mention build-aux/compile.
31734
31735 2009-03-17  Bruno Haible  <bruno@clisp.org>
31736
31737         * lib/git-merge-changelog.c: Fix typo in comment.
31738         Reported by Reuben Thomas <rrt@sc3d.org>.
31739
31740 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
31741
31742         * m4/regex.m4: update and improve help for
31743         --without-included-regex.
31744
31745 2009-03-17  Simon Josefsson  <simon@josefsson.org>
31746
31747         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
31748         failure on missing include files.
31749
31750 2009-03-17  Eric Blake  <ebb9@byu.net>
31751
31752         doc: mention more functions added in cygwin 1.7.0
31753         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
31754         addition.
31755         * doc/posix-functions/fwscanf.texi: Likewise.
31756         * doc/posix-functions/swprintf.texi: Likewise.
31757         * doc/posix-functions/swscanf.texi: Likewise.
31758         * doc/posix-functions/vfwprintf.texi: Likewise.
31759         * doc/posix-functions/vfwscanf.texi: Likewise.
31760         * doc/posix-functions/vswprintf.texi: Likewise.
31761         * doc/posix-functions/vswscanf.texi: Likewise.
31762         * doc/posix-functions/vwprintf.texi: Likewise.
31763         * doc/posix-functions/vwscanf.texi: Likewise.
31764         * doc/posix-functions/wcscasecmp.texi: Likewise.
31765         * doc/posix-functions/wcsdup.texi: Likewise.
31766         * doc/posix-functions/wcsftime.texi: Likewise.
31767         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31768         * doc/posix-functions/wprintf.texi: Likewise.
31769         * doc/posix-functions/wscanf.texi: Likewise.
31770         * doc/glibc-functions/gethostbyname2.texi: Likewise.
31771
31772 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31773
31774         maint.mk: really add $(AM_MAKEFLAGS)
31775         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
31776         was inadvertently omitted in the last commit.
31777         Spotted by Bruno Haible.
31778
31779         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
31780         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
31781         $(AM_MAKEFLAGS)' rather than plain `make'.
31782
31783         gnulib-tool: execute $MAKE not make
31784         * gnulib-tool: Default $MAKE to 'make'.
31785         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
31786         than make.  Initialize $MAKE in the do-autobuild script.
31787
31788         gnulib-tool: use $MAKE not make in generated files
31789         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
31790         make, in generated files.  Initialize $MAKE in the do-autobuild
31791         script.
31792
31793         * top/GNUmakefile (_have-git-version-gen): Fix typo.
31794
31795         GNUmakefile: disable parallelism only for multiple, recursive targets
31796         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
31797         additions in the Makefile.
31798         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
31799         by Automake.
31800         (.NOTPARALLEL): Only disable parallel builds if multiple targets
31801         are listed on the command line and at least one of them is
31802         listed in $(ALL_RECURSIVE_TARGETS).
31803
31804 2009-03-14  Bruno Haible  <bruno@clisp.org>
31805
31806         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
31807         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
31808         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
31809         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
31810         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
31811         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
31812         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
31813         unistr/u8-uctomb.
31814         * modules/unistr/u8-strchr (Depends-on): Likewise.
31815         * modules/unistr/u8-strrchr (Depends-on): Likewise.
31816         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
31817         unistr/u16-uctomb.
31818         * modules/unistr/u16-strchr (Depends-on): Likewise.
31819         * modules/unistr/u16-strrchr (Depends-on): Likewise.
31820
31821 2009-03-12  Bruno Haible  <bruno@clisp.org>
31822
31823         Work around select() bug on Interix 3.5.
31824         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
31825         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
31826         * m4/select.m4: New file.
31827         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
31828         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
31829         * modules/select (Files): Add m4/select.m4.
31830         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
31831         * modules/nanosleep (Depends-on): Add select.
31832         * modules/poll (Depends-on): Likewise.
31833         * doc/posix-functions/select.texi: Mention the Interix bug.
31834         Reported by Markus Duft <mduft@gentoo.org>.
31835
31836         * lib/select.c: Renamed from lib/winsock-select.c.
31837         * modules/select (Files): Add lib/select.c, remove
31838         lib/winsock-select.c.
31839         (configure.ac): Update.
31840
31841 2009-03-12  Jim Meyering  <meyering@redhat.com>
31842
31843         avoid gcc warnings about unused macro definitions
31844         * lib/readtokens.c (STREQ): Remove unused definition.
31845         * lib/xmalloc.c (SIZE_MAX): Likewise.
31846         * lib/openat-die.c (N_): Likewise.
31847         * lib/mountlist.c (SIZE_MAX): Remove definition.
31848         Instead, include <stdint.h>.
31849         * lib/readutmp.c: Likewise.
31850         * modules/readutmp (Depends-on): Add stdint.
31851         * modules/mountlist (Depends-on): Add stdint.
31852         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
31853
31854 2009-03-10  Bruno Haible  <bruno@clisp.org>
31855
31856         Tests for module 'mbmemcasecoll'.
31857         * modules/mbmemcasecoll-tests: New file.
31858         * tests/test-mbmemcasecoll1.sh: New file.
31859         * tests/test-mbmemcasecoll2.sh: New file.
31860         * tests/test-mbmemcasecoll3.sh: New file.
31861         * tests/test-mbmemcasecoll.c: New file.
31862
31863         New module 'mbmemcasecoll'.
31864         * lib/mbmemcasecoll.h: New file.
31865         * lib/mbmemcasecoll.c: New file.
31866         * modules/mbmemcasecoll: New file.
31867
31868         * tests/test-mbmemcasecmp.h: New file, extracted from
31869         tests/test-mbmemcasecmp.c.
31870         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
31871         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
31872         (main): Update.
31873         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
31874
31875 2009-03-09  Bruno Haible  <bruno@clisp.org>
31876
31877         Tests for module 'mbmemcasecmp'.
31878         * modules/mbmemcasecmp-tests: New file.
31879         * tests/test-mbmemcasecmp1.sh: New file.
31880         * tests/test-mbmemcasecmp2.sh: New file.
31881         * tests/test-mbmemcasecmp3.sh: New file.
31882         * tests/test-mbmemcasecmp.c: New file.
31883
31884         New module 'mbmemcasecmp'.
31885         * lib/mbmemcasecmp.h: New file.
31886         * lib/mbmemcasecmp.c: New file.
31887         * modules/mbmemcasecmp: New file.
31888
31889 2009-03-09  Bruno Haible  <bruno@clisp.org>
31890
31891         Tests for module 'unicase/ulc-casecoll'.
31892         * modules/unicase/ulc-casecoll-tests: New file.
31893         * tests/unicase/test-ulc-casecoll1.sh: New file.
31894         * tests/unicase/test-ulc-casecoll2.sh: New file.
31895         * tests/unicase/test-ulc-casecoll.c: New file.
31896
31897         New module 'unicase/ulc-casecoll'.
31898         * lib/unicase.h (ulc_casecoll): New declaration.
31899         * lib/unicase/ulc-casecoll.c: New file.
31900         * modules/unicase/ulc-casecoll: New file.
31901
31902         New module 'unicase/ulc-casexfrm'.
31903         * lib/unicase.h (ulc_casexfrm): New declaration.
31904         * lib/unicase/ulc-casexfrm.c: New file.
31905         * modules/unicase/ulc-casexfrm: New file.
31906
31907 2009-03-09  Bruno Haible  <bruno@clisp.org>
31908
31909         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
31910         invocations.
31911
31912         * m4/mbscasecmp.m4: Remove file.
31913         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
31914         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
31915
31916         * m4/mbscasestr.m4: Remove file.
31917         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
31918         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
31919
31920         * m4/mbschr.m4: Remove file.
31921         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
31922         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
31923
31924         * m4/mbscspn.m4: Remove file.
31925         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
31926         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
31927
31928         * m4/mbslen.m4: Remove file.
31929         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
31930         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
31931
31932         * m4/mbsncasecmp.m4: Remove file.
31933         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
31934         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
31935
31936         * m4/mbsnlen.m4: Remove file.
31937         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
31938         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
31939
31940         * m4/mbspbrk.m4: Remove file.
31941         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
31942         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
31943
31944         * m4/mbspcasecmp.m4: Remove file.
31945         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
31946         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
31947
31948         * m4/mbsrchr.m4: Remove file.
31949         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
31950         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
31951
31952         * m4/mbssep.m4: Remove file.
31953         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
31954         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
31955
31956         * m4/mbsspn.m4: Remove file.
31957         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
31958         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
31959
31960         * m4/mbsstr.m4: Remove file.
31961         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
31962         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
31963
31964         * m4/mbstok_r.m4: Remove file.
31965         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
31966         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
31967
31968         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
31969
31970         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
31971         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
31972
31973         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
31974
31975 2009-03-08  Bruno Haible  <bruno@clisp.org>
31976
31977         Tests for module 'unicase/ulc-casecmp'.
31978         * modules/unicase/ulc-casecmp-tests: New file.
31979         * tests/unicase/test-ulc-casecmp1.sh: New file.
31980         * tests/unicase/test-ulc-casecmp2.sh: New file.
31981         * tests/unicase/test-ulc-casecmp.c: New file.
31982
31983         New module 'unicase/ulc-casecmp'.
31984         * lib/unicase.h (ulc_casecmp): New declaration.
31985         * lib/unicase/ulc-casecmp.c: New file.
31986         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
31987         'const SRC_UNIT *'.
31988         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
31989         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
31990         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
31991         * modules/unicase/ulc-casecmp: New file.
31992
31993         Tests for module 'unicase/u32-is-cased'.
31994         * modules/unicase/u32-is-cased-tests: New file.
31995         * tests/unicase/test-u32-is-cased.c: New file.
31996
31997         Tests for module 'unicase/u16-is-cased'.
31998         * modules/unicase/u16-is-cased-tests: New file.
31999         * tests/unicase/test-u16-is-cased.c: New file.
32000
32001         Tests for module 'unicase/u8-is-cased'.
32002         * modules/unicase/u8-is-cased-tests: New file.
32003         * tests/unicase/test-u8-is-cased.c: New file.
32004         * tests/unicase/test-is-cased.h: New file.
32005
32006         New module 'unicase/u32-is-cased'.
32007         * lib/unicase/u32-is-cased.c: New file.
32008         * modules/unicase/u32-is-cased: New file.
32009
32010         New module 'unicase/u16-is-cased'.
32011         * lib/unicase/u16-is-cased.c: New file.
32012         * modules/unicase/u16-is-cased: New file.
32013
32014         New module 'unicase/u8-is-cased'.
32015         * lib/unicase/u8-is-cased.c: New file.
32016         * lib/unicase/u-is-cased.h: New file.
32017         * modules/unicase/u8-is-cased: New file.
32018
32019         Tests for module 'unicase/u32-is-casefolded'.
32020         * modules/unicase/u32-is-casefolded-tests: New file.
32021         * tests/unicase/test-u32-is-casefolded.c: New file.
32022
32023         Tests for module 'unicase/u16-is-casefolded'.
32024         * modules/unicase/u16-is-casefolded-tests: New file.
32025         * tests/unicase/test-u16-is-casefolded.c: New file.
32026
32027         Tests for module 'unicase/u8-is-casefolded'.
32028         * modules/unicase/u8-is-casefolded-tests: New file.
32029         * tests/unicase/test-u8-is-casefolded.c: New file.
32030         * tests/unicase/test-is-casefolded.h: New file.
32031
32032         New module 'unicase/u32-is-casefolded'.
32033         * lib/unicase/u32-is-casefolded.c: New file.
32034         * modules/unicase/u32-is-casefolded: New file.
32035
32036         New module 'unicase/u16-is-casefolded'.
32037         * lib/unicase/u16-is-casefolded.c: New file.
32038         * modules/unicase/u16-is-casefolded: New file.
32039
32040         New module 'unicase/u8-is-casefolded'.
32041         * lib/unicase/u8-is-casefolded.c: New file.
32042         * modules/unicase/u8-is-casefolded: New file.
32043
32044         Tests for module 'unicase/u32-is-titlecase'.
32045         * modules/unicase/u32-is-titlecase-tests: New file.
32046         * tests/unicase/test-u32-is-titlecase.c: New file.
32047
32048         Tests for module 'unicase/u16-is-titlecase'.
32049         * modules/unicase/u16-is-titlecase-tests: New file.
32050         * tests/unicase/test-u16-is-titlecase.c: New file.
32051
32052         Tests for module 'unicase/u8-is-titlecase'.
32053         * modules/unicase/u8-is-titlecase-tests: New file.
32054         * tests/unicase/test-u8-is-titlecase.c: New file.
32055         * tests/unicase/test-is-titlecase.h: New file.
32056
32057         New module 'unicase/u32-is-titlecase'.
32058         * lib/unicase/u32-is-titlecase.c: New file.
32059         * modules/unicase/u32-is-titlecase: New file.
32060
32061         New module 'unicase/u16-is-titlecase'.
32062         * lib/unicase/u16-is-titlecase.c: New file.
32063         * modules/unicase/u16-is-titlecase: New file.
32064
32065         New module 'unicase/u8-is-titlecase'.
32066         * lib/unicase/u8-is-titlecase.c: New file.
32067         * modules/unicase/u8-is-titlecase: New file.
32068
32069         Tests for module 'unicase/u32-is-lowercase'.
32070         * modules/unicase/u32-is-lowercase-tests: New file.
32071         * tests/unicase/test-u32-is-lowercase.c: New file.
32072
32073         Tests for module 'unicase/u16-is-lowercase'.
32074         * modules/unicase/u16-is-lowercase-tests: New file.
32075         * tests/unicase/test-u16-is-lowercase.c: New file.
32076
32077         Tests for module 'unicase/u8-is-lowercase'.
32078         * modules/unicase/u8-is-lowercase-tests: New file.
32079         * tests/unicase/test-u8-is-lowercase.c: New file.
32080         * tests/unicase/test-is-lowercase.h: New file.
32081
32082         New module 'unicase/u32-is-lowercase'.
32083         * lib/unicase/u32-is-lowercase.c: New file.
32084         * modules/unicase/u32-is-lowercase: New file.
32085
32086         New module 'unicase/u16-is-lowercase'.
32087         * lib/unicase/u16-is-lowercase.c: New file.
32088         * modules/unicase/u16-is-lowercase: New file.
32089
32090         New module 'unicase/u8-is-lowercase'.
32091         * lib/unicase/u8-is-lowercase.c: New file.
32092         * modules/unicase/u8-is-lowercase: New file.
32093
32094         Tests for module 'unicase/u32-is-uppercase'.
32095         * modules/unicase/u32-is-uppercase-tests: New file.
32096         * tests/unicase/test-u32-is-uppercase.c: New file.
32097
32098         Tests for module 'unicase/u16-is-uppercase'.
32099         * modules/unicase/u16-is-uppercase-tests: New file.
32100         * tests/unicase/test-u16-is-uppercase.c: New file.
32101
32102         Tests for module 'unicase/u8-is-uppercase'.
32103         * modules/unicase/u8-is-uppercase-tests: New file.
32104         * tests/unicase/test-u8-is-uppercase.c: New file.
32105         * tests/unicase/test-is-uppercase.h: New file.
32106
32107         New module 'unicase/u32-is-uppercase'.
32108         * lib/unicase/u32-is-uppercase.c: New file.
32109         * modules/unicase/u32-is-uppercase: New file.
32110
32111         New module 'unicase/u16-is-uppercase'.
32112         * lib/unicase/u16-is-uppercase.c: New file.
32113         * modules/unicase/u16-is-uppercase: New file.
32114
32115         New module 'unicase/u8-is-uppercase'.
32116         * lib/unicase/u8-is-uppercase.c: New file.
32117         * modules/unicase/u8-is-uppercase: New file.
32118
32119         New module 'unicase/u32-is-invariant'.
32120         * lib/unicase/u32-is-invariant.c: New file.
32121         * modules/unicase/u32-is-invariant: New file.
32122
32123         New module 'unicase/u16-is-invariant'.
32124         * lib/unicase/u16-is-invariant.c: New file.
32125         * modules/unicase/u16-is-invariant: New file.
32126
32127         New module 'unicase/u8-is-invariant'.
32128         * lib/unicase/u8-is-invariant.c: New file.
32129         * lib/unicase/invariant.h: New file.
32130         * lib/unicase/u-is-invariant.h: New file.
32131         * modules/unicase/u8-is-invariant: New file.
32132
32133         Tests for module 'unicase/u32-casecoll'.
32134         * modules/unicase/u32-casecoll-tests: New file.
32135         * tests/unicase/test-u32-casecoll.c: New file.
32136
32137         Tests for module 'unicase/u16-casecoll'.
32138         * modules/unicase/u16-casecoll-tests: New file.
32139         * tests/unicase/test-u16-casecoll.c: New file.
32140
32141         Tests for module 'unicase/u8-casecoll'.
32142         * modules/unicase/u8-casecoll-tests: New file.
32143         * tests/unicase/test-u8-casecoll.c: New file.
32144
32145         New module 'unicase/u32-casecoll'.
32146         * lib/unicase/u32-casecoll.c: New file.
32147         * modules/unicase/u32-casecoll: New file.
32148
32149         New module 'unicase/u16-casecoll'.
32150         * lib/unicase/u16-casecoll.c: New file.
32151         * modules/unicase/u16-casecoll: New file.
32152
32153         New module 'unicase/u8-casecoll'.
32154         * lib/unicase/u8-casecoll.c: New file.
32155         * lib/unicase/u-casecoll.h: New file.
32156         * modules/unicase/u8-casecoll: New file.
32157
32158         New module 'unicase/u32-casexfrm'.
32159         * lib/unicase/u32-casexfrm.c: New file.
32160         * modules/unicase/u32-casexfrm: New file.
32161
32162         New module 'unicase/u16-casexfrm'.
32163         * lib/unicase/u16-casexfrm.c: New file.
32164         * modules/unicase/u16-casexfrm: New file.
32165
32166         New module 'unicase/u8-casexfrm'.
32167         * lib/unicase/u8-casexfrm.c: New file.
32168         * lib/unicase/u-casexfrm.h: New file.
32169         * modules/unicase/u8-casexfrm: New file.
32170
32171         Tests for module 'unicase/u32-casecmp'.
32172         * modules/unicase/u32-casecmp-tests: New file.
32173         * tests/unicase/test-u32-casecmp.c: New file.
32174
32175         Tests for module 'unicase/u16-casecmp'.
32176         * modules/unicase/u16-casecmp-tests: New file.
32177         * tests/unicase/test-u16-casecmp.c: New file.
32178
32179         Tests for module 'unicase/u8-casecmp'.
32180         * modules/unicase/u8-casecmp-tests: New file.
32181         * tests/unicase/test-u8-casecmp.c: New file.
32182         * tests/unicase/test-casecmp.h: New file.
32183
32184         New module 'unicase/u32-casecmp'.
32185         * lib/unicase/u32-casecmp.c: New file.
32186         * modules/unicase/u32-casecmp: New file.
32187
32188         New module 'unicase/u16-casecmp'.
32189         * lib/unicase/u16-casecmp.c: New file.
32190         * modules/unicase/u16-casecmp: New file.
32191
32192         New module 'unicase/u8-casecmp'.
32193         * lib/unicase/u8-casecmp.c: New file.
32194         * lib/unicase/u-casecmp.h: New file.
32195         * modules/unicase/u8-casecmp: New file.
32196
32197         Tests for module 'unicase/u32-casefold'.
32198         * modules/unicase/u32-casefold-tests: New file.
32199         * tests/unicase/test-u32-casefold.c: New file.
32200
32201         Tests for module 'unicase/u16-casefold'.
32202         * modules/unicase/u16-casefold-tests: New file.
32203         * tests/unicase/test-u16-casefold.c: New file.
32204
32205         Tests for module 'unicase/u8-casefold'.
32206         * modules/unicase/u8-casefold-tests: New file.
32207         * tests/unicase/test-u8-casefold.c: New file.
32208
32209         New module 'unicase/u32-casefold'.
32210         * lib/unicase/u32-casefold.c: New file.
32211         * modules/unicase/u32-casefold: New file.
32212
32213         New module 'unicase/u16-casefold'.
32214         * lib/unicase/u16-casefold.c: New file.
32215         * modules/unicase/u16-casefold: New file.
32216
32217         New module 'unicase/u8-casefold'.
32218         * lib/unicase/u8-casefold.c: New file.
32219         * lib/unicase/u-casefold.h: New file.
32220         * modules/unicase/u8-casefold: New file.
32221
32222         New module 'unicase/tocasefold'.
32223         * lib/unicase/casefold.h: New file.
32224         * lib/unicase/tocasefold.c: New file.
32225         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
32226         * modules/unicase/tocasefold: New file.
32227
32228         Tests for module 'unicase/u32-totitle'.
32229         * modules/unicase/u32-totitle-tests: New file.
32230         * tests/unicase/test-u32-totitle.c: New file.
32231
32232         Tests for module 'unicase/u16-totitle'.
32233         * modules/unicase/u16-totitle-tests: New file.
32234         * tests/unicase/test-u16-totitle.c: New file.
32235
32236         Tests for module 'unicase/u8-totitle'.
32237         * modules/unicase/u8-totitle-tests: New file.
32238         * tests/unicase/test-u8-totitle.c: New file.
32239
32240         New module 'unicase/u32-totitle'.
32241         * lib/unicase/u32-totitle.c: New file.
32242         * modules/unicase/u32-totitle: New file.
32243
32244         New module 'unicase/u16-totitle'.
32245         * lib/unicase/u16-totitle.c: New file.
32246         * modules/unicase/u16-totitle: New file.
32247
32248         New module 'unicase/u8-totitle'.
32249         * lib/unicase/u8-totitle.c: New file.
32250         * lib/unicase/u-totitle.h: New file.
32251         * modules/unicase/u8-totitle: New file.
32252
32253         Tests for module 'unicase/u32-tolower'.
32254         * modules/unicase/u32-tolower-tests: New file.
32255         * tests/unicase/test-u32-tolower.c: New file.
32256
32257         Tests for module 'unicase/u16-tolower'.
32258         * modules/unicase/u16-tolower-tests: New file.
32259         * tests/unicase/test-u16-tolower.c: New file.
32260
32261         Tests for module 'unicase/u8-tolower'.
32262         * modules/unicase/u8-tolower-tests: New file.
32263         * tests/unicase/test-u8-tolower.c: New file.
32264
32265         New module 'unicase/u32-tolower'.
32266         * lib/unicase/u32-tolower.c: New file.
32267         * modules/unicase/u32-tolower: New file.
32268
32269         New module 'unicase/u16-tolower'.
32270         * lib/unicase/u16-tolower.c: New file.
32271         * modules/unicase/u16-tolower: New file.
32272
32273         New module 'unicase/u8-tolower'.
32274         * lib/unicase/u8-tolower.c: New file.
32275         * modules/unicase/u8-tolower: New file.
32276
32277         Tests for module 'unicase/u32-toupper'.
32278         * modules/unicase/u32-toupper-tests: New file.
32279         * tests/unicase/test-u32-toupper.c: New file.
32280
32281         Tests for module 'unicase/u16-toupper'.
32282         * modules/unicase/u16-toupper-tests: New file.
32283         * tests/unicase/test-u16-toupper.c: New file.
32284
32285         Tests for module 'unicase/u8-toupper'.
32286         * modules/unicase/u8-toupper-tests: New file.
32287         * tests/unicase/test-u8-toupper.c: New file.
32288
32289         New module 'unicase/u32-toupper'.
32290         * lib/unicase/u32-toupper.c: New file.
32291         * modules/unicase/u32-toupper: New file.
32292
32293         New module 'unicase/u16-toupper'.
32294         * lib/unicase/u16-toupper.c: New file.
32295         * modules/unicase/u16-toupper: New file.
32296
32297         New module 'unicase/u8-toupper'.
32298         * lib/unicase/u8-toupper.c: New file.
32299         * modules/unicase/u8-toupper: New file.
32300
32301         New module 'unicase/u32-casemap'.
32302         * lib/unicase/u32-casemap.c: New file.
32303         * modules/unicase/u32-casemap: New file.
32304
32305         New module 'unicase/u16-casemap'.
32306         * lib/unicase/u16-casemap.c: New file.
32307         * modules/unicase/u16-casemap: New file.
32308
32309         New module 'unicase/u8-casemap'.
32310         * lib/unicase/unicasemap.h: New file.
32311         * lib/unicase/u8-casemap.c: New file.
32312         * lib/unicase/u-casemap.h: New file.
32313         * modules/unicase/u8-casemap: New file.
32314
32315         New module 'unicase/special-casing'.
32316         * lib/unicase/special-casing.h: New file.
32317         * lib/unicase/special-casing.c: New file.
32318         * lib/unicase/special-casing-table.gperf: New file, generated by
32319         gen-uni-tables.c.
32320         * modules/unicase/special-casing: New file.
32321
32322         Tests for module 'unicase/locale-language'.
32323         * modules/unicase/locale-language-tests: New file.
32324         * tests/unicase/test-locale-language.sh: New file.
32325         * tests/unicase/test-locale-language.c: New file.
32326
32327         New module 'unicase/locale-language'.
32328         * lib/unicase/locale-language.c: New file.
32329         * lib/unicase/locale-languages.gperf: New file.
32330         * modules/unicase/locale-language: New file.
32331
32332         Generate more tables for case conversion and case folding.
32333         * lib/gen-uni-tables.c (SCC_*): New enum items.
32334         (struct special_casing_rule): New type.
32335         (casing_rules, num_casing_rules, allocated_casing_rules): New
32336         variables.
32337         (add_casing_rule, fill_casing_rules): New functions.
32338         (struct casefold_rule): New type.
32339         (casefolding_rules, num_casefolding_rules,
32340         allocated_casefolding_rules): New variables.
32341         (fill_casefolding_rules): New function.
32342         (unicode_casefold): New variable.
32343         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
32344         sort_casing_rules, output_casing_rules): New functions.
32345         (main): Accept to more arguments: SpecialCasing.txt and
32346         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
32347         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
32348         Output mapping for casefolding.
32349
32350         * lib/unicase.h: Include stdbool.h, uninorm.h.
32351         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
32352         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
32353         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
32354         arguments.
32355         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
32356         resultp arguments.
32357         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
32358         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
32359         resultp arguments.
32360         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
32361         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
32362         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
32363         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
32364         declarations.
32365         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
32366
32367 2009-03-08  Bruno Haible  <bruno@clisp.org>
32368
32369         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32370         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
32371         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
32372         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32373
32374 2009-03-07  Bruno Haible  <bruno@clisp.org>
32375
32376         Adjust u*_normcmp, u*_normcoll API.
32377         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32378         u16_normcoll, u32_normcoll): Change failure conventions.
32379         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
32380         errno and return -1.
32381         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32382
32383 2009-03-07  Bruno Haible  <bruno@clisp.org>
32384
32385         Tests for module 'uninorm/u32-normcoll'.
32386         * modules/uninorm/u32-normcoll-tests: New file.
32387         * tests/uninorm/test-u32-normcoll.c: New file.
32388
32389         Tests for module 'uninorm/u16-normcoll'.
32390         * modules/uninorm/u16-normcoll-tests: New file.
32391         * tests/uninorm/test-u16-normcoll.c: New file.
32392
32393         Tests for module 'uninorm/u8-normcoll'.
32394         * modules/uninorm/u8-normcoll-tests: New file.
32395         * tests/uninorm/test-u8-normcoll.c: New file.
32396
32397 2009-03-07  Bruno Haible  <bruno@clisp.org>
32398
32399         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
32400         tests/uninorm/test-u32-normcmp.c.
32401         * tests/uninorm/test-u32-normcmp.c: Include it.
32402         (test_nonascii): New function, extracted from main. Add some more
32403         tests.
32404         (main): Invoke test_ascii and test_nonascii.
32405         * modules/uninorm/u32-normcmp-tests (Files): Add
32406         tests/uninorm/test-u32-normcmp.h.
32407         (Depends-on): Remove uninorm/u32-normcmp.
32408
32409         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
32410         tests/uninorm/test-u16-normcmp.c.
32411         * tests/uninorm/test-u16-normcmp.c: Include it.
32412         (test_nonascii): New function, extracted from main. Add some more
32413         tests.
32414         (main): Invoke test_ascii and test_nonascii.
32415         * modules/uninorm/u16-normcmp-tests (Files): Add
32416         tests/uninorm/test-u16-normcmp.h.
32417         (Depends-on): Remove uninorm/u16-normcmp.
32418
32419         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
32420         tests/uninorm/test-u8-normcmp.c.
32421         * tests/uninorm/test-u8-normcmp.c: Include it.
32422         (test_nonascii): New function, extracted from main. Add some more
32423         tests.
32424         (main): Invoke test_ascii and test_nonascii.
32425         * modules/uninorm/u8-normcmp-tests (Files): Add
32426         tests/uninorm/test-u8-normcmp.h.
32427         (Depends-on): Remove uninorm/u8-normcmp.
32428
32429 2009-03-07  Bruno Haible  <bruno@clisp.org>
32430
32431         New module 'uninorm/u32-normcoll'.
32432         * lib/uninorm/u32-normcoll.c: New file.
32433         * modules/uninorm/u32-normcoll: New file.
32434
32435         New module 'uninorm/u16-normcoll'.
32436         * lib/uninorm/u16-normcoll.c: New file.
32437         * modules/uninorm/u16-normcoll: New file.
32438
32439         New module 'uninorm/u8-normcoll'.
32440         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
32441         declarations.
32442         * lib/uninorm/u8-normcoll.c: New file.
32443         * lib/uninorm/u-normcoll.h: New file.
32444         * modules/uninorm/u8-normcoll: New file.
32445
32446         New module 'uninorm/u32-normxfrm'.
32447         * lib/uninorm/u32-normxfrm.c: New file.
32448         * modules/uninorm/u32-normxfrm: New file.
32449
32450         New module 'uninorm/u16-normxfrm'.
32451         * lib/uninorm/u16-normxfrm.c: New file.
32452         * modules/uninorm/u16-normxfrm: New file.
32453
32454         New module 'uninorm/u8-normxfrm'.
32455         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
32456         declarations.
32457         * lib/uninorm/u8-normxfrm.c: New file.
32458         * lib/uninorm/u-normxfrm.h: New file.
32459         * modules/uninorm/u8-normxfrm: New file.
32460
32461 2009-03-07  Bruno Haible  <bruno@clisp.org>
32462
32463         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
32464         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
32465         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
32466
32467 2009-03-07  Bruno Haible  <bruno@clisp.org>
32468
32469         New module 'memxfrm'.
32470         * lib/memxfrm.h: New file.
32471         * lib/memxfrm.c: New file.
32472         * modules/memxfrm: New file.
32473
32474 2009-03-07  Bruno Haible  <bruno@clisp.org>
32475
32476         New module 'memcmp2'.
32477         * lib/memcmp2.h: New file.
32478         * lib/memcmp2.c: New file.
32479         * modules/memcmp2: New file.
32480
32481 2009-03-07  Bruno Haible  <bruno@clisp.org>
32482
32483         Tests for module 'uninorm/decomposing-form'.
32484         * modules/uninorm/decomposing-form-tests: New file.
32485         * tests/uninorm/test-decomposing-form.c: New file.
32486
32487         New module 'uninorm/decomposing-form'.
32488         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
32489         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
32490         Add 'decomposing_variant' field.
32491         * lib/uninorm/decomposing-form.c: New file.
32492         * lib/uninorm/nfc.c (uninorm_nfc): Update.
32493         * lib/uninorm/nfd.c (uninorm_nfd): Update.
32494         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
32495         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
32496         * modules/uninorm/decomposing-form: New file.
32497         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
32498         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
32499
32500 2009-03-07  Bruno Haible  <bruno@clisp.org>
32501
32502         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
32503         strings.
32504
32505 2009-03-06  Bruno Haible  <bruno@clisp.org>
32506
32507         Tests for module 'uninorm/u32-normcmp'.
32508         * tests/uninorm/test-u32-normcmp.c: New file.
32509         * modules/uninorm/u32-normcmp-tests: New file.
32510
32511         Tests for module 'uninorm/u16-normcmp'.
32512         * tests/uninorm/test-u16-normcmp.c: New file.
32513         * modules/uninorm/u16-normcmp-tests: New file.
32514
32515         Tests for module 'uninorm/u8-normcmp'.
32516         * tests/uninorm/test-u8-normcmp.c: New file.
32517         * modules/uninorm/u8-normcmp-tests: New file.
32518
32519         New module 'uninorm/u32-normcmp'.
32520         * lib/uninorm/u32-normcmp.c: New file.
32521         * modules/uninorm/u32-normcmp: New file.
32522
32523         New module 'uninorm/u16-normcmp'.
32524         * lib/uninorm/u16-normcmp.c: New file.
32525         * modules/uninorm/u16-normcmp: New file.
32526
32527         New module 'uninorm/u8-normcmp'.
32528         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
32529         declarations.
32530         * lib/uninorm/u8-normcmp.c: New file.
32531         * lib/uninorm/u-normcmp.h: New file.
32532         * modules/uninorm/u8-normcmp: New file.
32533
32534 2009-03-06  Bruno Haible  <bruno@clisp.org>
32535
32536         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
32537         Reported by Eric Blake.
32538
32539 2009-03-06  Eric Blake  <ebb9@byu.net>
32540             Bruno Haible  <bruno@clisp.org>
32541
32542         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
32543         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
32544         condition.
32545         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32546         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
32547         condition.
32548         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32549
32550 2009-03-06  Eric Blake  <ebb9@byu.net>
32551
32552         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
32553         to avoid compiler warnings.
32554         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
32555
32556 2009-03-05  Bruno Haible  <bruno@clisp.org>
32557
32558         * tests/test-ftell.c (main): Disable test beyond end of file on
32559         FreeMiNT.
32560         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32561
32562 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
32563
32564         * lib/filevercmp.c: Move hidden files up in ordering.
32565         * tests/test-filevercmp.c: Add tests for hidden files.
32566
32567 2009-03-04  Bruno Haible  <bruno@clisp.org>
32568
32569         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
32570         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
32571         AM_CFLAGS.
32572         Reported by Simon Josefsson.
32573
32574 2009-03-03  Bruno Haible  <bruno@clisp.org>
32575
32576         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
32577         Reported by Simon Josefsson.
32578
32579         * doc/ld-version-script.texi: Update node reference.
32580
32581 2009-03-03  Bruno Haible  <bruno@clisp.org>
32582
32583         * modules/visibility (License): Change to 'unlimited'.
32584         Suggested by Simon Josefsson.
32585
32586 2009-03-03  Jim Meyering  <meyering@redhat.com>
32587
32588         unlinkdir: cannot_unlink_dir may modify process state
32589         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
32590         it's neither thread-safe nor appropriate for use in a library.
32591
32592 2009-03-03  Eric Blake  <ebb9@byu.net>
32593
32594         test-closein: silence test under Darwin
32595         * tests/test-closein.sh: Ignore stderr from cat, since we don't
32596         care if it dies from EPIPE or EBADF.
32597
32598 2009-03-03  Bruno Haible  <bruno@clisp.org>
32599
32600         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
32601         earlier.
32602         * doc/visibility.texi: Fix @node and @section.
32603
32604 2009-03-03  Simon Josefsson  <simon@josefsson.org>
32605
32606         * doc/gnulib.texi: Link to sections for ld version script and
32607         visibility.
32608         * doc/visibility.texi: Add @node and @section.
32609         * modules/ld-version-script: New module.
32610         * m4/ld-version-script.m4: New file.
32611         * doc/ld-version-script.texi: New file.
32612
32613 2009-03-02  David Lutterkort  <lutter@redhat.com>
32614
32615         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
32616         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32617
32618 2009-03-02  Bruno Haible  <bruno@clisp.org>
32619
32620         * doc/visibility.texi: Mention libtool's -export-symbols option.
32621
32622 2009-03-02  Jim Meyering  <meyering@redhat.com>
32623
32624         announce-gen: new option: --no-print-checksums
32625         * build-aux/announce-gen (usage): Describe it.
32626         (print_checksums): Print a newline here, not in the [*] footnote.
32627         (main): Honor it.
32628
32629 2009-03-01  Bruno Haible  <bruno@clisp.org>
32630
32631         Use socklen_t in the native Windows replacements prototypes.
32632         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
32633         instead of 'int'.
32634         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32635         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32636         * modules/getsockopt (Depends-on): Add socklen.
32637         * modules/setsockopt (Depends-on): Add socklen.
32638
32639 2009-03-01  Bruno Haible  <bruno@clisp.org>
32640
32641         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
32642         least 4.2.
32643
32644 2009-03-01  Eric Blake  <ebb9@byu.net>
32645             Bruno Haible  <bruno@clisp.org>
32646
32647         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
32648         error messages.
32649         * lib/wait-process.c (wait_subprocess): Omit error message about
32650         deadly signal sent to the child of termsigp != NULL.
32651
32652 2009-03-01  Eric Blake  <ebb9@byu.net>
32653
32654         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
32655
32656 2009-03-01  Bruno Haible  <bruno@clisp.org>
32657
32658         Avoid a gcc warning.
32659         * tests/test-sched.c (b): Make global.
32660         Reported by Eric Blake.
32661
32662 2009-01-19  Martin Lambers  <marlam@marlam.de>
32663
32664         Provide POSIX semantics for socket timeout options on W32.
32665         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
32666         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
32667         * modules/setsockopt: Depend on sys_time module for struct timeval.
32668         * modules/getsockopt: Depend on sys_time module for struct timeval.
32669
32670 2009-03-01  Simon Josefsson  <simon@josefsson.org>
32671
32672         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
32673         __USE_GNU, for consistency with netdb.in.h.
32674         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32675
32676 2009-03-01  Bruno Haible  <bruno@clisp.org>
32677
32678         More support for FreeMiNT.
32679         * lib/fseeko.c (rpl_fseeko): Complete last commit.
32680         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32681
32682 2009-03-01  Bruno Haible  <bruno@clisp.org>
32683
32684         More support for FreeMiNT.
32685         * lib/fpurge.c (fpurge): Correct last commit.
32686         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32687
32688 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32689
32690         Fix unportable awk script in vc-list-files.
32691         * build-aux/vc-list-files: In the replacement awk script, use
32692         substr with a second argument of 1, not zero.
32693         Report by Simon Josefsson.
32694
32695 2009-02-28  Bruno Haible  <bruno@clisp.org>
32696
32697         More support for FreeMiNT.
32698         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
32699         to FreeMiNT today.
32700         * lib/fwriting.c (fwriting): Likewise.
32701         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
32702
32703 2009-02-28  Bruno Haible  <bruno@clisp.org>
32704
32705         * tests/test-freadseek.c (main): Disable test beyond end of file on
32706         FreeMiNT.
32707         * tests/test-ftello.c (main): Likewise.
32708         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32709
32710 2009-02-28  Bruno Haible  <bruno@clisp.org>
32711
32712         Add tentative support for FreeMiNT.
32713         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
32714         * lib/fpurge.c (fpurge): Likewise.
32715         * lib/freadable.c (freadable): Likewise.
32716         * lib/freading.c (freading): Likewise.
32717         * lib/freadptr.c (freadptr): Likewise.
32718         * lib/freadseek.c (freadptrinc): Likewise.
32719         * lib/fseeko.c (rpl_fseeko): Likewise.
32720         * lib/fseterr.c (fseterr): Likewise.
32721         * lib/fwritable.c (fwritable): Likewise.
32722         * lib/fwriting.c (fwriting): Likewise.
32723         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
32724         Hourihane.
32725         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32726
32727 2009-02-28  Bruno Haible  <bruno@clisp.org>
32728
32729         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
32730         SIGCHLD.
32731         Reported by Jim Meyering.
32732
32733 2009-02-28  Bruno Haible  <bruno@clisp.org>
32734
32735         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
32736         Mention the results of these tests on various platforms.
32737         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
32738         order.
32739         * doc/posix-functions/printf.texi: Likewise.
32740         * doc/posix-functions/snprintf.texi: Likewise.
32741         * doc/posix-functions/sprintf.texi: Likewise.
32742         * doc/posix-functions/vfprintf.texi: Likewise.
32743         * doc/posix-functions/vprintf.texi: Likewise.
32744         * doc/posix-functions/vsnprintf.texi: Likewise.
32745         * doc/posix-functions/vsprintf.texi: Likewise.
32746         * doc/glibc-functions/obstack_printf.texi: Likewise.
32747         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
32748
32749 2009-02-28  Bruno Haible  <bruno@clisp.org>
32750
32751         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
32752         Reported by Loïc Minier <lool@dooz.org>.
32753
32754 2009-02-27  Bruno Haible  <bruno@clisp.org>
32755
32756         * gnulib-tool (func_import): Make the sed expression used to create the
32757         sed script for updating the .gitignore file POSIX compliant.
32758         Reported by Eric Blake.
32759
32760 2009-02-27  Bruno Haible  <bruno@clisp.org>
32761
32762         * gnulib-tool (sed): Don't alias as "sed --posix".
32763         Reported by Eric Blake.
32764
32765 2009-02-27  Bruno Haible  <bruno@clisp.org>
32766
32767         Avoid test link errors.
32768         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
32769         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
32770         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
32771         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
32772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32773
32774 2009-02-27  Bruno Haible  <bruno@clisp.org>
32775
32776         Avoid spurious "(cached)" in configure output.
32777         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
32778         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
32779         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32780         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32781         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32782         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
32783         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32784         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32785         Reported by Eric Blake.
32786
32787 2009-02-27  Eric Blake  <ebb9@byu.net>
32788
32789         printf: fix regression in previous patch
32790         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
32791
32792 2009-02-27  Bruno Haible  <bruno@clisp.org>
32793
32794         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
32795         value.
32796         * lib/stdint.in.h: Likewise.
32797         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
32798
32799 2009-02-27  Eric Blake  <ebb9@byu.net>
32800
32801         doc: mention more functions added in cygwin 1.7.0
32802         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
32803         addition.
32804         * doc/posix-functions/open_wmemstream.texi: Likewise.
32805         * doc/posix-functions/wcsnlen.texi: Likewise.
32806         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32807         * doc/posix-functions/wcstod.texi: Likewise.
32808         * doc/posix-functions/wcstof.texi: Likewise.
32809         * doc/posix-functions/wcstoimax.texi: Likewise.
32810         * doc/posix-functions/wcstok.texi: Likewise.
32811         * doc/posix-functions/wcstoumax.texi: Likewise.
32812
32813         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
32814         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
32815         * doc/posix-functions/fprintf.texi: Update.
32816         * doc/posix-functions/printf.texi: Update.
32817         * doc/posix-functions/snprintf.texi: Update.
32818         * doc/posix-functions/sprintf.texi: Update.
32819         * doc/posix-functions/vfprintf.texi: Update.
32820         * doc/posix-functions/vprintf.texi: Update.
32821         * doc/posix-functions/vsnprintf.texi: Update.
32822         * doc/posix-functions/vsprintf.texi: Update.
32823         * doc/glibc-functions/obstack_printf.texi: Update.
32824         * doc/glibc-functions/obstack_vprintf.texi: Update.
32825
32826 2009-02-26  Eric Blake  <ebb9@byu.net>
32827
32828         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
32829         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
32830         compilation bug by using runtime conversion.
32831         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32832         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
32833         * modules/ceill-tests (Files): Use nan.h.
32834         * modules/floorl-tests (Files): Likewise.
32835         * modules/frexpl-tests (Files): Likewise.
32836         * modules/isnanl-tests (Files): Likewise.
32837         * modules/ldexpl-tests (Files): Likewise.
32838         * modules/roundl-tests (Files): Likewise.
32839         * modules/truncl-tests (Files): Likewise.
32840         * tests/test-ceill.c (main): Use a working NaN.
32841         * tests/test-floorl.c (main): Likewise.
32842         * tests/test-frexpl.c (main): Likewise.
32843         * tests/test-isnan.c (test_long_double): Likewise.
32844         * tests/test-isnanl.h (main): Likewise.
32845         * tests/test-ldexpl.h (main): Likewise.
32846         * tests/test-roundl.h (main): Likewise.
32847         * tests/test-truncl.h (main): Likewise.
32848         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
32849
32850 2009-02-26  Eric Blake  <ebb9@byu.net>
32851             Bruno Haible  <bruno@clisp.org>
32852
32853         Work around a *printf bug with %ls on Solaris.
32854         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
32855         precision is specified, sprintf stops converting the wide string
32856         argument when the number of bytes that have been produced by this
32857         conversion equals or exceeds the precision.
32858         * doc/posix-functions/fprintf.texi: Update.
32859         * doc/posix-functions/printf.texi: Update.
32860         * doc/posix-functions/snprintf.texi: Update.
32861         * doc/posix-functions/sprintf.texi: Update.
32862         * doc/posix-functions/vfprintf.texi: Update.
32863         * doc/posix-functions/vprintf.texi: Update.
32864         * doc/posix-functions/vsnprintf.texi: Update.
32865         * doc/posix-functions/vsprintf.texi: Update.
32866         * doc/glibc-functions/obstack_printf.texi: Update.
32867         * doc/glibc-functions/obstack_vprintf.texi: Update.
32868
32869 2009-02-26  Eric Blake  <ebb9@byu.net>
32870
32871         stdlib: favor compiler check of random.h
32872         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
32873         to avoid an ObjC random.h installed by Swarm.
32874
32875 2009-02-26  Bruno Haible  <bruno@clisp.org>
32876
32877         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
32878         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
32879         Reported by Gary V. Vaughan <gary@gnu.org>.
32880
32881 2009-02-26  Bruno Haible  <bruno@clisp.org>
32882
32883         Fix *printf behaviour regarding the %ls directive.
32884         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
32885         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
32886         NEED_PRINTF_DIRECTIVE_LS.
32887         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
32888         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32889         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32890         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
32891         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
32892         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
32893         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32894         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32895         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32896         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32897         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32898         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
32899         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32900         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32901         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32902         * doc/posix-functions/fprintf.texi: Update.
32903         * doc/posix-functions/printf.texi: Update.
32904         * doc/posix-functions/snprintf.texi: Update.
32905         * doc/posix-functions/sprintf.texi: Update.
32906         * doc/posix-functions/vfprintf.texi: Update.
32907         * doc/posix-functions/vprintf.texi: Update.
32908         * doc/posix-functions/vsnprintf.texi: Update.
32909         * doc/posix-functions/vsprintf.texi: Update.
32910         * doc/glibc-functions/obstack_printf.texi: Update.
32911         * doc/glibc-functions/obstack_vprintf.texi: Update.
32912         Reported by Eric Blake.
32913
32914 2009-02-25  Bruno Haible  <bruno@clisp.org>
32915
32916         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
32917         with known value.
32918         Reported by Gary V. Vaughan <gary@gnu.org>.
32919
32920 2009-02-25  Bruno Haible  <bruno@clisp.org>
32921
32922         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
32923         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
32924         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
32925         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
32926         Reported by Gary V. Vaughan <gary@gnu.org>.
32927
32928 2009-02-25  Bruno Haible  <bruno@clisp.org>
32929
32930         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
32931         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
32932         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
32933         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
32934         Reported by Gary V. Vaughan <gary@gnu.org>.
32935
32936 2009-02-25  Eric Blake  <ebb9@byu.net>
32937
32938         tests: skip fseek/ftell tests if ungetc is broken
32939         * m4/ungetc.m4: New file.
32940         * modules/fseek-tests: Split test, so ungetc dependency is
32941         separate from rest of test.
32942         * modules/fseeko-tests: Likewise.
32943         * modules/ftell-tests: Likewise.
32944         * modules/ftello-tests: Likewise.
32945         * tests/test-fseek.c (main): Isolate ungetc dependency.
32946         * tests/test-fseeko.c (main): Likewise.
32947         * tests/test-ftell.c (main): Likewise.
32948         * tests/test-ftello.c (main): Likewise.
32949         * tests/test-fseek2.sh: New file.
32950         * tests/test-fseeko2.sh: Likewise.
32951         * tests/test-ftell2.sh: Likewise.
32952         * tests/test-ftello2.sh: Likewise.
32953
32954 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
32955
32956         test-getaddrinfo: fix usage of skip return code 77
32957         * tests/test-gettaddrinfo.c: Return skip code 77 only
32958         for first occurance of skip (4x77 is not 77)
32959
32960 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
32961
32962         strtod: avoid C99 decl-after-statement
32963         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
32964
32965 2009-02-24  Eric Blake  <ebb9@byu.net>
32966
32967         strtod: detect HP-UX 11.31 bug
32968         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
32969         Reported by Gary V. Vaughan.
32970
32971 2009-02-23  Bruno Haible  <bruno@clisp.org>
32972
32973         Fix invalid read past end of memory block.
32974         * lib/vasnprintf.c (DCHAR_SET): Define.
32975         (local_wcslen): Define only when needed.
32976         (local_strnlen, local_wcsnlen): New functions.
32977         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
32978         directives that involve a conversion ourselves.
32979         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
32980         wcsnlen, mbrtowc, wcrtomb.
32981         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
32982         * tests/test-vasprintf-posix.c (test_function): Likewise.
32983         * tests/test-snprintf-posix.h (test_function): Likewise.
32984         * tests/test-sprintf-posix.h (test_function): Likewise.
32985         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32986
32987 2009-02-22  Bruno Haible  <bruno@clisp.org>
32988
32989         Implement new clarified decomposition of Hangul syllables.
32990         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
32991         of type LTV, return only a pairwise decomposition.
32992         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
32993         Likewise.
32994         * tests/uninorm/test-decomposition.c (main): Updated expected result.
32995         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
32996         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
32997
32998 2009-02-22  Bruno Haible  <bruno@clisp.org>
32999
33000         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
33001         zero-length results and shrink excess allocated memory.
33002         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
33003         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
33004         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
33005         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
33006         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
33007         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
33008         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
33009         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
33010         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
33011         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
33012         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
33013         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
33014
33015 2009-02-21  Bruno Haible  <bruno@clisp.org>
33016
33017         * doc/gnulib.texi: Include safe-alloc.texi earlier.
33018         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
33019         spaces after a period. Put a space between a macro name and its
33020         argument list. Trivial rewordings.
33021         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
33022         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
33023         (main): Return 0 explicitly.
33024
33025 2009-02-21  Bruno Haible  <bruno@clisp.org>
33026
33027         Tests for module 'uninorm/filter'.
33028         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
33029         * modules/uninorm/filter-tests: New file.
33030
33031         New module 'uninorm/filter'.
33032         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
33033         uninorm_filter_flush, uninorm_filter_free): New declarations.
33034         * lib/uninorm/uninorm-filter.c: New file.
33035         * modules/uninorm/filter: New file.
33036
33037 2009-02-21  Bruno Haible  <bruno@clisp.org>
33038
33039         Tests for module 'uninorm/nfkc'.
33040         * tests/uninorm/test-nfkc.c: New file.
33041         * tests/uninorm/test-u8-nfkc.c: New file.
33042         * tests/uninorm/test-u16-nfkc.c: New file.
33043         * tests/uninorm/test-u32-nfkc.c: New file.
33044         * tests/uninorm/test-u32-nfkc-big.sh: New file.
33045         * tests/uninorm/test-u32-nfkc-big.c: New file.
33046         * modules/uninorm/nfkc-tests: New file.
33047
33048         New module 'uninorm/nfkc'.
33049         * lib/uninorm/nfkc.c: New file.
33050         * modules/uninorm/nfkc: New file.
33051
33052         Tests for module 'uninorm/nfkd'.
33053         * tests/uninorm/test-nfkd.c: New file.
33054         * tests/uninorm/test-u8-nfkd.c: New file.
33055         * tests/uninorm/test-u16-nfkd.c: New file.
33056         * tests/uninorm/test-u32-nfkd.c: New file.
33057         * tests/uninorm/test-u32-nfkd-big.sh: New file.
33058         * tests/uninorm/test-u32-nfkd-big.c: New file.
33059         * modules/uninorm/nfkd-tests: New file.
33060
33061         New module 'uninorm/nfkd'.
33062         * lib/uninorm/nfkd.c: New file.
33063         * modules/uninorm/nfkd: New file.
33064
33065         Tests for module 'uninorm/nfc'.
33066         * tests/uninorm/test-nfc.c: New file.
33067         * tests/uninorm/test-u8-nfc.c: New file.
33068         * tests/uninorm/test-u16-nfc.c: New file.
33069         * tests/uninorm/test-u32-nfc.c: New file.
33070         * tests/uninorm/test-u32-nfc-big.sh: New file.
33071         * tests/uninorm/test-u32-nfc-big.c: New file.
33072         * modules/uninorm/nfc-tests: New file.
33073
33074         New module 'uninorm/nfc'.
33075         * lib/uninorm/nfc.c: New file.
33076         * modules/uninorm/nfc: New file.
33077
33078         Tests for module 'uninorm/nfd'.
33079         * tests/uninorm/test-nfd.c: New file.
33080         * tests/uninorm/test-u8-nfd.c: New file.
33081         * tests/uninorm/test-u16-nfd.c: New file.
33082         * tests/uninorm/test-u32-nfd.c: New file.
33083         * tests/uninorm/test-u32-nfd-big.sh: New file.
33084         * tests/uninorm/test-u32-nfd-big.c: New file.
33085         * tests/uninorm/test-u32-normalize-big.h: New file.
33086         * tests/uninorm/test-u32-normalize-big.c: New file.
33087         * tests/uninorm/NormalizationTest.txt: New file, created from
33088         Unicode 5.1.0 NormalizationTest.txt.
33089         * modules/uninorm/nfd-tests: New file.
33090
33091         New module 'uninorm/nfd'.
33092         * lib/uninorm/nfd.c: New file.
33093         * modules/uninorm/nfd: New file.
33094
33095         New module 'uninorm/u32-normalize'.
33096         * lib/uninorm/u32-normalize.c: New file.
33097         * modules/uninorm/u32-normalize: New file.
33098
33099         New module 'uninorm/u16-normalize'.
33100         * lib/uninorm/u16-normalize.c: New file.
33101         * modules/uninorm/u16-normalize: New file.
33102
33103         New module 'uninorm/u8-normalize'.
33104         * lib/uninorm/u8-normalize.c: New file.
33105         * lib/uninorm/normalize-internal.h: New file.
33106         * lib/uninorm/u-normalize-internal.h: New file.
33107         * modules/uninorm/u8-normalize: New file.
33108
33109         New module 'uninorm/decompose-internal'.
33110         * lib/uninorm/decompose-internal.c: New file.
33111         * modules/uninorm/decompose-internal: New file.
33112
33113         Tests for module 'uninorm/composition'.
33114         * tests/uninorm/test-composition.c: New file.
33115         * modules/uninorm/composition-tests: New file.
33116
33117         New module 'uninorm/composition'.
33118         * lib/uninorm/composition.c: New file.
33119         * lib/uninorm/composition-table.gperf: New file, generated by
33120         gen-uni-tables.
33121         * modules/uninorm/composition: New file.
33122
33123         Tests for module 'uninorm/compat-decomposition'.
33124         * tests/uninorm/test-compat-decomposition.c: New file.
33125         * modules/uninorm/compat-decomposition-tests: New file.
33126
33127         New module 'uninorm/compat-decomposition'.
33128         * lib/uninorm/decompose-internal.h: New file.
33129         * lib/uninorm/compat-decomposition.c: New file.
33130         * modules/uninorm/compat-decomposition: New file.
33131
33132         Tests for module 'uninorm/canonical-decomposition'.
33133         * tests/uninorm/test-canonical-decomposition.c: New file.
33134         * modules/uninorm/canonical-decomposition-tests: New file.
33135
33136         New module 'uninorm/canonical-decomposition'.
33137         * lib/uninorm/canonical-decomposition.c: New file.
33138         * modules/uninorm/canonical-decomposition: New file.
33139
33140         Tests for module 'uninorm/decomposition'.
33141         * tests/uninorm/test-decomposition.c: New file.
33142         * modules/uninorm/decomposition-tests: New file.
33143
33144         New module 'uninorm/decomposition'.
33145         * lib/uninorm/decomposition.c: New file.
33146         * modules/uninorm/decomposition: New file.
33147
33148         New module 'uninorm/decomposition-table'.
33149         * lib/uninorm/decomposition-table.h: New file.
33150         * lib/uninorm/decomposition-table.c: New file.
33151         * lib/uninorm/decomposition-table1.h: New file, generated by
33152         gen-uni-tables.
33153         * lib/uninorm/decomposition-table2.h: New file, generated by
33154         gen-uni-tables.
33155         * modules/uninorm/decomposition-table: New file.
33156
33157         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
33158         (UC_DECOMP_*): New enumeration items.
33159         (get_decomposition): New function.
33160         (struct decomp_table): New type.
33161         (output_decomposition, output_decomposition_tables): New functions.
33162         (unicode_composition_exclusions): New variable.
33163         (fill_composition_exclusions, debug_output_composition_tables): New
33164         functions.
33165         (main): Accept one more argument. Invoke fill_composition_exclusions.
33166         Output decomposition and composition tables.
33167
33168         New module 'uninorm/base'.
33169         * lib/uninorm.h: New file.
33170         * lib/unictype.h: Update comment.
33171         * modules/uninorm/base: New file.
33172
33173 2009-02-21  David Lutterkort  <lutter@redhat.com>
33174
33175         Tests for module 'safe-alloc'.
33176         * tests/test-safe-alloc.c: New file.
33177         * modules/safe-alloc-tests: New file.
33178
33179         New module 'safe-alloc'.
33180         * lib/safe-alloc.h: New file.
33181         * lib/safe-alloc.c: New file.
33182         * m4/safe-alloc.m4: New file.
33183         * modules/safe-alloc: New file.
33184         * doc/safe-alloc.texi: New file.
33185         * doc/gnulib.texi: Include it.
33186         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
33187         safe-alloc.
33188
33189 2009-02-18  Bruno Haible  <bruno@clisp.org>
33190
33191         Fix link error on non-glibc systems.
33192         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
33193         variable.
33194         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33195
33196 2009-02-18  Jim Meyering  <meyering@redhat.com>
33197
33198         fts: avoid used-uninitialized error due to recent change
33199         * lib/fts.c (fts_read): Guard uses of the new member,
33200         parent->fts_n_dirs_remaining, since it's not relevant for
33201         the parent of a directory specified on the command-line.
33202
33203 2009-02-17  James Youngman  <jay@gnu.org>
33204             Bruno Haible  <bruno@clisp.org>
33205
33206         * m4/include_next.m4: Reformulate comment.
33207
33208 2009-02-16  Jim Meyering  <meyering@redhat.com>
33209
33210         fts: add #if guards so that the fts_lgpl module still builds
33211         * lib/fts.c: Guard just-added hash-table-using parts with
33212         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
33213         Reported by Simon Josefsson.
33214
33215 2009-02-15  Bruno Haible  <bruno@clisp.org>
33216
33217         * modules/array-mergesort-tests: New file.
33218         * tests/test-array-mergesort.c: New file.
33219
33220         New module 'array-mergesort'.
33221         * modules/array-mergesort: New file.
33222         * lib/array-mergesort.h: New file.
33223
33224 2009-02-15  Bruno Haible  <bruno@clisp.org>
33225
33226         Fix 2009-02-07 commit.
33227         * lib/gen-uni-tables.c (output_predicate, output_category,
33228         output_combclass, output_bidi_category, output_decimal_digit,
33229         output_digit, output_numeric, output_mirror, output_scripts,
33230         output_ident_category, output_simple_mapping): Fix format directives.
33231         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
33232
33233 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
33234
33235         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
33236         fixes are available from IBM.
33237
33238 2009-02-13  Jim Meyering  <meyering@redhat.com>
33239
33240         fts: arrange not to stat non-directories in more cases
33241         This makes GNU find (when it doesn't need to stat each file)
33242         *much* more efficient at traversing reiserfs file systems.
33243         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
33244         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
33245         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
33246         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
33247         (leaf_optimization_applies): New function.
33248         (LCO_hash, LCO_compare): New helper functions.
33249         (link_count_optimize_ok): New function.
33250         (fts_stat): Initialize new member (if dir).
33251         (fts_read): Decrement parent's fts_n_dirs_remaining count if
33252         we've just stat'ed a directory.  Skip the stat call when possible.
33253         ---
33254         Note this AFS-related exchange:
33255         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
33256         and note find's pioctl call in find/fstype.c.
33257         But that is necessary only if you want to enable the
33258         optimization for AFS, and for now, I don't.
33259
33260         fts: move a function definition "up" (no semantic change)
33261         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
33262         "up" to precede upcoming use of a related function.
33263
33264 2009-02-11  Jim Meyering  <meyering@redhat.com>
33265
33266         fts: correct internal computation of nlinks (optimization-related)
33267         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
33268         whether the current entry is a directory, so don't test it.
33269
33270 2009-02-10  Bruno Haible  <bruno@clisp.org>
33271
33272         Tests for module 'uniwbrk/ulc-wordbreaks'.
33273         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
33274         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
33275         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
33276
33277         Tests for module 'uniwbrk/u32-wordbreaks'.
33278         * modules/uniwbrk/u32-wordbreaks-tests: New file.
33279         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
33280
33281         Tests for module 'uniwbrk/u16-wordbreaks'.
33282         * modules/uniwbrk/u16-wordbreaks-tests: New file.
33283         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
33284
33285         Tests for module 'uniwbrk/u8-wordbreaks'.
33286         * modules/uniwbrk/u8-wordbreaks-tests: New file.
33287         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
33288
33289 2009-02-10  Bruno Haible  <bruno@clisp.org>
33290
33291         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
33292         property.
33293         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
33294         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
33295         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
33296
33297 2009-02-10  Simon Josefsson  <simon@josefsson.org>
33298
33299         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
33300         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
33301
33302 2009-02-10  Bruno Haible  <bruno@clisp.org>
33303
33304         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
33305         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
33306         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
33307         * lib/unilbrk/u8-possible-linebreaks.c: Update.
33308         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
33309         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
33310
33311 2009-02-09  Simon Josefsson  <simon@josefsson.org>
33312
33313         * lib/sockets.h (gl_fd_to_handle): New function.
33314
33315         * tests/test-sockets.c: Call gl_fd_to_handle.
33316
33317 2009-02-09  Bruno Haible  <bruno@clisp.org>
33318
33319         * doc/havelib.texi: Document the conventions on bi-arch systems.
33320
33321 2009-02-08  Bruno Haible  <bruno@clisp.org>
33322
33323         Document the AC_LIB_LINKFLAGS macro.
33324         * doc/havelib.texi: New file, mostly written on 2005-05-24.
33325         * doc/gnulib.texi: Include it.
33326
33327 2009-02-08  Bruno Haible  <bruno@clisp.org>
33328
33329         Fix wrong order of sections, compared to TOC.
33330         * doc/gnulib.texi: Include relocatable-maint.texi after the
33331         "Regular expressions" node, not before.
33332
33333 2009-02-08  Bruno Haible  <bruno@clisp.org>
33334
33335         Tests for module 'unicase/totitle'.
33336         * modules/unicase/totitle-tests: New file.
33337
33338         Tests for module 'unicase/tolower'.
33339         * modules/unicase/tolower-tests: New file.
33340
33341         Tests for module 'unicase/toupper'.
33342         * modules/unicase/toupper-tests: New file.
33343         * tests/unicase/test-mapping-part1.h: New file.
33344         * tests/unicase/test-mapping-part2.h: New file.
33345
33346         New module 'unicase/totitle'.
33347         * modules/unicase/totitle: New file.
33348         * lib/unicase/totitle.c: New file.
33349
33350         New module 'unicase/tolower'.
33351         * modules/unicase/tolower: New file.
33352         * lib/unicase/tolower.c: New file.
33353
33354         New module 'unicase/toupper'.
33355         * modules/unicase/toupper: New file.
33356         * lib/unicase/toupper.c: New file.
33357         * lib/unicase/simple-mapping.h: New file.
33358
33359         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
33360         (mapping_table): New structure.
33361         (output_simple_mapping): New function.
33362         (main): Invoke output_simple_mapping_test and output_simple_mapping.
33363         * modules/gen-uni-tables (Description): Update.
33364         * lib/unicase/toupper.h: New file, automatically generated by
33365         gen-uni-tables.
33366         * lib/unicase/tolower.h: New file, automatically generated by
33367         gen-uni-tables.
33368         * lib/unicase/totitle.h: New file, automatically generated by
33369         gen-uni-tables.
33370         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
33371         gen-uni-tables.
33372         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
33373         gen-uni-tables.
33374         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
33375         gen-uni-tables.
33376
33377         New module 'unicase/base'.
33378         * modules/unicase/base: New file.
33379         * lib/unicase.h: New file.
33380
33381 2009-02-08  Bruno Haible  <bruno@clisp.org>
33382
33383         New module 'uniwbrk/ulc-wordbreaks'.
33384         * modules/uniwbrk/ulc-wordbreaks: New file.
33385         * lib/uniwbrk/ulc-wordbreaks.c: New file.
33386
33387         New module 'uniwbrk/u32-wordbreaks'.
33388         * modules/uniwbrk/u32-wordbreaks: New file.
33389         * lib/uniwbrk/u32-wordbreaks.c: New file.
33390
33391         New module 'uniwbrk/u16-wordbreaks'.
33392         * modules/uniwbrk/u16-wordbreaks: New file.
33393         * lib/uniwbrk/u16-wordbreaks.c: New file.
33394
33395         New module 'uniwbrk/u8-wordbreaks'.
33396         * modules/uniwbrk/u8-wordbreaks: New file.
33397         * lib/uniwbrk/u8-wordbreaks.c: New file.
33398         * lib/uniwbrk/u-wordbreaks.h: New file.
33399
33400         New module 'uniwbrk/table'.
33401         * modules/uniwbrk/table: New file.
33402         * lib/uniwbrk/wbrktable.h: New file.
33403         * lib/uniwbrk/wbrktable.c: New file.
33404
33405         New module 'uniwbrk/wordbreak-property'.
33406         * modules/uniwbrk/wordbreak-property: New file.
33407         * lib/uniwbrk/wordbreak-property.c: New file.
33408
33409         * lib/gen-uni-tables.c (WBP_*): New enum items.
33410         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
33411         (unicode_org_wbp): New variable.
33412         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
33413         New functions.
33414         (wbp_table): New structure.
33415         (output_wbp, output_wbrk_tables): New functions.
33416         (main): Accept additional argument. Invoke fill_org_wbp,
33417         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
33418         output_wbrk_tables.
33419         * modules/gen-uni-tables (Description): Update.
33420         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
33421         gen-uni-tables.
33422
33423         New module 'uniwbrk/base'.
33424         * modules/uniwbrk/base: New file.
33425         * lib/uniwbrk.h: New file.
33426
33427 2009-02-08  Bruno Haible  <bruno@clisp.org>
33428
33429         Update to Unicode 5.1.0.
33430         * lib/gen-uni-tables.c (is_property_alphabetic): Include
33431         U+2185..U+2188.
33432         (is_property_default_ignorable_code_point): Don't include characters
33433         of category Cc or Cs and not-a-characters.
33434         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
33435         U+0D79, U+109E, U+109F, U+A60C.
33436         * lib/unictype/bidi_of.h: Regenerated.
33437         * lib/unictype/blocks.h: Regenerated.
33438         * lib/unictype/categ_C.h: Regenerated.
33439         * lib/unictype/categ_Cf.h: Regenerated.
33440         * lib/unictype/categ_Cn.h: Regenerated.
33441         * lib/unictype/categ_L.h: Regenerated.
33442         * lib/unictype/categ_Ll.h: Regenerated.
33443         * lib/unictype/categ_Lm.h: Regenerated.
33444         * lib/unictype/categ_Lo.h: Regenerated.
33445         * lib/unictype/categ_Lu.h: Regenerated.
33446         * lib/unictype/categ_M.h: Regenerated.
33447         * lib/unictype/categ_Mc.h: Regenerated.
33448         * lib/unictype/categ_Me.h: Regenerated.
33449         * lib/unictype/categ_Mn.h: Regenerated.
33450         * lib/unictype/categ_N.h: Regenerated.
33451         * lib/unictype/categ_Nd.h: Regenerated.
33452         * lib/unictype/categ_Nl.h: Regenerated.
33453         * lib/unictype/categ_No.h: Regenerated.
33454         * lib/unictype/categ_P.h: Regenerated.
33455         * lib/unictype/categ_Pd.h: Regenerated.
33456         * lib/unictype/categ_Pe.h: Regenerated.
33457         * lib/unictype/categ_Pf.h: Regenerated.
33458         * lib/unictype/categ_Pi.h: Regenerated.
33459         * lib/unictype/categ_Po.h: Regenerated.
33460         * lib/unictype/categ_Ps.h: Regenerated.
33461         * lib/unictype/categ_S.h: Regenerated.
33462         * lib/unictype/categ_Sk.h: Regenerated.
33463         * lib/unictype/categ_Sm.h: Regenerated.
33464         * lib/unictype/categ_So.h: Regenerated.
33465         * lib/unictype/categ_of.h: Regenerated.
33466         * lib/unictype/combining.h: Regenerated.
33467         * lib/unictype/ctype_alnum.h: Regenerated.
33468         * lib/unictype/ctype_alpha.h: Regenerated.
33469         * lib/unictype/ctype_graph.h: Regenerated.
33470         * lib/unictype/ctype_lower.h: Regenerated.
33471         * lib/unictype/ctype_print.h: Regenerated.
33472         * lib/unictype/ctype_punct.h: Regenerated.
33473         * lib/unictype/ctype_upper.h: Regenerated.
33474         * lib/unictype/decdigit.h: Regenerated.
33475         * lib/unictype/digit.h: Regenerated.
33476         * lib/unictype/mirror.h: Regenerated.
33477         * lib/unictype/numeric.h: Regenerated.
33478         * lib/unictype/pr_alphabetic.h: Regenerated.
33479         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
33480         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
33481         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
33482         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
33483         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
33484         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
33485         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
33486         * lib/unictype/pr_combining.h: Regenerated.
33487         * lib/unictype/pr_dash.h: Regenerated.
33488         * lib/unictype/pr_decimal_digit.h: Regenerated.
33489         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
33490         * lib/unictype/pr_deprecated.h: Regenerated.
33491         * lib/unictype/pr_diacritic.h: Regenerated.
33492         * lib/unictype/pr_extender.h: Regenerated.
33493         * lib/unictype/pr_format_control.h: Regenerated.
33494         * lib/unictype/pr_grapheme_base.h: Regenerated.
33495         * lib/unictype/pr_grapheme_extend.h: Regenerated.
33496         * lib/unictype/pr_grapheme_link.h: Regenerated.
33497         * lib/unictype/pr_id_continue.h: Regenerated.
33498         * lib/unictype/pr_id_start.h: Regenerated.
33499         * lib/unictype/pr_ideographic.h: Regenerated.
33500         * lib/unictype/pr_ignorable_control.h: Regenerated.
33501         * lib/unictype/pr_lowercase.h: Regenerated.
33502         * lib/unictype/pr_math.h: Regenerated.
33503         * lib/unictype/pr_numeric.h: Regenerated.
33504         * lib/unictype/pr_other_alphabetic.h: Regenerated.
33505         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
33506         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
33507         * lib/unictype/pr_other_id_continue.h: Regenerated.
33508         * lib/unictype/pr_other_lowercase.h: Regenerated.
33509         * lib/unictype/pr_other_math.h: Regenerated.
33510         * lib/unictype/pr_punctuation.h: Regenerated.
33511         * lib/unictype/pr_sentence_terminal.h: Regenerated.
33512         * lib/unictype/pr_soft_dotted.h: Regenerated.
33513         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
33514         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
33515         * lib/unictype/pr_unified_ideograph.h: Regenerated.
33516         * lib/unictype/pr_uppercase.h: Regenerated.
33517         * lib/unictype/pr_xid_continue.h: Regenerated.
33518         * lib/unictype/pr_xid_start.h: Regenerated.
33519         * lib/unictype/pr_zero_width.h: Regenerated.
33520         * lib/unictype/scripts.h: Regenerated.
33521         * lib/unictype/scripts_byname.gperf: Regenerated.
33522         * lib/unictype/sy_java_ident.h: Regenerated.
33523         * lib/unilbrk/lbrkprop1.h: Regenerated.
33524         * lib/unilbrk/lbrkprop2.h: Regenerated.
33525         * tests/unictype/test-categ_C.c: Regenerated.
33526         * tests/unictype/test-categ_Cf.c: Regenerated.
33527         * tests/unictype/test-categ_Cn.c: Regenerated.
33528         * tests/unictype/test-categ_L.c: Regenerated.
33529         * tests/unictype/test-categ_Ll.c: Regenerated.
33530         * tests/unictype/test-categ_Lm.c: Regenerated.
33531         * tests/unictype/test-categ_Lo.c: Regenerated.
33532         * tests/unictype/test-categ_Lu.c: Regenerated.
33533         * tests/unictype/test-categ_M.c: Regenerated.
33534         * tests/unictype/test-categ_Mc.c: Regenerated.
33535         * tests/unictype/test-categ_Me.c: Regenerated.
33536         * tests/unictype/test-categ_Mn.c: Regenerated.
33537         * tests/unictype/test-categ_N.c: Regenerated.
33538         * tests/unictype/test-categ_Nd.c: Regenerated.
33539         * tests/unictype/test-categ_Nl.c: Regenerated.
33540         * tests/unictype/test-categ_No.c: Regenerated.
33541         * tests/unictype/test-categ_P.c: Regenerated.
33542         * tests/unictype/test-categ_Pd.c: Regenerated.
33543         * tests/unictype/test-categ_Pe.c: Regenerated.
33544         * tests/unictype/test-categ_Pf.c: Regenerated.
33545         * tests/unictype/test-categ_Pi.c: Regenerated.
33546         * tests/unictype/test-categ_Po.c: Regenerated.
33547         * tests/unictype/test-categ_Ps.c: Regenerated.
33548         * tests/unictype/test-categ_S.c: Regenerated.
33549         * tests/unictype/test-categ_Sk.c: Regenerated.
33550         * tests/unictype/test-categ_Sm.c: Regenerated.
33551         * tests/unictype/test-categ_So.c: Regenerated.
33552         * tests/unictype/test-ctype_alnum.c: Regenerated.
33553         * tests/unictype/test-ctype_alpha.c: Regenerated.
33554         * tests/unictype/test-ctype_graph.c: Regenerated.
33555         * tests/unictype/test-ctype_lower.c: Regenerated.
33556         * tests/unictype/test-ctype_print.c: Regenerated.
33557         * tests/unictype/test-ctype_punct.c: Regenerated.
33558         * tests/unictype/test-ctype_upper.c: Regenerated.
33559         * tests/unictype/test-decdigit.h: Regenerated.
33560         * tests/unictype/test-digit.h: Regenerated.
33561         * tests/unictype/test-numeric.h: Regenerated.
33562         * tests/unictype/test-pr_alphabetic.c: Regenerated.
33563         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
33564         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
33565         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
33566         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
33567         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
33568         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
33569         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
33570         * tests/unictype/test-pr_combining.c: Regenerated.
33571         * tests/unictype/test-pr_dash.c: Regenerated.
33572         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
33573         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
33574         * tests/unictype/test-pr_deprecated.c: Regenerated.
33575         * tests/unictype/test-pr_diacritic.c: Regenerated.
33576         * tests/unictype/test-pr_extender.c: Regenerated.
33577         * tests/unictype/test-pr_format_control.c: Regenerated.
33578         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
33579         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
33580         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
33581         * tests/unictype/test-pr_id_continue.c: Regenerated.
33582         * tests/unictype/test-pr_id_start.c: Regenerated.
33583         * tests/unictype/test-pr_ideographic.c: Regenerated.
33584         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
33585         * tests/unictype/test-pr_lowercase.c: Regenerated.
33586         * tests/unictype/test-pr_math.c: Regenerated.
33587         * tests/unictype/test-pr_numeric.c: Regenerated.
33588         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
33589         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
33590         Regenerated.
33591         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
33592         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
33593         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
33594         * tests/unictype/test-pr_other_math.c: Regenerated.
33595         * tests/unictype/test-pr_punctuation.c: Regenerated.
33596         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
33597         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
33598         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
33599         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
33600         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
33601         * tests/unictype/test-pr_uppercase.c: Regenerated.
33602         * tests/unictype/test-pr_xid_continue.c: Regenerated.
33603         * tests/unictype/test-pr_xid_start.c: Regenerated.
33604         * tests/unictype/test-pr_zero_width.c: Regenerated.
33605
33606         Update to Unicode 5.1.0.
33607         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
33608         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
33609         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
33610         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
33611         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
33612         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
33613         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
33614         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
33615         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
33616         (nonspacing_table_ind): Update.
33617         * tests/uniwidth/test-uc_width2.sh: Update expected result.
33618
33619         Update to Unicode 5.1.0.
33620         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
33621         code transform.
33622         * lib/uniname/uniname.c (unicode_character_name,
33623         unicode_name_character): Add the range 0x1Fxxx to the code transform.
33624         * lib/uniname/uninames.h: Regenerated.
33625         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
33626
33627 2009-02-07  Bruno Haible  <bruno@clisp.org>
33628
33629         Merge gen-ctype and gen-lbrk into a single program.
33630         * lib/gen-uni-tables.c: New file, incorporating
33631         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
33632         Add directory prefixes to the names of the generated files.
33633         * lib/unictype/gen-ctype.c: Remove file.
33634         * lib/unilbrk/gen-lbrk.c: Remove file.
33635         * modules/gen-uni-tables: New file.
33636         * modules/unictype/gen-ctype: Remove file.
33637         * modules/unilbrk/gen-lbrk: Remove file.
33638
33639 2009-02-07  Bruno Haible  <bruno@clisp.org>
33640
33641         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
33642
33643         New module 'unistr/u32-strcoll'.
33644         * modules/unistr/u32-strcoll: New file.
33645         * lib/unistr/u32-strcoll.c: New file.
33646
33647         New module 'unistr/u16-strcoll'.
33648         * modules/unistr/u16-strcoll: New file.
33649         * lib/unistr/u16-strcoll.c: New file.
33650
33651         New module 'unistr/u8-strcoll'.
33652         * modules/unistr/u8-strcoll: New file.
33653         * lib/unistr/u8-strcoll.c: New file.
33654         * lib/unistr/u-strcoll.h: New file.
33655
33656 2009-02-07  Bruno Haible  <bruno@clisp.org>
33657
33658         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
33659         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33660         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33661         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
33662         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
33663         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
33664
33665 2009-02-07  Bruno Haible  <bruno@clisp.org>
33666
33667         Make 64-bit clean.
33668         * lib/unictype/gen-ctype.c (output_predicate, output_category,
33669         output_combclass, output_bidi_category, output_decimal_digit,
33670         output_digit, output_numeric, output_mirror, output_scripts,
33671         output_ident_category): Use proper width specifier in format strings.
33672
33673 2009-02-07  Bruno Haible  <bruno@clisp.org>
33674
33675         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
33676         failure behaviour.
33677
33678 2009-02-07  Jim Meyering  <meyering@redhat.com>
33679
33680         regex: avoid compilation failure with upcoming gcc-4.4
33681         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
33682         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
33683         "... error: integer overflow in preprocessor expression".
33684
33685 2009-02-05  Ben Pfaff  <blp@gnu.org>
33686
33687         Fix link errors on Windows when close module is used.
33688         * modules/close: Add $(LIB_CLOSE) to Link section.
33689         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
33690         $(LIB_CLOSE) on Windows.
33691
33692 2009-02-05  Jim Meyering  <meyering@redhat.com>
33693
33694         still avoid unused-parameter warnings, but do it cleanly
33695         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
33696         (get_fs_usage): Cast to void instead.
33697         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
33698         (dev_from_mount_options, read_file_system_list): Cast to void.
33699         Prompted by Bruno Haible.
33700
33701 2009-02-04  Jim Meyering  <meyering@redhat.com>
33702
33703         fsusage.c: correct copyright year
33704         * lib/fsusage.c: Reflect year in which the change is pushed into
33705
33706         avoid misc. warnings
33707         * lib/fsusage.c (UNUSED_PARAM): Define.
33708         (get_fs_usage): Mark parameter "disk" as unused.
33709         * lib/getugroups.c (getgrent): Use "void" in prototype.
33710         * lib/mountlist.c: Mark unused parameters.
33711         (read_file_system_list): Declare a local with "const".
33712         * lib/nanosleep.c (getnow): Declare static.
33713         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
33714
33715         dirfd: set errno upon failure
33716         * lib/dirfd.c: Include <errno.h>.
33717         Set errno to ENOTSUP when returning -1.
33718         * modules/dirfd (Depends-on): Add errno.
33719         Suggested by John Kodis <kodis@comcast.net>.
33720
33721 2009-02-01  Bruno Haible  <bruno@clisp.org>
33722
33723         Don't assume sizeof (long) >= sizeof (void *).
33724         * lib/memcmp.c: Include stdint.h.
33725         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
33726         srcp2 to 'const byte *'.
33727         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
33728         types to uintptr_t.
33729         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
33730         * modules/memcmp (Depends-on): Add stdint.
33731         Reported by Ozkan Sezer <sezeroz@gmail.com>.
33732
33733 2009-01-30  Eric Blake  <ebb9@byu.net>
33734
33735         fix more require-before-expand issues
33736         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
33737         expand, AC_PROG_AWK.
33738         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
33739
33740 2009-01-28  Eric Blake  <ebb9@byu.net>
33741
33742         version-etc: use consistent URL formatting
33743         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
33744         Improve formatting.  Use fputs for string without %.
33745
33746 2009-01-28  Jim Meyering  <meyering@redhat.com>
33747
33748         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
33749         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
33750         "underquoted definition of NAME" from autoconf-2.59.
33751
33752 2009-01-28  Bruno Haible  <bruno@clisp.org>
33753
33754         * doc/gnulib.texi: Add "Obsolete modules" to index.
33755
33756 2009-01-28  Jim Meyering  <meyering@redhat.com>
33757
33758         useless-if-before-free: recognize more variants
33759         * build-aux/useless-if-before-free: Also recognize e.g.,
33760         if (NULL != p) free (p);
33761
33762 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
33763
33764         test-getaddrinfo: skip (don't fail) this test when there's no network
33765         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
33766         on the presumption that it means you lack network access.
33767
33768 2009-01-26  Jim Meyering  <meyering@redhat.com>
33769
33770         fflush: avoid warnings on modern systems
33771         * lib/fflush.c (rpl_fflush): Move declarations of locals,
33772         pos and result, into scopes where they're used.
33773
33774 2009-01-26  Eric Blake  <ebb9@byu.net>
33775
33776         Silence warning reintroduced by recent extensions patch.
33777         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
33778         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
33779         autoconf.
33780
33781         Backport improved autoconf semantics of AC_DEFUN_ONCE.
33782         * m4/00gnulib.m4: New file.
33783         * gnulib-tool (func_get_filelist): Always use it.
33784         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
33785         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
33786
33787 2009-01-25  Bruno Haible  <bruno@clisp.org>
33788
33789         Make test-quotearg work on MacOS X and AIX.
33790         * tests/test-quotearg.sh: New file.
33791         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
33792         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
33793         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
33794         include <libintl.h>.
33795         (fake_locale): Remove variable.
33796         (gettext, dgettext, dcgettext): Remove functions.
33797         (main): Instead of setting a fake locale, set a real locale. Call
33798         textdomain and bindtextdomain.
33799         * modules/quotearg-tests (Files): Add the new files.
33800         (Depends-on): Add gettext, setenv, unsetenv.
33801         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33802         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
33803         Augment TESTS_ENVIRONMENT.
33804
33805 2009-01-25  Bruno Haible  <bruno@clisp.org>
33806
33807         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
33808         fr_FR.ISO8859-1 locale on MacOS X.
33809         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
33810         ja_JP.eucJP locale on MacOS X.
33811         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
33812         zh_CN.GB18030 locale on MacOS X.
33813
33814 2009-01-25  Bruno Haible  <bruno@clisp.org>
33815
33816         Avoid link errors on MacOS X 10.3.
33817         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
33818         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33819
33820 2009-01-25  Bruno Haible  <bruno@clisp.org>
33821
33822         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33823         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
33824         * modules/pipe (Files): Remove m4/posix_spawn.m4.
33825         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33826         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
33827         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33828         posix_spawnattr_init, posix_spawnattr_setsigmask,
33829         posix_spawnattr_setflags, posix_spawnattr_destroy.
33830
33831         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33832         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
33833         * modules/execute (Files): Remove m4/posix_spawn.m4.
33834         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33835         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33836         posix_spawnattr_init, posix_spawnattr_setsigmask,
33837         posix_spawnattr_setflags, posix_spawnattr_destroy.
33838
33839 2009-01-25  Bruno Haible  <bruno@clisp.org>
33840
33841         * lib/glthread/threadlib.c: Include <stdlib.h>.
33842
33843 2009-01-25  Bruno Haible  <bruno@clisp.org>
33844
33845         * lib/glthread/threadlib.c (dummy): New declaration.
33846
33847 2009-01-25  Bruno Haible  <bruno@clisp.org>
33848
33849         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
33850         multibyte characters also for the GB18030 encoding. Don't crash when
33851         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
33852
33853 2009-01-25  Bruno Haible  <bruno@clisp.org>
33854
33855         Avoid redefining 'struct random_data' on OSF/1 5.1.
33856         * lib/stdlib.in.h: Include <random.h> if it exists.
33857         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
33858         HAVE_RANDOM_H. Include <random.h> when testing whether
33859         'struct random_data' exists.
33860         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
33861
33862 2009-01-25  Bruno Haible  <bruno@clisp.org>
33863
33864         Don't install charset.alias on MacOS X >= 10.3.
33865         * lib/localcharset.c (DARWIN7): New macro.
33866         (get_charset_aliases): Hardcode the result for Darwin7.
33867         * modules/localcharset (install-exec-local): Don't install
33868         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
33869
33870 2009-01-25  Bruno Haible  <bruno@clisp.org>
33871
33872         Don't install charset.alias on mingw and Cygwin.
33873         * modules/localcharset (install-exec-local): Don't install
33874         charset.alias on mingw and Cygwin, if the file does not yet exist.
33875         The result for these platforms is hardcoded in localcharset.c.
33876
33877 2009-01-25  Bruno Haible  <bruno@clisp.org>
33878
33879         Make it possible again to use AC_GNU_SOURCE together with gnulib.
33880         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
33881         before requiring AC_USE_SYSTEM_EXTENSIONS.
33882
33883 2009-01-25  Jim Meyering  <meyering@redhat.com>
33884
33885         c-strtod: avoid warnings
33886         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
33887         "assignment discards qualifiers from pointer target type" warnings.
33888
33889 2009-01-24  Bruno Haible  <bruno@clisp.org>
33890
33891         Add support for non-UTF-8 locales on MacOS X.
33892         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
33893         canonical encodings. For Darwin 7 and newer, don't map traditional
33894         encodings to UTF-8.
33895         Reported by Vincent Lefevre <vincent@vinc17.org>
33896         at <http://savannah.gnu.org/bugs/?25235>.
33897
33898 2009-01-24  Bruno Haible  <bruno@clisp.org>
33899
33900         * doc/gnulib.texi (Obsolete modules): New section.
33901         Reported by Mike Frysinger <vapier@gentoo.org>.
33902
33903 2009-01-24  Bruno Haible  <bruno@clisp.org>
33904
33905         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
33906         (%.dvi): New rule.
33907
33908 2009-01-24  Bruno Haible  <bruno@clisp.org>
33909
33910         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
33911         Reported by Eric Blake.
33912
33913 2009-01-24  Bruno Haible  <bruno@clisp.org>
33914
33915         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
33916         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
33917         Reported by Gary V. Vaughan <gary@gnu.org>.
33918
33919 2009-01-24  Bruno Haible  <bruno@clisp.org>
33920
33921         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
33922
33923 2009-01-23  Bruno Haible  <bruno@clisp.org>
33924
33925         Make c-strtod, c-strtold usable in libraries.
33926         * lib/c-strtod.c: Include string.h instead of xalloc.h.
33927         (C_STRTOD): Call strdup instead of xstrdup.
33928         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
33929         * modules/c-strtold (Depends-on): Likewise.
33930         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
33931         * NEWS: Mention the change.
33932         Reported by Michael Gold <mgold@ncf.ca>.
33933
33934 2009-01-23  Jim Meyering  <meyering@redhat.com>
33935
33936         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
33937         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
33938         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
33939
33940 2009-01-23  Simon Josefsson  <simon@josefsson.org>
33941
33942         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
33943         GNU CoreUtils.
33944         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
33945         * modules/version-etc (Description): Update.
33946
33947 2009-01-22  Bruno Haible  <bruno@clisp.org>
33948
33949         Cache the C locale object.
33950         * lib/c-strtod.c (c_locale_cache): New variable.
33951         (c_locale): New function.
33952         (C_STRTOD): Use it, and don't call freelocale.
33953         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
33954         Suggested by Paolo Bonzini.
33955
33956 2009-01-21  Bruno Haible  <bruno@clisp.org>
33957
33958         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
33959         conditions other than overflow.
33960
33961 2009-01-21  Bruno Haible  <bruno@clisp.org>
33962
33963         * lib/c-strtod.c: Include errno.h.
33964         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
33965         value from STRTOD_L and STRTOD.
33966
33967 2009-01-21  Bruno Haible  <bruno@clisp.org>
33968         and Jim Meyering  <meyering@redhat.com>
33969
33970         nanosleep: skip configure test (fail it) for apple universal builds
33971         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
33972         universal builds, assume that nanosleep does not work.
33973         * modules/nanosleep (Depends-on): Add multiarch.
33974
33975         mktime: skip configure test (fail it) for apple universal builds
33976         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
33977         universal builds, assume that mktime does not work.
33978         * modules/mktime (Depends-on): Add multiarch.
33979
33980 2009-01-21  Eric Blake  <ebb9@byu.net>
33981
33982         multiarch: avoid expand-before-require warning
33983         * modules/multiarch (configure.ac): Require, rather than expand,
33984         gl_MULTIARCH.
33985         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
33986         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
33987         enforce that all clients require it.  Partial reversion of
33988         2008-12-29 patch.
33989
33990         error: avoid expand-before-require warning
33991         * modules/errno (configure.ac): Require, rather than expand,
33992         gl_HEADER_ERRNO_H.
33993         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
33994         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
33995         enforce that all clients require it.
33996
33997         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
33998         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
33999         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
34000         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
34001
34002 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
34003
34004         Revert:
34005         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34006
34007         regex: do not depend on obsolete modules.
34008         * modules/regex: Remove memcmp and memmove.
34009
34010 2009-01-20  Bruno Haible  <bruno@clisp.org>
34011
34012         Make the 'link' module link on Windows NT 4.
34013         * lib/link.c (_WIN32_WINNT): Don't define.
34014         (CreateHardLinkFuncType): New type.
34015         (CreateHardLinkFunc, initialized): New variables.
34016         (initialize): New function.
34017         (link): Invoke CreateHardLink indirectly through the function pointer.
34018
34019 2009-01-20  Bruno Haible  <bruno@clisp.org>
34020
34021         Fix compilation failure on mingw.
34022         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
34023
34024 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
34025
34026         * doc/c-strtod.texi: Mention a couple of restrictions.
34027
34028 2009-01-20  Jim Meyering  <meyering@redhat.com>
34029
34030         gettimeofday: move more declarations out of functions
34031         * lib/gettimeofday.c: Move extern declarations of tzset and
34032         gmtime out of containing functions.  Prompted by Bruno Haible.
34033
34034 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34035
34036         regex: do not depend on obsolete modules.
34037         * modules/regex: Remove memcmp and memmove.
34038
34039 2009-01-19  Bruno Haible  <bruno@clisp.org>
34040
34041         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34042         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
34043         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34044         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
34045         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
34046
34047 2009-01-19  Bruno Haible  <bruno@clisp.org>
34048
34049         * tests/test-link.c: Include <errno.h>.
34050         (main): Exit with code 77 when a hard link cannot be created due to
34051         the file system.
34052         * tests/test-link.sh: Skip test when a hard link cannot be created due
34053         to the file system.
34054         Suggested by Eric Blake.
34055
34056 2009-01-19  Martin Lambers  <marlam@marlam.de>
34057
34058         * modules/link-tests: New file.
34059         * tests/test-link.sh: New file.
34060         * tests/test-link.c: New file.
34061
34062 2009-01-19  Eric Blake  <ebb9@byu.net>
34063
34064         doc: mention another function added in cygwin 1.7.0
34065         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
34066         Another new function in cygwin 1.7.
34067
34068 2009-01-19  Bruno Haible  <bruno@clisp.org>
34069
34070         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34071         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
34072         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
34073         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34074         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34075         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
34076         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
34077         * m4/md4.m4 (gl_MD4): Likewise.
34078         * m4/md5.m4 (gl_MD5): Likewise.
34079         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
34080         * m4/sha1.m4 (gl_SHA1): Likewise.
34081         * m4/sha256.m4 (gl_SHA256): Likewise.
34082         * m4/sha512.m4 (gl_SHA512): Likewise.
34083
34084 2009-01-19  Bruno Haible  <bruno@clisp.org>
34085
34086         * modules/uniname/uniname-tests (Depends-on): Add progname.
34087         * tests/uniname/test-uninames.c: Include progname.h.
34088         (main): Call set_program_name.
34089
34090         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
34091         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
34092         (main): Call set_program_name.
34093
34094         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
34095         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
34096         (main): Call set_program_name.
34097
34098         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
34099         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
34100         (main): Call set_program_name.
34101
34102         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
34103         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
34104         (main): Call set_program_name.
34105
34106         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
34107         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
34108         (main): Call set_program_name.
34109
34110         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
34111         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
34112         (main): Call set_program_name.
34113
34114         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
34115         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
34116         (main): Call set_program_name.
34117
34118         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
34119         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
34120         (main): Call set_program_name.
34121
34122 2009-01-19  Eric Blake  <ebb9@byu.net>
34123
34124         test-unistd: test previous patch
34125         * tests/test-unistd.c: Test *_FILENO macros.
34126
34127         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
34128         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34129         Guarantee a definition.
34130         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
34131         * modules/unistd-safer (Depends-on): Add dependency on unistd.
34132         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
34133         * lib/dup-safer.c (STDERR_FILENO): Likewise.
34134         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34135         Likewise.
34136         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
34137         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
34138         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34139         Likewise.
34140         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
34141         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
34142         (STDERR_FILENO): Likewise.
34143         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
34144         (STDERR_FILENO): Likewise.
34145         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
34146         (STDERR_FILENO): Likewise.
34147         Reported by Elbert Pol.
34148
34149 2009-01-19  Eric Blake  <ebb9@byu.net>
34150
34151         doc: mention more functions added in cygwin 1.7.0
34152         * doc/posix-functions/abort.texi (abort): Update wording related
34153         to cygwin.
34154         * doc/posix-functions/daylight.texi (daylight): Likewise.
34155         * doc/posix-functions/optarg.texi (optarg): Likewise.
34156         * doc/posix-functions/optarg.texi (opterr): Likewise.
34157         * doc/posix-functions/optarg.texi (optind): Likewise.
34158         * doc/posix-functions/optarg.texi (optopt): Likewise.
34159         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
34160         worked in 1.5.x, and was withdrawn in 1.7.
34161         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34162         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
34163         cygwin versions.
34164         * doc/posix-functions/perror.texi (perror): Likewise.
34165         * doc/posix-functions/printf.texi (printf): Likewise.
34166         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
34167         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
34168         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34169         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34170         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34171         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
34172         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34173         Likewise.
34174         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34175         Likewise.
34176         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
34177         this function.
34178         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
34179         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
34180         Likewise.
34181         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
34182         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
34183         * doc/posix-functions/confstr.texi (confstr): Likewise.
34184         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
34185         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
34186         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
34187         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
34188         * doc/posix-functions/fputws.texi (fputws): Likewise.
34189         * doc/posix-functions/fwide.texi (fwide): Likewise.
34190         * doc/posix-functions/getwc.texi (getwc): Likewise.
34191         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
34192         * doc/posix-functions/putwc.texi (putwc): Likewise.
34193         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34194         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
34195         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
34196         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34197         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
34198         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
34199         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
34200         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
34201         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
34202         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
34203         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
34204
34205 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34206
34207         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
34208         * lib/ioctl.c: Include <sys/ioctl.h>.
34209
34210 2009-01-19  Simon Josefsson  <simon@josefsson.org>
34211
34212         * modules/getdate-tests (Depends-on): Add progname.
34213         * tests/test-getdate.c: Use progname module, to avoid link errors
34214         on non-glibc systems.
34215
34216 2009-01-18  Simon Josefsson  <simon@josefsson.org>
34217
34218         * modules/filenamecat-tests (Depends-on): Add progname.
34219         * modules/fstrcmp-tests (Depends-on): Likewise.
34220
34221         * tests/test-filenamecat.c: Use progname module, to avoid link
34222         errors on non-glibc systems.
34223         * tests/test-fstrcmp.c: Likewise.
34224
34225 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34226
34227         gettimeofday: avoid warning: nested extern declaration of 'localtime'
34228         * lib/gettimeofday.c: Move extern declaration out of function.
34229
34230 2009-01-18  Bruno Haible  <bruno@clisp.org>
34231
34232         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
34233         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
34234         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
34235
34236 2009-01-18  Bruno Haible  <bruno@clisp.org>
34237
34238         * lib/strftime.c (MEMPCPY): Remove unused macro.
34239         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
34240
34241 2009-01-18  Martin Lambers  <marlam@marlam.de>
34242
34243         New module 'link'.
34244         * lib/unistd.in.h (link): New declaration.
34245         * lib/link.c: New file.
34246         * m4/link.m4: New file.
34247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
34248         HAVE_LINK.
34249         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
34250         * modules/link: New file.
34251         * doc/posix-functions/link.texi: Mention the new module.
34252
34253 2009-01-18  Bruno Haible  <bruno@clisp.org>
34254
34255         * tests/test-avltree_list.c (main): Call set_program_name.
34256         * tests/test-avltree_oset.c (main): Likewise.
34257         * tests/test-obstack-printf.c: Include progname.h.
34258         (main): Call set_program_name.
34259         * tests/test-quotearg.c: Include progname.h.
34260         (main): Call set_program_name.
34261         * tests/test-xmemdup0.c: Include progname.h.
34262         (main): Call set_program_name.
34263
34264 2009-01-18  Bruno Haible  <bruno@clisp.org>
34265
34266         New module 'alphasort'.
34267         * lib/dirent.in.h (alphasort): New declaration.
34268         * lib/alphasort.c: New file, from glibc with modifications.
34269         * m4/alphasort.m4: New file.
34270         * modules/alphasort: New file.
34271         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
34272         HAVE_ALPHASORT.
34273         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
34274         HAVE_ALPHASORT.
34275         * doc/posix-functions/alphasort.texi: Mention the new module and the
34276         portability problems.
34277
34278 2009-01-18  Bruno Haible  <bruno@clisp.org>
34279
34280         New module 'scandir'.
34281         * lib/dirent.in.h (scandir): New declaration.
34282         * lib/scandir.c: New file, from glibc with modifications.
34283         * m4/scandir.m4: New file.
34284         * modules/scandir: New file.
34285         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
34286         HAVE_SCANDIR.
34287         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
34288         HAVE_SCANDIR.
34289         * doc/posix-functions/scandir.texi: Mention the new module and the
34290         portability problems.
34291
34292 2009-01-17  Bruno Haible  <bruno@clisp.org>
34293
34294         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
34295         Update documentation.
34296         (func_remove_suffix): Escape all dots in the suffix. Update
34297         documentation.
34298         (func_filter_filelist): Update documentation.
34299         Reported by Ralf Wildenhues.
34300
34301 2009-01-17  Bruno Haible  <bruno@clisp.org>
34302
34303         * modules/dprintf-posix-tests: New file.
34304         * tests/test-dprintf-posix.sh: New file.
34305         * tests/test-dprintf-posix.c: New file.
34306
34307         New modules 'dprintf', 'dprintf-posix'.
34308         * lib/stdio.in.h (dprintf): New declaration.
34309         * lib/dprintf.c: New file.
34310         * m4/dprintf.m4: New file.
34311         * m4/dprintf-posix.m4: New file.
34312         * modules/dprintf: New file.
34313         * modules/dprintf-posix: New file.
34314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
34315         HAVE_DPRINTF, REPLACE_DPRINTF.
34316         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
34317         HAVE_DPRINTF, REPLACE_DPRINTF.
34318         * doc/posix-functions/dprintf.texi: Mention the new modules.
34319
34320 2009-01-17  Bruno Haible  <bruno@clisp.org>
34321
34322         * modules/vdprintf-posix-tests: New file.
34323         * tests/test-vdprintf-posix.sh: New file.
34324         * tests/test-vdprintf-posix.c: New file.
34325
34326         New modules 'vdprintf', 'vdprintf-posix'.
34327         * lib/stdio.in.h (vdprintf): New declaration.
34328         * lib/vdprintf.c: New file.
34329         * m4/vdprintf.m4: New file.
34330         * m4/vdprintf-posix.m4: New file.
34331         * modules/vdprintf: New file.
34332         * modules/vdprintf-posix: New file.
34333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
34334         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34335         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
34336         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34337         * doc/posix-functions/vdprintf.texi: Mention the new modules.
34338
34339 2009-01-17  Bruno Haible  <bruno@clisp.org>
34340
34341         Fix replacement of fopen on mingw.
34342         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
34343         mingw.
34344
34345 2009-01-17  Bruno Haible  <bruno@clisp.org>
34346
34347         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
34348         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
34349
34350 2009-01-17  Bruno Haible  <bruno@clisp.org>
34351
34352         Avoid test-fflush2.sh failure on mingw.
34353         * tests/test-fflush2.c: Include binary-io.h.
34354         (main): Put standard input into binary mode.
34355         * modules/fflush-tests (Depends-on): Add binary-io.
34356
34357 2009-01-17  Bruno Haible  <bruno@clisp.org>
34358
34359         * lib/wchar.in.h: In another particular situation, include only the
34360         system's <wchar.h> file.
34361         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
34362         Reported by Albert Chin-A-Young <china@thewrittenword.com>
34363         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
34364
34365 2009-01-17  Bruno Haible  <bruno@clisp.org>
34366
34367         Support for stripping executables in --enable-relocatable.
34368         * build-aux/install-reloc: Expect one more argument, or an environment
34369         variable RELOC_STRIP_PROG. If set, strip the destination program and
34370         its wrapper.
34371         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
34372         RELOC_STRIP_PROG.
34373         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
34374         to set RELOCATABLE_STRIP.
34375         * NEWS: Mention the new Makefile requirement.
34376
34377 2009-01-17  Bruno Haible  <bruno@clisp.org>
34378
34379         * build-aux/install-reloc: Remove debugging information left over by
34380         C compiler on MacOS X.
34381
34382 2009-01-17  Bruno Haible  <bruno@clisp.org>
34383
34384         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
34385         * lib/progreloc.c (find_executable): Fix type of pointer passed to
34386         _NSGetExecutablePath.
34387
34388 2009-01-16  Jim Meyering  <meyering@redhat.com>
34389
34390         strerror: avoid warnings about discarding "const"
34391         * lib/strerror.c (rpl_strerror): Instead of returning a const
34392         string from each and every "case", use a variable, and add a single
34393         cast after the switch.
34394
34395 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
34396
34397         * lib/arpa_inet.in.h: Add extern "C" block for C++.
34398
34399 2009-01-16  Bruno Haible  <bruno@clisp.org>
34400
34401         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
34402         array initializer syntax that also works in C++ mode.
34403         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34404
34405 2009-01-16  Jim Meyering  <meyering@redhat.com>
34406
34407         poll: suppress a warning
34408         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
34409         to ignore "...unsigned expression < 0 is always false" warnings.
34410
34411 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
34412
34413         poll: remove declarations of unused variables
34414         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
34415         sockbuf and optlen.
34416
34417 2009-01-15  Bruno Haible  <bruno@clisp.org>
34418
34419         Make fflush-after-ungetc POSIX compliant on BSD systems.
34420         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
34421         (clear_ungetc_buffer): Implement also for other systems.
34422         (rpl_fflush): On glibc systems, invoke
34423         clear_ungetc_buffer_preserving_position. Otherwise, invoke
34424         clear_ungetc_buffer after fetching the stream's position, not before.
34425
34426 2009-01-15  Bruno Haible  <bruno@clisp.org>
34427
34428         Make fflush-after-ungetc POSIX compliant on glibc systems.
34429         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
34430         after ungetc.
34431         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
34432         (rpl_fflush): On glibc systems, simply call the system's fflush
34433         function after clearing the ungetc buffer.
34434         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
34435         Instead, lseek only to the end of file, then use the system's fseeko
34436         for the rest. On glibc systems, reset the EOF indicator bit.
34437
34438 2009-01-15  Jim Meyering  <meyering@redhat.com>
34439
34440         openmp.m4: revert quote-adding change, for portability to older autoconf
34441         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
34442         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
34443         Simon Josefsson noticed the problem when using autoconf-2.61.
34444
34445 2009-01-15  Bruno Haible  <bruno@clisp.org>
34446
34447         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
34448         * tests/test-fflush2.c (ASSERT): Always fail.
34449         (main): Add two tests for fflush() after ungetc(), taking into account
34450         the Austin Group's clarification.
34451         Suggested by Eric Blake.
34452
34453 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
34454
34455         mktime.m4: remove K&R-style function prototypes
34456         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
34457         for the Sun C++ compiler.
34458
34459 2009-01-14  Bruno Haible  <bruno@clisp.org>
34460
34461         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
34462         while including <wchar.h>.
34463         * lib/wchar.in.h: In two particular situations on HP-UX, include only
34464         the system's <wchar.h> file.
34465         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34466
34467 2009-01-14  Bruno Haible  <bruno@clisp.org>
34468
34469         * m4/csharp.m4: Don't mention gettext on the serial number line.
34470         * m4/csharpexec.m4: Likewise.
34471         * m4/eaccess.m4: Likewise.
34472         * m4/javaexec.m4: Likewise.
34473         * m4/sig_atomic_t.m4: Likewise.
34474         * m4/tmpdir.m4: Likewise.
34475         * m4/intldir.m4: Bump gettext version.
34476         * m4/lib-ld.m4: Likewise.
34477
34478 2009-01-14  Bruno Haible  <bruno@clisp.org>
34479
34480         * lib/progname.c (set_program_name): Add more comments.
34481         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34482
34483 2009-01-14  Simon Josefsson  <simon@josefsson.org>
34484
34485         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
34486         were sys/stat.h does not define it.
34487
34488 2009-01-14  Jim Meyering  <meyering@redhat.com>
34489
34490         many *.m4 files: improve m4 quoting
34491         99% of this change was performed by running the following commands:
34492         git ls-files | grep '\.m4$' | xargs perl -pi \
34493           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
34494           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34495           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34496           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
34497         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
34498         The remainder were to add Copyright dates, increment serial numbers,
34499         undo some changes in comments, exclude m4/intl.m4, and add quotes
34500         around the "1" in ",1" where the unusual spacing prohibited the
34501         above regexps from doing the job.  For more details, see
34502         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
34503         * m4/acl.m4: Modified.
34504         * m4/afs.m4: Likewise.
34505         * m4/alloca.m4: Likewise.
34506         * m4/argp.m4: Likewise.
34507         * m4/argz.m4: Likewise.
34508         * m4/atexit.m4: Likewise.
34509         * m4/bison-i18n.m4: Likewise.
34510         * m4/bison.m4: Likewise.
34511         * m4/byteswap.m4: Likewise.
34512         * m4/c-stack.m4: Likewise.
34513         * m4/c-strtod.m4: Likewise.
34514         * m4/calloc.m4: Likewise.
34515         * m4/canonicalize-lgpl.m4: Likewise.
34516         * m4/chown.m4: Likewise.
34517         * m4/clock_time.m4: Likewise.
34518         * m4/codeset.m4: Likewise.
34519         * m4/copy-file.m4: Likewise.
34520         * m4/csharp.m4: Likewise.
34521         * m4/csharpcomp.m4: Likewise.
34522         * m4/csharpexec.m4: Likewise.
34523         * m4/d-ino.m4: Likewise.
34524         * m4/d-type.m4: Likewise.
34525         * m4/dirfd.m4: Likewise.
34526         * m4/double-slash-root.m4: Likewise.
34527         * m4/eaccess.m4: Likewise.
34528         * m4/eealloc.m4: Likewise.
34529         * m4/environ.m4: Likewise.
34530         * m4/errno_h.m4: Likewise.
34531         * m4/euidaccess.m4: Likewise.
34532         * m4/execute.m4: Likewise.
34533         * m4/fatal-signal.m4: Likewise.
34534         * m4/fchdir.m4: Likewise.
34535         * m4/fcntl_h.m4: Likewise.
34536         * m4/fileblocks.m4: Likewise.
34537         * m4/filenamecat.m4: Likewise.
34538         * m4/findprog.m4: Likewise.
34539         * m4/flexmember.m4: Likewise.
34540         * m4/fnmatch.m4: Likewise.
34541         * m4/fopen.m4: Likewise.
34542         * m4/fpending.m4: Likewise.
34543         * m4/fprintf-posix.m4: Likewise.
34544         * m4/free.m4: Likewise.
34545         * m4/frexp.m4: Likewise.
34546         * m4/frexpl.m4: Likewise.
34547         * m4/fsusage.m4: Likewise.
34548         * m4/ftruncate.m4: Likewise.
34549         * m4/gc-camellia.m4: Likewise.
34550         * m4/gc-random.m4: Likewise.
34551         * m4/gc.m4: Likewise.
34552         * m4/getaddrinfo.m4: Likewise.
34553         * m4/getcwd-abort-bug.m4: Likewise.
34554         * m4/getcwd-path-max.m4: Likewise.
34555         * m4/getdate.m4: Likewise.
34556         * m4/getdomainname.m4: Likewise.
34557         * m4/getgroups.m4: Likewise.
34558         * m4/gethostname.m4: Likewise.
34559         * m4/gethrxtime.m4: Likewise.
34560         * m4/getline.m4: Likewise.
34561         * m4/getloadavg.m4: Likewise.
34562         * m4/getndelim2.m4: Likewise.
34563         * m4/getpass.m4: Likewise.
34564         * m4/gettext.m4: Likewise.
34565         * m4/gettime.m4: Likewise.
34566         * m4/gettimeofday.m4: Likewise.
34567         * m4/gnulib-common.m4: Likewise.
34568         * m4/group-member.m4: Likewise.
34569         * m4/host-os.m4: Likewise.
34570         * m4/iconv.m4: Likewise.
34571         * m4/iconv_open.m4: Likewise.
34572         * m4/inet_ntop.m4: Likewise.
34573         * m4/inet_pton.m4: Likewise.
34574         * m4/inline.m4: Likewise.
34575         * m4/intldir.m4: Likewise.
34576         * m4/intlmacosx.m4: Likewise.
34577         * m4/intmax.m4: Likewise.
34578         * m4/intmax_t.m4: Likewise.
34579         * m4/inttypes.m4: Likewise.
34580         * m4/inttypes_h.m4: Likewise.
34581         * m4/inttypes-pri.m4: Likewise.
34582         * m4/isapipe.m4: Likewise.
34583         * m4/isnand.m4: Likewise.
34584         * m4/isnanf.m4: Likewise.
34585         * m4/isnanl.m4: Likewise.
34586         * m4/javacomp.m4: Likewise.
34587         * m4/javaexec.m4: Likewise.
34588         * m4/jm-winsz1.m4: Likewise.
34589         * m4/jm-winsz2.m4: Likewise.
34590         * m4/lchown.m4: Likewise.
34591         * m4/lcmessage.m4: Likewise.
34592         * m4/ldexpl.m4: Likewise.
34593         * m4/lib-ld.m4: Likewise.
34594         * m4/lib-link.m4: Likewise.
34595         * m4/libsigsegv.m4: Likewise.
34596         * m4/link-follow.m4: Likewise.
34597         * m4/localcharset.m4: Likewise.
34598         * m4/locale-fr.m4: Likewise.
34599         * m4/locale-ja.m4: Likewise.
34600         * m4/locale-tr.m4: Likewise.
34601         * m4/locale-zh.m4: Likewise.
34602         * m4/lock.m4: Likewise.
34603         * m4/longlong.m4: Likewise.
34604         * m4/ls-mntd-fs.m4: Likewise.
34605         * m4/lstat.m4: Likewise.
34606         * m4/malloc.m4: Likewise.
34607         * m4/mathl.m4: Likewise.
34608         * m4/mbrtowc.m4: Likewise.
34609         * m4/mbstate_t.m4: Likewise.
34610         * m4/mbswidth.m4: Likewise.
34611         * m4/memchr.m4: Likewise.
34612         * m4/memcmp.m4: Likewise.
34613         * m4/memcpy.m4: Likewise.
34614         * m4/memmem.m4: Likewise.
34615         * m4/memmove.m4: Likewise.
34616         * m4/mempcpy.m4: Likewise.
34617         * m4/memrchr.m4: Likewise.
34618         * m4/memset.m4: Likewise.
34619         * m4/minmax.m4: Likewise.
34620         * m4/mkdir-slash.m4: Likewise.
34621         * m4/mkdtemp.m4: Likewise.
34622         * m4/mktime.m4: Likewise.
34623         * m4/mmap-anon.m4: Likewise.
34624         * m4/mountlist.m4: Likewise.
34625         * m4/nanosleep.m4: Likewise.
34626         * m4/nls.m4: Likewise.
34627         * m4/nocrash.m4: Likewise.
34628         * m4/open.m4: Likewise.
34629         * m4/openat.m4: Likewise.
34630         * m4/openmp.m4: Likewise.
34631         * m4/pathmax.m4: Likewise.
34632         * m4/perl.m4: Likewise.
34633         * m4/physmem.m4: Likewise.
34634         * m4/pipe.m4: Likewise.
34635         * m4/po.m4: Likewise.
34636         * m4/poll.m4: Likewise.
34637         * m4/posixtm.m4: Likewise.
34638         * m4/posixver.m4: Likewise.
34639         * m4/printf-frexp.m4: Likewise.
34640         * m4/printf-frexpl.m4: Likewise.
34641         * m4/printf-posix.m4: Likewise.
34642         * m4/printf-posix-rpl.m4: Likewise.
34643         * m4/printf.m4: Likewise.
34644         * m4/progtest.m4: Likewise.
34645         * m4/putenv.m4: Likewise.
34646         * m4/readline.m4: Likewise.
34647         * m4/readlink.m4: Likewise.
34648         * m4/readutmp.m4: Likewise.
34649         * m4/realloc.m4: Likewise.
34650         * m4/regex.m4: Likewise.
34651         * m4/relocatable.m4: Likewise.
34652         * m4/relocatable-lib.m4: Likewise.
34653         * m4/rename-dest-slash.m4: Likewise.
34654         * m4/rename.m4: Likewise.
34655         * m4/rmdir-errno.m4: Likewise.
34656         * m4/rmdir.m4: Likewise.
34657         * m4/roundf.m4: Likewise.
34658         * m4/roundl.m4: Likewise.
34659         * m4/rpmatch.m4: Likewise.
34660         * m4/save-cwd.m4: Likewise.
34661         * m4/selinux-selinux-h.m4: Likewise.
34662         * m4/setenv.m4: Likewise.
34663         * m4/settime.m4: Likewise.
34664         * m4/sig2str.m4: Likewise.
34665         * m4/sig_atomic_t.m4: Likewise.
34666         * m4/signalblocking.m4: Likewise.
34667         * m4/signbit.m4: Likewise.
34668         * m4/sigpipe.m4: Likewise.
34669         * m4/sockets.m4: Likewise.
34670         * m4/sockpfaf.m4: Likewise.
34671         * m4/st_dm_mode.m4: Likewise.
34672         * m4/stat-time.m4: Likewise.
34673         * m4/stdbool.m4: Likewise.
34674         * m4/stdint.m4: Likewise.
34675         * m4/stdint_h.m4: Likewise.
34676         * m4/stpcpy.m4: Likewise.
34677         * m4/stpncpy.m4: Likewise.
34678         * m4/strcase.m4: Likewise.
34679         * m4/strchrnul.m4: Likewise.
34680         * m4/strcspn.m4: Likewise.
34681         * m4/strdup.m4: Likewise.
34682         * m4/strftime.m4: Likewise.
34683         * m4/strndup.m4: Likewise.
34684         * m4/strnlen.m4: Likewise.
34685         * m4/strpbrk.m4: Likewise.
34686         * m4/strptime.m4: Likewise.
34687         * m4/strsep.m4: Likewise.
34688         * m4/strtod.m4: Likewise.
34689         * m4/strtoimax.m4: Likewise.
34690         * m4/strtok_r.m4: Likewise.
34691         * m4/strtol.m4: Likewise.
34692         * m4/strtoll.m4: Likewise.
34693         * m4/strtoul.m4: Likewise.
34694         * m4/strtoull.m4: Likewise.
34695         * m4/strtoumax.m4: Likewise.
34696         * m4/strverscmp.m4: Likewise.
34697         * m4/threadlib.m4: Likewise.
34698         * m4/timegm.m4: Likewise.
34699         * m4/tm_gmtoff.m4: Likewise.
34700         * m4/tmpdir.m4: Likewise.
34701         * m4/tmpfile.m4: Likewise.
34702         * m4/tzset.m4: Likewise.
34703         * m4/uintmax_t.m4: Likewise.
34704         * m4/unlinkdir.m4: Likewise.
34705         * m4/unlocked-io.m4: Likewise.
34706         * m4/uptime.m4: Likewise.
34707         * m4/userspec.m4: Likewise.
34708         * m4/utimbuf.m4: Likewise.
34709         * m4/utime.m4: Likewise.
34710         * m4/utimes-null.m4: Likewise.
34711         * m4/utimes.m4: Likewise.
34712         * m4/vararrays.m4: Likewise.
34713         * m4/vasnprintf.m4: Likewise.
34714         * m4/vfprintf-posix.m4: Likewise.
34715         * m4/vprintf-posix.m4: Likewise.
34716         * m4/wait-process.m4: Likewise.
34717         * m4/wchar_t.m4: Likewise.
34718         * m4/wint_t.m4: Likewise.
34719         * m4/write-any-file.m4: Likewise.
34720         * m4/yield.m4: Likewise.
34721
34722 2009-01-13  Bruno Haible  <bruno@clisp.org>
34723
34724         Avoid test-copy-file.sh failures when ACL support insufficient.
34725         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
34726         TESTS_ENVIRONMENT.
34727         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
34728         Reported by Jim Meyering.
34729
34730 2009-01-13  Bruno Haible  <bruno@clisp.org>
34731
34732         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
34733         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
34734         * modules/unistdio/u8-printf-parse (Files): Likewise.
34735         * modules/unistdio/u32-printf-parse (Files): Likewise.
34736         * modules/unistdio/ulc-printf-parse (Files): Likewise.
34737
34738 2009-01-13  Simon Josefsson  <simon@josefsson.org>
34739
34740         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
34741         and m4/inttypes_h.m4 too.
34742
34743 2009-01-12  Eric Blake  <ebb9@byu.net>
34744
34745         tests: IRIX 6.2 cc can't compile -0.0 into .data
34746         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
34747         rather than at compile-time.
34748         * tests/test-floorl.c (minus_zero): Likewise.
34749         * tests/test-frexpl.c (minus_zero): Likewise.
34750         * tests/test-isnan.c (minus_zerol): Likewise.
34751         * tests/test-isnanl.h (minus_zero): Likewise.
34752         * tests/test-ldexpl.c (minus_zero): Likewise.
34753         * tests/test-roundl.c (minus_zero): Likewise.
34754         * tests/test-signbit.c (minus_zerol): Likewise.
34755         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34756         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34757         * tests/test-truncl.c (minus_zero): Likewise.
34758         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34759         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34760         Reported by Tom G. Christensen and Nelson H. F. Beebe.
34761
34762 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34763
34764         regex: fix glibc bug 9697
34765         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
34766         handling.
34767
34768 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34769
34770         regex: fix glibc bug 697
34771         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
34772         being NULL also if there are no backreferences.
34773
34774 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34775
34776         regex: merge glibc changes
34777         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
34778         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
34779         re_string_skip_chars, re_string_reconstruct): Likewise.
34780         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
34781
34782 2009-01-07  Jim Meyering  <meyering@redhat.com>
34783
34784         poll: filter through cppi
34785         * lib/poll.c: Indent cpp directives to reflect nesting.
34786
34787 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
34788
34789         poll: don't return uninitialized
34790         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
34791
34792 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
34793
34794         avoid compile failure on AIX 6.1
34795         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
34796         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
34797
34798 2009-01-04  Jim Meyering  <meyering@redhat.com>
34799
34800         remove duplicate inclusion of <stdio.h>
34801         * tests/test-fprintf-posix.c: Likewise.
34802         * tests/test-printf-posix.c: Likewise.
34803         * tests/test-snprintf-posix.c: Likewise.
34804         * tests/test-sprintf-posix.c: Likewise.
34805         * tests/test-vasprintf-posix.c: Likewise.
34806         * tests/test-vfprintf-posix.c: Likewise.
34807         * tests/test-vprintf-posix.c: Likewise.
34808         * tests/test-vsnprintf-posix.c: Likewise.
34809         * tests/test-vsprintf-posix.c: Likewise.
34810
34811 2009-01-03  Jim Meyering  <meyering@redhat.com>
34812
34813         gnulib-tool: fix sed-based filtering
34814         * gnulib-tool (func_filter_filelist): Remove extra backslash
34815         in sed_fff_filter definition.
34816
34817 2009-01-02  Jim Meyering  <meyering@redhat.com>
34818
34819         strftime: avoid compilation failure on Solaris 2.6
34820         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
34821         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
34822         Don't #define mbrlen or mbsinit, since now they're guaranteed to
34823         be available.  Reported by Tom G. Christensen.  Details in
34824         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
34825
34826 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34827             Bruno Haible  <bruno@clisp.org>
34828
34829         Speed up gnulib-tool by doing more string processing through shell
34830         built-ins.
34831         * gnulib-tool (fast_func_append): New variable.
34832         (func_remove_prefix, func_remove_suffix): New functions.
34833         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
34834         (func_filter_filelist): New function.
34835         (func_get_dependencies): Use func_remove_suffix instead of sed.
34836         (func_get_automake_snippet): Use func_filter_filelist instead of a
34837         subshell and sed invocation.
34838
34839 2009-01-01  Bruno Haible  <bruno@clisp.org>
34840
34841         Fix a security bug.
34842         * gnulib-tool (func_import, import, update): Don't allow the characters
34843         '"', '$', '`', '\' in macro arguments that become part of commands that
34844         are evaluated.
34845
34846 2009-01-01  Bruno Haible  <bruno@clisp.org>
34847
34848         * gnulib-tool (func_reset_sigpipe): Add more comments.
34849
34850 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34851
34852         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
34853         func_emit_tests_Makefile_am, func_import): Abort loops early if we
34854         already know the answer.
34855
34856 2009-01-01  Jim Meyering  <meyering@redhat.com>
34857
34858         * lib/version-etc.c (version_etc_va): Update copyright year.
34859
34860 2008-12-30  Bruno Haible  <bruno@clisp.org>
34861
34862         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
34863         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
34864         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
34865
34866 2008-12-29  Eric Blake  <ebb9@byu.net>
34867
34868         multiarch: avoid autoconf AC_REQUIRE bug
34869         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
34870         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
34871         2.63 and older.
34872         Reported by Bruno Haible, and analyzed in
34873         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
34874
34875 2008-12-29  Bruno Haible  <bruno@clisp.org>
34876
34877         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
34878         files in subdirectories correctly.
34879         Reported by Ralf Wildenhues.
34880
34881 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34882
34883         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
34884         rather than 'join FILE -', for Solaris join.
34885
34886 2008-12-29  Bruno Haible  <bruno@clisp.org>
34887
34888         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
34889         quoting.
34890         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
34891         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
34892         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
34893         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
34894         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
34895         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
34896         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
34897         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
34898         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34899         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
34900         * m4/nls.m4 (AM_NLS): Likewise.
34901         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
34902         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
34903         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34904         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
34905         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
34906         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
34907         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
34908         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
34909         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
34910         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34911         * m4/xsize.m4 (gl_XSIZE): Likewise.
34912         Suggested by Jim Meyering.
34913
34914 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34915
34916         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
34917         * lib/parse-duration.c: use a switch instead of cascading if's.
34918
34919 2008-12-29  Eric Blake  <ebb9@byu.net>
34920
34921         wchar.h: supply WEOF on Irix 5.3
34922         * lib/wchar.in.h (wint_t): Also supply WEOF.
34923         * lib/wctype.in.h (wint_t): Likewise.
34924         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
34925         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
34926         Reported by Tom G. Christensen.
34927
34928 2008-12-26  Bruno Haible  <bruno@clisp.org>
34929
34930         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
34931         i486, i586, i686.
34932
34933 2008-12-26  Bruno Haible  <bruno@clisp.org>
34934
34935         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
34936
34937 2008-12-26  Bruno Haible  <bruno@clisp.org>
34938
34939         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
34940         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
34941         not __STDC_CONSTANT_MACROS.
34942         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34943
34944 2008-12-25  Bruno Haible  <bruno@clisp.org>
34945
34946         Add support for universal builds to vasnprintf.
34947         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
34948         universal builds, guess no.
34949         * modules/vasnprintf-posix (Depends-on): Add multiarch.
34950         * modules/vasprintf-posix (Depends-on): Likewise.
34951         * modules/fprintf-posix (Depends-on): Likewise.
34952         * modules/vfprintf-posix (Depends-on): Likewise.
34953         * modules/snprintf-posix (Depends-on): Likewise.
34954         * modules/vsnprintf-posix (Depends-on): Likewise.
34955         * modules/sprintf-posix (Depends-on): Likewise.
34956         * modules/vsprintf-posix (Depends-on): Likewise.
34957         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34958         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34959         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34960         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34961         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34962         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34963         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34964
34965         Add support for universal builds to <inttypes.h>.
34966         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
34967         _SCNu64_PREFIX): In Apple
34968         universal builds, define directly, using _LP64.
34969         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
34970         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
34971         * modules/inttypes (Depends-on): Add multiarch.
34972         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34973
34974         Add support for universal builds to <stdint.h>.
34975         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
34976         universal builds, define directly, using _LP64.
34977         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
34978         Apple universal builds, don't test for the size and suffix of ptrdiff_t
34979         and size_t.
34980         * modules/stdint (Depends-on): Add multiarch.
34981         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34982
34983         New module 'multiarch'.
34984         * modules/multiarch: New file.
34985         * m4/multiarch.m4: New file.
34986
34987 2008-12-25  Bruno Haible  <bruno@clisp.org>
34988
34989         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
34990
34991 2008-12-25  Bruno Haible  <bruno@clisp.org>
34992
34993         * modules/btowc (License): Relicense under LGPLv2+.
34994         * modules/mbsinit (License): Likewise.
34995         * modules/mbrtowc (License): Likewise.
34996         * modules/wcrtomb (License): Likewise.
34997         * modules/streq (License): Likewise.
34998         Reported by David Lutterkort <lutter@redhat.com>.
34999
35000 2008-12-23  Bruno Haible  <bruno@clisp.org>
35001
35002         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
35003
35004 2008-12-23  Bruno Haible  <bruno@clisp.org>
35005
35006         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
35007         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
35008         GETADDRINFO_LIB, not in LIBS.
35009         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
35010         * modules/canon-host (Link): Likewise.
35011         * NEWS: Mention the change.
35012         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
35013         GETADDRINFO_LIB.
35014
35015 2008-12-22  Bruno Haible  <bruno@clisp.org>
35016
35017         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
35018         * doc/posix-functions/iswalpha_l.texi: Likewise.
35019         * doc/posix-functions/iswblank_l.texi: Likewise.
35020         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35021         * doc/posix-functions/iswctype_l.texi: Likewise.
35022         * doc/posix-functions/iswdigit_l.texi: Likewise.
35023         * doc/posix-functions/iswgraph_l.texi: Likewise.
35024         * doc/posix-functions/iswlower_l.texi: Likewise.
35025         * doc/posix-functions/iswprint_l.texi: Likewise.
35026         * doc/posix-functions/iswpunct_l.texi: Likewise.
35027         * doc/posix-functions/iswspace_l.texi: Likewise.
35028         * doc/posix-functions/iswupper_l.texi: Likewise.
35029         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35030         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
35031         * doc/posix-functions/open_wmemstream.texi: Likewise.
35032         * doc/posix-functions/swscanf.texi: Likewise.
35033         * doc/posix-functions/towctrans_l.texi: Likewise.
35034         * doc/posix-functions/towlower.texi: Likewise.
35035         * doc/posix-functions/towlower_l.texi: Likewise.
35036         * doc/posix-functions/towupper.texi: Likewise.
35037         * doc/posix-functions/towupper_l.texi: Likewise.
35038         * doc/posix-functions/vfwprintf.texi: Likewise.
35039         * doc/posix-functions/vfwscanf.texi: Likewise.
35040         * doc/posix-functions/vswscanf.texi: Likewise.
35041         * doc/posix-functions/vwprintf.texi: Likewise.
35042         * doc/posix-functions/vwscanf.texi: Likewise.
35043         * doc/posix-functions/wcpcpy.texi: Likewise.
35044         * doc/posix-functions/wcpncpy.texi: Likewise.
35045         * doc/posix-functions/wcscasecmp.texi: Likewise.
35046         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
35047         * doc/posix-functions/wcscoll_l.texi: Likewise.
35048         * doc/posix-functions/wcsdup.texi: Likewise.
35049         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35050         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
35051         * doc/posix-functions/wcsnlen.texi: Likewise.
35052         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35053         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35054         * doc/posix-functions/wctrans_l.texi: Likewise.
35055         * doc/posix-functions/wctype_l.texi: Likewise.
35056         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
35057         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
35058         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
35059         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
35060         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
35061         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
35062         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
35063         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
35064         * doc/glibc-functions/wcschrnul.texi: Likewise.
35065         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35066         * doc/glibc-functions/wcstod_l.texi: Likewise.
35067         * doc/glibc-functions/wcstof_l.texi: Likewise.
35068         * doc/glibc-functions/wcstol_l.texi: Likewise.
35069         * doc/glibc-functions/wcstold_l.texi: Likewise.
35070         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35071         * doc/glibc-functions/wcstoq.texi: Likewise.
35072         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35073         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35074         * doc/glibc-functions/wcstouq.texi: Likewise.
35075         * doc/glibc-functions/wmempcpy.texi: Likewise.
35076
35077 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
35078             Eric Blake  <ebb9@byu.net>
35079             Paolo Bonzini  <bonzini@gnu.org>
35080             Bruno Haible  <bruno@clisp.org>
35081
35082         Make c-stack work on Haiku.
35083         * lib/c-stack.c (SA_ONSTACK): Define fallback.
35084         (c_stack_action): Use SA_ONSTACK flag.
35085
35086 2008-12-22  Bruno Haible  <bruno@clisp.org>
35087
35088         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
35089
35090 2008-12-22  Bruno Haible  <bruno@clisp.org>
35091
35092         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
35093         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
35094         being overridden.
35095         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
35096         New macros.
35097         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
35098         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
35099         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
35100         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
35101
35102 2008-12-22  Bruno Haible  <bruno@clisp.org>
35103
35104         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
35105         from test code.
35106
35107 2008-12-22  Eric Blake  <ebb9@byu.net>
35108
35109         Avoid gcc warnings on cygwin.
35110         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
35111         Avoid unused variable.
35112         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
35113         Likewise.
35114
35115 2008-12-22  Bruno Haible  <bruno@clisp.org>
35116
35117         Remove HAVE_MBRTOWC conditionals.
35118         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
35119         (mbscasecmp): Assume mbrtowc function.
35120         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
35121         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
35122         * lib/mbschr.c: Include mbuiter.h unconditionally.
35123         (mbschr): Assume mbrtowc function.
35124         * lib/mbscspn.c: Include mbuiter.h unconditionally.
35125         (mbscspn): Assume mbrtowc function.
35126         * lib/mbslen.c: Include mbuiter.h unconditionally.
35127         (mbslen): Assume mbrtowc function.
35128         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
35129         (mbsncasecmp): Assume mbrtowc function.
35130         * lib/mbsnlen.c: Include mbiter.h unconditionally.
35131         (mbsnlen): Assume mbrtowc function.
35132         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
35133         (mbspbrk): Assume mbrtowc function.
35134         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
35135         (mbspcasecmp): Assume mbrtowc function.
35136         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
35137         (mbsrchr): Assume mbrtowc function.
35138         * lib/mbssep.c: Include mbuiter.h unconditionally.
35139         (mbssep): Assume mbrtowc function.
35140         * lib/mbsspn.c: Include mbuiter.h unconditionally.
35141         (mbsspn): Assume mbrtowc function.
35142         * lib/mbsstr.c: Include mbuiter.h unconditionally.
35143         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
35144         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
35145         (mbstok_r): Assume mbrtowc function.
35146         * lib/propername.c: Include mbuiter.h unconditionally.
35147         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
35148         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
35149         (trim2): Assume mbrtowc function.
35150         * lib/mbswidth.c (mbsinit): Remove fallback definition.
35151         (mbsnwidth): Assume mbrtowc function.
35152         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
35153         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
35154         fallback definitions.
35155         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
35156
35157 2008-12-22  Bruno Haible  <bruno@clisp.org>
35158
35159         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
35160
35161 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
35162
35163         * modules/regex: Request emulations for the mb*/wc* functions we need.
35164         * m4/regex.m4: Don't look for those functions here.
35165         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
35166
35167 2008-12-22  Bruno Haible  <bruno@clisp.org>
35168
35169         * modules/fnmatch (Depends-on): Remove duplicated dependency.
35170
35171 2008-12-21  Bruno Haible  <bruno@clisp.org>
35172
35173         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
35174         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
35175         (Include): Remove conditionalization.
35176         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
35177         (Include): Remove conditionalization.
35178         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
35179         (Include): Remove conditionalization.
35180         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
35181         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35182         * NEWS: Mention the change.
35183         Reported by Alan Hourihane <alanh@fairlite.co.uk>
35184         via Sergey Poznyakoff <gray@gnu.org.ua>.
35185
35186 2008-12-21  Bruno Haible  <bruno@clisp.org>
35187
35188         * MODULES.html.sh (Extended multibyte and wide character utilities
35189         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
35190         wcrtomb, wcsrtombs.
35191         (Support for systems lacking POSIX:2008): Add accept, bind, close,
35192         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
35193         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
35194         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
35195
35196 2008-12-21  Bruno Haible  <bruno@clisp.org>
35197
35198         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
35199
35200 2008-12-21  Bruno Haible  <bruno@clisp.org>
35201
35202         * modules/wcsnrtombs-tests: New file.
35203         * tests/test-wcsnrtombs1.sh: New file.
35204         * tests/test-wcsnrtombs2.sh: New file.
35205         * tests/test-wcsnrtombs3.sh: New file.
35206         * tests/test-wcsnrtombs4.sh: New file.
35207         * tests/test-wcsnrtombs.c: New file.
35208
35209         New module 'wcsnrtombs'.
35210         * lib/wchar.in.h (wcsnrtombs): New declaration.
35211         * lib/wcsnrtombs.c: New file.
35212         * lib/wcsrtombs-state.c: New file.
35213         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
35214         (internal_state): Remove variable.
35215         * m4/wcsnrtombs.m4: New file.
35216         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
35217         compilation units.
35218         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
35219         HAVE_WCSNRTOMBS.
35220         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
35221         HAVE_WCSNRTOMBS.
35222         * modules/wcsnrtombs: New file.
35223         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
35224         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
35225
35226 2008-12-21  Bruno Haible  <bruno@clisp.org>
35227
35228         * modules/wcsrtombs-tests: New file.
35229         * tests/test-wcsrtombs1.sh: New file.
35230         * tests/test-wcsrtombs2.sh: New file.
35231         * tests/test-wcsrtombs3.sh: New file.
35232         * tests/test-wcsrtombs4.sh: New file.
35233         * tests/test-wcsrtombs.c: New file.
35234
35235         New module 'wcsrtombs'.
35236         * lib/wchar.in.h (wcsrtombs): New declaration.
35237         * lib/wcsrtombs.c: New file.
35238         * m4/wcsrtombs.m4: New file.
35239         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
35240         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35241         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
35242         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35243         * modules/wcsrtombs: New file.
35244         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
35245         bugs.
35246
35247 2008-12-21  Bruno Haible  <bruno@clisp.org>
35248
35249         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
35250         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
35251         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
35252         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
35253         if not correct.
35254         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
35255         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
35256         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35257         m4/locale-zh.m4, m4/codeset.m4.
35258         * doc/posix-functions/wcrtomb.texi: Document the bug.
35259
35260 2008-12-21  Bruno Haible  <bruno@clisp.org>
35261
35262         Work around a btowc() bug on IRIX 6.5.
35263         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
35264         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
35265         REPLACE_WTOBC if not.
35266         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
35267         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
35268         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
35269
35270 2008-12-21  Bruno Haible  <bruno@clisp.org>
35271
35272         * modules/wcrtomb-tests: New file.
35273         * tests/test-wcrtomb.sh: New file.
35274         * tests/test-wcrtomb.c: New file.
35275
35276         New module 'wcrtomb'.
35277         * lib/wchar.in.h (wcrtomb): New declaration.
35278         * lib/wcrtomb.c: New file.
35279         * m4/wcrtomb.m4: New file.
35280         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
35281         HAVE_WCRTOMB.
35282         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
35283         HAVE_WCRTOMB.
35284         * modules/wcrtomb: New file.
35285         * doc/posix-functions/wcrtomb.texi: Mention the new module.
35286
35287 2008-12-21  Bruno Haible  <bruno@clisp.org>
35288
35289         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
35290         * modules/mbsrtowcs (Files): Likewise.
35291         * modules/wctob (Files): Likewise.
35292         * modules/c-strcase-tests (Files): Likewise.
35293         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35294         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35295         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35296         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35297         * modules/vasnprintf-posix-tests (Files): Likewise.
35298
35299 2008-12-21  William Pursell  <bill.pursell@gmail.com>
35300
35301         gitlog-to-changelog: pass all command-line arguments to git-log
35302         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
35303         it is sometimes convenient to filter the commits in various ways.
35304         gitlog-to-changelog only allows --since to specify a start date,
35305         but git-log itself supports many other filtering mechanisms.
35306         At the moment, I want to filter by branch name.  Rather than
35307         adding a --branch option to gitlog-to-changelog, it seems more
35308         flexible to simply pass all options directly to git-log and let
35309         git do the work.  Notice that this effectively makes --since a
35310         redundant option for gitlog-to-changelog, but removing it would
35311         require current usage to change since calls would then require
35312         an additional '--'.
35313
35314 2008-12-21  Bruno Haible  <bruno@clisp.org>
35315
35316         * modules/mbsnrtowcs-tests: New file.
35317         * tests/test-mbsnrtowcs1.sh: New file.
35318         * tests/test-mbsnrtowcs2.sh: New file.
35319         * tests/test-mbsnrtowcs3.sh: New file.
35320         * tests/test-mbsnrtowcs4.sh: New file.
35321         * tests/test-mbsnrtowcs.c: New file.
35322
35323         New module 'mbsnrtowcs'.
35324         * lib/wchar.in.h (mbsnrtowcs): New declaration.
35325         * lib/mbsnrtowcs.c: New file.
35326         * lib/mbsrtowcs-state.c: New file.
35327         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
35328         (internal_state): Remove variable.
35329         * m4/mbsnrtowcs.m4: New file.
35330         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
35331         compilation units.
35332         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
35333         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35334         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
35335         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35336         * modules/mbsnrtowcs: New file.
35337         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
35338         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
35339         portability problem.
35340
35341 2008-12-21  Bruno Haible  <bruno@clisp.org>
35342
35343         Work around mbsrtowcs bug.
35344         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
35345         (gl_FUNC_MBSRTOWCS): Invoke it.
35346         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35347         m4/locale-zh.m4.
35348         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
35349
35350 2008-12-21  Bruno Haible  <bruno@clisp.org>
35351
35352         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
35353
35354 2008-12-21  Bruno Haible  <bruno@clisp.org>
35355
35356         Update doc for AIX.
35357         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
35358         16-bit wchar_t type.
35359         * doc/posix-functions/btowc.texi: Likewise.
35360         * doc/posix-functions/fgetwc.texi: Likewise.
35361         * doc/posix-functions/fgetws.texi: Likewise.
35362         * doc/posix-functions/fputwc.texi: Likewise.
35363         * doc/posix-functions/fputws.texi: Likewise.
35364         * doc/posix-functions/fwide.texi: Likewise.
35365         * doc/posix-functions/fwprintf.texi: Likewise.
35366         * doc/posix-functions/fwscanf.texi: Likewise.
35367         * doc/posix-functions/getwchar.texi: Likewise.
35368         * doc/posix-functions/getwc.texi: Likewise.
35369         * doc/posix-functions/iswalnum.texi: Likewise.
35370         * doc/posix-functions/iswalpha.texi: Likewise.
35371         * doc/posix-functions/iswblank.texi: Likewise.
35372         * doc/posix-functions/iswcntrl.texi: Likewise.
35373         * doc/posix-functions/iswctype.texi: Likewise.
35374         * doc/posix-functions/iswdigit.texi: Likewise.
35375         * doc/posix-functions/iswgraph.texi: Likewise.
35376         * doc/posix-functions/iswlower.texi: Likewise.
35377         * doc/posix-functions/iswprint.texi: Likewise.
35378         * doc/posix-functions/iswpunct.texi: Likewise.
35379         * doc/posix-functions/iswspace.texi: Likewise.
35380         * doc/posix-functions/iswupper.texi: Likewise.
35381         * doc/posix-functions/iswxdigit.texi: Likewise.
35382         * doc/posix-functions/mbrtowc.texi: Likewise.
35383         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35384         * doc/posix-functions/mbstowcs.texi: Likewise.
35385         * doc/posix-functions/mbtowc.texi: Likewise.
35386         * doc/posix-functions/putwchar.texi: Likewise.
35387         * doc/posix-functions/putwc.texi: Likewise.
35388         * doc/posix-functions/swprintf.texi: Likewise.
35389         * doc/posix-functions/tolower.texi: Likewise.
35390         * doc/posix-functions/toupper.texi: Likewise.
35391         * doc/posix-functions/towctrans.texi: Likewise.
35392         * doc/posix-functions/ungetwc.texi: Likewise.
35393         * doc/posix-functions/vswprintf.texi: Likewise.
35394         * doc/posix-functions/wcrtomb.texi: Likewise.
35395         * doc/posix-functions/wcscat.texi: Likewise.
35396         * doc/posix-functions/wcschr.texi: Likewise.
35397         * doc/posix-functions/wcscmp.texi: Likewise.
35398         * doc/posix-functions/wcscoll.texi: Likewise.
35399         * doc/posix-functions/wcscpy.texi: Likewise.
35400         * doc/posix-functions/wcscspn.texi: Likewise.
35401         * doc/posix-functions/wcsftime.texi: Likewise.
35402         * doc/posix-functions/wcslen.texi: Likewise.
35403         * doc/posix-functions/wcsncat.texi: Likewise.
35404         * doc/posix-functions/wcsncmp.texi: Likewise.
35405         * doc/posix-functions/wcsncpy.texi: Likewise.
35406         * doc/posix-functions/wcspbrk.texi: Likewise.
35407         * doc/posix-functions/wcsrchr.texi: Likewise.
35408         * doc/posix-functions/wcsrtombs.texi: Likewise.
35409         * doc/posix-functions/wcsspn.texi: Likewise.
35410         * doc/posix-functions/wcsstr.texi: Likewise.
35411         * doc/posix-functions/wcstod.texi: Likewise.
35412         * doc/posix-functions/wcstof.texi: Likewise.
35413         * doc/posix-functions/wcstoimax.texi: Likewise.
35414         * doc/posix-functions/wcstok.texi: Likewise.
35415         * doc/posix-functions/wcstold.texi: Likewise.
35416         * doc/posix-functions/wcstoll.texi: Likewise.
35417         * doc/posix-functions/wcstol.texi: Likewise.
35418         * doc/posix-functions/wcstombs.texi: Likewise.
35419         * doc/posix-functions/wcstoull.texi: Likewise.
35420         * doc/posix-functions/wcstoul.texi: Likewise.
35421         * doc/posix-functions/wcstoumax.texi: Likewise.
35422         * doc/posix-functions/wcswidth.texi: Likewise.
35423         * doc/posix-functions/wcsxfrm.texi: Likewise.
35424         * doc/posix-functions/wctob.texi: Likewise.
35425         * doc/posix-functions/wctomb.texi: Likewise.
35426         * doc/posix-functions/wctrans.texi: Likewise.
35427         * doc/posix-functions/wctype.texi: Likewise.
35428         * doc/posix-functions/wcwidth.texi: Likewise.
35429         * doc/posix-functions/wmemchr.texi: Likewise.
35430         * doc/posix-functions/wmemcmp.texi: Likewise.
35431         * doc/posix-functions/wmemcpy.texi: Likewise.
35432         * doc/posix-functions/wmemmove.texi: Likewise.
35433         * doc/posix-functions/wmemset.texi: Likewise.
35434         * doc/posix-functions/wprintf.texi: Likewise.
35435         * doc/posix-functions/wscanf.texi: Likewise.
35436
35437 2008-12-21  Bruno Haible  <bruno@clisp.org>
35438
35439         Update doc for HP-UX 11.11.
35440         * doc/posix-functions/btowc.texi: Clarify that the function is missing
35441         in HP-UX version 11.00, not in all versions of HP-UX 11.
35442         * doc/posix-functions/fwide.texi: Likewise.
35443         * doc/posix-functions/fwprintf.texi: Likewise.
35444         * doc/posix-functions/fwscanf.texi: Likewise.
35445         * doc/posix-functions/inet_ntop.texi: Likewise.
35446         * doc/posix-functions/inet_pton.texi: Likewise.
35447         * doc/posix-functions/mbrlen.texi: Likewise.
35448         * doc/posix-functions/mbrtowc.texi: Likewise.
35449         * doc/posix-functions/mbsinit.texi: Likewise.
35450         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35451         * doc/posix-functions/swprintf.texi: Likewise.
35452         * doc/posix-functions/swscanf.texi: Likewise.
35453         * doc/posix-functions/towctrans.texi: Likewise.
35454         * doc/posix-functions/vfwprintf.texi: Likewise.
35455         * doc/posix-functions/vswprintf.texi: Likewise.
35456         * doc/posix-functions/vwprintf.texi: Likewise.
35457         * doc/posix-functions/wcrtomb.texi: Likewise.
35458         * doc/posix-functions/wcsrtombs.texi: Likewise.
35459         * doc/posix-functions/wcsstr.texi: Likewise.
35460         * doc/posix-functions/wctob.texi: Likewise.
35461         * doc/posix-functions/wctrans.texi: Likewise.
35462         * doc/posix-functions/wmemchr.texi: Likewise.
35463         * doc/posix-functions/wmemcmp.texi: Likewise.
35464         * doc/posix-functions/wmemcpy.texi: Likewise.
35465         * doc/posix-functions/wmemmove.texi: Likewise.
35466         * doc/posix-functions/wmemset.texi: Likewise.
35467         * doc/posix-functions/wprintf.texi: Likewise.
35468         * doc/posix-functions/wscanf.texi: Likewise.
35469
35470 2008-12-21  Bruno Haible  <bruno@clisp.org>
35471
35472         Work around a portability problem.
35473         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
35474         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
35475
35476 2008-12-20  Bruno Haible  <bruno@clisp.org>
35477
35478         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
35479         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
35480         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
35481         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
35482         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
35483
35484         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
35485         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
35486         set.
35487         (GNULIB_defined_mbstate_t): New macro.
35488         (mbsinit): Redefine if REPLACE_MBSINIT is set.
35489         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
35490         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
35491         reuses the system's mbrtowc function but works around the bugs.
35492         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
35493         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
35494         macros.
35495         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
35496         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
35497         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
35498         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
35499         REPLACE_MBSINIT if mbsinit needs to be overridden.
35500         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
35501         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35502         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
35503         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35504         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35505         m4/locale-zh.m4.
35506         (Depends): Add mbsinit.
35507         * modules/mbsinit (Depends): Add mbrtowc.
35508         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
35509
35510 2008-12-20  Bruno Haible  <bruno@clisp.org>
35511
35512         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
35513         so that there are no conversion errors on AIX.
35514         * tests/test-mbsrtowcs.c (main): LIkewise.
35515
35516 2008-12-20  Bruno Haible  <bruno@clisp.org>
35517
35518         Work around wctob bug on Solaris <= 9.
35519         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
35520         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
35521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
35522         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
35523         * modules/wctob (Files): Add m4/locale-fr.m4.
35524         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
35525
35526 2008-12-20  Bruno Haible  <bruno@clisp.org>
35527
35528         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
35529         /dev/null.
35530         * tests/test-select-in.sh: Likewise.
35531         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35532
35533 2008-12-20  Bruno Haible  <bruno@clisp.org>
35534
35535         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
35536         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
35537         Cygwin 1.5.x.
35538
35539 2008-12-20  Bruno Haible  <bruno@clisp.org>
35540
35541         Ensure mbstate_t is defined on HP-UX 11.11.
35542         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
35543         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
35544         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
35545         AC_USE_SYSTEM_EXTENSIONS.
35546         * modules/fnmatch (Depends-on): Add extensions.
35547         * modules/mbrlen (Depends-on): Likewise.
35548         * modules/mbrtowc (Depends-on): Likewise.
35549         * modules/mbsinit (Depends-on): Likewise.
35550         * modules/mbsrtowcs (Depends-on): Likewise.
35551         * modules/mbswidth (Depends-on): Likewise.
35552         * modules/quotearg (Depends-on): Likewise.
35553         * modules/strftime (Depends-on): Likewise.
35554
35555 2008-12-20  Bruno Haible  <bruno@clisp.org>
35556
35557         Ensure wctob is declared on IRIX 6.5.
35558         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
35559         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
35560         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
35561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
35562         of HAVE_WCTOB.
35563         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
35564         HAVE_WCTOB.
35565         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
35566
35567 2008-12-19  Bruno Haible  <bruno@clisp.org>
35568
35569         * modules/mbsrtowcs-tests: New file.
35570         * tests/test-mbsrtowcs1.sh: New file.
35571         * tests/test-mbsrtowcs2.sh: New file.
35572         * tests/test-mbsrtowcs3.sh: New file.
35573         * tests/test-mbsrtowcs4.sh: New file.
35574         * tests/test-mbsrtowcs.c: New file.
35575
35576         New module 'mbsrtowcs'.
35577         * lib/wchar.in.h (mbsrtowcs): New declaration.
35578         * lib/mbsrtowcs.c: New file.
35579         * m4/mbsrtowcs.m4: New file.
35580         * modules/mbsrtowcs: New file.
35581         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
35582         HAVE_MBSRTOWCS.
35583         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
35584         HAVE_MBSRTOWCS.
35585         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
35586
35587 2008-12-19  Bruno Haible  <bruno@clisp.org>
35588
35589         New module 'mbrlen'.
35590         * lib/wchar.in.h (mbrlen): New declaration.
35591         * lib/mbrlen.c: New file.
35592         * m4/mbrlen.m4: New file.
35593         * modules/mbrlen: New file.
35594         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
35595         HAVE_MBRLEN.
35596         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
35597         HAVE_MBRLEN.
35598         * doc/posix-functions/mbrlen.texi: Document the new module.
35599
35600 2008-12-19  Bruno Haible  <bruno@clisp.org>
35601
35602         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
35603         * modules/mbrtowc (Depends-on): Add verify.
35604         Suggested by Paul Eggert.
35605
35606 2008-12-18  Bruno Haible  <bruno@clisp.org>
35607
35608         * modules/mbsinit-tests: New file.
35609         * tests/test-mbsinit.sh: New file.
35610         * tests/test-mbsinit.c: New file.
35611
35612 2008-12-18  Bruno Haible  <bruno@clisp.org>
35613
35614         * modules/mbrtowc-tests: New file.
35615         * tests/test-mbrtowc1.sh: New file.
35616         * tests/test-mbrtowc2.sh: New file.
35617         * tests/test-mbrtowc3.sh: New file.
35618         * tests/test-mbrtowc4.sh: New file.
35619         * tests/test-mbrtowc.c: New file.
35620
35621         New module 'mbrtowc'.
35622         * lib/wchar.in.h (mbstate_t): Override when the system does not have
35623         mbsinit and mbrtowc.
35624         (mbrtowc): New declaration.
35625         * lib/mbrtowc.c: New file.
35626         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
35627         * modules/mbrtowc: New file.
35628         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
35629         HAVE_MBRTOWC.
35630         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
35631         HAVE_MBRTOWC.
35632         * doc/posix-functions/mbrtowc.texi: Document the new module.
35633
35634 2008-12-18  Bruno Haible  <bruno@clisp.org>
35635
35636         New module 'wctob'.
35637         * lib/wchar.in.h (wctob): New declaration.
35638         * lib/wctob.c: New file.
35639         * m4/wctob.m4: New file.
35640         * modules/wctob: New file.
35641         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
35642         HAVE_WCTOB.
35643         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
35644         * doc/posix-functions/wctob.texi: Document the new module.
35645
35646 2008-12-18  Bruno Haible  <bruno@clisp.org>
35647
35648         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
35649         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
35650
35651 2008-12-18  Simon Josefsson  <simon@josefsson.org>
35652
35653         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
35654         G. Christensen" <tgc@jupiterrise.com>.
35655
35656         * lib/flock.c: Need to include errno.h.  Reported by "Tom
35657         G. Christensen" <tgc@jupiterrise.com>.
35658
35659         * lib/flock.c: Need to include string.h.  Reported by "Tom
35660         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
35661         <ebb9@byu.net>.
35662
35663 2008-12-18  Bruno Haible  <bruno@clisp.org>
35664
35665         * m4/locale-ja.m4: New file, from GNU gettext.
35666
35667 2008-12-17  Bruno Haible  <bruno@clisp.org>
35668
35669         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
35670         Suggested by Eric Blake.
35671
35672 2008-12-17  Bruno Haible  <bruno@clisp.org>
35673
35674         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
35675
35676 2008-12-17  Bruno Haible  <bruno@clisp.org>
35677
35678         * lib/mbsinit.c: Include verify.h. Verify an assumption.
35679         * modules/mbsinit (Depends-on): Add verify.
35680         Suggested by Paul Eggert.
35681
35682 2008-12-17  Bruno Haible  <bruno@clisp.org>
35683
35684         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
35685         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
35686         gl_FUNC_MBRTOWC.
35687         * m4/mbiter.m4 (gl_MBITER): LIkewise.
35688         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
35689         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
35690         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
35691         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
35692         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
35693         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
35694         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
35695         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
35696         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
35697         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
35698         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
35699         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
35700         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
35701         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
35702         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
35703         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
35704         * modules/trim (configure.ac): Likewise.
35705
35706 2008-12-17  Bruno Haible  <bruno@clisp.org>
35707
35708         * modules/btowc-tests: New file.
35709         * tests/test-btowc1.sh: New file.
35710         * tests/test-btowc2.sh: New file.
35711         * tests/test-btowc.c: New file.
35712
35713         New module 'btowc'.
35714         * lib/wchar.in.h (btowc): New declaration.
35715         * lib/btowc.c: New file.
35716         * m4/btowc.m4: New file.
35717         * modules/btowc: New file.
35718         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
35719         HAVE_BTOWC.
35720         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
35721         * doc/posix-functions/btowc.texi: Document the new module.
35722
35723 2008-12-17  Bruno Haible  <bruno@clisp.org>
35724
35725         New module 'mbsinit'.
35726         * lib/wchar.in.h (mbsinit): New declaration.
35727         * lib/mbsinit.c: New file.
35728         * m4/mbsinit.m4: New file.
35729         * modules/mbsinit: New file.
35730         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
35731         HAVE_MBSINIT.
35732         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
35733         HAVE_MBSINIT.
35734         * doc/posix-functions/mbsinit.texi: Document the new module.
35735
35736 2008-12-16  Bruno Haible  <bruno@clisp.org>
35737
35738         * lib/unistd.in.h: Add comment.
35739         * tests/test-environ.c: Don't include <stdlib.h>.
35740
35741 2008-12-16  Bruno Haible  <bruno@clisp.org>
35742
35743         * lib/parse-duration.h (parse_duration): Document return value
35744         convention.
35745         * lib/parse-duration.c: Include specification header first. Add
35746         comments.
35747         (_): Remove macro.
35748         (parse_year_month_day, parse_hour_minute_second): Move side effects
35749         outside of strchr call.
35750         (parse_non_iso8601): Move side effects outside of isspace call.
35751         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
35752         call.
35753
35754 2008-12-16  Bruno Haible  <bruno@clisp.org>
35755
35756         * tests/test-parse-duration.sh: Produce no output when the test
35757         succeeds.
35758
35759 2008-12-16  Bruno Haible  <bruno@clisp.org>
35760
35761         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
35762         expressions.
35763
35764 2008-12-15  Bruno Haible  <bruno@clisp.org>
35765
35766         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
35767         * doc/glibc-functions/flistxattr.texi: Likewise.
35768         * doc/glibc-functions/fopencookie.texi: Likewise.
35769         * doc/glibc-functions/fremovexattr.texi: Likewise.
35770         * doc/glibc-functions/fsetxattr.texi: Likewise.
35771         * doc/glibc-functions/getxattr.texi: Likewise.
35772         * doc/glibc-functions/lgetxattr.texi: Likewise.
35773         * doc/glibc-functions/listxattr.texi: Likewise.
35774         * doc/glibc-functions/llistxattr.texi: Likewise.
35775         * doc/glibc-functions/lremovexattr.texi: Likewise.
35776         * doc/glibc-functions/lsetxattr.texi: Likewise.
35777         * doc/glibc-functions/removexattr.texi: Likewise.
35778         * doc/glibc-functions/setxattr.texi: Likewise.
35779         * doc/posix-functions/open_memstream.texi: Likewise.
35780
35781 2008-12-15  Eric Blake  <ebb9@byu.net>
35782
35783         Update doc for cygwin 1.7.
35784         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
35785         functions.
35786         * doc/posix-functions/fchmodat.texi: Likewise.
35787         * doc/posix-functions/fchownat.texi: Likewise.
35788         * doc/posix-functions/fdopendir.texi: Likewise.
35789         * doc/posix-functions/fmemopen.texi: Likewise.
35790         * doc/posix-functions/freeaddrinfo.texi: Likewise.
35791         * doc/posix-functions/fstatat.texi: Likewise.
35792         * doc/posix-functions/futimens.texi: Likewise.
35793         * doc/posix-functions/gai_strerror.texi: Likewise.
35794         * doc/posix-functions/getaddrinfo.texi: Likewise.
35795         * doc/posix-functions/getnameinfo.texi: Likewise.
35796         * doc/posix-functions/if_freenameindex.texi: Likewise.
35797         * doc/posix-functions/if_indextoname.texi: Likewise.
35798         * doc/posix-functions/if_nameindex.texi: Likewise.
35799         * doc/posix-functions/if_nametoindex.texi: Likewise.
35800         * doc/posix-functions/insque.texi: Likewise.
35801         * doc/posix-functions/linkat.texi: Likewise.
35802         * doc/posix-functions/llrint.texi: Likewise.
35803         * doc/posix-functions/llrintf.texi: Likewise.
35804         * doc/posix-functions/llrintl.texi: Likewise.
35805         * doc/posix-functions/lockf.texi: Likewise.
35806         * doc/posix-functions/lrintl.texi: Likewise.
35807         * doc/posix-functions/mkdirat.texi: Likewise.
35808         * doc/posix-functions/mkfifoat.texi: Likewise.
35809         * doc/posix-functions/mknodat.texi: Likewise.
35810         * doc/posix-functions/mq_close.texi: Likewise.
35811         * doc/posix-functions/mq_getattr.texi: Likewise.
35812         * doc/posix-functions/mq_notify.texi: Likewise.
35813         * doc/posix-functions/mq_open.texi: Likewise.
35814         * doc/posix-functions/mq_receive.texi: Likewise.
35815         * doc/posix-functions/mq_send.texi: Likewise.
35816         * doc/posix-functions/mq_setattr.texi: Likewise.
35817         * doc/posix-functions/mq_timedreceive.texi: Likewise.
35818         * doc/posix-functions/mq_timedsend.texi: Likewise.
35819         * doc/posix-functions/mq_unlink.texi: Likewise.
35820         * doc/posix-functions/open_memstream.texi: Likewise.
35821         * doc/posix-functions/openat.texi: Likewise.
35822         * doc/posix-functions/posix_fadvise.texi: Likewise.
35823         * doc/posix-functions/posix_fallocate.texi: Likewise.
35824         * doc/posix-functions/posix_madvise.texi: Likewise.
35825         * doc/posix-functions/posix_memalign.texi: Likewise.
35826         * doc/posix-functions/posix_openpt.texi: Likewise.
35827         * doc/posix-functions/readlinkat.texi: Likewise.
35828         * doc/posix-functions/remque.texi: Likewise.
35829         * doc/posix-functions/renameat.texi: Likewise.
35830         * doc/posix-functions/rintl.texi: Likewise.
35831         * doc/posix-functions/sem_unlink.texi: Likewise.
35832         * doc/posix-functions/shm_open.texi: Likewise.
35833         * doc/posix-functions/shm_unlink.texi: Likewise.
35834         * doc/posix-functions/signgam.texi: Likewise.
35835         * doc/posix-functions/sigset.texi: Likewise.
35836         * doc/posix-functions/stpcpy.texi: Likewise.
35837         * doc/posix-functions/stpncpy.texi: Likewise.
35838         * doc/posix-functions/strerror.texi: Likewise.
35839         * doc/posix-functions/strtod.texi: Likewise.
35840         * doc/posix-functions/symlinkat.texi: Likewise.
35841         * doc/posix-functions/unlinkat.texi: Likewise.
35842         * doc/posix-functions/utimensat.texi: Likewise.
35843         * doc/glibc-functions/bindresvport.texi: Likewise.
35844         * doc/glibc-functions/dn_expand.texi: Likewise.
35845         * doc/glibc-functions/exp10.texi: Likewise.
35846         * doc/glibc-functions/exp10f.texi: Likewise.
35847         * doc/glibc-functions/fgetxattr.texi: Likewise.
35848         * doc/glibc-functions/flistxattr.texi: Likewise.
35849         * doc/glibc-functions/fopencookie.texi: Likewise.
35850         * doc/glibc-functions/freeifaddrs.texi: Likewise.
35851         * doc/glibc-functions/fremovexattr.texi: Likewise.
35852         * doc/glibc-functions/fsetxattr.texi: Likewise.
35853         * doc/glibc-functions/getifaddrs.texi: Likewise.
35854         * doc/glibc-functions/getxattr.texi: Likewise.
35855         * doc/glibc-functions/lgetxattr.texi: Likewise.
35856         * doc/glibc-functions/listxattr.texi: Likewise.
35857         * doc/glibc-functions/llistxattr.texi: Likewise.
35858         * doc/glibc-functions/lremovexattr.texi: Likewise.
35859         * doc/glibc-functions/lsetxattr.texi: Likewise.
35860         * doc/glibc-functions/pow10.texi: Likewise.
35861         * doc/glibc-functions/pow10f.texi: Likewise.
35862         * doc/glibc-functions/rcmd_af.texi: Likewise.
35863         * doc/glibc-functions/removexattr.texi: Likewise.
35864         * doc/glibc-functions/res_init.texi: Likewise.
35865         * doc/glibc-functions/res_mkquery.texi: Likewise.
35866         * doc/glibc-functions/res_query.texi: Likewise.
35867         * doc/glibc-functions/res_querydomain.texi: Likewise.
35868         * doc/glibc-functions/res_send.texi: Likewise.
35869         * doc/glibc-functions/rresvport_af.texi: Likewise.
35870         * doc/glibc-functions/setxattr.texi: Likewise.
35871         * doc/glibc-functions/strcasestr.texi: Likewise.
35872
35873 2008-12-15  Bruno Haible  <bruno@clisp.org>
35874
35875         Fix compilation error on OSF/1 4.0.
35876         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
35877         <sys/time.h>, simply delegate to the system header.
35878         Reported by Daniel Richard G. <oss@teragram.com>.
35879
35880 2008-12-15  Bruno Haible  <bruno@clisp.org>
35881
35882         * doc/posix-functions/openat.texi: Mention the 'openat' module.
35883         * doc/posix-functions/fchmodat.texi: Likewise.
35884         * doc/posix-functions/fchownat.texi: Likewise.
35885         * doc/posix-functions/fdopendir.texi: Likewise.
35886         * doc/posix-functions/fstatat.texi: Likewise.
35887         * doc/posix-functions/mkdirat.texi: Likewise.
35888         * doc/posix-functions/unlinkat.texi: Likewise.
35889
35890 2008-12-14  Bruno Haible  <bruno@clisp.org>
35891
35892         Update doc for POSIX:2008.
35893         * doc/posix-functions/faccessat.texi: New file.
35894         * doc/posix-functions/fchmodat.texi: New file.
35895         * doc/posix-functions/fchownat.texi: New file.
35896         * doc/posix-functions/fdopendir.texi: New file.
35897         * doc/posix-functions/fstatat.texi: New file.
35898         * doc/posix-functions/futimens.texi: New file.
35899         * doc/posix-functions/linkat.texi: New file.
35900         * doc/posix-functions/mkdirat.texi: New file.
35901         * doc/posix-functions/mkfifoat.texi: New file.
35902         * doc/posix-functions/mknodat.texi: New file.
35903         * doc/posix-functions/open_wmemstream.texi: New file.
35904         * doc/posix-functions/openat.texi: New file.
35905         * doc/posix-functions/psiginfo.texi: New file.
35906         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
35907         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
35908         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
35909         * doc/posix-functions/readlinkat.texi: New file.
35910         * doc/posix-functions/renameat.texi: New file.
35911         * doc/posix-functions/strerror_l.texi: New file.
35912         * doc/posix-functions/symlinkat.texi: New file.
35913         * doc/posix-functions/unlinkat.texi: New file.
35914         * doc/posix-functions/utimensat.texi: New file.
35915         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35916
35917 2008-12-14  Bruno Haible  <bruno@clisp.org>
35918
35919         Update doc for POSIX:2008.
35920         * doc/posix-functions/alphasort.texi: Renamed from
35921         doc/glibc-functions/alphasort.texi.
35922         * doc/posix-functions/dirfd.texi: Renamed from
35923         doc/glibc-functions/dirfd.texi.
35924         * doc/posix-functions/dprintf.texi: Renamed from
35925         doc/glibc-functions/dprintf.texi.
35926         * doc/posix-functions/duplocale.texi: Renamed from
35927         doc/glibc-functions/duplocale.texi.
35928         * doc/posix-functions/fexecve.texi: Renamed from
35929         doc/glibc-functions/fexecve.texi.
35930         * doc/posix-functions/fmemopen.texi: Renamed from
35931         doc/glibc-functions/fmemopen.texi.
35932         * doc/posix-functions/freelocale.texi: Renamed from
35933         doc/glibc-functions/freelocale.texi.
35934         * doc/posix-functions/getdate_err.texi: Renamed from
35935         doc/glibc-functions/getdate_err.texi.
35936         * doc/posix-functions/isalnum_l.texi: Renamed from
35937         doc/glibc-functions/isalnum_l.texi.
35938         * doc/posix-functions/isalpha_l.texi: Renamed from
35939         doc/glibc-functions/isalpha_l.texi.
35940         * doc/posix-functions/isblank_l.texi: Renamed from
35941         doc/glibc-functions/isblank_l.texi.
35942         * doc/posix-functions/iscntrl_l.texi: Renamed from
35943         doc/glibc-functions/iscntrl_l.texi.
35944         * doc/posix-functions/isdigit_l.texi: Renamed from
35945         doc/glibc-functions/isdigit_l.texi.
35946         * doc/posix-functions/isgraph_l.texi: Renamed from
35947         doc/glibc-functions/isgraph_l.texi.
35948         * doc/posix-functions/islower_l.texi: Renamed from
35949         doc/glibc-functions/islower_l.texi.
35950         * doc/posix-functions/isprint_l.texi: Renamed from
35951         doc/glibc-functions/isprint_l.texi.
35952         * doc/posix-functions/ispunct_l.texi: Renamed from
35953         doc/glibc-functions/ispunct_l.texi.
35954         * doc/posix-functions/isspace_l.texi: Renamed from
35955         doc/glibc-functions/isspace_l.texi.
35956         * doc/posix-functions/isupper_l.texi: Renamed from
35957         doc/glibc-functions/isupper_l.texi.
35958         * doc/posix-functions/iswalnum_l.texi: Renamed from
35959         doc/glibc-functions/iswalnum_l.texi.
35960         * doc/posix-functions/iswalpha_l.texi: Renamed from
35961         doc/glibc-functions/iswalpha_l.texi.
35962         * doc/posix-functions/iswblank_l.texi: Renamed from
35963         doc/glibc-functions/iswblank_l.texi.
35964         * doc/posix-functions/iswcntrl_l.texi: Renamed from
35965         doc/glibc-functions/iswcntrl_l.texi.
35966         * doc/posix-functions/iswctype_l.texi: Renamed from
35967         doc/glibc-functions/iswctype_l.texi.
35968         * doc/posix-functions/iswdigit_l.texi: Renamed from
35969         doc/glibc-functions/iswdigit_l.texi.
35970         * doc/posix-functions/iswgraph_l.texi: Renamed from
35971         doc/glibc-functions/iswgraph_l.texi.
35972         * doc/posix-functions/iswlower_l.texi: Renamed from
35973         doc/glibc-functions/iswlower_l.texi.
35974         * doc/posix-functions/iswprint_l.texi: Renamed from
35975         doc/glibc-functions/iswprint_l.texi.
35976         * doc/posix-functions/iswpunct_l.texi: Renamed from
35977         doc/glibc-functions/iswpunct_l.texi.
35978         * doc/posix-functions/iswspace_l.texi: Renamed from
35979         doc/glibc-functions/iswspace_l.texi.
35980         * doc/posix-functions/iswupper_l.texi: Renamed from
35981         doc/glibc-functions/iswupper_l.texi.
35982         * doc/posix-functions/iswxdigit_l.texi: Renamed from
35983         doc/glibc-functions/iswxdigit_l.texi.
35984         * doc/posix-functions/isxdigit_l.texi: Renamed from
35985         doc/glibc-functions/isxdigit_l.texi.
35986         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
35987         doc/glibc-functions/mbsnrtowcs.texi.
35988         * doc/posix-functions/mkdtemp.texi: Renamed from
35989         doc/glibc-functions/mkdtemp.texi.
35990         * doc/posix-functions/newlocale.texi: Renamed from
35991         doc/glibc-functions/newlocale.texi.
35992         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
35993         doc/glibc-functions/nl_langinfo_l.texi.
35994         * doc/posix-functions/open_memstream.texi: Renamed from
35995         doc/glibc-functions/open_memstream.texi.
35996         * doc/posix-functions/opterr.texi: Renamed from
35997         doc/glibc-functions/opterr.texi.
35998         * doc/posix-functions/optind.texi: Renamed from
35999         doc/glibc-functions/optind.texi.
36000         * doc/posix-functions/optopt.texi: Renamed from
36001         doc/glibc-functions/optopt.texi.
36002         * doc/posix-functions/psignal.texi: Renamed from
36003         doc/glibc-functions/psignal.texi.
36004         * doc/posix-functions/scandir.texi: Renamed from
36005         doc/glibc-functions/scandir.texi.
36006         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
36007         doc/glibc-functions/sched_get_priority_min.texi.
36008         * doc/posix-functions/signgam.texi: Renamed from
36009         doc/glibc-functions/signgam.texi.
36010         * doc/posix-functions/stpcpy.texi: Renamed from
36011         doc/glibc-functions/stpcpy.texi.
36012         * doc/posix-functions/stpncpy.texi: Renamed from
36013         doc/glibc-functions/stpncpy.texi.
36014         * doc/posix-functions/strcasecmp_l.texi: Renamed from
36015         doc/glibc-functions/strcasecmp_l.texi.
36016         * doc/posix-functions/strcoll_l.texi: Renamed from
36017         doc/glibc-functions/strcoll_l.texi.
36018         * doc/posix-functions/strfmon_l.texi: Renamed from
36019         doc/glibc-functions/strfmon_l.texi.
36020         * doc/posix-functions/strftime_l.texi: Renamed from
36021         doc/glibc-functions/strftime_l.texi.
36022         * doc/posix-functions/strncasecmp_l.texi: Renamed from
36023         doc/glibc-functions/strncasecmp_l.texi.
36024         * doc/posix-functions/strndup.texi: Renamed from
36025         doc/glibc-functions/strndup.texi.
36026         * doc/posix-functions/strnlen.texi: Renamed from
36027         doc/glibc-functions/strnlen.texi.
36028         * doc/posix-functions/strsignal.texi: Renamed from
36029         doc/glibc-functions/strsignal.texi.
36030         * doc/posix-functions/strxfrm_l.texi: Renamed from
36031         doc/glibc-functions/strxfrm_l.texi.
36032         * doc/posix-functions/timer_gettime.texi: Renamed from
36033         doc/glibc-functions/timer_gettime.texi.
36034         * doc/posix-functions/tolower_l.texi: Renamed from
36035         doc/glibc-functions/tolower_l.texi.
36036         * doc/posix-functions/toupper_l.texi: Renamed from
36037         doc/glibc-functions/toupper_l.texi.
36038         * doc/posix-functions/towctrans_l.texi: Renamed from
36039         doc/glibc-functions/towctrans_l.texi.
36040         * doc/posix-functions/towlower_l.texi: Renamed from
36041         doc/glibc-functions/towlower_l.texi.
36042         * doc/posix-functions/towupper_l.texi: Renamed from
36043         doc/glibc-functions/towupper_l.texi.
36044         * doc/posix-functions/uselocale.texi: Renamed from
36045         doc/glibc-functions/uselocale.texi.
36046         * doc/posix-functions/vdprintf.texi: Renamed from
36047         doc/glibc-functions/vdprintf.texi.
36048         * doc/posix-functions/wcpcpy.texi:
36049         Renamed from doc/glibc-functions/wcpcpy.texi.
36050         * doc/posix-functions/wcpncpy.texi: Renamed from
36051         doc/glibc-functions/wcpncpy.texi.
36052         * doc/posix-functions/wcscasecmp.texi: Renamed from
36053         doc/glibc-functions/wcscasecmp.texi.
36054         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
36055         doc/glibc-functions/wcscasecmp_l.texi.
36056         * doc/posix-functions/wcscoll_l.texi: Renamed from
36057         doc/glibc-functions/wcscoll_l.texi.
36058         * doc/posix-functions/wcsdup.texi: Renamed from
36059         doc/glibc-functions/wcsdup.texi.
36060         * doc/posix-functions/wcsncasecmp.texi: Renamed from
36061         doc/glibc-functions/wcsncasecmp.texi.
36062         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
36063         doc/glibc-functions/wcsncasecmp_l.texi.
36064         * doc/posix-functions/wcsnlen.texi: Renamed from
36065         doc/glibc-functions/wcsnlen.texi.
36066         * doc/posix-functions/wcsnrtombs.texi: Renamed from
36067         doc/glibc-functions/wcsnrtombs.texi.
36068         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
36069         doc/glibc-functions/wcsxfrm_l.texi.
36070         * doc/posix-functions/wctrans_l.texi: Renamed from
36071         doc/glibc-functions/wctrans_l.texi.
36072         * doc/posix-functions/wctype_l.texi: Renamed from
36073         doc/glibc-functions/wctype_l.texi.
36074         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36075         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
36076         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
36077         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
36078         these subsections.
36079         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
36080         Remove sections.
36081
36082 2008-12-14  Bruno Haible  <bruno@clisp.org>
36083
36084         Update doc for POSIX:2008.
36085         * doc/posix-functions/*.texi: Update URL of POSIX specification.
36086
36087 2008-12-14  Bruno Haible  <bruno@clisp.org>
36088
36089         Update doc for POSIX:2008.
36090         * doc/pastposix-functions/bcmp.texi: Renamed from
36091         doc/posix-functions/bcmp.texi.
36092         * doc/pastposix-functions/bcopy.texi: Renamed from
36093         doc/posix-functions/bcopy.texi.
36094         * doc/pastposix-functions/bsd_signal.texi: Renamed from
36095         doc/posix-functions/bsd_signal.texi.
36096         * doc/pastposix-functions/bzero.texi: Renamed from
36097         doc/posix-functions/bzero.texi.
36098         * doc/pastposix-functions/ecvt.texi: Renamed from
36099         doc/posix-functions/ecvt.texi.
36100         * doc/pastposix-functions/fcvt.texi: Renamed from
36101         doc/posix-functions/fcvt.texi.
36102         * doc/pastposix-functions/ftime.texi: Renamed from
36103         doc/posix-functions/ftime.texi.
36104         * doc/pastposix-functions/gcvt.texi: Renamed from
36105         doc/posix-functions/gcvt.texi.
36106         * doc/pastposix-functions/getcontext.texi: Renamed from
36107         doc/posix-functions/getcontext.texi.
36108         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
36109         doc/posix-functions/gethostbyaddr.texi.
36110         * doc/pastposix-functions/gethostbyname.texi: Renamed from
36111         doc/posix-functions/gethostbyname.texi.
36112         * doc/pastposix-functions/getwd.texi: Renamed from
36113         doc/posix-functions/getwd.texi.
36114         * doc/pastposix-functions/h_errno.texi: Renamed from
36115         doc/posix-functions/h_errno.texi.
36116         * doc/pastposix-functions/index.texi: Renamed from
36117         doc/posix-functions/index.texi.
36118         * doc/pastposix-functions/makecontext.texi: Renamed from
36119         doc/posix-functions/makecontext.texi.
36120         * doc/pastposix-functions/mktemp.texi: Renamed from
36121         doc/posix-functions/mktemp.texi.
36122         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
36123         doc/posix-functions/pthread_attr_getstackaddr.texi.
36124         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
36125         doc/posix-functions/pthread_attr_setstackaddr.texi.
36126         * doc/pastposix-functions/rindex.texi: Renamed from
36127         doc/posix-functions/rindex.texi.
36128         * doc/pastposix-functions/scalb.texi: Renamed from
36129         doc/posix-functions/scalb.texi.
36130         * doc/pastposix-functions/setcontext.texi: Renamed from
36131         doc/posix-functions/setcontext.texi.
36132         * doc/pastposix-functions/swapcontext.texi: Renamed from
36133         doc/posix-functions/swapcontext.texi.
36134         * doc/pastposix-functions/ualarm.texi: Renamed from
36135         doc/posix-functions/ualarm.texi.
36136         * doc/pastposix-functions/usleep.texi: Renamed from
36137         doc/posix-functions/usleep.texi.
36138         * doc/pastposix-functions/vfork.texi: Renamed from
36139         doc/posix-functions/vfork.texi.
36140         * doc/pastposix-functions/wcswcs.texi: Renamed from
36141         doc/posix-functions/wcswcs.texi.
36142         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
36143         (Function Substitutes): Update.
36144
36145 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36146
36147         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
36148         m4/strerror.m4.
36149
36150 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36151             Bruno Haible  <bruno@clisp.org>
36152
36153         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
36154
36155 2008-12-13  Bruno Haible  <bruno@clisp.org>
36156
36157         * modules/strtoull (Depends-on): Remove unistd.
36158
36159 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36160
36161         * modules/strtoull (Depends-on): Add stdlib.
36162
36163 2008-12-11  Simon Josefsson  <simon@josefsson.org>
36164
36165         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
36166
36167 2008-12-10  Jim Meyering  <meyering@redhat.com>
36168
36169         gl_ASSERT: don't say assertions are disabled when they're not
36170         * m4/assert.m4 (gl_ASSERT): Do not make configure report
36171         "checking whether to enable assertions... no", when they are in
36172         fact enabled.  This is solely a bug in the output of configure.
36173         In spite of saying "no", NDEBUG was not defined in that case.
36174         Also, as noted by Eric Blake, leave assertions enabled upon
36175         --enable-assert=INVALID.
36176
36177 2008-12-10  Bruno Haible  <bruno@clisp.org>
36178
36179         Change MODULES.html to refer to POSIX:2008 where possible.
36180         * MODULES.html.sh (POSIX2008_URL): New variable.
36181         (posix_headers): Remove sys/timeb, ucontext.
36182         (posix2001_headers): New variable.
36183         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
36184         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
36185         index, makecontext, mktemp, pthread_attr_getstackaddr,
36186         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
36187         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
36188         (posix2001_functions): New variable.
36189         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
36190         otherwise.
36191
36192 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36193
36194         add missing include to parse-duration.c
36195         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
36196         * modules/parse-duration (Depends-on): Add xalloc.
36197
36198         fix sed script reading maint.mk
36199         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
36200         (syntax-check-rules): Use it.
36201
36202 2008-12-09  Bruno Haible  <bruno@clisp.org>
36203
36204         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
36205         MacOS X 10.4/PowerPC.
36206         Reported by Simon Josefsson.
36207
36208 2008-12-08  Jim Meyering  <meyering@redhat.com>
36209
36210         work around mingw's lack of some S_IF definitions
36211         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
36212         Reported by Simon Josefsson.
36213
36214 2008-12-08  Bruno Haible  <bruno@clisp.org>
36215
36216         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
36217         applied to variables. Needed on MacOS X 10.4/PowerPC.
36218         Reported by Simon Josefsson.
36219
36220 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
36221         and Eric Blake  <ebb9@byu.net>
36222
36223         assert: honor --enable-assert
36224         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
36225         order to honor --enable-assert, rather than treating it as a
36226         synonym for --disable-assert.
36227
36228 2008-12-08  Jim Meyering  <meyering@redhat.com>
36229
36230         * lib/posixtm.c: Remove now-useless declaration of mktime.
36231
36232         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
36233
36234 2008-12-07  Bruno Haible  <bruno@clisp.org>
36235
36236         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
36237         test_once): Mark functions as static.
36238         * tests/test-tls.c (test_tls): Likewise.
36239
36240 2008-12-07  Bruno Haible  <bruno@clisp.org>
36241
36242         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
36243         iconv_register_autodetect.
36244
36245 2008-12-07  Jim Meyering  <meyering@redhat.com>
36246
36247         posixtm.c: avoid a warning
36248         * lib/posixtm.c (posixtime): Don't initialize tm0.
36249         It's no longer needed to placate gcc4's -Wuninitialized,
36250         and the attempt to placate would elicit a new warning.
36251
36252         unicodeio.c: mark unused parameters
36253         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36254         (fallback_failure_callback): Likewise.
36255
36256 2008-12-07  Bruno Haible  <bruno@clisp.org>
36257
36258         * gnulib-tool (func_create_testdir): When building the tests
36259         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
36260         Reported by Simon Josefsson.
36261
36262 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36263
36264         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
36265
36266 2008-12-06  Bruno Haible  <bruno@clisp.org>
36267
36268         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
36269         Suggested by Eric Blake.
36270
36271 2008-12-06  Bruno Haible  <bruno@clisp.org>
36272
36273         Fix a c-stack test failure on MacOS X.
36274         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
36275         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
36276         handler for SIGBUS as well.
36277         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
36278         install a signal handler for SIGBUS as well.
36279         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
36280
36281 2008-12-06  Bruno Haible  <bruno@clisp.org>
36282
36283         Advocacy documentation.
36284         * doc/gnulib-intro.texi (Benefits): New section.
36285         * doc/gnulib.texi: Update.
36286
36287 2008-12-06  Bruno Haible  <bruno@clisp.org>
36288
36289         Document the 'manywarnings' module.
36290         * doc/manywarnings.texi: New file.
36291         * doc/gnulib.texi: Include it.
36292
36293 2008-12-05  Eric Blake  <ebb9@byu.net>
36294
36295         tests: silence some gcc warnings
36296         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
36297         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
36298         type mismatches.
36299
36300 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36301             Bruno Haible  <bruno@clisp.org>
36302
36303         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
36304
36305 2008-11-29  Jim Meyering  <meyering@redhat.com>
36306
36307         unicodeio.c: mark unused parameters
36308         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36309         (fallback_failure_callback): Likewise.
36310
36311         fts: fix a thinko
36312         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
36313         (set_stat_type): Return S_IF*-valued "type" directly.
36314         Prompted by James Youngman's spotting a related bug.
36315         Confirmed by further testing through find.
36316
36317         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
36318         * lib/fts.c (D_TYPE): Define.
36319         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
36320         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
36321         (s_ifmt_shift_bits): New function.
36322         (set_stat_type): New function.
36323         (fts_build): When not calling fts_stat, call set_stat_type
36324         to propagate dirent.d_type info to fts_read caller.
36325         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
36326         fts_statp->st_mode type information may be valid.
36327
36328 2008-11-28  Simon Josefsson  <simon@josefsson.org>
36329
36330         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
36331         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
36332         <sds@gnu.org>.
36333
36334 2008-11-20  Bruno Haible  <bruno@clisp.org>
36335
36336         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
36337         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
36338         INCLUDE_NEXT.
36339         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
36340         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
36341         * modules/math (Makefile.am): Substitute
36342         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
36343         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36344
36345 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36346             Bruno Haible  <bruno@clisp.org>
36347
36348         * lib/stdint.in.h: Define all type macros so that their expansion is
36349         a single typedef'ed token. Fixes a compilation failure in Boost which
36350         does "using ::int8_t;".
36351
36352 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36353
36354         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
36355         gl_MANYWARN_ALL_GCC.
36356         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
36357         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
36358         * modules/manywarnings: New file.
36359         * MODULES.html.sh: Mention manywarnings module.
36360
36361 2008-11-18  Bruno Haible  <bruno@clisp.org>
36362
36363         * doc/gnulib-tool.texi (Unit tests): New section.
36364
36365 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36366
36367         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
36368         paths like 'lib/po/foo.po'.
36369
36370 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36371
36372         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
36373         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
36374
36375 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36376
36377         * m4/warnings.m4: Use CPPFLAGS to really check whether the
36378         parameter works.
36379
36380 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36381
36382         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
36383
36384 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36385
36386         * modules/parse-duration-tests: New file.
36387         * tests/test-parse-duration.sh: New file.
36388         * tests/test-parse-duration.c: New file.
36389
36390         New module 'parse-duration'.
36391         * lib/parse-duration.h: New file.
36392         * lib/parse-duration.c: New file.
36393         * modules/parse-duration: New file.
36394
36395 2008-11-17  Bruno Haible  <bruno@clisp.org>
36396
36397         * tests/test-select-out.sh: Comment out the first pipe test.
36398         Reported by Simon Josefsson.
36399
36400 2008-11-17  Bruno Haible  <bruno@clisp.org>
36401
36402         * modules/getaddrinfo (Depends-on): Add servent, hostent.
36403         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
36404         gl_HOSTENT.
36405
36406 2008-11-17  Bruno Haible  <bruno@clisp.org>
36407
36408         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
36409         -lnetwork and -lnet. Needed for Haiku and BeOS.
36410
36411 2008-11-16  Bruno Haible  <bruno@clisp.org>
36412
36413         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
36414
36415 2008-11-16  Bruno Haible  <bruno@clisp.org>
36416
36417         Avoid test failure on Haiku.
36418         * tests/test-fsync.c: Include <errno.h>.
36419         (main): Don't require that fsync (0) fails.
36420
36421 2008-11-15  Bruno Haible  <bruno@clisp.org>
36422
36423         New module 'hostent'.
36424         * modules/hostent: New file.
36425         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
36426
36427 2008-11-15  Bruno Haible  <bruno@clisp.org>
36428
36429         New module 'servent'.
36430         * modules/servent: New file.
36431         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
36432
36433 2008-11-15  Bruno Haible  <bruno@clisp.org>
36434
36435         Avoid generating same test program with two different rules.
36436         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
36437         test-frexp to test-frexp-nolibm.
36438         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
36439         test-frexpl to test-frexpl-nolibm.
36440
36441 2008-11-15  Bruno Haible  <bruno@clisp.org>
36442
36443         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
36444         $(FREXPL_LIBM).
36445
36446 2008-11-15  Bruno Haible  <bruno@clisp.org>
36447
36448         * lib/netdb.in.h: Activate the definitions also when the system's
36449         <netdb.h> has 'struct addrinfo'.
36450         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
36451         EAI_OVERFLOW or AI_NUMERICSERV.
36452         * doc/posix-headers/netdb.texi: Document the problem.
36453
36454 2008-11-15  Bruno Haible  <bruno@clisp.org>
36455
36456         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
36457
36458         Make the 'sched' module work on platforms where <sched.h> exists but
36459         is incomplete (such as Haiku).
36460         * lib/sched.in.h; Include the system's <sched.h> if it exists.
36461         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
36462         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
36463         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
36464         HAVE_STRUCT_SCHED_PARAM.
36465         * modules/sched (Depends-on): Add include_next.
36466         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
36467         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
36468         * doc/posix-headers/sched.texi: Document the issue.
36469
36470 2008-11-13  Jim Meyering  <meyering@redhat.com>
36471
36472         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
36473         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
36474         test would fail due to the difference in the Report bugs to ...
36475         line.  The expected address is empty, "<>", while the actual
36476         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
36477
36478 2008-11-12  Bruno Haible  <bruno@clisp.org>
36479
36480         lstat: don't compile lstat.c on systems lacking lstat
36481         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
36482         which don't have lstat; this is handled by lib/sys_stat.in.h already.
36483         Reported by Daniel P. Berrange via Jim Meyering.
36484
36485 2008-11-12  Jim Meyering  <meyering@redhat.com>
36486
36487         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
36488
36489 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36490
36491         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
36492         instead.
36493
36494 2008-11-12  Bruno Haible  <bruno@clisp.org>
36495
36496         * lib/unicodeio.c: Include unistr.h.
36497         (utf8_wctomb): Remove function.
36498         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
36499
36500 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36501
36502         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
36503         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
36504         <bruno@clisp.org>.
36505         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
36506
36507 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36508
36509         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
36510         * doc/gnulib.texi: Add section for warnings.
36511
36512 2008-11-11  Bruno Haible  <bruno@clisp.org>
36513
36514         * lib/sockets.h: Add a comment.
36515
36516 2008-11-11  Karl Berry  <karl@gnu.org>
36517
36518         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
36519
36520 2008-11-11  Eric Blake  <ebb9@byu.net>
36521
36522         fdl.texi: avoid git symlinks
36523         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
36524
36525 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36526
36527         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
36528
36529 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36530
36531         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
36532         (gl_WARN_ADD): Substitute $2 if literal.
36533
36534 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36535
36536         * m4/warning.m4: Remove.
36537
36538 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36539
36540         * m4/warnings.m4: Almost complete rewrite. :-)
36541
36542 2008-11-10  Simon Josefsson  <simon@josefsson.org>
36543
36544         * modules/warnings: New module.
36545         * m4/warnings.m4: New file.
36546         * MODULES.html.sh: Mention warnings module.
36547         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
36548         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36549
36550 2008-11-10  Eric Blake  <ebb9@byu.net>
36551
36552         fdl.texi: make a symlink to the latest version
36553         * doc/standards.texi: Revert today's earlier change.
36554         * doc/fdl-1.2.texi: Rename from old fdl.texi...
36555         * doc/fdl.texi: ...and replace this with a symlink to the newer
36556         fdl-1.3.texi.
36557
36558 2008-11-10  Bruno Haible  <bruno@clisp.org>
36559
36560         * tests/test-select-fd.c (main): Accept the result file name as fourth
36561         argument.
36562         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
36563         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
36564
36565 2008-11-10  Bruno Haible  <bruno@clisp.org>
36566
36567         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
36568         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
36569         as autoconf-substituted macros.
36570         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
36571         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
36572         gl_NETDB_H_DEFAULTS. Set these variables.
36573         * modules/netdb (Makefile.am): Substitute these variables.
36574
36575 2008-11-10  Eric Blake  <ebb9@byu.net>
36576
36577         standards.texi: include correct file for FDL 1.3
36578         * doc/standards.texi (GNU Free Documentation License): Change
36579         include file to pull in FDL 1.3, not 1.2.
36580
36581         fdl.texi: revert accidental change to license
36582         * doc/fdl.texi: This is FDL 1.2, not 1.3.
36583
36584 2008-11-10  Bruno Haible  <bruno@clisp.org>
36585
36586         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
36587         cross-compiling guesses also when the native compile gives no result.
36588
36589 2008-11-10  Bruno Haible  <bruno@clisp.org>
36590
36591         * lib/spawni.c (__spawni): Force variable into the stack.
36592
36593 2008-11-10  Bruno Haible  <bruno@clisp.org>
36594
36595         Add support for Haiku.
36596         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
36597         glibc and BeOS, but also on Haiku.
36598         * lib/fpurge.c (fpurge): Likewise.
36599         * lib/freadable.c (freadable): Likewise.
36600         * lib/freadahead.c (freadahead): Likewise.
36601         * lib/freading.c (freading): Likewise.
36602         * lib/freadptr.c (freadptr): Likewise.
36603         * lib/freadseek.c (freadptrinc): Likewise.
36604         * lib/fseeko.c (rpl_fseeko): Likewise.
36605         * lib/fseterr.c (fseterr): Likewise.
36606         * lib/fwritable.c (fwritable): Likewise.
36607         * lib/fwriting.c (fwriting): Likewise.
36608         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
36609
36610 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36611
36612         * lib/config.charset: Treat Haiku like BeOS.
36613
36614 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36615
36616         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
36617         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
36618
36619 2008-11-08  Bruno Haible  <bruno@clisp.org>
36620
36621         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
36622         AC_CACHE_CHECK.
36623
36624 2008-11-08  Bruno Haible  <bruno@clisp.org>
36625
36626         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
36627
36628 2008-11-08  Bruno Haible  <bruno@clisp.org>
36629
36630         * tests/test-select-fd.c: New file.
36631         * tests/test-select-in.sh: New file.
36632         * tests/test-select-out.sh: New file.
36633         * tests/test-select-stdin.c: New file.
36634         * modules/select-tests (Files): Add the new files.
36635         (Depends-on): Add gettimeofday.
36636         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
36637         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
36638         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
36639
36640 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
36641             Bruno Haible  <bruno@clisp.org>
36642
36643         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
36644
36645 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
36646
36647         * build-aux/pmccabe2html: Added support for C++ source files.
36648
36649 2008-11-05  Ben Pfaff  <blp@gnu.org>
36650
36651         Fix lib/close.c build on Windows.
36652         * modules/close (Files): Add lib/w32sock.h.
36653
36654 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
36655
36656         Accept Bison's NEWS format.
36657         * build-aux/announce-gen (print_news_deltas): Tweak
36658         $re_prefix.
36659
36660 2008-11-04  Bruno Haible  <bruno@clisp.org>
36661
36662         * modules/random_r (Maintainer): Add glibc.
36663
36664 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36665
36666         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
36667         by karl@freefriends.org (Karl Berry).
36668         * doc/alloca.texi: Likewise.
36669         * doc/c-ctype.texi: Likewise.
36670         * doc/c-strcase.texi: Likewise.
36671         * doc/c-strcaseeq.texi: Likewise.
36672         * doc/c-strcasestr.texi: Likewise.
36673         * doc/c-strstr.texi: Likewise.
36674         * doc/c-strtod.texi: Likewise.
36675         * doc/c-strtold.texi: Likewise.
36676         * doc/ctime.texi: Likewise.
36677         * doc/error.texi: Likewise.
36678         * doc/fdl.texi: Likewise.
36679         * doc/gcd.texi: Likewise.
36680         * doc/getdate.texi: Likewise.
36681         * doc/gnulib-intro.texi: Likewise.
36682         * doc/gnulib-tool.texi: Likewise.
36683         * doc/gnulib.texi: Likewise.
36684         * doc/inet_ntoa.texi: Likewise.
36685         * doc/maintain.texi: Likewise.
36686         * doc/make-stds.texi: Likewise.
36687         * doc/quote.texi: Likewise.
36688         * doc/regexprops-generic.texi: Likewise.
36689         * doc/standards.texi: Likewise.
36690         * doc/verify.texi: Likewise.
36691         * doc/visibility.texi: Likewise.
36692         * doc/gnulib.texi (GNU Free Documentation License): Include
36693         fdl-1.3.texi instead of fdl.texi.
36694
36695 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36696
36697         * doc/fdl-1.3.texi: New file, from
36698         <http://www.gnu.org/licenses/fdl-1.3.texi>.
36699         * modules/fdl-1.3: Add.
36700         * MODULES.html.sh: Add fdl-1.3.
36701
36702 2008-11-03  Bruno Haible  <bruno@clisp.org>
36703
36704         Make determination of absolute name of header file work with AIX xlc.
36705         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
36706         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
36707         preprocessing.
36708         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36709         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36710
36711 2008-11-03  Simon Josefsson  <simon@josefsson.org>
36712
36713         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
36714         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
36715         <ludo@gnu.org>.
36716
36717 2008-11-02  Bruno Haible  <bruno@clisp.org>
36718
36719         Mark 'strpbrk' obsolete.
36720         * modules/strpbrk (Status, Notice): New sections.
36721         * modules/strtok_r (Depends-on): Add strpbrk.
36722
36723 2008-11-02  Bruno Haible  <bruno@clisp.org>
36724
36725         Mark 'strdup' obsolete.
36726         * modules/strdup (Status, Notice): New sections.
36727         * modules/findprog (Depends-on): Add strdup.
36728         * modules/getaddrinfo (Depends-on): Likewise.
36729         * modules/localename (Depends-on): Likewise.
36730         * modules/relocatable-lib (Depends-on): Likewise.
36731         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
36732         * modules/relocatable-prog (Depends-on): Likewise.
36733         * modules/trim (Depends-on): Likewise.
36734         * modules/unictype/gen-ctype (Depends-on): Likewise.
36735         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36736
36737 2008-11-02  Bruno Haible  <bruno@clisp.org>
36738
36739         Mark 'strcspn' obsolete.
36740         * modules/strcspn (Status, Notice): New sections.
36741
36742 2008-11-02  Bruno Haible  <bruno@clisp.org>
36743
36744         Mark 'rmdir' obsolete.
36745         * modules/rmdir (Status, Notice): New sections.
36746         * modules/clean-temp (Depends-on): Add rmdir.
36747         * modules/openat (Depends-on): Likewise.
36748
36749 2008-11-02  Bruno Haible  <bruno@clisp.org>
36750
36751         Mark 'raise' obsolete.
36752         * modules/raise (Status, Notice): New sections.
36753         (Include): Specify <signal.h>.
36754         * modules/stdio (Depends-on): Add raise.
36755         * modules/write (Depends-on): Likewise.
36756
36757 2008-11-02  Bruno Haible  <bruno@clisp.org>
36758
36759         Mark 'memset' obsolete.
36760         * modules/memset (Status, Notice): New sections.
36761
36762 2008-11-02  Bruno Haible  <bruno@clisp.org>
36763
36764         Mark 'memmove' obsolete.
36765         * modules/memmove (Status, Notice): New sections.
36766         * modules/argp (Depends-on): Add memmove.
36767         * modules/argz (Depends-on): Likewise.
36768         * modules/canonicalize (Depends-on): Likewise.
36769         * modules/canonicalize-lgpl (Depends-on): Likewise.
36770         * modules/fts (Depends-on): Likewise.
36771         * modules/getcwd (Depends-on): Likewise.
36772         * modules/human (Depends-on): Likewise.
36773         * modules/regex (Depends-on): Likewise.
36774         * modules/striconveh (Depends-on): Likewise.
36775         * modules/trim (Depends-on): Likewise.
36776         * modules/unistr/u8-move (Depends-on): Likewise.
36777         * modules/unistr/u16-move (Depends-on): Likewise.
36778         * modules/unistr/u32-move (Depends-on): Likewise.
36779
36780 2008-11-02  Bruno Haible  <bruno@clisp.org>
36781
36782         Mark 'memcpy' obsolete.
36783         * modules/memcpy (Status, Notice): New sections.
36784
36785 2008-11-02  Bruno Haible  <bruno@clisp.org>
36786
36787         Mark 'memcmp' obsolete.
36788         * modules/memcmp (Status, Notice): New sections.
36789         * modules/argmatch (Depends-on): Add memchr.
36790         * modules/backupfile (Depends-on): Likewise.
36791         * modules/c-strcasestr (Depends-on): Likewise.
36792         * modules/crypto/des (Depends-on): Likewise.
36793         * modules/csharpcomp (Depends-on): Likewise.
36794         * modules/fnmatch (Depends-on): Likewise.
36795         * modules/git-merge-changelog (Depends-on): Likewise.
36796         * modules/isnand (Depends-on): Likewise.
36797         * modules/isnand-nolibm (Depends-on): Likewise.
36798         * modules/isnanf (Depends-on): Likewise.
36799         * modules/isnanf-nolibm (Depends-on): Likewise.
36800         * modules/isnanl (Depends-on): Likewise.
36801         * modules/isnanl-nolibm (Depends-on): Likewise.
36802         * modules/mbchar (Depends-on): Likewise.
36803         * modules/memcoll (Depends-on): Likewise.
36804         * modules/quotearg (Depends-on): Likewise.
36805         * modules/regex (Depends-on): Likewise.
36806         * modules/relocatable-prog (Depends-on): Likewise.
36807         * modules/same (Depends-on): Likewise.
36808         * modules/signbit (Depends-on): Likewise.
36809         * modules/strcasestr-simple (Depends-on): Likewise.
36810         * modules/unictype/gen-ctype (Depends-on): Likewise.
36811         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36812         * modules/uniname/uniname (Depends-on): Likewise.
36813         * modules/unistr/u8-cmp (Depends-on): Likewise.
36814
36815 2008-11-02  Bruno Haible  <bruno@clisp.org>
36816
36817         Mark 'memchr' obsolete.
36818         * modules/memchr (Status, Notice): New sections.
36819         * modules/argp (Depends-on): Add memchr.
36820         * modules/base64 (Depends-on): Likewise.
36821         * modules/c-strcasestr (Depends-on): Likewise.
36822         * modules/chdir-long (Depends-on): Likewise.
36823         * modules/fnmatch (Depends-on): Likewise.
36824         * modules/getsubopt (Depends-on): Likewise.
36825         * modules/git-merge-changelog (Depends-on): Likewise.
36826         * modules/glob (Depends-on): Likewise.
36827         * modules/strcasestr-simple (Depends-on): Likewise.
36828         * modules/strnlen (Depends-on): Likewise.
36829
36830 2008-11-02  Bruno Haible  <bruno@clisp.org>
36831
36832         Mark 'atexit' obsolete.
36833         * modules/atexit (Status, Notice): New sections.
36834         * modules/chdir-long (Depends-on): Add atexit.
36835         * modules/wait-process (Depends-on): Likewise.
36836
36837 2008-11-02  Bruno Haible  <bruno@clisp.org>
36838
36839         * gnulib-tool: New option --with-obsolete.
36840         (func_usage): Document it.
36841         (func_modules_transitive_closure): Drop obsolete dependencies if
36842         incobsolete is not true.
36843         (func_import): Read and save the incobsolete variable to the cache.
36844
36845 2008-11-02  Bruno Haible  <bruno@clisp.org>
36846
36847         * modules/TEMPLATE-EXTENDED: New field 'Status'.
36848         * gnulib-tool: New option --extract-status.
36849         (func_usage): Document it.
36850         (sed_extract_prog): Recognize it.
36851         (func_get_status): New function.
36852
36853 2008-10-30  Simon Josefsson  <simon@josefsson.org>
36854
36855         * modules/sockets (License): Change from LGPL to LGPLv2+.
36856
36857 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36858
36859         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
36860
36861 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36862
36863         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36864         Mention times and sys_times.
36865         * modules/sys_times, modules/sys_times-tests: New modules.
36866         * modules/times, modules/times-tests: Likewise
36867         * m4/sys_times_h.m4: New file.
36868         * lib/sys_times.in.h: Likewise
36869         * lib/times.c: Likewise.
36870         * tests/test-sys_times.c: Likewise.
36871         * tests/test-times.c: Likewise.
36872         * doc/posix-headers/sys_times.texi: Update.
36873         * doc/posix-functions/times.texi: Update.
36874
36875 2008-10-28  Jim Meyering  <meyering@redhat.com>
36876
36877         * modules/tempname (Depends-on): Add lstat.
36878
36879         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
36880
36881 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36882
36883         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
36884         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
36885         using idiom used elsewhere in gnulib.
36886
36887 2008-10-27  Jim Meyering  <meyering@redhat.com>
36888
36889         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
36890
36891 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36892
36893         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
36894         TESTS_ENVIRONMENT, for shell scripts that needs to call built
36895         programs.
36896         * tests/test-argp-2.sh: Use $EXEEXT when needed.
36897
36898 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36899
36900         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
36901
36902 2008-10-27  Bruno Haible  <bruno@clisp.org>
36903
36904         * tests/test-lstat.c: Include <stdio.h>.
36905
36906 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36907
36908         * modules/lstat-tests: New module.
36909         * tests/test-lstat.c: New file.
36910
36911 2008-10-26  Jim Meyering  <meyering@redhat.com>
36912
36913         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
36914
36915 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36916             Bruno Haible  <bruno@clisp.org>
36917
36918         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
36919         * modules/configmake (Include): Add a note that the include must come
36920         after all system headers.
36921         * lib/javaversion.c: Include configmake.h after all other includes.
36922
36923 2008-10-26  Bruno Haible  <bruno@clisp.org>
36924
36925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
36926         HAVE_STRUCT_RANDOM_DATA to 1.
36927         (gl_STDLIB_H): Simplify.
36928
36929 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36930
36931         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
36932         substitute HAVE_STRUCT_RANDOM_DATA.
36933         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
36934         random_data.
36935         * modules/stdlib (Makefile.am): Substitute
36936         HAVE_STRUCT_RANDOM_DATA.
36937
36938 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36939
36940         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
36941         * doc/gnulib-intro.texi (Copyright): Likewise.
36942
36943 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36944
36945         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
36946         findings.
36947
36948 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
36949             Bruno Haible  <bruno@clisp.org>
36950
36951         * lib/unistd.in.h: Include <winsock2.h>.
36952         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
36953         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
36954         Provide dummy declarations.
36955         (gethostname): Override.
36956         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
36957         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
36958         gl_PREREQ_SYS_H_WINSOCK2.
36959         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
36960         * doc/posix-functions/gethostname.texi: More details.
36961
36962 2008-10-25  Bruno Haible  <bruno@clisp.org>
36963
36964         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36965         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
36966         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
36967
36968         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
36969         here ...
36970         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
36971         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
36972         gl_UNISTD_H_DEFAULTS.
36973
36974 2008-10-25  Eric Blake  <ebb9@byu.net>
36975
36976         signbit: avoid spurious compiler failure
36977         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
36978         declarations inside function.
36979
36980 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36981             Bruno Haible  <bruno@clisp.org>
36982
36983         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
36984         * modules/random_r (Depends-on): Add stdint.
36985
36986 2008-10-24  Bruno Haible  <bruno@clisp.org>
36987
36988         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
36989         Eggert.
36990         * modules/strerror (License): Likewise.
36991
36992 2008-10-24  Jim Meyering  <meyering@redhat.com>
36993
36994         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
36995         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
36996
36997 2008-10-24  Eric Blake  <ebb9@byu.net>
36998
36999         getgroups: fix compilation when getgroups is available
37000         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
37001         but with <config.h> override of getgroups disabled.
37002
37003 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37004
37005         * doc/gnulib.texi (Header files): Add note about C++ problems.
37006         Explained by Bruno Haible <bruno@clisp.org>.
37007
37008 2008-10-23  Bruno Haible  <bruno@clisp.org>
37009
37010         Define a dummy SA_NODEFER macro on Interix.
37011         * lib/signal.in.h (SA_NODEFER): Define fallback.
37012         Reported by Aleksey Cheusov <cheusov@tut.by> via
37013         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
37014
37015 2008-10-23  Bruno Haible  <bruno@clisp.org>
37016
37017         * modules/freadahead (License): Change to LGPLv2+.
37018         Suggested by Simon Josefsson.
37019
37020 2008-10-23  Jim Meyering  <meyering@redhat.com>
37021
37022         random_r: new module
37023         * modules/random_r: New file.
37024         * m4/random_r.m4: New file.
37025         * lib/random_r.c: New file, from glibc.
37026         * modules/random_r-tests: New file.
37027         * tests/test-random_r.c: New file.
37028         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
37029          Declare.
37030         (RAND_MAX): Define.
37031         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
37032         * modules/stdlib: Substitute them, too.
37033         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
37034         * doc/glibc-functions/initstate_r.texi: Mention the new module.
37035         * doc/glibc-functions/random_r.texi: Likewise.
37036         * doc/glibc-functions/setstate_r.texi: Likewise.
37037         * doc/glibc-functions/srandom_r.texi: Likewise.
37038         * config/srclist.txt: Mention it.
37039
37040 2008-10-23  David Lutterkort  <lutter@redhat.com>
37041
37042         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
37043         link requirement
37044
37045 2008-10-23  Jim Meyering  <meyering@redhat.com>
37046
37047         selinux-h: mark parameters of stub functions as intentionally unused
37048         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
37049         * lib/se-context.in.h: Likewise.
37050
37051 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37052
37053         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
37054
37055 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37056
37057         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
37058
37059 2008-10-22  Eric Blake  <ebb9@byu.net>
37060
37061         glthread/thread: avoid compiler warning
37062         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
37063         Add unreachable abort to silence compiler.
37064
37065 2008-10-22  Eric Blake  <ebb9@byu.net>
37066
37067         netdb: also supply struct addrinfo for cygwin 1.5.x
37068         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
37069         older cygwin.
37070         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
37071         cygwin.
37072         * doc/posix-headers/netdb.texi (netdb.h): Document this.
37073
37074 2008-10-22  Bruno Haible  <bruno@clisp.org>
37075
37076         * users.txt: Update entry about pspp.
37077
37078 2008-10-21  Bruno Haible  <bruno@clisp.org>
37079
37080         Simplification.
37081         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
37082         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
37083
37084         Simplification.
37085         * lib/ioctl.c (ioctl): Don't undefine.
37086         * lib/socket.c (socket): Don't undefine.
37087
37088         Remove unused module indicator macros.
37089         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
37090         GNULIB_$1 as a C macro.
37091
37092         * doc/posix-functions/close.texi: Undo last change.
37093         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
37094         Windows platforms.
37095
37096 2008-10-21  Bruno Haible  <bruno@clisp.org>
37097
37098         Add gethostname() declaration to <unistd.h>.
37099         * lib/unistd.in.h (gethostname): New declaration.
37100         * lib/gethostname.c: Include <unistd.h>.
37101         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
37102         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
37103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
37104         and HAVE_GETHOSTNAME.
37105         * modules/gethostname (Depends-on): Add unistd.
37106         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37107         (Include): Specify <unistd.h>.
37108         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
37109         HAVE_GETHOSTNAME.
37110         * tests/test-gethostname.c: Include <unistd.h> first.
37111
37112 2008-10-21  Bruno Haible  <bruno@clisp.org>
37113
37114         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
37115         * modules/select-tests (Depends-on): Likewise.
37116         Reported by Simon Josefsson.
37117
37118 2008-10-21  Simon Josefsson  <simon@josefsson.org>
37119
37120         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
37121         * lib/accept.c: New file, based on winsock.c.
37122         * lib/bind.c: New file, based on winsock.c.
37123         * lib/connect.c: New file, based on winsock.c.
37124         * lib/getpeername.c: New file, based on winsock.c.
37125         * lib/getsockname.c: New file, based on winsock.c.
37126         * lib/getsockopt.c: New file, based on winsock.c.
37127         * lib/ioctl.c: New file, based on winsock.c.
37128         * lib/listen.c: New file, based on winsock.c.
37129         * lib/recv.c: New file, based on winsock.c.
37130         * lib/recvfrom.c: New file, based on winsock.c.
37131         * lib/send.c: New file, based on winsock.c.
37132         * lib/sendto.c: New file, based on winsock.c.
37133         * lib/setsockopt.c: New file, based on winsock.c.
37134         * lib/shutdown.c: New file, based on winsock.c.
37135         * lib/socket.c: New file, based on winsock.c.
37136         * lib/w32sock.h: New file, based on winsock.c.
37137         * lib/winsock.c: Remove file.
37138         * modules/accept: Likewise.
37139         * modules/bind: Likewise.
37140         * modules/connect: Likewise.
37141         * modules/getpeername: Likewise.
37142         * modules/getsockname: Likewise.
37143         * modules/getsockopt: Likewise.
37144         * modules/ioctl: Likewise.
37145         * modules/listen: Likewise.
37146         * modules/recv: Likewise.
37147         * modules/recvfrom: Likewise.
37148         * modules/send: Likewise.
37149         * modules/sendto: Likewise.
37150         * modules/setsockopt: Likewise.
37151         * modules/shutdown: Likewise.
37152         * modules/socket: Use socket.c instead of winsock.c.
37153         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
37154         * doc/posix-functions/accept.texi: Doc fix.
37155         * doc/posix-functions/bind.texi: Doc fix.
37156         * doc/posix-functions/close.texi: Doc fix.
37157         * doc/posix-functions/connect.texi: Doc fix.
37158         * doc/posix-functions/getpeername.texi: Doc fix.
37159         * doc/posix-functions/getsockname.texi: Doc fix.
37160         * doc/posix-functions/getsockopt.texi: Doc fix.
37161         * doc/posix-functions/ioctl.texi: Doc fix.
37162         * doc/posix-functions/listen.texi: Doc fix.
37163         * doc/posix-functions/recv.texi: Doc fix.
37164         * doc/posix-functions/recvfrom.texi: Doc fix.
37165         * doc/posix-functions/send.texi: Doc fix.
37166         * doc/posix-functions/sendto.texi: Doc fix.
37167         * doc/posix-functions/setsockopt.texi: Doc fix.
37168         * doc/posix-functions/shutdown.texi: Doc fix.
37169         * doc/posix-functions/socket.texi: Doc fix.
37170
37171 2008-10-20  Bruno Haible  <bruno@clisp.org>
37172
37173         Take into account the role of SIGABRT_COMPAT on Windows 2008.
37174         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
37175         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
37176         as an alias for SIGABRT.
37177         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
37178         (sigaction): Map it to SIGABRT.
37179         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
37180
37181 2008-10-20  Bruno Haible  <bruno@clisp.org>
37182
37183         * lib/fts.c: Don't include lstat.h.
37184         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
37185
37186         Move the lstat() declaration to <sys/stat.h>.
37187         * lib/lstat.h: Remove file.
37188         * lib/sys_stat.in.h: Add special invocation convention.
37189         (lstat): New declaration.
37190         * lib/lstat.c (orig_lstat): New function.
37191         (rpl_lstat): Use orig_lstat instead of lstat.
37192         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
37193         AC_C_INLINE. Set REPLACE_LSTAT.
37194         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
37195         and REPLACE_LSTAT.
37196         * modules/lstat (Files): Remove lib/lstat.h.
37197         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37198         (Include): Specify <sys/stat.h> instead of lstat.h.
37199         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
37200         REPLACE_LSTAT.
37201         * NEWS: Mention the change.
37202
37203 2008-10-20  Bruno Haible  <bruno@clisp.org>
37204
37205         * modules/posix_spawn-tests: New file.
37206         * tests/test-posix_spawn3.c: New file.
37207
37208 2008-10-20  Bruno Haible  <bruno@clisp.org>
37209
37210         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
37211         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37212         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
37213         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37214         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
37215
37216 2008-10-20  Bruno Haible  <bruno@clisp.org>
37217
37218         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
37219         of posix_spawn on AIX 5.3.
37220
37221 2008-10-20  Bruno Haible  <bruno@clisp.org>
37222
37223         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
37224
37225 2008-10-20  Bruno Haible  <bruno@clisp.org>
37226
37227         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
37228         of AC_LANG_PROGRAM.
37229
37230 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37231
37232         * lib/netdb.in.h: Don't define GNU specific constants until they
37233         are supported or needed.  Reported by Bruno Haible
37234         <bruno@clisp.org>.
37235
37236 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37237
37238         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
37239
37240 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37241
37242         * lib/getaddrinfo.h: Remove file.
37243         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
37244         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
37245         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
37246         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
37247         * modules/netdb: Substitute GNULIB_GETADDRINFO.
37248         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
37249         * tests/test-getaddrinfo.c: Likewise.
37250         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
37251         * NEWS: Mention change.
37252
37253 2008-10-19  Bruno Haible  <bruno@clisp.org>
37254
37255         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
37256
37257 2008-10-19  Bruno Haible  <bruno@clisp.org>
37258
37259         * lib/wait-process.c: Include simply <sys/wait.h>.
37260         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
37261         WIFSTOPPED): Remove fallback definitions.
37262         * modules/wait-process (Depends-on): Add sys_wait.
37263
37264         New module 'sys_wait'.
37265         * modules/sys_wait: New file.
37266         * lib/sys_wait.in.h: New file, partially copied from
37267         lib/wait-process.c.
37268         * m4/sys_wait_h.m4: New file.
37269         * doc/posix-headers/sys_wait.texi: Mention the new module.
37270
37271 2008-10-19  Bruno Haible  <bruno@clisp.org>
37272
37273         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
37274
37275 2008-10-19  Bruno Haible  <bruno@clisp.org>
37276
37277         Assume that waitpid() fills an 'int' status, not a 'union wait'.
37278         * lib/wait-process.c (WAIT_T): Remove type.
37279         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
37280         (wait_subprocess): Update.
37281
37282 2008-10-19  Bruno Haible  <bruno@clisp.org>
37283
37284         New module 'atoll'.
37285         * modules/atoll: New file.
37286         * lib/stdlib.in.h (atoll): New declaration.
37287         * lib/atoll.c: New file, from glibc with modifications.
37288         * m4/atoll.m4: New file.
37289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
37290         HAVE_ATOLL.
37291         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
37292         * doc/posix-functions/atoll.texi: Mention the new module.
37293
37294 2008-10-19  Bruno Haible  <bruno@clisp.org>
37295
37296         Add strtoull() declaration to <stdlib.h>.
37297         * lib/stdlib.in.h (strtoull): New declaration.
37298         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37299         Set HAVE_STRTOULL.
37300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
37301         HAVE_STRTOULL.
37302         * modules/strtoull (Depends-on): Add stdlib.
37303         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37304         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
37305         HAVE_STRTOULL.
37306
37307 2008-10-19  Bruno Haible  <bruno@clisp.org>
37308
37309         Add strtoll() declaration to <stdlib.h>.
37310         * lib/stdlib.in.h (strtoll): New declaration.
37311         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37312         Set HAVE_STRTOLL.
37313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
37314         HAVE_STRTOLL.
37315         * modules/strtoll (Depends-on): Add stdlib.
37316         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37317         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
37318
37319 2008-10-19  Bruno Haible  <bruno@clisp.org>
37320
37321         * modules/bcopy (Depends-on): Add strings.
37322         (Include): Specify <strings.h>.
37323
37324 2008-10-19  Bruno Haible  <bruno@clisp.org>
37325
37326         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
37327
37328 2008-10-19  Bruno Haible  <bruno@clisp.org>
37329
37330         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
37331         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
37332         mingw.
37333
37334 2008-10-19  Bruno Haible  <bruno@clisp.org>
37335
37336         * lib/atanl.c: Don't include isnanl.h.
37337         * lib/cosl.c: Likewise.
37338         * lib/ldexpl.c: Likewise.
37339         * lib/logl.c: Likewise.
37340         * lib/sinl.c: Likewise.
37341         * lib/sqrtl.c: Likewise.
37342         * lib/tanl.c: Likewise.
37343
37344         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
37345         * lib/isnanf.h: Remove file.
37346         * lib/isnand.h: Remove file.
37347         * lib/isnanl.h: Remove file.
37348         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
37349         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
37350         macros.
37351         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
37352         HAVE_ISNANF, don't define it as a C macro.
37353         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
37354         HAVE_ISNAND, don't define it as a C macro.
37355         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
37356         HAVE_ISNANL, don't define it as a C macro.
37357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
37358         HAVE_ISNAN[FDL].
37359         * modules/isnanf (Files): Remove lib/isnanf.h.
37360         (Depends-on): Add math.
37361         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37362         (Include): Specify <math.h> instead of isnanf.h.
37363         * modules/isnand (Files): Remove lib/isnand.h.
37364         (Depends-on): Add math.
37365         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37366         (Include): Specify <math.h> instead of isnand.h.
37367         * modules/isnanl (Files): Remove lib/isnanl.h.
37368         (Depends-on): Add math.
37369         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37370         (Include): Specify <math.h> instead of isnanl.h.
37371         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
37372         HAVE_ISNAN[FDL].
37373         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
37374         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
37375         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
37376         * NEWS: Mention the change.
37377
37378 2008-10-18  Bruno Haible  <bruno@clisp.org>
37379
37380         Add getusershell(), setusershell(), endusershell() declarations to
37381         <unistd.h>.
37382         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
37383         declarations.
37384         * lib/getusershell.c: Include unistd.h.
37385         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
37386         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37387         HAVE_GETUSERSHELL.
37388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
37389         and HAVE_GETUSERSHELL.
37390         * modules/getusershell (Depends-on): Add unistd, extensions.
37391         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37392         (Include): Specify <unistd.h>.
37393         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
37394         HAVE_GETUSERSHELL.
37395
37396 2008-10-18  Bruno Haible  <bruno@clisp.org>
37397
37398         Add a getloadavg() declaration to <stdlib.h>.
37399         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
37400         getloadavg declaration.
37401         (getloadavg): New declaration.
37402         * lib/getloadavg.c: Include <stdlib.h> first.
37403         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
37404         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
37405         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
37406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
37407         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37408         * modules/getloadavg (Depends-on): Add stdlib, extensions.
37409         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37410         (Include): Specify <stdlib.h>.
37411         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
37412         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37413
37414 2008-10-18  Bruno Haible  <bruno@clisp.org>
37415
37416         * lib/dirchownmod.c: Don't include lchmod.h.
37417
37418         Move the lchmod() declaration to <sys/stat.h>.
37419         * lib/lchmod.h: Remove file.
37420         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
37421         (lchmod): New declaration, moved here from lib/lchown.h.
37422         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
37423         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
37424         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
37425         and HAVE_LCHMOD.
37426         * modules/lchmod (Files): Remove lib/lchmod.h.
37427         (Depends-on): Add sys_stat, extensions.
37428         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37429         (Include): Specify <sys/stat.h> instead of lchmod.h.
37430         * modules/sys_stat (Depends-on): Add link-warning.
37431         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
37432         definition of GL_LINK_WARNING.
37433         * NEWS: Mention the change.
37434
37435 2008-10-18  Bruno Haible  <bruno@clisp.org>
37436
37437         * lib/fchdir.c: Don't include dirfd.h.
37438         * lib/fts.c: Likewise.
37439         * lib/getcwd.c: Likewise.
37440         * lib/glob.c: Likewise.
37441
37442         Move the dirfd() declaration to <dirent.h>.
37443         * lib/dirfd.h: Remove file.
37444         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
37445         (dirfd): New declaration.
37446         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
37447         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
37448         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
37449         HAVE_DECL_DIRFD.
37450         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
37451         HAVE_DECL_DIRFD.
37452         * modules/dirfd (Files): Remove lib/dirfd.h.
37453         (Depends-on): Add dirent, extensions.
37454         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
37455         (Include): Specify <dirent.h> instead of dirfd.h.
37456         * modules/dirent (Depends-on): Add link-warning.
37457         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
37458         definition of GL_LINK_WARNING.
37459         * NEWS: Mention the change.
37460
37461 2008-10-18  Bruno Haible  <bruno@clisp.org>
37462
37463         Move the euidaccess() declaration to <unistd.h>.
37464         * lib/euidaccess.h: Remove file.
37465         * lib/unistd.in.h (euidaccess): New declaration.
37466         * lib/euidaccess.c: Don't include euidaccess.h.
37467         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
37468         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
37469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
37470         and HAVE_EUIDACCESS.
37471         * modules/euidaccess (Files): Remove lib/euidaccess.h.
37472         (Depends-on): Add unistd.
37473         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37474         (Include): Specify <unistd.h> instead of euidaccess.h.
37475         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
37476         HAVE_EUIDACCESS.
37477         * NEWS: Mention the change.
37478
37479 2008-10-18  Bruno Haible  <bruno@clisp.org>
37480
37481         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
37482
37483         Move the getdomainname() declaration to <unistd.h>.
37484         * lib/getdomainname.h: Remove file.
37485         * lib/unistd.in.h (getdomainname): New declaration.
37486         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
37487         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
37488         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37489         HAVE_GETDOMAINNAME.
37490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37491         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
37492         * modules/getdomainname (Files): Remove lib/getdomainname.h.
37493         (Depends-on): Add unistd, extensions.
37494         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37495         (Includes): Specify <unistd.h> instead of getdomainname.h.
37496         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
37497         HAVE_GETDOMAINNAME.
37498         * NEWS: Mention the change.
37499
37500 2008-10-18  Bruno Haible  <bruno@clisp.org>
37501
37502         * modules/dirent: New file.
37503         * m4/dirent_h.m4: New file.
37504         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
37505         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
37506         * modules/fchdir (Files): Remove lib/dirent.in.h.
37507         (Depends-on): Add dirent.
37508         (Makefile.am): Move rules to modules/dirent.
37509         * doc/posix-headers/dirent.texi: Mention the new module.
37510
37511 2008-10-18  Bruno Haible  <bruno@clisp.org>
37512
37513         Avoid -Wunused-parameter warnings in public gnulib header files.
37514         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
37515         macro.
37516         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
37517
37518 2008-10-18  Bruno Haible  <bruno@clisp.org>
37519
37520         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
37521         * doc/glibc-functions/error.texi: Mention the module 'error'.
37522         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
37523         * doc/glibc-functions/getdomainname.texi: Mention the module
37524         'getdomainname'.
37525         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
37526         * doc/glibc-functions/getpagesize.texi: Mention the module
37527         'getpagesize'.
37528         * doc/glibc-functions/getusershell.texi: Mention the module
37529         'getusershell'.
37530         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
37531         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
37532         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
37533         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
37534         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
37535         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
37536         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
37537         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
37538         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
37539         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
37540         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
37541         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
37542         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
37543         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
37544
37545 2008-10-17  Bruno Haible  <bruno@clisp.org>
37546
37547         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
37548         HP-UX and IRIX, use -0.0L.
37549         * tests/test-ceill.c (minus_zero): Likewise.
37550         * tests/test-floorl.c (minus_zero): Likewise.
37551         * tests/test-frexpl.c (minus_zero): Likewise.
37552         * tests/test-isnan.c (minus_zerol): Likewise.
37553         * tests/test-isnanl.h (minus_zero): Likewise.
37554         * tests/test-ldexpl.c (minus_zero): Likewise.
37555         * tests/test-roundl.c (minus_zero): Likewise.
37556         * tests/test-signbit.c (minus_zerol): Likewise.
37557         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37558         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37559         * tests/test-truncl.c (minus_zero): Likewise.
37560         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37561         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37562         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
37563         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37564
37565 2008-10-17  Bruno Haible  <bruno@clisp.org>
37566
37567         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
37568         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
37569         that it gets activated only for gcc >= 3.0.
37570         * lib/dirent.in.h: Likewise.
37571         * lib/errno.in.h: Likewise.
37572         * lib/fcntl.in.h: Likewise.
37573         * lib/float.in.h: Likewise.
37574         * lib/iconv.in.h: Likewise.
37575         * lib/inttypes.in.h: Likewise.
37576         * lib/locale.in.h: Likewise.
37577         * lib/math.in.h: Likewise.
37578         * lib/netdb.in.h: Likewise.
37579         * lib/netinet_in.in.h: Likewise.
37580         * lib/search.in.h: Likewise.
37581         * lib/signal.in.h: Likewise.
37582         * lib/spawn.in.h: Likewise.
37583         * lib/stdarg.in.h: Likewise.
37584         * lib/stdint.in.h: Likewise.
37585         * lib/stdio.in.h: Likewise.
37586         * lib/stdlib.in.h: Likewise.
37587         * lib/string.in.h: Likewise.
37588         * lib/strings.in.h: Likewise.
37589         * lib/sys_file.in.h: Likewise.
37590         * lib/sys_ioctl.in.h: Likewise.
37591         * lib/sys_select.in.h: Likewise.
37592         * lib/sys_socket.in.h: Likewise.
37593         * lib/sys_stat.in.h: Likewise.
37594         * lib/sys_time.in.h: Likewise.
37595         * lib/sysexits.in.h: Likewise.
37596         * lib/time.in.h: Likewise.
37597         * lib/unistd.in.h: Likewise.
37598         * lib/wchar.in.h: Likewise.
37599         * lib/wctype.in.h: Likewise.
37600         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37601
37602 2008-10-17  Jim Meyering  <meyering@redhat.com>
37603
37604         ignore-value: don't depend on inline module
37605         * modules/ignore-value (Depends-on): Remove 'inline'.
37606         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
37607         Suggestion from Bruno Haible.
37608
37609 2008-10-17  Bruno Haible  <bruno@clisp.org>
37610
37611         New implementation of condition variables for Win32.
37612         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
37613         (gl_linked_waitqueue_t): New type.
37614         (gl_cond_t): Use it.
37615         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
37616         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
37617         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
37618         (glthread_cond_init_func, glthread_cond_wait_func,
37619         glthread_cond_timedwait_func, glthread_cond_signal_func,
37620         glthread_cond_broadcast_func, glthread_cond_destroy_func):
37621         Reimplemented on the basis of gl_linked_waitqueue_t.
37622         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
37623         gl_waitqueue_t.
37624         (gl_rwlock_t): Update.
37625         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
37626
37627 2008-10-17  Simon Josefsson  <simon@josefsson.org>
37628
37629         * modules/recvfrom (Depends-on): Add dependency on getpeername.
37630         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37631
37632 2008-10-17  Jim Meyering  <meyering@redhat.com>
37633
37634         ignore-value: new module
37635         * modules/ignore-value: New file.
37636         * lib/ignore-value.h: New file.
37637         * MODULES.html.sh (Compiler warning management): New section,
37638         just for this module.  More to come.
37639
37640 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37641
37642         open-safer.c: avoid 'signed and unsigned in conditional...' warning
37643         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
37644         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
37645
37646 2008-10-16  Jim Meyering  <meyering@redhat.com>
37647
37648         openat-die.c: avoid 'no previous prototype' warning
37649         * lib/openat-die.c: Include "openat.h".
37650         Reported by Reuben Thomas <rrt@sc3d.org>.
37651
37652 2008-10-16  Simon Josefsson  <simon@josefsson.org>
37653
37654         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
37655         * lib/netdb.in.h: Fix typo.
37656         Reported by Bruno Haible  <bruno@clisp.org>
37657
37658         * lib/netdb.in.h: Include sys/socket.h for platforms without
37659         netdb.h, to get structures like hostent on MinGW.
37660         * modules/netdb (Depends-on): Add sys_socket.
37661
37662 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37663
37664         * modules/netdb, modules/netdb-tests: New file.
37665         * m4/netdb_h.m4: New file.
37666         * lib/netdb.in.h: Add, currently just an empty file pending
37667         definitions.
37668         * tests/test-netdb.c: New file.
37669         * doc/posix-headers/netdb.texi: Mention that we replace it if
37670         needed.
37671         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37672         netdb.
37673
37674 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37675
37676         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
37677         with code.
37678
37679 2008-10-13  Bruno Haible  <bruno@clisp.org>
37680
37681         * lib/glthread/cond.c (glthread_cond_wait_func,
37682         glthread_cond_timedwait_func): Add a comment.
37683
37684 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37685
37686         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
37687         * tests/test-select.c: Likewise,
37688
37689 2008-10-13  Bruno Haible  <bruno@clisp.org>
37690
37691         * lib/glthread/cond.c (glthread_cond_wait_func,
37692         glthread_cond_timedwait_func): Fix variable name.
37693         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37694
37695 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
37696
37697         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
37698         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
37699         struct sockaddr.sa_len.
37700         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
37701
37702 2008-10-13  Simon Josefsson  <simon@josefsson.org>
37703
37704         * build-aux/pmccabe2html: Add css and css_url parameters.
37705
37706 2008-10-12  Bruno Haible  <bruno@clisp.org>
37707
37708         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
37709         calling aclx_get.
37710         Reported by Rainer Tammer <tammer@tammer.net>.
37711
37712 2008-10-12  Bruno Haible  <bruno@clisp.org>
37713
37714         Use msvcrt aware primitives for creation/termination of Win32 threads.
37715         * lib/glthread/thread.c: Include <process.h>.
37716         (glthread_create_func): Use _beginthreadex instead of CreateThread.
37717         (wrapper_func): Update signature.
37718         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
37719
37720 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37721             Bruno Haible  <bruno@clisp.org>
37722
37723         Provide a Win32 implementation of the 'cond' module.
37724         * lib/glthread/cond.h [USE_WIN32]: New implementation.
37725         * lib/glthread/cond.c (glthread_cond_init_func,
37726         glthread_cond_wait_func, glthread_cond_timedwait_func,
37727         glthread_cond_signal_func, glthread_cond_broadcast_func,
37728         glthread_cond_destroy_func) [USE_WIN32]: New functions.
37729         * modules/cond (Dependencies): Add gettimeofday.
37730
37731 2008-10-11  Bruno Haible  <bruno@clisp.org>
37732
37733         Make sleep work on older versions of mingw.
37734         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
37735         only whether it exists.
37736         * doc/posix-functions/sleep.texi: Mention the problem with older
37737         versions of mingw.
37738
37739 2008-10-11  Bruno Haible  <bruno@clisp.org>
37740
37741         New module 'shutdown'.
37742         * modules/shutdown: New file.
37743         * lib/sys_socket.in.h (shutdown): New declaration.
37744         * lib/winsock.c (shutdown): New function.
37745         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37746         GNULIB_SHUTDOWN.
37747         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
37748         * doc/posix-functions/shutdown.texi: Document the new module.
37749
37750 2008-10-11  Jim Meyering  <meyering@redhat.com>
37751
37752         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
37753
37754 2008-10-11  Bruno Haible  <bruno@clisp.org>
37755
37756         New module 'fclose'.
37757         * modules/fclose: New file.
37758         * lib/stdio.in.h (fclose): New declaration.
37759         * lib/fclose.c: New file.
37760         * m4/fclose.m4: New file.
37761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
37762         REPLACE_FCLOSE.
37763         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
37764         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
37765         REPLACE_FCLOSE.
37766         * modules/close (Depends-on): fclose.
37767         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
37768
37769 2008-10-11  Bruno Haible  <bruno@clisp.org>
37770
37771         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
37772         set errno and don't call _close.
37773
37774 2008-10-10  Bruno Haible  <bruno@clisp.org>
37775
37776         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
37777         ACL, not afterwards. Fixes test failure on Cygwin.
37778
37779 2008-10-09  Ben Pfaff  <blp@gnu.org>
37780
37781         * build-aux/announce-gen: Fix gnulib version related part of usage
37782         message.  Die with a useful error message if no tarballs are
37783         found.
37784
37785 2008-10-10  Jim Meyering  <meyering@redhat.com>
37786
37787         bootstrap: use git's --depth=N option only if it's supported
37788         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
37789         recognize the --depth option.  Reported by Pádraig Brady.
37790
37791 2008-10-09  Bruno Haible  <bruno@clisp.org>
37792
37793         New module 'ioctl'.
37794         * modules/ioctl: New file.
37795         * lib/sys_socket.in.h (ioctl): Remove declaration.
37796         * lib/winsock.c: Include <sys/ioctl.h>.
37797         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
37798         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37799         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
37800         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
37801         * doc/posix-functions/ioctl.texi: Mention the new module.
37802
37803 2008-10-09  Bruno Haible  <bruno@clisp.org>
37804
37805         New module 'sys_ioctl'.
37806         * lib/sys_ioctl.in.h: New file.
37807         * m4/sys_ioctl_h.m4: New file.
37808         * modules/sys_ioctl: New file.
37809         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
37810
37811 2008-10-09  Bruno Haible  <bruno@clisp.org>
37812
37813         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
37814         * lib/winsock.c: Include <stdarg.h>.
37815         (rpl_ioctl): Change to second argument 'int' and then varargs.
37816
37817 2008-10-09  Bruno Haible  <bruno@clisp.org>
37818
37819         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
37820         when the sys_socket module is present and the system has <winsock2.h>.
37821
37822 2008-10-09  Bruno Haible  <bruno@clisp.org>
37823
37824         * doc/posix-functions/close.texi: Mention module 'close' instead of
37825         module 'sys_socket'.
37826
37827 2008-10-09  Bruno Haible  <bruno@clisp.org>
37828
37829         * doc/glibc-headers/sys_ioctl.texi: New file.
37830         * doc/gnulib.texi: Include it.
37831
37832 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37833             Bruno Haible  <bruno@clisp.org>
37834
37835         Combine the two replacements of 'close'.
37836         * lib/sys_socket.in.h (close): Define to a reminder to include
37837         <unistd.h>.
37838         (_gl_close_fd_maybe_socket): New declaration.
37839         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
37840         * lib/winsock.c (close): Remove undefinition.
37841         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
37842         needed for the gnulib module 'close'.
37843         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
37844         define to an error symbol or to a warning, if suitable.
37845         * lib/close.c: Include <sys/socket.h>.
37846         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
37847         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
37848         UNISTD_H_HAVE_WINSOCK2_H.
37849         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
37850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37851         UNISTD_H_HAVE_WINSOCK2_H.
37852         * modules/sys_socket (Files): Add m4/unistd_h.m4.
37853         (configure.ac): Set a module indicator.
37854         (Makefile.am): Substitute GNULIB_CLOSE.
37855         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
37856         * modules/poll-tests (Depends-on): Add close.
37857         * modules/select-tests (Depends-on): Likewise.
37858
37859 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37860             Bruno Haible  <bruno@clisp.org>
37861
37862         New module 'close'.
37863         * modules/close: New file.
37864         * lib/unistd.in.h (close): Move declaration out of the
37865         FCHDIR_REPLACEMENT scope.
37866         (_gl_unregister_fd): New declaration.
37867         * lib/close.c: New file.
37868         * lib/fchdir.c (rpl_close): Remove function.
37869         * m4/close.m4: New file.
37870         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37871         close.
37872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
37873         REPLACE_CLOSE.
37874         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
37875         REPLACE_CLOSE.
37876         * modules/fchdir (Depends-on): Add close.
37877
37878 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37879             Bruno Haible  <bruno@clisp.org>
37880
37881         * lib/fcntl.in.h (open): Simplify conditionals.
37882         (_gl_register_fd): New declaration.
37883         * lib/fchdir.c (rpl_open): Remove function.
37884         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
37885         also.
37886         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
37887         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37888         open.
37889
37890 2008-10-09  Jim Meyering  <meyering@redhat.com>
37891
37892         GNUmakefile: use the more name-space-friendly "_version"
37893         * top/GNUmakefile (_dummy): Update.
37894         (_version): Rename from "version".
37895
37896 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37897             Bruno Haible  <bruno@clisp.org>
37898
37899         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
37900         rpl_close.
37901         (_gl_register_fd): New function, extracted from rpl_open.
37902         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
37903         (rpl_open, rpl_opendir): Use _gl_register_fd.
37904
37905 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37906
37907         Fix organization of 'open' replacement.
37908         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
37909         (gl_FUNC_OPEN): Use it.
37910         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
37911
37912 2008-10-08  Bruno Haible  <bruno@clisp.org>
37913
37914         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
37915
37916 2008-10-08  Simon Josefsson  <simon@josefsson.org>
37917
37918         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
37919         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
37920         listen).
37921
37922 2008-10-08  Eric Blake  <ebb9@byu.net>
37923
37924         GNUmakefile: add 'make version' target
37925         * top/GNUmakefile (_curr-ver): Split version update rules...
37926         (version): ...into a target.
37927
37928 2008-10-07  Bruno Haible  <bruno@clisp.org>
37929
37930         Use a more portable replacement expression for -0.0L.
37931         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
37932         instead of -0.0L. Fix m4 quotation.
37933
37934         * tests/test-signbit.c: Include <float.h>.
37935         (minus_zero): New variable.
37936         (test_signbitl): Use minus_zero instead of -zero.
37937         * modules/signbit-tests (Depends-on): Add float.
37938
37939         * tests/test-ceill.c: Include <float.h>.
37940         (zero): Remove variable.
37941         (minus_zero): New variable.
37942         (main): Use minus_zero instead of -zero.
37943         * modules/ceill-tests (Depends-on): Add float.
37944
37945         * tests/test-floorl.c: Include <float.h>.
37946         (zero): Remove variable.
37947         (minus_zero): New variable.
37948         (main): Use minus_zero instead of -zero.
37949         * modules/floorl-tests (Depends-on): Add float.
37950
37951         * tests/test-roundl.c: Include <float.h>.
37952         (zero): Remove variable.
37953         (minus_zero): New variable.
37954         (main): Use minus_zero instead of -zero.
37955         * modules/roundl-tests (Depends-on): Add float.
37956
37957         * tests/test-truncl.c: Include <float.h>.
37958         (zero): Remove variable.
37959         (minus_zero): New variable.
37960         (main): Use minus_zero instead of -zero.
37961         * modules/truncl-tests (Depends-on): Add float.
37962
37963         * tests/test-frexpl.c (zero): Remove variable.
37964         (minus_zero): New variable.
37965         (main): Use minus_zero instead of -zero.
37966         * modules/frexpl-tests (Depends-on): Add float.
37967
37968         * tests/test-isnan.c (zerol): Remove variable.
37969         (minus_zerol): New variable.
37970         (test_long_double): Use minus_zerol instead of -zerol.
37971         * modules/isnan-tests (Depends-on): Add float.
37972
37973         * tests/test-isnanl.h (zero): Remove variable.
37974         (minus_zero): New variable.
37975         (main): Use minus_zero instead of -zero.
37976         * modules/isnanl-nolibm-tests (Depends-on): Add float.
37977         * modules/isnanl-tests (Depends-on): Add float.
37978
37979         * tests/test-ldexpl.c (zero): Remove variable.
37980         (minus_zero): New variable.
37981         (main): Use minus_zero instead of -zero.
37982         * modules/ldexpl-tests (Depends-on): Add float.
37983
37984         * tests/test-snprintf-posix.h (zerol): Remove variable.
37985         (minus_zerol): New variable.
37986         (test_function): Use minus_zerol instead of -zerol.
37987         * modules/snprintf-posix-tests (Depends-on): Add float.
37988         * modules/vsnprintf-posix-tests (Depends-on): Add float.
37989
37990         * tests/test-sprintf-posix.h (zerol): Remove variable.
37991         (minus_zerol): New variable.
37992         (test_function): Use minus_zerol instead of -zerol.
37993         * modules/sprintf-posix-tests (Depends-on): Add float.
37994         * modules/vsprintf-posix-tests (Depends-on): Add float.
37995
37996         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
37997         (minus_zerol): New variable.
37998         (test_function): Use minus_zerol instead of -zerol.
37999         * modules/vasnprintf-posix-tests (Depends-on): Add float.
38000
38001         * tests/test-vasprintf-posix.c (zerol): Remove variable.
38002         (minus_zerol): New variable.
38003         (test_function): Use minus_zerol instead of -zerol.
38004         * modules/vasprintf-posix-tests (Depends-on): Add float.
38005
38006 2008-10-07  Simon Josefsson  <simon@josefsson.org>
38007
38008         * MODULES.html.sh (Support for building documentation): Mention
38009         pmccabe2html.  Sort entries.
38010
38011         Add pmccabe2html module, from gnupdf.
38012         * build-aux/pmccabe.css: New file.
38013         * build-aux/pmccabe2html: New file.
38014         * m4/pmccabe2html.m4: New file.
38015         * modules/pmccabe2html: New file.
38016
38017 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
38018
38019         flock: new module
38020         * MODULES.html.sh: Add to list of modules.
38021         * lib/flock.c: flock implementation for Windows and Unix systems
38022         which have fcntl.
38023         * doc/glibc-functions/flock.texi: Update documentation.
38024         * lib/sys_file.in.h: <sys/file.h> header file.
38025         * m4/flock.m4: M4 macros.
38026         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
38027         * modules/flock: flock module.
38028         * modules/flock-tests: flock tests module.
38029         * modules/sys_file: sys/file.h module.
38030         * tests/test-flock.c: test suite for flock.
38031
38032 2008-10-06  Jim Meyering  <meyering@redhat.com>
38033
38034         bootstrap: check for LT_INIT more portably still ;-)
38035         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
38036         Spotted by Bruno Haible.
38037
38038 2008-10-06  Eric Blake  <ebb9@byu.net>
38039
38040         test-signbit: avoid tripping Irix cc bug on -0.0L
38041         * tests/test-signbit.c (minus_zerol): Delete, and replace with
38042         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
38043         entire testsuite consistent and avoids an Irix 6.2 bug.
38044
38045 2008-10-05  Bruno Haible  <bruno@clisp.org>
38046             Jim Meyering  <jim@meyering.net>
38047
38048         Add an option for ignoring EPIPE during close_stdout.
38049         * lib/closeout.h: Include <stdbool.h>.
38050         (close_stdout_set_ignore_EPIPE): New declaration.
38051         * lib/closeout.c: Include <stdbool.h>.
38052         (ignore_EPIPE): New variable.
38053         (close_stdout_set_ignore_EPIPE): New function.
38054         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
38055         * lib/close-stream.c (close_stream): Mention the possible EPIPE
38056         failure.
38057         * modules/closeout (Depends-on): Add stdbool.
38058
38059 2008-10-05  Bruno Haible  <bruno@clisp.org>
38060
38061         * modules/accept: New file.
38062         * modules/bind: New file.
38063         * modules/connect: New file.
38064         * modules/getpeername: New file.
38065         * modules/getsockname: New file.
38066         * modules/getsockopt: New file.
38067         * modules/listen: New file.
38068         * modules/recv: New file.
38069         * modules/recvfrom: New file.
38070         * modules/send: New file.
38071         * modules/sendto: New file.
38072         * modules/setsockopt: New file.
38073         * modules/socket: New file.
38074         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
38075         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
38076         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
38077         the particular module is requested. Add a link warning when the
38078         particular module is not requested.
38079         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
38080         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
38081         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
38082         the particular module is requested.
38083         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
38084         gl_SYS_SOCKET_H_DEFAULTS): New macros.
38085         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
38086         * modules/sys_socket (Depends-on): Add link-warning.
38087         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
38088         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
38089         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
38090         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
38091         GL_LINK_WARNING.
38092         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
38093         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
38094         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
38095         * doc/posix-functions/getpeername.texi: Mention the new module
38096         'getpeername'.
38097         * doc/posix-functions/getsockname.texi: Mention the new module
38098         'getsockname'.
38099         * doc/posix-functions/getsockopt.texi: Mention the new module
38100         'getsockopt'.
38101         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
38102         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
38103         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
38104         * doc/posix-functions/send.texi: Mention the new module 'send'.
38105         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
38106         * doc/posix-functions/setsockopt.texi: Mention the new module
38107         'setsockopt'.
38108         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
38109         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
38110         listen, connect, accept.
38111         * modules/select-tests (Depends-on): Likewise.
38112
38113 2008-10-05  Bruno Haible  <bruno@clisp.org>
38114
38115         * lib/winsock.c (strerror): Remove unused #undef.
38116         (rpl_close): Remove unused local variable.
38117
38118         * modules/sys_socket (Depends-on); Add errno.
38119
38120 2008-10-05  Bruno Haible  <bruno@clisp.org>
38121
38122         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
38123         (select): Add a link warning when the 'select' module is not used.
38124         * modules/sys_select (Depends-on): Add link-warning.
38125         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
38126         Suggested by Paolo Bonzini.
38127
38128 2008-10-05  Jim Meyering  <meyering@redhat.com>
38129
38130         bootstrap: check for LT_INIT more portably
38131         * build-aux/bootstrap: Avoid using grep -E, since it's not
38132         portable enough.  Suggestion from Bruno Haible.
38133
38134 2008-10-05  Bruno Haible  <bruno@clisp.org>
38135
38136         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
38137         as being fixed by gnulib.
38138
38139 2008-10-05  Bruno Haible  <bruno@clisp.org>
38140
38141         * modules/select-tests: New file, mostly copied from
38142         modules/sys_select-tests.
38143         * tests/test-select.c: New file, mostly copied from
38144         tests/test-sys_select.c.
38145         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
38146         * modules/sys_select-tests (Depends-on): Remove all dependencies.
38147         (Makefile.am): Remove test_sys_select_LDADD.
38148
38149         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
38150         to an undefined symbol, for an error message.
38151         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
38152         (gl_SYS_SELECT_H_DEFAULTS): New macro.
38153         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
38154         winsock-select.c here.
38155         * modules/sys_select (Files): Remove lib/winsock-select.c.
38156         (Depends-on): Remove alloca.
38157         (Makefile.am): Substitute GNULIB_SELECT.
38158         * modules/select: New file.
38159         * doc/posix-functions/select.texi: Update.
38160
38161 2008-10-05  Bruno Haible  <bruno@clisp.org>
38162
38163         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
38164         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
38165         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
38166         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
38167         getdtablesize.
38168         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38169         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38170
38171 2008-10-05  Bruno Haible  <bruno@clisp.org>
38172
38173         * modules/getdtablesize-tests: New file.
38174         * tests/test-getdtablesize.c: New file.
38175
38176         New module 'getdtablesize'.
38177         * lib/unistd.in.h (getdtablesize): New declaration.
38178         * lib/getdtablesize.c: New file.
38179         * m4/getdtablesize.m4: New file.
38180         * modules/getdtablesize: New file.
38181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38182         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
38183         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
38184         HAVE_GETDTABLESIZE.
38185         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
38186
38187 2008-10-05  Bruno Haible  <bruno@clisp.org>
38188
38189         * modules/sched (Makefile.am): Fix typo.
38190         Reported by Simon Josefsson.
38191
38192 2008-10-05  Jim Meyering  <meyering@redhat.com>
38193
38194         bootstrap: check for LT_INIT, too
38195         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
38196         are deprecated.  Suggestion from Ralf Wildenhues.
38197
38198 2008-10-05  Bruno Haible  <bruno@clisp.org>
38199
38200         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
38201         overriding them by ours.
38202         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
38203
38204 2008-10-05  Jim Meyering  <meyering@redhat.com>
38205
38206         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
38207         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
38208         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
38209
38210 2008-10-04  Bruno Haible  <bruno@clisp.org>
38211
38212         * modules/dup2 (License): Change to LGPLv2+.
38213         * modules/sleep (License): Likewise.
38214         * modules/perror (License): Likewise.
38215         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
38216         Blake.
38217         * modules/signal (License): Likewise.
38218         * modules/sigprocmask (License): Likewise.
38219         * modules/raise (License): Change to LGPLv2+, with approval by Jim
38220         Meyering.
38221
38222 2008-10-04  Bruno Haible  <bruno@clisp.org>
38223
38224         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
38225         Reported by Rainer Tammer <tammer@tammer.net>.
38226
38227 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
38228             Bruno Haible  <bruno@clisp.org>
38229
38230         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
38231         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
38232         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
38233
38234 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
38235
38236         filevercmp: new module
38237         * lib/filevercmp.h: New function filevercmp comparing version strings.
38238         * lib/filevercmp.c: Implementation of filevercmp function.
38239         * modules/filevercmp: Module metadata.
38240         * tests/test-filevercmp.c: Unit test for new module.
38241         * modules/filevercmp-tests: Unit test metadata.
38242         * MODULES.html.sh: Add filevercmp module.
38243
38244 2008-10-03  Bruno Haible  <bruno@clisp.org>
38245
38246         * lib/c-ctype.h: Add comment.
38247         Reported by Jim Meyering.
38248
38249 2008-10-02  Bruno Haible  <bruno@clisp.org>
38250
38251         * modules/posix_spawn-internal (Depends-on): Add 'open'.
38252
38253 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38254
38255         * build-aux/bootstrap: Allow renaming bootstrap, and change the
38256         name of bootstrap.conf accordingly.
38257
38258 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38259
38260         * build-aux/bootstrap: Install git-merge-changelog configuration
38261         items into .gitconfig if needed.
38262
38263 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38264
38265         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
38266         git repository, and initialize/update it accordingly.
38267
38268 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
38269
38270         * modules/fsync-tests: New file.
38271         * tests/test-fsync.c: New file.
38272
38273         New module 'fsync'.
38274         * lib/fsync.c: New file.
38275         * m4/fsync.m4: New file.
38276         * modules/fsync: New file.
38277         * lib/unistd.in.h (fsync): New declaration.
38278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
38279         GNULIB_FSYNC and HAVE_FSYNC.
38280         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
38281         * MODULES.html.sh (posix_functions): Add fsync.
38282         * doc/posix-functions/fsync.texi: Mention the new module.
38283
38284 2008-10-02  Jim Meyering  <meyering@redhat.com>
38285
38286         fts.c: sync with similar code from coreutils' remove.c
38287         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
38288         Guard also with "#if defined __linux__", since for now at least,
38289         this code is Linux-kernel-specific.
38290
38291 2008-10-02  Jim Meyering  <meyering@redhat.com>
38292
38293         fts: bug fixes
38294         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
38295         Include <sys/vfs.h>, not <sys/statfs.h>.
38296
38297         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
38298         Include <sys/vfs.h>, not <sys/statfs.h>.
38299
38300 2008-10-01  Bruno Haible  <bruno@clisp.org>
38301
38302         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
38303         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
38304         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
38305         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
38306         * doc/posix-functions/posix_spawnp.texi: Likewise.
38307         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
38308         whether posix_spawn actually works.
38309         * m4/pipe.m4 (gl_PIPE): Likewise.
38310         * modules/execute (Files): Add m4/posix_spawn.m4.
38311         * modules/pipe (Files): Add m4/posix_spawn.m4.
38312         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
38313
38314 2008-10-01  Jim Meyering  <meyering@redhat.com>
38315
38316         remove trailing spaces
38317         * NEWS: Likewise.
38318         * lib/poll.c (poll): Likewise.
38319         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
38320         * lib/winsock.c (rpl_close): Likewise.
38321         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
38322         * modules/yield: Likewise.
38323         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
38324         * tests/test-sys_select.c (connect_to_socket): Likewise.
38325
38326         fts.c: adjust a new interface to be more generally useful
38327         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
38328         (fts_build): Adjust caller.
38329
38330 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38331
38332         * modules/cond-tests: New file.
38333         * tests/test-cond.c: New file.
38334
38335 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38336             Bruno Haible  <bruno@clisp.org>
38337
38338         * modules/cond (Dependencies): Add errno, time.
38339         * lib/glthread/cond.h: Include <time.h>.
38340         (gl_cond_define, gl_cond_define_initialized): Use the same definition
38341         across platforms.
38342
38343 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38344             Bruno Haible  <bruno@clisp.org>
38345
38346         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
38347
38348 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38349             Bruno Haible  <bruno@clisp.org>
38350
38351         * modules/tls-tests (Depends-on): Add thread, yield.
38352         (configure.ac): Remove all checks.
38353         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
38354         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38355         gl_thread_self): Remove definitions. Include glthread/thread.h and
38356         glthread/yield.h instead.
38357         (test_tls): Pass an additional NULL argument to gl_thread_join.
38358
38359 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38360             Bruno Haible  <bruno@clisp.org>
38361
38362         * modules/lock-tests (Depends-on): Add thread, yield.
38363         (configure.ac): Remove all checks.
38364         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
38365         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38366         gl_thread_self): Remove definitions. Include glthread/thread.h and
38367         glthread/yield.h instead.
38368         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
38369         additional NULL argument to gl_thread_join.
38370
38371 2008-09-30  Bruno Haible  <bruno@clisp.org>
38372
38373         Fix the Win32 implementation of the 'thread' module.
38374         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
38375         pointer type.
38376         (gl_thread_self): Invoke gl_thread_self_func.
38377         (gl_thread_self_func): New declaration.
38378         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
38379         (do_init_self_key, init_self_key): New functions.
38380         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
38381         Remove some fields.
38382         (running_threads, running_lock): Remove variables.
38383         (get_current_thread_handle): New function.
38384         (gl_thread_self_func, wrapper_func, glthread_create_func,
38385         glthread_join_func, gl_thread_exit_func): Largely rewritten and
38386         simplified.
38387
38388 2008-09-30  Bruno Haible  <bruno@clisp.org>
38389
38390         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
38391         files.
38392
38393 2008-09-30  Jim Meyering  <meyering@redhat.com>
38394
38395         fts.m4: correct the test for statfs.f_type
38396         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
38397         when checking for statfs.f_type.
38398
38399 2008-09-15  Simon Josefsson  <simon@josefsson.org>
38400
38401         tests: avoid some compiler warnings
38402         * tests/test-memchr.c (main): Pass NULL indirectly.
38403         * tests/test-getdate.c (main): Remove unused variable 'ret'.
38404
38405 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
38406
38407         getdate.y: disallow countable dayshifts like "4 yesterday ago"
38408         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
38409         exactly specified dayshifts.
38410         (dayshift): New rule.
38411         (rel): Add dayshift.
38412         (relative_time_table) [tomorrow, yesterday, today, now]:
38413         Use tDAY_SHIFT in place of tDAY_UNIT.
38414         * tests/test-getdate.c: Add tests for now-disallowed countable
38415         dayshifts, e.g., "4 yesterday ago".
38416
38417 2008-09-29  Bruno Haible  <bruno@clisp.org>
38418
38419         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
38420         * tests/test-posix_spawn1.in.sh: Renamed from
38421         tests/test-posix_spawn.in.sh.
38422         * tests/test-posix_spawn2.c: New file.
38423         * tests/test-posix_spawn2.in.sh: New file.
38424         * modules/posix_spawnp-tests (Files): Update.
38425         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
38426
38427 2008-09-29  Bruno Haible  <bruno@clisp.org>
38428
38429         Propagate effects of putenv/setenv/unsetenv to child processes.
38430         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
38431         * lib/pipe.c (create_pipe): Likewise.
38432
38433 2008-09-29  Bruno Haible  <bruno@clisp.org>
38434
38435         Enable use of shell scripts as executables in mingw.
38436         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
38437         run the program as a shell script.
38438         * lib/pipe.c (create_pipe): Likewise.
38439         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
38440         resulting array.
38441
38442 2008-09-29  Eric Blake  <ebb9@byu.net>
38443
38444         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
38445
38446 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
38447
38448         * doc/posix-functions/accept.texi: Update mingw problems.
38449         * doc/posix-functions/bind.texi: Update mingw problems.
38450         * doc/posix-functions/close.texi: Update mingw problems.
38451         * doc/posix-functions/connect.texi: Update mingw problems.
38452         * doc/posix-functions/getpeername.texi: Update mingw problems.
38453         * doc/posix-functions/getsockname.texi: Update mingw problems.
38454         * doc/posix-functions/getsockopt.texi: Update mingw problems.
38455         * doc/posix-functions/ioctl.texi: Update mingw problems.
38456         * doc/posix-functions/listen.texi: Update mingw problems.
38457         * doc/posix-functions/recv.texi: Update mingw problems.
38458         * doc/posix-functions/recvfrom.texi: Update mingw problems.
38459         * doc/posix-functions/select.texi: Update mingw problems.
38460         * doc/posix-functions/send.texi: Update mingw problems.
38461         * doc/posix-functions/sendto.texi: Update mingw problems.
38462         * doc/posix-functions/setsockopt.texi: Update mingw problems.
38463         * doc/posix-functions/socket.texi: Update mingw problems.
38464
38465 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
38466             Bruno Haible  <bruno@clisp.org>
38467
38468         * lib/sys_select.in.h: Include sys/time.h.
38469         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
38470         * modules/sys_select: Depend on sys_time.
38471         * tests/test-sys_select.c: Test that sys/select.h defines struct
38472         timeval fully.
38473
38474 2008-09-29  Bruno Haible  <bruno@clisp.org>
38475
38476         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
38477         * lib/sys_select.in.h: Likewise.
38478
38479 2008-09-29  Bruno Haible  <bruno@clisp.org>
38480
38481         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
38482
38483 2008-09-29  Bruno Haible  <bruno@clisp.org>
38484
38485         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
38486         Set LIBSOCKET instead of augmenting LIBS.
38487         * modules/sockets (Link): New section.
38488         * modules/sockets-tests (test_sockets_LDADD): New variable.
38489         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
38490         * modules/poll-tests (test_poll_LDADD): New variable.
38491         * NEWS: Document the change.
38492
38493 2008-09-29  Bruno Haible  <bruno@clisp.org>
38494
38495         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
38496         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
38497         ARPA_INET_H directly.
38498         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38499
38500 2008-09-28  Bruno Haible  <bruno@clisp.org>
38501
38502         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
38503         from gl_HEADER_SYS_SOCKET.
38504         (gl_HEADER_SYS_SOCKET): Invoke it.
38505         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38506
38507 2008-09-28  Bruno Haible  <bruno@clisp.org>
38508
38509         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
38510         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
38511         Needed on OSF/1 4.0.
38512
38513 2008-09-28  Bruno Haible  <bruno@clisp.org>
38514
38515         Override open more carefully.
38516         * lib/open.c (orig_open): New function.
38517         (rpl_open): Use orig_open instead of open.
38518         * lib/fcntl.in.h: Add special invocation convention.
38519         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
38520         (gl_FUNC_OPEN): Invoke it.
38521
38522         Override freopen more carefully.
38523         * lib/freopen.c (orig_freopen): New function.
38524         (rpl_freopen): Use orig_freopen instead of freopen.
38525         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
38526         (gl_FUNC_FREOPEN): Invoke it.
38527
38528         Override fopen more carefully.
38529         * lib/fopen.c (orig_fopen): New function.
38530         (rpl_fopen): Use orig_fopen instead of fopen.
38531         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
38532         (gl_FUNC_FOPEN): Invoke it.
38533         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
38534
38535 2008-09-28  Bruno Haible  <bruno@clisp.org>
38536
38537         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
38538         SIGPIPE.
38539
38540 2008-09-28  Bruno Haible  <bruno@clisp.org>
38541
38542         * tests/test-sigaction.c (handler, main): Disable the check whether
38543         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
38544         glibc systems with LinuxThreads.
38545
38546 2008-09-28  Bruno Haible  <bruno@clisp.org>
38547
38548         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
38549
38550         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
38551         with AIX xlc.
38552         * lib/fcntl.in.h (open): Likewise.
38553         Reported by Rainer Tammer <tammer@tammer.net>.
38554
38555 2008-09-28  Bruno Haible  <bruno@clisp.org>
38556
38557         * modules/posix_spawnp-tests: New file.
38558         * tests/test-posix_spawn.c: New file.
38559         * tests/test-posix_spawn.in.sh: New file.
38560
38561         New module 'posix_spawnp'.
38562         * modules/posix_spawnp: New file.
38563         * lib/spawnp.c: New file, from GNU libc with modifications.
38564         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
38565
38566         New module 'posix_spawn'.
38567         * modules/posix_spawn: New file.
38568         * lib/spawn.c: New file, from GNU libc with modifications.
38569         * doc/posix-functions/posix_spawn.texi: Mention the new module.
38570
38571         New module 'posix_spawnattr_destroy'.
38572         * modules/posix_spawnattr_destroy: New file.
38573         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
38574         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
38575         module.
38576
38577         New module 'posix_spawnattr_setsigmask'.
38578         * modules/posix_spawnattr_setsigmask: New file.
38579         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
38580         modifications.
38581         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
38582         new module.
38583
38584         New module 'posix_spawnattr_getsigmask'.
38585         * modules/posix_spawnattr_getsigmask: New file.
38586         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
38587         modifications.
38588         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
38589         new module.
38590
38591         New module 'posix_spawnattr_setsigdefault'.
38592         * modules/posix_spawnattr_setsigdefault: New file.
38593         * lib/spawnattr_setdefault.c: New file, from GNU libc with
38594         modifications.
38595         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
38596         new module.
38597
38598         New module 'posix_spawnattr_getsigdefault'.
38599         * modules/posix_spawnattr_getsigdefault: New file.
38600         * lib/spawnattr_getdefault.c: New file, from GNU libc with
38601         modifications.
38602         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
38603         new module.
38604
38605         New module 'posix_spawnattr_setschedpolicy'.
38606         * modules/posix_spawnattr_setschedpolicy: New file.
38607         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
38608         modifications.
38609         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
38610         new module.
38611
38612         New module 'posix_spawnattr_getschedpolicy'.
38613         * modules/posix_spawnattr_getschedpolicy: New file.
38614         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
38615         modifications.
38616         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
38617         new module.
38618
38619         New module 'posix_spawnattr_setschedparam'.
38620         * modules/posix_spawnattr_setschedparam: New file.
38621         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
38622         modifications.
38623         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
38624         new module.
38625
38626         New module 'posix_spawnattr_getschedparam'.
38627         * modules/posix_spawnattr_getschedparam: New file.
38628         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
38629         modifications.
38630         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
38631         new module.
38632
38633         New module 'posix_spawnattr_setpgroup'.
38634         * modules/posix_spawnattr_setpgroup: New file.
38635         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
38636         modifications.
38637         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
38638         module.
38639
38640         New module 'posix_spawnattr_getpgroup'.
38641         * modules/posix_spawnattr_getpgroup: New file.
38642         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
38643         modifications.
38644         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
38645         module.
38646
38647         New module 'posix_spawnattr_setflags'.
38648         * modules/posix_spawnattr_setflags: New file.
38649         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
38650         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
38651         module.
38652
38653         New module 'posix_spawnattr_getflags'.
38654         * modules/posix_spawnattr_getflags: New file.
38655         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
38656         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
38657         module.
38658
38659         New module 'posix_spawnattr_init'.
38660         * modules/posix_spawnattr_init: New file.
38661         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
38662         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
38663         module.
38664
38665         New module 'posix_spawn_file_actions_destroy'.
38666         * modules/posix_spawn_file_actions_destroy: New file.
38667         * lib/spawn_faction_destroy.c: New file, from GNU libc with
38668         modifications.
38669         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
38670         the new module.
38671
38672         New module 'posix_spawn_file_actions_addopen'.
38673         * modules/posix_spawn_file_actions_addopen: New file.
38674         * lib/spawn_faction_addopen.c: New file, from GNU libc with
38675         modifications.
38676         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
38677         the new module.
38678
38679         New module 'posix_spawn_file_actions_adddup2'.
38680         * modules/posix_spawn_file_actions_adddup2: New file.
38681         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
38682         modifications.
38683         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
38684         the new module.
38685
38686         New module 'posix_spawn_file_actions_addclose'.
38687         * modules/posix_spawn_file_actions_addclose: New file.
38688         * lib/spawn_faction_addclose.c: New file, from GNU libc with
38689         modifications.
38690         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
38691         the new module.
38692
38693         New module 'posix_spawn_file_actions_init'.
38694         * modules/posix_spawn_file_actions_init: New file.
38695         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
38696         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
38697         new module.
38698
38699         New module 'posix_spawn-internal'.
38700         * modules/posix_spawn-internal: New file.
38701         * lib/spawn_int.h: New file, from GNU libc with modifications.
38702         * lib/spawni.c: New file, from GNU libc with modifications.
38703         * m4/posix_spawn.m4: New file.
38704
38705         New module 'spawn'.
38706         * modules/spawn: New file.
38707         * lib/spawn.in.h: New file, from GNU libc with modifications.
38708         * m4/spawn_h.m4: New file.
38709         * doc/posix-headers/spawn.texi: Mention the new module.
38710
38711 2008-09-28  Bruno Haible  <bruno@clisp.org>
38712
38713         * modules/sched-tests: New file.
38714         * tests/test-sched.c: New file.
38715
38716         New module 'sched'.
38717         * modules/sched: New file.
38718         * lib/sched.in.h: New file.
38719         * m4/sched_h.m4: New file.
38720         * doc/posix-headers/sched.texi: Mention the new module.
38721
38722 2008-09-27  Eric Blake  <ebb9@byu.net>
38723
38724         Fix previous patch, and tweak references to $0.
38725         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
38726         (func_version, func_gnulib_dir): Don't call this program
38727         gnulib-tool.
38728         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
38729         with using $0 in function.
38730         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
38731         (func_fatal_error): Reuse the name the user invoked us with.
38732
38733 2008-09-27  Bruno Haible  <bruno@clisp.org>
38734
38735         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
38736         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
38737         (gl_ICONV_H): Not here.
38738         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
38739         instead of assigning ICONV_H directly.
38740
38741         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
38742         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
38743         WCHAR_H directly.
38744
38745 2008-09-27  Bruno Haible  <bruno@clisp.org>
38746
38747         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
38748         * modules/arpa_inet (Depends-on): Add link-warning.
38749         (Makefile.am): Insert the definition of GL_LINK-WARNING.
38750         * modules/unistd (Makefile.am): Likewise.
38751
38752 2008-09-26  Bruno Haible  <bruno@clisp.org>
38753
38754         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
38755         variables.
38756         (func_version): Essentially copied from gnulib-tool.
38757         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
38758         func_readlink): Copied from gnulib-tool.
38759
38760 2008-09-26  Bruno Haible  <bruno@clisp.org>
38761
38762         * gnulib-tool (func_version): Change directory to $gnulib_dir before
38763         invoking git-version-gen.
38764
38765 2008-09-26  Bruno Haible  <bruno@clisp.org>
38766
38767         * posix-modules: Update to directory names changed on 2008-01-19.
38768         Remove commas in output before splitting into words. No more need to
38769         avoid 'ftruncate' since 2007-02-19.
38770
38771 2008-09-26  Bruno Haible  <bruno@clisp.org>
38772
38773         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
38774
38775 2008-09-26  Bruno Haible  <bruno@clisp.org>
38776
38777         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
38778         * modules/fwriteerror (Depends-on): Add errno.
38779
38780 2008-09-26  Bruno Haible  <bruno@clisp.org>
38781
38782         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
38783         * tests/test-vc-list-files-cvs.sh: Likewise.
38784
38785 2008-09-26  Bruno Haible  <bruno@clisp.org>
38786
38787         * doc/posix-headers/sys_resource.texi: Reorder items.
38788
38789 2008-09-26  Jim Meyering  <meyering@redhat.com>
38790
38791         fts: tweak inode comparison function
38792         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
38793         inode numbers, as documented.
38794
38795         fts: sort dirent entries on inode number before traversing
38796         This avoids a quadratic, seek-related performance penalty when
38797         operating on a directory containing many entries (measurable at 10k;
38798         3.5 hours at 2 million entries with a cold cache) on certain types
38799         of file systems, including ext3 and ext4, but not tmpfs.
38800         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
38801         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
38802         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
38803         (fs_handles_readdir_ordered_dirents_efficiently): New function.
38804         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
38805         (fts_build): Set the stat.st_ino member from D_INO.
38806         If it is likely to be useful, sort dirent entries on inode number.
38807
38808         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
38809         and the struct statfs.f_type member.
38810         * modules/fts (Depends-on): Add d-ino.
38811
38812 2008-09-26  Bruno Haible  <bruno@clisp.org>
38813
38814         * modules/sigpipe-die (Depends-on): Add sigpipe.
38815
38816         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
38817         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
38818         and GNULIB_STDIO_H_SIGPIPE are set.
38819         * lib/stdio-write.c: New file.
38820         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
38821         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38822         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38823         REPLACE_STDIO_WRITE_FUNCS.
38824         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
38825         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38826         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38827         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38828         * modules/stdio (Files): Add lib/stdio-write.c.
38829         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
38830         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38831         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38832         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38833         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
38834         REPLACE_FPRINTF_POSIX.
38835         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
38836         REPLACE_PRINTF_POSIX.
38837         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
38838         REPLACE_VFPRINTF_POSIX.
38839         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
38840         REPLACE_VPRINTF_POSIX.
38841         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
38842         SIGPIPE issue.
38843         * doc/posix-functions/fputc.texi: Likewise.
38844         * doc/posix-functions/fputs.texi: Likewise.
38845         * doc/posix-functions/fwrite.texi: Likewise.
38846         * doc/posix-functions/printf.texi: Likewise.
38847         * doc/posix-functions/putc.texi: Likewise.
38848         * doc/posix-functions/putchar.texi: Likewise.
38849         * doc/posix-functions/puts.texi: Likewise.
38850         * doc/posix-functions/vfprintf.texi: Likewise.
38851         * doc/posix-functions/vprintf.texi: Likewise.
38852
38853         * modules/safe-write (Depends-on): Add write.
38854
38855         * modules/sigpipe-tests: New file.
38856         * tests/test-sigpipe.c: New file.
38857         * tests/test-sigpipe.sh: New file.
38858
38859         * modules/write: New file.
38860         * lib/unistd.in.h: Include <sys/types.h>.
38861         (write): New declaration.
38862         * lib/write.c: New file.
38863         * m4/write.m4: New file.
38864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38865         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
38866         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
38867         GNULIB_WRITE, REPLACE_WRITE.
38868         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
38869         and the SIGPIPE issue.
38870
38871         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
38872         (raise): New declaration.
38873         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
38874         (ext_signal): New function.
38875         (rpl_raise): New function.
38876         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
38877         GNULIB_SIGNAL_H_SIGPIPE.
38878         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
38879         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
38880
38881         * modules/sigpipe: New file.
38882         * m4/sigpipe.m4: New file.
38883
38884 2008-09-25  Derek Price  <derek@ximbiot.com>
38885             Bruno Haible  <bruno@clisp.org>
38886
38887         * gnulib-tool (func_import): Report all license incompatibilities, not
38888         just the first one.
38889
38890 2008-09-25  Bruno Haible  <bruno@clisp.org>
38891
38892         * gnulib-tool (func_import): When computing the edits, consider not
38893         only the Makefile.ams that exist but also those that will be generated.
38894
38895 2008-09-25  Simon Josefsson  <simon@josefsson.org>
38896
38897         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
38898         fixes gnulib-tool --test warning about duplicate dependency.
38899
38900 2008-09-25  Bruno Haible  <bruno@clisp.org>
38901
38902         * gnulib-tool: Don't ask the user to perform edits in the generated
38903         Makefile.ams.
38904         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
38905         apply to the Makefile.am being generated.
38906         (func_emit_tests_Makefile_am): Execute edits that apply to the
38907         Makefile.am being generated.
38908         (func_import): Setup list of Makefile.am edits before emitting the
38909         Makefile.ams, not at the end.
38910         (func_create_testdir): Update.
38911         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38912
38913 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38914
38915         * gnulib-tool (func_import): Store the --tests-base option in the
38916         comment in gnulib-cache.m4.
38917
38918 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
38919
38920         * NEWS: Document increased portability that sys_select now provides.
38921
38922         * lib/sys_select.in.h: Install select wrapper.
38923         * lib/sys_socket.in.h: Use more descriptive name when there is no
38924         select wrapper.
38925         * lib/winsock-select.c: New.
38926         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
38927         Require gl_HEADER_SYS_SOCKET.
38928         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
38929         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
38930         * tests/test-sys_select.c: Add functional tests.
38931
38932 2008-09-24  Eric Blake  <ebb9@byu.net>
38933
38934         open, fopen: close fd leak in last patch
38935         * lib/open.c (rpl_open): Close fd before returning error.
38936         * lib/fopen.c (rpl_fopen): Close fd before returning error.
38937         * doc/posix-functions/open.texi (open): Document that Irix also
38938         has the bug.
38939         * doc/posix-functions/fopen.texi (fopen): Likewise.
38940         Reported by Paolo Bonzini.
38941
38942 2008-09-24  Bruno Haible  <bruno@clisp.org>
38943
38944         Ensure that a filename ending in a slash cannot be used to access a
38945         non-directory.
38946         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
38947         to check whether it's really a directory.
38948         * lib/fopen.c: Include fcntl.h, unistd.h.
38949         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
38950         and fdopen().
38951         * modules/fopen (Depends-on): Add unistd.
38952         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
38953         * tests/test-fopen.c (main): Likewise.
38954         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
38955         * doc/posix-functions/fopen.texi: Likewise.
38956         Reported by Eric Blake.
38957
38958 2008-09-23  Eric Blake  <ebb9@byu.net>
38959
38960         c-stack: avoid compiler optimizations when provoking overflow
38961         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
38962         recursion harder to optimize, to ensure a stack overflow occurs.
38963         * tests/test-c-stack.c (recurse): Likewise.
38964         Borrowed from libsigsegv.
38965
38966         c-stack: work around Irix sigaltstack bug
38967         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
38968         whether sigaltstack uses wrong end of stack_t (copied in part from
38969         libsigsegv).
38970         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
38971         Irix bug, without requiring an over-allocation.
38972         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
38973         bug.
38974
38975         fopen: document mingw bug on directories
38976         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
38977         not allowing a stream visiting a directory, even though reading
38978         from such a stream is not portable.
38979
38980 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38981
38982         * lib/poll.c: Rewrite.
38983         * modules/poll: Depend on alloca.
38984
38985 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38986
38987         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
38988         instead define prototypes for a full set of wrappers.  Ensure
38989         that Cygwin does not use the compatibility code, which is only
38990         for MinGW.
38991         * lib/winsock.c: New.
38992         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
38993         * modules/sys_socket: Add lib/winsock.c.
38994
38995         * modules/poll-tests: Add errno and perror.
38996         * tests/test-poll.c: Use ioctl, not ioctlsocket.
38997
38998 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38999
39000         * tests/test-poll.c: Downgrade minimum needed Winsock version.
39001
39002 2008-09-23  Bruno Haible  <bruno@clisp.org>
39003
39004         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
39005         * doc/glibc-functions/*: Likewise.
39006
39007 2008-09-23  Simon Josefsson  <simon@josefsson.org>
39008
39009         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
39010         success.
39011
39012 2008-09-22  Eric Blake  <ebb9@byu.net>
39013             Bruno Haible  <bruno@clisp.org>
39014
39015         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
39016         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
39017         supply %A but mishandle pseudo-NaN.
39018         Reported by Simon Josefsson.
39019
39020 2008-09-21  Bruno Haible  <bruno@clisp.org>
39021
39022         * tests/test-lock.c (main): Tweak skip message.
39023         * tests/test-tls.c (main): Likewise.
39024
39025 2008-09-21  Bruno Haible  <bruno@clisp.org>
39026
39027         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
39028         whether 'struct sigaction' has sa_sigaction here...
39029         (gl_PREREQ_SIG_HANDLER_H): ... not here.
39030         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
39031
39032 2008-09-21  Bruno Haible  <bruno@clisp.org>
39033
39034         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
39035         section.
39036         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
39037         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
39038         the new section.
39039         (Support for obsolete systems lacking POSIX:2001): New section.
39040         (String handling <string.h>): Move strdup to the new section.
39041         Suggested by Simon Josefsson and Paolo Bonzini.
39042
39043 2008-09-21  Bruno Haible  <bruno@clisp.org>
39044
39045         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
39046         exponents in %e and %g results on 'long double'. Needed for mingw's
39047         improved *printf functions.
39048         * tests/test-vasprintf-posix.c (test_function): Likewise.
39049         * tests/test-snprintf-posix.h (test_function): Likewise.
39050         * tests/test-sprintf-posix.h (test_function): Likewise.
39051         Reported by Eric Blake.
39052
39053 2008-09-21  Bruno Haible  <bruno@clisp.org>
39054
39055         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
39056         * tests/test-sprintf-posix.h (test_function): Likewise.
39057
39058 2008-09-21  Bruno Haible  <bruno@clisp.org>
39059
39060         * modules/getpass (Depends-on): Add strdup-posix.
39061
39062         New module 'strdup-posix'.
39063         * modules/strdup-posix: New file.
39064         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
39065         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
39066         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39067         REPLACE_STRDUP.
39068         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
39069         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
39070         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39071         strdup-posix.
39072
39073         * modules/strdup (Depends-on): Remove malloc-posix.
39074
39075 2008-09-20  Bruno Haible  <bruno@clisp.org>
39076
39077         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
39078         Wildenhues.
39079
39080 2008-09-20  Bruno Haible  <bruno@clisp.org>
39081
39082         Ensure that wint_t gets defined on IRIX 5.3.
39083         * lib/wchar.in.h (wint_t): Define if not defined by the system.
39084         * lib/wctype.in.h (wint_t): Likewise.
39085         (__wctype_wint_t): Remove type.
39086         (isw*): Use wint_t instead of __wctype_wint_t.
39087         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
39088         * modules/wchar (Files): Add m4/wint_t.m4.
39089         (Makefile.am): Substitute HAVE_WINT_T.
39090         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
39091         * tests/test-wctype.c: Check that wint_t is defined.
39092         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
39093         * doc/posix-headers/wctype.texi: Likewise.
39094         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39095
39096 2008-09-18  Bruno Haible  <bruno@clisp.org>
39097
39098         * gnulib-tool (func_exit): Update comment.
39099
39100 2008-09-18  Simon Josefsson  <simon@josefsson.org>
39101
39102         * modules/getaddrinfo (Depends-on): Remove strdup, this module
39103         assumes strdup exists and does not depend on strdup to return
39104         ENOMEM on out of memory conditions.
39105
39106 2008-09-18  Bruno Haible  <bruno@clisp.org>
39107
39108         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
39109         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
39110         digits for the exponent.
39111
39112 2008-09-18  Jim Meyering  <meyering@redhat.com>
39113             Bruno Haible  <bruno@clisp.org>
39114
39115         * lib/vasnprintf.c (decimal_point_char): Define also if
39116         NEED_PRINTF_INFINITE_LONG_DOUBLE.
39117
39118 2008-09-16  Bruno Haible  <bruno@clisp.org>
39119         and Eric Blake  <ebb9@byu.net>
39120
39121         vasnprintf: support Irix 5.3
39122         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
39123         that mishandle long double infinity.
39124         Reported by Tom G. Christensen.
39125
39126 2008-09-16  Bruno Haible  <bruno@clisp.org>
39127
39128         * doc/glibc-functions/scandir.texi: Mention the function is missing on
39129         Solaris 9.
39130         * doc/glibc-functions/alphasort.texi: Likewise.
39131         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
39132
39133 2008-09-16  Jim Meyering  <meyering@redhat.com>
39134
39135         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
39136         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
39137         a umask modification leak out of a subshell.  Otherwise, the
39138         opensolaris /bin/sh would be accepted and thus cause unwarranted
39139         failures in the coreutils test suite.
39140
39141 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
39142
39143         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
39144         to succeed.
39145
39146 2008-09-16  Jim Meyering  <meyering@redhat.com>
39147
39148         avoid spurious test failure when library is built without ACL support
39149         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
39150         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
39151         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
39152         * tests/test-copy-acl.sh: Likewise.
39153
39154 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39155
39156         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
39157         based on character occurrence counts.
39158
39159 2008-09-15  Eric Blake  <ebb9@byu.net>
39160
39161         tests: avoid some compiler warnings
39162         * tests/test-memchr.c (main): Pass NULL indirectly.
39163         * tests/test-closein.c (main): Avoid unused variable.
39164
39165 2008-09-15  Bruno Haible  <bruno@clisp.org>
39166
39167         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
39168         are missing on OpenBSD 4.0 individually.
39169         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39170
39171 2008-09-15  Bruno Haible  <bruno@clisp.org>
39172
39173         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
39174         * doc/posix-functions/strerror.texi: Mention also Cygwin.
39175         * doc/posix-functions/perror.texi: Likewise.
39176         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
39177         is missing.
39178         Reported by Eric Blake.
39179
39180         * lib/errno.in.h: Use replacement values >= 2000.
39181         Reported by Eric Blake.
39182
39183 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39184
39185         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
39186         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
39187         limit.
39188         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
39189         compareseq was aborted.
39190
39191 2008-09-14  Bruno Haible  <bruno@clisp.org>
39192
39193         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
39194         yvec_edit_count.
39195         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
39196         (fstrcmp_bounded): Simplify result computation accordingly.
39197
39198 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39199
39200         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
39201         (fstrcmp): Define in terms of fstrcmp_bounded.
39202         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
39203         lower_bound argument.
39204         Return quickly if the result is certainly < lower_bound.
39205         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
39206
39207 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39208
39209         * lib/diffseq.h (EARLY_ABORT): New macro.
39210         (compareseq): Change return type to bool. Return true when EARLY_ABORT
39211         evaluates to true.
39212
39213 2008-09-14  Bruno Haible  <bruno@clisp.org>
39214
39215         * modules/perror-tests: New file.
39216         * tests/test-perror.sh: New file.
39217         * tests/test-perror.c: New file.
39218
39219         New module 'perror'.
39220         * lib/stdio.in.h (perror): New declaration.
39221         * lib/perror.c: New file.
39222         * m4/perror.m4: New file.
39223         * modules/perror: New file.
39224         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
39225         * doc/posix-functions/perror.texi: Mention the perror module.
39226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
39227         REPLACE_PERROR.
39228         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
39229         REPLACE_PERROR.
39230
39231 2008-09-14  Bruno Haible  <bruno@clisp.org>
39232
39233         * modules/stdio (Makefile.am): Reorder to match the order in
39234         lib/stdio.in.h.
39235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39236
39237 2008-09-13  Bruno Haible  <bruno@clisp.org>
39238
39239         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
39240
39241 2008-09-13  Bruno Haible  <bruno@clisp.org>
39242
39243         Extend strerror to cover the added errno values.
39244         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
39245         (rpl_strerror): Provide error messages for the added errno values and
39246         for the WSA* values.
39247         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
39248         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
39249         strerror.
39250         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
39251         * modules/strerror (Depends-on): Add errno.
39252         * doc/posix-functions/strerror.texi: Document the change.
39253         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
39254         and EOVERFLOW.
39255
39256 2008-09-13  Bruno Haible  <bruno@clisp.org>
39257
39258         * modules/EOVERFLOW: Remove file.
39259         * m4/eoverflow.m4: Remove file.
39260         * modules/EOVERFLOW-tests: Remove file.
39261         * tests/test-EOVERFLOW.c: Remove file.
39262         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
39263         * modules/ftell (Depends-on): Likewise.
39264         * modules/getdelim (Depends-on): Likewise.
39265         * modules/getugroups (Depends-on): Likewise.
39266         * modules/poll (Depends-on): Likewise.
39267         * modules/snprintf (Depends-on): Likewise.
39268         * modules/sprintf-posix (Depends-on): Likewise.
39269         * modules/vasnprintf (Depends-on): Likewise.
39270         * modules/vasprintf (Depends-on): Likewise.
39271         * modules/vfprintf-posix (Depends-on): Likewise.
39272         * modules/vsnprintf (Depends-on): Likewise.
39273         * modules/vsprintf-posix (Depends-on): Likewise.
39274         * modules/xvasprintf (Depends-on): Likewise.
39275         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39276         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
39277         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
39278         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
39279         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39280         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
39281         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
39282         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
39283         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39284         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
39285         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
39286         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
39287         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39288         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
39289         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
39290         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
39291         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39292         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
39293         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
39294         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
39295         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39296         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
39297         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
39298         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
39299         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
39300         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39301         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
39302         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
39303         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
39304         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
39305         * MODULES.html.sh: Remove EOVERFLOW.
39306         * NEWS: Mention the change.
39307
39308 2008-09-13  Bruno Haible  <bruno@clisp.org>
39309
39310         * modules/errno-tests: New file.
39311         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
39312
39313         * lib/errno.in.h: New file.
39314         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
39315         * modules/errno: New file.
39316         * doc/posix-headers/errno.texi: Update documentation.
39317         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
39318
39319 2008-09-13  Bruno Haible  <bruno@clisp.org>
39320
39321         * tests/test-poll.c: Use #if for native Windows, rather than testing
39322         __MSVCRT__.
39323
39324 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39325             Bruno Haible  <bruno@clisp.org>
39326
39327         * lib/glob.c: Don't include <pwd.h> on native Windows.
39328         (WINDOWS32): New macro.
39329         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
39330
39331 2008-09-13  Bruno Haible  <bruno@clisp.org>
39332
39333         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
39334         (ETIMEDOUT): Remove macro.
39335         (glthread_cond_timedwait_multithreaded): New declaration.
39336         (glthread_cond_timedwait): Use it.
39337         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
39338         (glthread_cond_timedwait_multithreaded): New function.
39339
39340 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39341
39342         * modules/poll-tests: Do not check for io.h.
39343         * tests/test-poll.c: Check for __MSVCRT__ instead.
39344
39345 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39346
39347         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
39348         * modules/poll-tests: Add inet_pton, stdbool, sockets.
39349         * tests/test-poll.c: Use them.  Use _pipe on Windows.
39350
39351 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39352
39353         * modules/poll-tests: New.
39354         * tests/test-poll.c: New.
39355
39356 2008-09-12  Eric Blake  <ebb9@byu.net>
39357
39358         frexp: test for NetBSD failure on -0.0
39359         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
39360         not all, bugs from NetBSD 3.0 have been fixed.
39361         * doc/posix-functions/frexp.texi (frexp): Document bug.
39362         Reported by Thomas Klausner.
39363
39364         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
39365         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
39366         literal -0.0.
39367         Reported by Jonathan C. Patschke <jp@centtech.com>.
39368
39369 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39370
39371         * lib/glthread/cond.h: Use dummy implementation also if
39372         USE_WIN32_THREADS.
39373
39374 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39375
39376         * modules/fnmatch-posix (License): Change to LGPLv2+.
39377         * modules/fnmatch-gnu (License): Likewise.
39378
39379 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39380
39381         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
39382
39383 2008-09-11  Jim Meyering  <meyering@redhat.com>
39384
39385         * users.txt: Add gtk-vnc.
39386
39387 2008-09-08  Simon Josefsson  <simon@josefsson.org>
39388
39389         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
39390         rotate amounts.
39391
39392         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
39393         required for 16-bit and 8-bit rotates.
39394         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
39395         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
39396         UINT8_MAX instead of hard-coded constants.
39397         Suggested by Paul Eggert.
39398
39399 2008-09-07  Bruno Haible  <bruno@clisp.org>
39400
39401         * tests/test-striconveh.c (main): Check behaviour when converting from
39402         UTF-7.
39403
39404         Make striconveh work better with stateful encodings.
39405         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
39406         that iconv does not increment the inptr when returning -1/EINVAL.
39407
39408 2008-09-07  Bruno Haible  <bruno@clisp.org>
39409
39410         * build-aux/config.rpath: Update according to libtool-2.2.6.
39411         * build-aux/config.libpath: Likewise.
39412
39413 2008-09-06  Bruno Haible  <bruno@clisp.org>
39414
39415         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
39416         * lib/freadptr.c (freadptr): Likewise.
39417         * lib/freadseek.c (freadptrinc): Likewise.
39418         Reported by Simon Josefsson.
39419
39420 2008-09-06  Bruno Haible  <bruno@clisp.org>
39421
39422         * modules/freadptr (License): Change to LGPLv2+.
39423         * modules/freadseek (License): Likewise.
39424         Suggested by Eric Blake.
39425
39426         * modules/memchr2 (License): Change to LGPLv2+.
39427         Approved by Eric Blake.
39428
39429 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39430             Bruno Haible  <bruno@clisp.org>
39431
39432         Make gnulib-tool work with native 'sed' on AIX.
39433         * gnulib-tool (sed_noop): New variable.
39434         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
39435         func_add_or_update, func_create_testdir): Use it to initialize sed
39436         script variables.
39437         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39438
39439 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
39440             Bruno Haible  <bruno@clisp.org>
39441
39442         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
39443         also works after #include directives.
39444
39445 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
39446
39447         getdate.y: reject an out-of-range timezone value
39448         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
39449         the range [-24...+24].  When specified with only one or two digits,
39450         * tests/test-getdate.c: Tests for the fix.
39451         * doc/getdate.texi: Document this change.
39452
39453 2008-09-03  Bruno Haible  <bruno@clisp.org>
39454
39455         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
39456
39457 2008-09-02  Simon Josefsson  <simon@josefsson.org>
39458
39459         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
39460         <bruce.korb@gmail.com> with ideas from Ben Pfaff
39461         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
39462         Blake <ebb9@byu.net>.
39463
39464         * tests/test-bitrotate.c: Add more test vectors.
39465
39466 2008-09-02  Eric Blake  <ebb9@byu.net>
39467
39468         vasnprintf-posix: handle large precision via %.*d
39469         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
39470         when handling it ourselves.
39471         * tests/test-vasnprintf-posix.c (test_function): Add test.
39472         * tests/test-snprintf-posix.h (test_function): Likewise.
39473         * tests/test-sprintf-posix.h (test_function): Likewise.
39474         * tests/test-vasprintf-posix.c (test_function): Likewise.
39475         Reported by Alain Guibert.
39476
39477 2008-09-01  Eric Blake  <ebb9@byu.net>
39478
39479         c-stack: make configure-time check more robust
39480         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
39481         successful sigaction call.
39482         Reported by Tom G. Christensen.
39483
39484 2008-09-01  Bruno Haible  <bruno@clisp.org>
39485
39486         New module 'findprog-lgpl'.
39487         * modules/findprog-lgpl: New file.
39488         * lib/findprog-lgpl.c: New file.
39489         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
39490         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
39491         to decide whether to use strdup or xstrdup, concatenated_filename or
39492         xconcatenated_filename.
39493
39494 2008-09-01  Bruno Haible  <bruno@clisp.org>
39495
39496         Split module 'concat-filename' into 'concat-filename' (LGPL) and
39497         'xconcat-filename' (GPL).
39498         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
39499         (License): Change to LGPLv2+.
39500         * modules/xconcat-filename: New file.
39501         * lib/concat-filename.h (concatenated_filename): Change specification.
39502         (xconcatenated_filename): New declaration.
39503         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
39504         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
39505         memory situations.
39506         * lib/xconcat-filename.c: New file.
39507         * NEWS: Mention the change.
39508         * lib/findprog.c: Include concat-filename.h, not filename.h.
39509         (find_in_path): Use xconcatenated_filename instead of
39510         concatenated_filename.
39511         * lib/javacomp.c: Include concat-filename.h, not filename.h.
39512         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
39513         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
39514         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
39515         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
39516         instead of concatenated_filename.
39517         * lib/javaexec.c: Include concat-filename.h, not filename.h.
39518         (execute_java_class): Use xconcatenated_filename instead of
39519         concatenated_filename.
39520         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
39521         * modules/javacomp (Depends-on): Likewise.
39522         * modules/javaexec (Depends-on): Likewise.
39523
39524 2008-09-01  Bruno Haible  <bruno@clisp.org>
39525
39526         Split module 'filename' into 'filename' and 'concat-filename'.
39527         * modules/filename: Keep only lib/filename.h.
39528         (License): Change to LGPLv2+.
39529         * modules/concat-filename: New file, extracted from modules/filename.
39530         * lib/filename.h (concatenated_filename): Remove declaration.
39531         * lib/concat-filename.h: New file, extracted from lib/filename.h.
39532         * lib/concat-filename.c: Include concat-filename.h.
39533         * NEWS: Mention the change.
39534
39535 2008-09-01  Simon Josefsson  <simon@josefsson.org>
39536
39537         * lib/bitrotate.h (rotl8, rotr8): Add.
39538
39539         * modules/bitrotate (configure.ac): Need
39540         AC_REQUIRE([AC_C_INLINE]).
39541         (Description): Mention stdint.h.  Reported by Bruno Haible
39542         <bruno@clisp.org>.
39543
39544         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
39545         Paolo Bonzini <bonzini@gnu.org>.
39546
39547 2008-08-31  Bruno Haible  <bruno@clisp.org>
39548
39549         Assume Solaris specific bi-arch conventions on Solaris systems.
39550         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
39551         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
39552         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
39553         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
39554         like acl_libdirstem.
39555         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
39556         acl_libdirstem.
39557         * NEWS: Mention the change.
39558         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
39559
39560 2008-08-31  Jim Meyering  <meyering@redhat.com>
39561
39562         * lib/strftime.h: Add comments describing the two added arguments.
39563
39564         remove duplicate #include directives
39565         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
39566         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
39567
39568 2008-08-31  Bruno Haible  <bruno@clisp.org>
39569
39570         New module 'sigpipe-die'.
39571         * modules/sigpipe-die: New file.
39572         * lib/sigpipe-die.h: New file.
39573         * lib/sigpipe-die.c: New file.
39574         * MODULES.html.sh (Signal handling): Add sigpipe-die.
39575
39576 2008-08-31  Bruno Haible  <bruno@clisp.org>
39577
39578         Don't override previously installed signal handlers.
39579         * lib/fatal-signal.c (saved_sigactions): New variable.
39580         (uninstall_handlers): Reset the signal to the saved handler, not
39581         to SIG_DFL (except when ignored).
39582         (install_handlers): Save the previous handlers.
39583
39584 2008-08-30  Bruno Haible  <bruno@clisp.org>
39585
39586         * gnulib-tool (func_reset_sigpipe): New function.
39587         (func_get_automake_snippet, func_modules_transitive_closure,
39588         func_import): Invoke it before a join command that reads from stdin,
39589         to avoid "echo: write error: Broken pipe" error messages on stderr.
39590         Reported by Sam Steingold <sds@gnu.org>.
39591
39592 2008-08-30  Bruno Haible  <bruno@clisp.org>
39593
39594         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
39595         Code copied from m4/open.m4.
39596         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
39597         access and the filename ends in a slash. Code copied from lib/open.c.
39598         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
39599         * tests/test-fopen.c (main): Check against bug with trailing slash.
39600
39601 2008-08-29  Bruno Haible  <bruno@clisp.org>
39602
39603         Avoid some "gcc -pedantic" warnings.
39604         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
39605         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
39606         * lib/dirent.in.h: Likewise.
39607         * lib/fcntl.in.h: Likewise.
39608         * lib/float.in.h: Likewise.
39609         * lib/iconv.in.h: Likewise.
39610         * lib/inttypes.in.h: Likewise.
39611         * lib/locale.in.h: Likewise.
39612         * lib/math.in.h: Likewise.
39613         * lib/netinet_in.in.h: Likewise.
39614         * lib/search.in.h: Likewise.
39615         * lib/signal.in.h: Likewise.
39616         * lib/stdarg.in.h: Likewise.
39617         * lib/stdint.in.h: Likewise.
39618         * lib/stdio.in.h: Likewise.
39619         * lib/stdlib.in.h: Likewise.
39620         * lib/string.in.h: Likewise.
39621         * lib/strings.in.h: Likewise.
39622         * lib/sys_select.in.h: Likewise.
39623         * lib/sys_socket.in.h: Likewise.
39624         * lib/sys_stat.in.h: Likewise.
39625         * lib/sys_time.in.h: Likewise.
39626         * lib/sysexits.in.h: Likewise.
39627         * lib/time.in.h: Likewise.
39628         * lib/unistd.in.h: Likewise.
39629         * lib/wchar.in.h: Likewise.
39630         * lib/wctype.in.h: Likewise.
39631         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
39632         * modules/fchdir (Makefile.am): Likewise.
39633         * modules/fcntl (Makefile.am): Likewise.
39634         * modules/float (Makefile.am): Likewise.
39635         * modules/iconv_open (Makefile.am): Likewise.
39636         * modules/inttypes (Makefile.am): Likewise.
39637         * modules/locale (Makefile.am): Likewise.
39638         * modules/math (Makefile.am): Likewise.
39639         * modules/netinet_in (Makefile.am): Likewise.
39640         * modules/search (Makefile.am): Likewise.
39641         * modules/signal (Makefile.am): Likewise.
39642         * modules/stdarg (Makefile.am): Likewise.
39643         * modules/stdint (Makefile.am): Likewise.
39644         * modules/stdio (Makefile.am): Likewise.
39645         * modules/stdlib (Makefile.am): Likewise.
39646         * modules/string (Makefile.am): Likewise.
39647         * modules/strings (Makefile.am): Likewise.
39648         * modules/sys_select (Makefile.am): Likewise.
39649         * modules/sys_socket (Makefile.am): Likewise.
39650         * modules/sys_stat (Makefile.am): Likewise.
39651         * modules/sys_time (Makefile.am): Likewise.
39652         * modules/sysexits (Makefile.am): Likewise.
39653         * modules/time (Makefile.am): Likewise.
39654         * modules/unistd (Makefile.am): Likewise.
39655         * modules/wchar (Makefile.am): Likewise.
39656         * modules/wctype (Makefile.am): Likewise.
39657         Reported by Reuben Thomas <rrt@sc3d.org>.
39658
39659 2008-08-29  Bruno Haible  <bruno@clisp.org>
39660
39661         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
39662         any more.
39663
39664 2008-08-29  Simon Josefsson  <simon@josefsson.org>
39665
39666         * MODULES.html.sh (Misc): Add bitrotate.
39667
39668         * modules/bitrotate: New file.
39669
39670         * lib/bitrotate.h: New file.
39671
39672         * modules/bitrotate-tests: New file.
39673
39674         * tests/test-bitrotate.c: New file.
39675
39676         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
39677         on the bitrotate module.
39678
39679         * lib/arctwo.c: Use new bitrotate module.
39680
39681 2008-08-29  Jim Meyering  <meyering@redhat.com>
39682
39683         bootstrap: merge changes from coreutils
39684         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
39685         of copied files.  Remove a kludge, now that this is fixed.
39686         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
39687         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
39688         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
39689
39690 2008-08-29  Bruno Haible  <bruno@clisp.org>
39691
39692         * MODULES.html.sh: Remove --cvs-urls option.
39693
39694 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
39695
39696         maint.mk: adjust to file name change
39697         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
39698
39699 2008-08-28  Jim Meyering  <meyering@redhat.com>
39700
39701         * modules/getndelim2 (License): Relicense to LGPLv2+.
39702         Approved by Richard Stallman for the version of 1995, and by
39703         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
39704
39705 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
39706
39707         * lib/getdelim.c (flockfile, funlockfile): Make all of them
39708         dummy if one is not available.  Do not touch them if
39709         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
39710         (getc_maybe_unlocked): New.
39711         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
39712
39713 2008-08-26  Eric Blake  <ebb9@byu.net>
39714
39715         doc/INSTALL: resync from autoconf
39716         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
39717         (INSTALL_PRELUDE): Delete; this is done more efficiently by
39718         moving...
39719         * install.texi [!autoconf]: ...here.  Resync from autoconf.
39720         * INSTALL: Regenerate.
39721         * INSTALL.ISO: New file.
39722         * INSTALL.UTF-8: Likewise.
39723
39724 2008-08-26  Jim Meyering  <meyering@redhat.com>
39725
39726         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
39727         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
39728         these definitions conditional, so that they may be overridden, too.
39729
39730 2008-08-26  Bruno Haible  <bruno@clisp.org>
39731
39732         Generate INSTALL file variants with prettier quotes.
39733         * doc/Makefile (INSTALL_PRELUDE): New macro.
39734         (INSTALL): Use it.
39735         (INSTALL.ISO, INSTALL.UTF-8): New rules.
39736
39737 2008-08-26  Bruno Haible  <bruno@clisp.org>
39738
39739         Run makeinfo in an English locale.
39740         * doc/Makefile (MAKEINFO): New variable.
39741
39742 2008-08-26  Bruno Haible  <bruno@clisp.org>
39743
39744         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
39745         Suggested by Eric Blake.
39746
39747 2008-08-25  Bruno Haible  <bruno@clisp.org>
39748
39749         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
39750
39751 2008-08-25  Eric Blake  <ebb9@byu.net>
39752
39753         c-stack: test that stack overflow can be caught
39754         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
39755         that platform allows handling stack overflow; at least OS/2 EMX
39756         has sigaltstack, but crashes before transferring control to
39757         handler on stack overflow.
39758         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
39759         check for HAVE_STACK_OVERFLOW_HANDLING.
39760         Reported by Elbert Pol.
39761
39762 2008-08-25  Bruno Haible  <bruno@clisp.org>
39763
39764         * doc/posix-functions/strftime.texi: Fix description of strftime
39765         module.
39766
39767 2008-08-24  Bruno Haible  <bruno@clisp.org>
39768
39769         * tests/uniwidth/test-uc_width2.c: New file.
39770         * tests/uniwidth/test-uc_width2.sh: New file.
39771         * modules/uniwidth/width-tests (Files): Add the new files.
39772         (TESTS): Add uniwidth/test-uc_width2.sh.
39773         (TESTS_ENVIRONMENT): New variable.
39774         (check_PROGRAMS): Add test-uc_width2.
39775         (test_uc_width2_SOURCES): New variable.
39776
39777         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
39778         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
39779         not 0x00AB.
39780         Reported by Alexander V. Lukyanov <lav@netis.ru>.
39781
39782 2008-08-22  Eric Blake  <ebb9@byu.net>
39783
39784         test-lock, test-tls: mention why a test is skipped
39785         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
39786         skipped.
39787         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
39788
39789         count-one-bits: relax license
39790         * modules/count-one-bits (License): Relicense to LGPLv2+.
39791         Suggested by Ludovic Courtès, approved by Ben Pfaff.
39792
39793 2008-08-22  Andreas Schwab  <schwab@suse.de>
39794
39795         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
39796         Remove spurious space in assignment.
39797
39798 2008-08-21  Simon Josefsson  <simon@josefsson.org>
39799
39800         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
39801         Paul Eggert <eggert@CS.UCLA.EDU>.
39802
39803 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
39804
39805         * modules/gettext: Add m4/threadlib.m4.
39806
39807 2008-08-19  Eric Blake  <ebb9@byu.net>
39808
39809         test-c-stack: fix compilation failure on FreeBSD 5.0
39810         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
39811         headers before <sys/resource.h>.
39812         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
39813         the bug.
39814         Reported by Nelson H. F. Beebe.
39815
39816         strverscmp: migrate from "strverscmp.h" to <string.h>
39817         * modules/string (Makefile.am): Add new hooks.
39818         * modules/strverscmp (Files): Remove strverscmp.h.
39819         (Depends-on): Add string.
39820         (configure.ac): Add indicator.
39821         (Include): Mention new header.
39822         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
39823         defaults.
39824         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
39825         results.
39826         * lib/strverscmp.h: Delete.
39827         * lib/string.in.h (strverscmp): Provide declaration, when needed.
39828         * tests/test-strverscmp.c (includes): Adjust client.
39829         * lib/check-version.c (includes): Likewise.
39830         * NEWS: Document the change.
39831
39832         strverscmp: add unit test
39833         * modules/strverscmp-tests: New file.
39834         * tests/test-strverscmp.c: Likewise.
39835
39836 2008-08-19  Simon Josefsson  <simon@josefsson.org>
39837
39838         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
39839         regarding Windows crypto stuff, from Mono.
39840
39841 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
39842
39843         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
39844         if present, for intel RND.  Return error on failures.
39845
39846 2008-08-18  Ben Pfaff  <blp@gnu.org>
39847
39848         gitlog-to-changelog: give better diagnostic for failed pipe-open
39849         * build-aux/gitlog-to-changelog: Improve error message: suggest
39850         that the version of Git may be too old.
39851
39852 2008-08-18  Simon Josefsson  <simon@josefsson.org>
39853
39854         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
39855         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
39856
39857 2008-08-18  Bruno Haible  <bruno@clisp.org>
39858
39859         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
39860         pthread_in_use().
39861
39862 2008-08-18  Bruno Haible  <bruno@clisp.org>
39863
39864         * lib/glthread/threadlib.c: Include <pthread.h>.
39865
39866 2008-08-18  Bruno Haible  <bruno@clisp.org>
39867
39868         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
39869         glthread_recursive_lock_* macros.
39870         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
39871         Fix syntax error.
39872
39873 2008-08-18  Bruno Haible  <bruno@clisp.org>
39874
39875         * lib/glthread/thread.c: Avoid forcing a context switch right after
39876         thread creation.
39877
39878 2008-08-17  Bruno Haible  <bruno@clisp.org>
39879
39880         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
39881         * lib/glthread/thread.h: Provide Win32 specific implementation.
39882         * modules/thread (Files): Add lib/glthread/thread.c.
39883         (Depends-on): Add lock.
39884         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
39885
39886 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39887
39888         New module 'yield'.
39889         * modules/yield: New file.
39890         * lib/glthread/yield.h: New file.
39891         * m4/yield.m4: New file.
39892         * MODULES.html.sh (Multithreading): Add yield.
39893
39894 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39895
39896         New module 'thread'.
39897         * modules/thread: New file.
39898         * lib/glthread/thread.h: New file.
39899         * m4/thread.m4: New file.
39900         * MODULES.html.sh (Multithreading): Add thread.
39901
39902 2008-08-17  Bruno Haible  <bruno@clisp.org>
39903
39904         * lib/glthread/lock.h: Include <stdlib.h> always.
39905         * lib/glthread/tls.h: Likewise.
39906         * lib/glthread/cond.h: Likewise.
39907
39908 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39909
39910         New module 'cond'.
39911         * modules/cond: New file.
39912         * lib/glthread/cond.h: New file.
39913         * lib/glthread/cond.c: New file.
39914         * m4/cond.m4: New file.
39915         * MODULES.html.sh (Multithreading): Add cond.
39916
39917 2008-08-16  Eric Blake  <ebb9@byu.net>
39918
39919         c-stack: fix regression on Irix 5.3 from 2008-06-21
39920         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
39921         sa_sigaction...
39922         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
39923         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
39924         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
39925         * modules/signal (Makefile.am): Use the value.
39926         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
39927         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
39928         * doc/posix-headers/signal.texi (signal.h): Document this
39929         portability issue.
39930         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
39931         Reported by Tom G. Christensen.
39932
39933 2008-08-17  Bruno Haible  <bruno@clisp.org>
39934
39935         New module 'threadlib'.
39936         * modules/threadlib: New file.
39937         * lib/glthread/threadlib.c: New file, extracted from
39938         lib/glthread/lock.c.
39939         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
39940         functions.
39941         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
39942         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
39943         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
39944         macros.
39945         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
39946         (gl_DISABLE_THREADS): Remove macro.
39947         * modules/lock (Files): Remove build-aux/config.rpath.
39948         (Depends-on): Remove havelib. Add threadlib.
39949         (configure.ac-early): Remove section.
39950         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
39951         * modules/tls (Depends-on): Remove lock. Add threadlib.
39952         (Link): New section, copied from threadlib.
39953         * MODULES.html.sh (Multithreading): Add threadlib.
39954
39955 2008-08-14  Bruno Haible  <bruno@clisp.org>
39956
39957         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
39958         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
39959         glthread_rwlock_unlock, glthread_rwlock_destroy,
39960         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
39961         glthread_recursive_lock_destroy): Define as macros always.
39962         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
39963         glthread_lock_lock.
39964         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
39965         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
39966         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
39967         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
39968         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
39969         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
39970         (glthread_recursive_lock_lock_func): Renamed from
39971         glthread_recursive_lock_lock.
39972         (glthread_recursive_lock_unlock_func): Renamed from
39973         glthread_recursive_lock_unlock.
39974         (glthread_recursive_lock_destroy_func): Renamed from
39975         glthread_recursive_lock_destroy.
39976
39977 2008-08-14  Bruno Haible  <bruno@clisp.org>
39978
39979         * lib/glthread/lock.h: Renamed from lib/lock.h.
39980         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
39981         * lib/glthread/tls.h: Renamed from lib/tls.h.
39982         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
39983         * lib/fstrcmp.c: Update includes.
39984         * lib/strsignal.c: Update includes.
39985         * modules/lock (Files, Makefile.am): Update.
39986         (Include): Change to "glthread/lock.h".
39987         * modules/tls (Files, Makefile.am): Update.
39988         (Include): Change to "glthread/tls.h".
39989         * tests/test-lock.c: Update includes.
39990         * tests/test-tls.c: Update includes.
39991         * NEWS: Mention the renamed header files.
39992
39993 2008-08-11  Jim Meyering  <meyering@redhat.com>
39994
39995         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
39996
39997 2008-08-11  Eric Blake  <ebb9@byu.net>
39998
39999         test-c-stack: avoid C99-ism
40000         * tests/test-c-stack.c (main): Fix whitespace, move declaration
40001         before statement.
40002         Reported by Alain Guibert.
40003
40004 2008-08-10  Jim Meyering  <meyering@redhat.com>
40005
40006         ensure that return value of uinttostr et al are not ignored
40007         * lib/inttostr.h (__GNUC_PREREQ): Define.
40008         (__attribute_warn_unused_result__): Define.
40009         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
40010
40011 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
40012
40013         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
40014         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
40015
40016 2008-08-07  Jim Meyering  <meyering@redhat.com>
40017
40018         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
40019
40020         * modules/mkstemp (License): Relicense under LGPLv2+.
40021         * modules/tempname (License): Likewise.
40022
40023 2008-08-06  Bruno Haible  <bruno@clisp.org>
40024
40025         * lib/poll.c (poll): Further micro-optimization.
40026
40027 2008-08-06  Jim Meyering  <meyering@redhat.com>
40028
40029         inet_pton.c: use locale-independent tolower
40030         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
40031         (inet_pton6): Use c_tolower rather than tolower.
40032         * modules/inet_pton (Depends-on): Add c-ctype.
40033
40034 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
40035
40036         * lib/poll.c (poll): Avoid division when timeout is 0, cache
40037         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
40038
40039 2008-08-06  Jim Meyering  <meyering@redhat.com>
40040
40041         * modules/inet_pton (License): Relicense under LGPLv2+.
40042
40043 2008-08-03  Bruno Haible  <bruno@clisp.org>
40044
40045         Additional non-aborting API for lock and tls.
40046         * lib/lock.h: Include <errno.h>.
40047         (glthread_lock_init): New macro/function.
40048         (gl_lock_init): Define as wrapper around glthread_lock_init.
40049         (glthread_lock_lock): New macro/function.
40050         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
40051         (glthread_lock_unlock): New macro/function.
40052         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
40053         (glthread_lock_destroy): New macro/function.
40054         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
40055         (glthread_rwlock_init): New macro/function.
40056         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
40057         (glthread_rwlock_rdlock): New macro/function.
40058         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
40059         (glthread_rwlock_wrlock): New macro/function.
40060         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
40061         (glthread_rwlock_unlock): New macro/function.
40062         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
40063         (glthread_rwlock_destroy): New macro/function.
40064         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
40065         (glthread_recursive_lock_init): New macro/function.
40066         (gl_recursive_lock_init): Define as wrapper around
40067         glthread_recursive_lock_init.
40068         (glthread_recursive_lock_lock): New macro/function.
40069         (gl_recursive_lock_lock): Define as wrapper around
40070         glthread_recursive_lock_lock.
40071         (glthread_recursive_lock_unlock): New macro/function.
40072         (gl_recursive_lock_unlock): Define as wrapper around
40073         glthread_recursive_lock_unlock.
40074         (glthread_recursive_lock_destroy): New macro/function.
40075         (gl_recursive_lock_destroy): Define as wrapper around
40076         glthread_recursive_lock_destroy.
40077         (glthread_once): New macro/function.
40078         (gl_once): Define as wrapper around glthread_once.
40079         Update function declarations.
40080         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
40081         glthread_rwlock_init. Return error code.
40082         (glthread_rwlock_rdlock_multithreaded): Renamed from
40083         glthread_rwlock_rdlock. Return error code.
40084         (glthread_rwlock_wrlock_multithreaded): Renamed from
40085         glthread_rwlock_wrlock. Return error code.
40086         (glthread_rwlock_unlock_multithreaded): Renamed from
40087         glthread_rwlock_unlock. Return error code.
40088         (glthread_rwlock_destroy_multithreaded): Renamed from
40089         glthread_rwlock_destroy. Return error code.
40090         (glthread_recursive_lock_init_multithreaded): Renamed from
40091         glthread_recursive_lock_init. Return error code.
40092         (glthread_recursive_lock_lock_multithreaded): Renamed from
40093         glthread_recursive_lock_lock. Return error code.
40094         (glthread_recursive_lock_unlock_multithreaded): Renamed from
40095         glthread_recursive_lock_unlock. Return error code.
40096         (glthread_recursive_lock_destroy_multithreaded): Renamed from
40097         glthread_recursive_lock_destroy. Return error code.
40098         (glthread_once_call): Make static.
40099         (glthread_once_multithreaded): Renamed from glthread_once.
40100         * lib/tls.h: Include <errno.h>.
40101         (glthread_tls_key_init): New macro/function.
40102         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
40103         (glthread_tls_set): New macro/function.
40104         (gl_tls_set): Define as wrapper around glthread_tls_set.
40105         (glthread_tls_key_destroy): New macro/function.
40106         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
40107         Update function declarations.
40108         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
40109         glthread_tls_get.
40110         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40111
40112 2008-08-04  Eric Blake  <ebb9@byu.net>
40113
40114         gnumakefile: use space, not TAB, outside of targets
40115         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
40116
40117 2008-08-02  Jim Meyering  <meyering@redhat.com>
40118
40119         getdate.y: avoid locale-dependent date parsing failure
40120         In Turkish locales, getdate would fail to recognize keywords
40121         containing a lowercase "i".  The solution is not to rely on
40122         locale-sensitive case-conversion.
40123         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
40124         (lookup_word): Use c_toupper in place of toupper.
40125         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
40126         Reported by Vefa Bicakci <bicave@superonline.com> in
40127         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
40128         * modules/getdate (Depends-on): Add c-ctype.
40129
40130 2008-08-02  Bruno Haible  <bruno@clisp.org>
40131
40132         * gnulib-tool (func_import): When updating or creating a .gitignore
40133         file, prepend each added line with a slash, and ignore leading slashes
40134         from the existing lines.
40135         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40136
40137 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40138
40139         Portability fix for GNU make 3.79.1.
40140         * top/GNUmakefile: Avoid 'else COND', which older GNU make
40141         versions do not understand.
40142
40143 2008-08-01  Bruno Haible  <bruno@clisp.org>
40144
40145         Work around bug of HP-UX 10.20 cc with -0.0 literal.
40146         * tests/test-isnanf.h (zero): New variable.
40147         (main): Avoid literal -0.0f.
40148         * tests/test-isnand.h (zero): New variable.
40149         (main): Avoid literal -0.0.
40150         * tests/test-isnanl.h (zero): New variable.
40151         (main): Avoid literal -0.0L.
40152         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
40153         (test_float, test_double, test_long_double): Avoid literals -0.0f,
40154         -0.0, -0.0L.
40155         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
40156         (test_signbitd): Avoid literal -0.0.
40157         (test_signbitl): Avoid literal -0.0L.
40158         * tests/test-ceilf1.c (zero): New variable.
40159         (main): Avoid literal -0.0f.
40160         * tests/test-ceill.c (zero): New variable.
40161         (main): Avoid literal -0.0L.
40162         * tests/test-floorf1.c (zero): New variable.
40163         (main): Avoid literal -0.0f.
40164         * tests/test-floorl.c (zero): New variable.
40165         (main): Avoid literal -0.0L.
40166         * tests/test-roundf1.c (zero): New variable.
40167         (main): Avoid literal -0.0f.
40168         * tests/test-round1.c (zero): New variable.
40169         (main): Avoid literal -0.0.
40170         * tests/test-roundl.c (zero): New variable.
40171         (main): Avoid literal -0.0L.
40172         * tests/test-truncf1.c (zero): New variable.
40173         (main): Avoid literal -0.0f.
40174         * tests/test-trunc1.c (zero): New variable.
40175         (main): Avoid literal -0.0.
40176         * tests/test-truncl.c (zero): New variable.
40177         (main): Avoid literal -0.0L.
40178         * tests/test-frexp.c (zero): New variable.
40179         (main): Avoid literal -0.0.
40180         * tests/test-frexpl.c (zero): New variable.
40181         (main): Avoid literal -0.0L.
40182         * tests/test-ldexpl.c (zero): New variable.
40183         (main): Avoid literal -0.0L.
40184         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40185         (zerod, zerol): New variables.
40186         (test_function): Avoid literals -0.0, -0.0L.
40187         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40188         (zerod, zerol): New variables.
40189         (test_function): Avoid literals -0.0, -0.0L.
40190         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40191         (zerod, zerol): New variables.
40192         (test_function): Avoid literals -0.0, -0.0L.
40193         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40194         (zerod, zerol): New variables.
40195         (test_function): Avoid literals -0.0, -0.0L.
40196         * tests/test-strtod.c (zero): New variable.
40197         (main): Avoid literal -0.0.
40198         Reported by Jonathan C. Patschke <jp@centtech.com>.
40199
40200 2008-07-31  Jim Meyering  <meyering@redhat.com>
40201
40202         sha256.h: correct definition of SHA224_DIGEST_SIZE
40203         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
40204         Reported by Paulie Pena IV <paulie4@gmail.com>.
40205         Define as 224 / 8, rather than as a literal.
40206         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
40207         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
40208         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
40209
40210 2008-07-31  Bruno Haible  <bruno@clisp.org>
40211
40212         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
40213         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
40214         Reported by Jonathan Patschke <jp@centtech.com>.
40215
40216 2008-07-31  Bruno Haible  <bruno@clisp.org>
40217
40218         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
40219         Reported by Paolo Bonzini <bonzini@gnu.org>.
40220
40221 2008-07-30  Eric Blake  <ebb9@byu.net>
40222
40223         test-strtod: allow compilation without -lm
40224         * tests/test-strtod.c (main): Avoid link dependence on fabs.
40225         Reported by Dennis Clarke <blastwave@gmail.com>.
40226
40227 2008-07-28  Jim Meyering  <meyering@redhat.com>
40228
40229         bootstrap: work also when there are no .po files in po/
40230         * build-aux/bootstrap (update_po_files): Complete the change
40231         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
40232
40233 2008-07-27  Jim Meyering  <meyering@redhat.com>
40234
40235         * users.txt: Add zile.
40236
40237 2008-07-26  Ben Pfaff  <blp@gnu.org>
40238
40239         Add missing dependencies on new m4/exponent[fdl].m4 files.
40240         * modules/isnanf-nolibm: Add m4/exponentf.m4.
40241         * modules/isnand-nolibm: Add m4/exponentd.m4.
40242         * modules/isnanl-nolibm: Add m4/exponentl.m4.
40243         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
40244         m4/isnan[fdl].m4, because the macros actually used moved.
40245         Reported by Jim Meyering.
40246
40247 2008-07-14  Ben Pfaff  <blp@gnu.org>
40248
40249         Add isinf module.
40250         * lib/isinf.c: New file.
40251         * lib/math.in.h: Define isinf macro if we have decided to replace
40252         it.
40253         * m4/isinf.m4: New file.
40254         * m4/math_h.m4: Initialize and substitute variables for isinf
40255         module.
40256         * modules/isinf: New file.
40257         * modules/isinf-tests: New file.
40258         * modules/math: Add substitutions for new module.
40259         * tests/test-isinf.c: New file.
40260         * doc/posix-functions/isinf.texi: Mention new module.
40261         * MODULES.html.sh: Mention new module.
40262
40263 2008-07-14  Ben Pfaff  <blp@gnu.org>
40264
40265         Factor out some macros for use by additional modules.
40266         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
40267         exponentf.m4.
40268         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
40269         exponentd.m4.
40270         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
40271         file exponentl.m4.
40272         * m4/exponentf.m4: New file.
40273         * m4/exponentd.m4: New file.
40274         * m4/exponentl.m4: New file.
40275         * modules/isnanf: Use new file m4/exponentf.m4.
40276         * modules/isnand: Use new file m4/exponentd.m4.
40277         * modules/isnanl: Use new file m4/exponentl.m4.
40278
40279 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
40280
40281         mktime.c: normalize tp->tm_isdst value to -1/0/1.
40282         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
40283         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
40284         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
40285
40286         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
40287         readlink on platforms without PATH_MAX.
40288
40289 2008-07-21  Eric Blake  <ebb9@byu.net>
40290
40291         Warn, not fail, on stale version.
40292         * top/GNUmakefile (_curr-ver): Tone down previous patch.
40293
40294         Don't allow installation with stale devel version number.
40295         * top/GNUmakefile (_is-install-target): New macro.
40296         (_curr-ver): Forbid installation with stale version number.
40297
40298 2008-07-20  Bruno Haible  <bruno@clisp.org>
40299
40300         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
40301         TESTS_ENVIRONMENT.
40302         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
40303
40304 2008-07-20  Bruno Haible  <bruno@clisp.org>
40305
40306         * lib/c-stack.h (c_stack_action): Add documentation.
40307         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
40308
40309 2008-07-20  Bruno Haible  <bruno@clisp.org>
40310
40311         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
40312         * modules/readlink (License): Likewise.
40313
40314 2008-07-17  Eric Blake  <ebb9@byu.net>
40315
40316         * modules/c-stack (Link): Fix typo.
40317
40318         Make c-stack use libsigsegv, when available.
40319         * modules/c-stack (Depends-on): Add libsigsegv.
40320         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
40321         needed.
40322         * lib/c-stack.c (SIGSTKSZ): Define fallback.
40323         (segv_handler, overflow_handler, c_stack_action)
40324         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
40325         implementation when libsigsegv is available, but only when using
40326         the library is necessary.
40327         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
40328         comment, explaining why XSI check fails on Linux.
40329         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
40330         * tests/test-c-stack2.sh: Tweak skip message.
40331         * NEWS: Document new link-time requirements.
40332
40333 2008-07-16  Eric Blake  <ebb9@byu.net>
40334
40335         c-stack: Expose false positives when not using libsigsegv.
40336         * modules/c-stack-tests (Files): Expand test.
40337         * tests/test-c-stack.c (main): Add means to conditionally trigger
40338         non-overflow SIGSEGV.
40339         * tests/test-c-stack2.sh: New file.
40340
40341 2008-07-14  Bruno Haible  <bruno@clisp.org>
40342
40343         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
40344         Reported by Eric Blake.
40345
40346 2008-07-14  Sam Steingold  <sds@gnu.org>
40347             Bruno Haible  <bruno@clisp.org>
40348
40349         New module libsigsegv.
40350         * modules/libsigsegv: New file.
40351         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
40352         modifications.
40353         * MODULES.html.sh (Signal handling): New section.
40354
40355 2008-07-14  Bruno Haible  <bruno@clisp.org>
40356
40357         * modules/unictype/ctype-* (Description): Add the word "function".
40358         Improves the resulting doc in MODULES.html.
40359
40360 2008-07-12  Ben Pfaff  <blp@gnu.org>
40361
40362         Add longlong module.
40363         * modules/longlong: New file.
40364
40365 2008-07-12  Bruno Haible  <bruno@clisp.org>
40366
40367         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
40368         to empty.
40369
40370 2008-07-10  Ben Pfaff  <blp@gnu.org>
40371
40372         Add isnan module.
40373         * doc/posix-functions/isnan.texi: Mention new module.
40374         * lib/math.in.h: Define isnan macro if we have decided to replace
40375         it.
40376         * m4/isnan.m4: New file.
40377         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
40378         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
40379         also.
40380         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
40381         redundancy.
40382         * m4/math_h.m4: Initialize and substitute variables for isnan
40383         module.
40384         * modules/isnan: New file.
40385         * modules/isnan-tests: New file.
40386         * modules/math: Add substitutions for new module.
40387         * tests/test-isnan.c: New file.
40388         * MODULES.html.sh: Mention new module.
40389
40390 2008-07-10  Ben Pfaff  <blp@gnu.org>
40391
40392         Add isnanf module.
40393         * lib/isnanf.m4: New file.
40394         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
40395         (gl_HAVE_ISNANF_IN_LIBM): New macro.
40396         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
40397         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
40398         * modules/isnanf: New file.
40399         * modules/isnanf-tests: New file.
40400         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
40401         files.
40402         * tests/test-isnanf-nolibm.c: factored most of its contents into
40403         new file tests/test-isnanf.h.
40404         * tests/test-isnanf.h: New file.
40405         * tests/test-isnanf.c: New file.
40406         * MODULES.html.sh: Mention new module.
40407         * doc/glibc-functions/isnanf.texi: Mention new module.
40408
40409 2008-07-10  Ben Pfaff  <blp@gnu.org>
40410
40411         Add isnand module.
40412         * lib/isnand.h: New file.
40413         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
40414         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
40415         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
40416         functionality also.
40417         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
40418         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
40419         (gl_HAVE_ISNAND_IN_LIBM): New macro.
40420         * modules/isnand: New file.
40421         * modules/isnand-tests: New file.
40422         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
40423         files.
40424         * tests/test-isnand-nolibm.c: factored most of its contents into
40425         new file tests/test-isnand.h.
40426         * tests/test-isnand.h: New file.
40427         * tests/test-isnand.c: New file.
40428         * MODULES.html.sh: Mention new module.
40429
40430 2008-07-10  Ben Pfaff  <blp@gnu.org>
40431
40432         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
40433         * lib/isnand.h: Rename lib/isnand-nolibm.h.
40434         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
40435         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
40436         * modules/isnanf-nolibm: Update references to renamed files.
40437         * modules/isnand-nolibm: Likewise.
40438         * modules/isnanf-nolibm-tests: Likewise.
40439         * modules/isnand-nolibm-tests: Likewise.
40440         * lib/frexp.c: Likewise.
40441         * lib/isfinite.c: Likewise.
40442         * lib/signbitd.c: Likewise.
40443         * lib/signbitf.c: Likewise.
40444         * lib/vasnprintf.c: Likewise.
40445         * tests/test-ceilf1.c: Likewise.
40446         * tests/test-ceilf2.c: Likewise.
40447         * tests/test-floorf1.c: Likewise.
40448         * tests/test-floorf2.c: Likewise.
40449         * tests/test-frexp.c: Likewise.
40450         * tests/test-round1.c: Likewise.
40451         * tests/test-round2.c: Likewise.
40452         * tests/test-roundf1.c: Likewise.
40453         * tests/test-strtod.c: Likewise.
40454         * tests/test-trunc1.c: Likewise.
40455         * tests/test-trunc2.c: Likewise.
40456         * tests/test-truncf1.c: Likewise.
40457         * tests/test-truncf2.c: Likewise.
40458         * NEWS: Mention the renamed header files.
40459
40460 2008-07-11  Jim Meyering  <meyering@redhat.com>
40461
40462         vc-list-files: make the last-resort awk code more portable
40463         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
40464         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
40465         does not support it.
40466
40467 2008-07-10  Eric Blake  <ebb9@byu.net>
40468
40469         Work with tar's bootstrap.
40470         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
40471         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
40472         an m4 comment.
40473
40474 2008-07-09  Jim Meyering  <meyering@redhat.com>
40475
40476         posix-shell.m4: fix typo that made this test malfunction
40477         * m4/posix-shell.m4: Remove capitalization in variable name.
40478
40479 2008-07-08  Bruno Haible  <bruno@clisp.org>
40480
40481         * m4/onceonly.m4: Update comments.
40482         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40483
40484 2008-07-04  Jim Meyering  <meyering@redhat.com>
40485
40486         * users.txt: Add vc-dwim.
40487         (bison, coreutils): Use the gitweb URL.
40488
40489 2008-07-03  Jim Meyering  <meyering@redhat.com>
40490
40491         * users.txt: Add libffcall.  From Sam Steingold.
40492
40493 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
40494
40495         getdate.y: do not ignore TZ with relative day, month or year offset
40496         * lib/getdate.y (get_date): Move the tz-handling block to follow the
40497         relative-date-handling, since otherwise, the latter would clobber the
40498         sole output (an updated Start value) of the tz-handling block.
40499         * tests/test-getdate.c: Tests for the fix
40500
40501 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40502
40503         Recognize 'foo_LIBRARIES += libgnu.a'.
40504         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
40505         makefile snippet has already specified an installation location,
40506         also using '+='.
40507
40508 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
40509
40510         getdate.y: factor out common actions
40511         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
40512         Use them in place of open-coded actions.
40513
40514 2008-07-01  Simon Josefsson  <simon@josefsson.org>
40515
40516         Add self-test for getdate module.
40517         * modules/getdate-tests: New file.
40518         * tests/test-getdate.c: New file.
40519
40520 2008-06-29  Bruno Haible  <bruno@clisp.org>
40521
40522         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
40523         .gitignore.
40524         Reported by Sylvain Beucler <beuc@beuc.net>.
40525
40526 2008-06-29  Bruno Haible  <bruno@clisp.org>
40527
40528         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
40529         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
40530
40531 2008-06-29  Bruno Haible  <bruno@clisp.org>
40532
40533         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
40534         EXTRA_DIST.
40535         Reported by Sylvain Beucler <beuc@beuc.net>.
40536
40537 2008-06-26  Jim Meyering  <meyering@redhat.com>
40538
40539         make several modules depend on the "open" module
40540         This provides slightly increased consistency when opening-for-write
40541         the name of a non-directory spelled with a trailing slash.
40542         * modules/chdir-safer: Likewise.
40543         * modules/chown: Likewise.
40544         * modules/clean-temp: Likewise.
40545         * modules/copy-file: Likewise.
40546         * modules/fchdir: Likewise.
40547         * modules/fcntl-safer: Likewise.
40548         * modules/pipe: Likewise.
40549         * modules/utime: Likewise.
40550         Prompted by Eric Blake and Bruno Haible.
40551
40552 2008-06-24  Andreas Schwab  <schwab@suse.de>
40553
40554         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
40555         literals can be used as initializers for global variables.
40556
40557 2008-06-23  Eric Blake  <ebb9@byu.net>
40558
40559         Make gnulib-cache.m4 easier to diff.
40560         * gnulib-tool (func_import): Allow newlines when reading cached
40561         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
40562
40563 2008-06-23  Bruno Haible  <bruno@clisp.org>
40564
40565         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
40566         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
40567         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
40568         m4/signalblocking.m4.
40569         (gl_PREREQ_SIGACTION): Don't invoke it.
40570         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
40571         gl_PREREQ_SIG_HANDLER_H.
40572         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40573         Don't check for sigaction here.
40574
40575 2008-06-23  Bruno Haible  <bruno@clisp.org>
40576
40577         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
40578         (install_handlers): Don't set the SA_RESETHAND flag.
40579
40580 2008-06-23  Bruno Haible  <bruno@clisp.org>
40581
40582         * m4/sigaction.m4: Comment fixes.
40583         * lib/signal.in.h: Likewise.
40584
40585 2008-06-23  Eric Blake  <ebb9@byu.net>
40586
40587         Fix typo.
40588         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
40589
40590         Avoid SA_ namespace.
40591         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
40592         Reported by Ralf Wildenhues.
40593
40594         Avoid test failure due to SA_RESTORER.
40595         * tests/test-sigaction.c (SA_MASK): New macro.
40596         (main): Avoid failing due to extension flags being set.
40597         Reported by Jim Meyering.
40598
40599         Revert use of sig-handler.h in sigprocmask.c.
40600         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
40601         it requires the existence of struct sigaction.
40602         * lib/sigprocmask.c (handler_t): Restore typedef.
40603         (rpl_signal, old_handlers): Use local type.
40604
40605 2008-06-22  Bruno Haible  <bruno@clisp.org>
40606
40607         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
40608         conditionally.
40609         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40610
40611 2008-06-22  Bruno Haible  <bruno@clisp.org>
40612
40613         * doc/posix-functions/siginterrupt.texi: Move note.
40614
40615         * lib/signal.in.h (SA_RESTART): New macro.
40616         * lib/sigaction.c: Update comment.
40617
40618         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
40619
40620         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
40621         (gl_PREREQ_SIGPROCMASK): Invoke it.
40622         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
40623
40624         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
40625
40626         * lib/sigprocmask.c: Update a comment.
40627
40628 2008-06-21  Eric Blake  <ebb9@byu.net>
40629
40630         Use sigaction module rather than signal().
40631         * modules/c-stack (Depends-on): Add sigaction.
40632         * modules/fatal-signal (Depends-on): Likewise.
40633         * modules/nanosleep (Depends-on): Likewise.
40634         * modules/sigprocmask (Files): Add sig-handler.h.
40635         * modules/sigaction (Files): Likewise.
40636         * lib/sig-handler.h (get_handler): New file, suggested by Paul
40637         Eggert.
40638         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
40639         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
40640         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
40641         (init_fatal_signals): Likewise.
40642         * lib/nanosleep.c (rpl_nanosleep): Likewise.
40643         (siginterrupt): Delete fallback.
40644         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
40645         instead.
40646         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
40647         siginterrupt.
40648
40649         New module sigaction, for mingw.
40650         * modules/sigaction: New module...
40651         * modules/sigaction-tests: ...and its test.
40652         * m4/sigaction.m4: New file.
40653         * lib/sigaction.c: Likewise.
40654         * tests/test-sigaction.c: Likewise.
40655         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
40656         * modules/signal (Makefile.am): Likewise.
40657         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
40658         needed.
40659         * doc/posix-headers/signal.texi (signal.h): Mention provided
40660         types.
40661         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
40662         that sigaction is preferable.
40663         * doc/posix-functions/sigaction.texi (sigaction): Mention new
40664         module.
40665         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40666         sigaction.
40667
40668         Improve robustness of sigprocmask by overriding signal.
40669         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
40670         is in use.
40671         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
40672         (SIGKILL, SIGSTOP): Provide fallbacks.
40673         (rpl_signal): Implement.
40674         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
40675         signal can be called inside handlers.
40676
40677         Fix nanosleep module on mingw.
40678         * modules/nanosleep (Depends-on): Add sys_select.
40679         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
40680
40681         Fix licensing of sigprocmask.
40682         * modules/raise (License): Relicense as LGPL.
40683
40684 2008-06-21  Bruno Haible  <bruno@clisp.org>
40685
40686         * lib/propername.c (proper_name_utf8): Don't use the transliterated
40687         result if it contains question marks.
40688         Reported by Michael Geng <linux@michaelgeng.de>.
40689
40690 2008-06-19  Bruno Haible  <bruno@clisp.org>
40691
40692         Fix CVS-ism.
40693         * doc/gnulib.texi: Include updated-stamp.texi.
40694         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
40695         (updated-stamp.texi): New rule.
40696         (gnulib.info): Depend on it.
40697         * doc/.gitignore: Add updated-stamp.texi.
40698         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
40699
40700 2008-06-19  Bruno Haible  <bruno@clisp.org>
40701
40702         * doc/Makefile (gnulib.info): Update and simplify dependencies.
40703         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40704
40705 2008-06-19  Eric Blake  <ebb9@byu.net>
40706
40707         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
40708         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
40709         Reported by Stepan Kasal.
40710
40711 2008-06-18  Bruno Haible  <bruno@clisp.org>
40712
40713         * lib/fatal-signal.c (init_fatal_signals): Add comment.
40714         Reported by Eric Blake.
40715
40716 2008-06-18  Eric Blake  <ebb9@byu.net>
40717
40718         Work around cygwin 1.5.25 strsignal bug.
40719         * tests/test-strsignal.c: Allow for const char *.
40720         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
40721
40722 2008-06-18  Simon Josefsson  <simon@josefsson.org>
40723
40724         * users.txt: Update URL to article and add author/date
40725         information.
40726
40727 2008-06-17  Bruno Haible  <bruno@clisp.org>
40728
40729         New macro gl_DISABLE_THREADS.
40730         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
40731         if the user did not pass --enable-threads or --disable-threads option.
40732         (gl_DISABLE_THREADS): New macro.
40733         Reported by Eric Blake <ebb9@byu.net>.
40734
40735 2008-06-17  Bruno Haible  <bruno@clisp.org>
40736
40737         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
40738         when the macro ignores it.
40739         Based on a patch by Eric Blake <ebb9@byu.net>.
40740
40741 2008-06-17  Bruno Haible  <bruno@clisp.org>
40742
40743         * modules/tls (License): Change to LGPLv2+.
40744         Reported by Eric Blake.
40745
40746 2008-06-17  Eric Blake  <ebb9@byu.net>
40747
40748         Simplify c-stack prerequisites.
40749         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
40750         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
40751         no longer requires <ucontext.h> to exist.  Optimize setrlimit
40752         check.
40753         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
40754         <sys/resource.h>.
40755
40756         Move c-stack test into testsuite.
40757         * modules/c-stack-tests: New file.
40758         * lib/c-stack.c [DEBUG]: Move test program...
40759         * tests/test-c-stack.c: ...into this new file.  Skip rather than
40760         fail test if sigaltstack is lacking.
40761         * tests/test-c-stack.sh: New driver file.
40762
40763 2008-06-16  Eric Blake  <ebb9@byu.net>
40764
40765         Use raise module consistently.
40766         * modules/fatal-signal (Depends-on): Add raise.
40767         * modules/sigprocmask (Depends-on): Likewise.
40768         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
40769         * lib/sigprocmask.c (sigprocmask): Likewise.
40770         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40771         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
40772
40773         Fix compliance bug in sigpending.
40774         * lib/sigprocmask.c (sigpending): Return pending array via
40775         parameter, not return value.
40776
40777 2008-06-14  Eric Blake  <ebb9@byu.net>
40778
40779         Improve obstack-printf test code.
40780         * tests/test-obstack-printf.c (test_function): Fix comment, and
40781         simplify usage of obstack_* in macros.  Add a test for coverage.
40782         Reported by Bruno Haible.
40783
40784 2008-06-14  Bruno Haible  <bruno@clisp.org>
40785
40786         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
40787         array size as a constant, not as a const variable.
40788         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
40789         AC_USE_SYSTEM_EXTENSIONS.
40790         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40791         Test whether the obstack_printf function actually exists.
40792         * modules/obstack-printf (Depends-on): Add extensions.
40793         (Include): Remove obstack.h.
40794         * modules/obstack-printf-posix (Depends-on): Add extensions.
40795         (Include): Remove obstack.h.
40796
40797 2008-06-13  Eric Blake  <ebb9@byu.net>
40798
40799         Add obstack-printf and obstack-printf-posix modules.
40800         * modules/obstack-printf: New file.
40801         * modules/obstack-printf-posix: Likewise.
40802         * MODULES.html.sh (Misc): Mention them.
40803         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40804         Likewise.
40805         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40806         Likewise.
40807         * modules/stdio (Makefile.am): Accomodate new modules.
40808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40809         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
40810         Declare.
40811         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
40812         functions.
40813         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
40814         (gl_REPLACE_OBSTACK_PRINTF): New macros
40815         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
40816         * tests/test-obstack-printf.c: New file.
40817         * modules/obstack-printf-tests: Likewise.
40818         * modules/obstack-printf-posix-tests: Likewise.
40819
40820 2008-06-11  Bruno Haible  <bruno@clisp.org>
40821
40822         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
40823         * lib/open.c: Include errno.h.
40824         (open): Fail when attempting to write to a file that has a trailing
40825         slash.
40826         * tests/test-open.c (main): Test against trailing slash bug.
40827         * doc/posix-functions/open.texi: Mention the trailing slash bug.
40828
40829 2008-06-10  Bruno Haible  <bruno@clisp.org>
40830
40831         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
40832         for $? to work inside the trap command, with various /bin/sh-s.
40833         * tests/test-vc-list-files-cvs.sh: Likewise.
40834
40835 2008-06-10  Bruno Haible  <bruno@clisp.org>
40836
40837         * lib/acl-internal.h: Don't include gettext.h here.
40838         * lib/set-mode-acl.c: Include gettext.h here.
40839         * lib/copy-acl.c: Likewise.
40840
40841 2008-06-10  Bruno Haible  <bruno@clisp.org>
40842
40843         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
40844         * lib/wait-process.c (wait_subprocess): Likewise.
40845         * lib/execute.h (execute): Add termsigp argument.
40846         * lib/execute.c (execute): Likewise.
40847         * lib/csharpcomp.c (compile_csharp_using_pnet,
40848         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
40849         * lib/csharpexec.c (execute_csharp_using_pnet,
40850         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
40851         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
40852         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
40853         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
40854         is_jikes_present): Update.
40855         * lib/javaexec.c (execute_java_class): Update.
40856         * lib/javaversion.c (execute_and_read_line): Update.
40857         * NEWS: Document the changes.
40858         Reported by Eric Blake.
40859
40860 2008-06-10  Eric Blake  <ebb9@byu.net>
40861
40862         Add missing include.
40863         * tests/test-strstr.c (includes): Add <signal.h>.
40864         * tests/test-strcasestr.c (includes): Likewise.
40865         * tests/test-memmem.c (includes): Likewise.
40866
40867 2008-06-10  Bruno Haible  <bruno@clisp.org>
40868
40869         * lib/wait-process.c (wait_subprocess): Add an assertion.
40870
40871 2008-06-10  Bruno Haible  <bruno@clisp.org>
40872
40873         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
40874
40875 2008-06-10  Bruno Haible  <bruno@clisp.org>
40876
40877         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
40878         using alarm().
40879         * tests/test-strcasestr.c (main): Likewise.
40880         * tests/test-strstr.c (main): Likewise.
40881
40882 2008-06-09  Bruno Haible  <bruno@clisp.org>
40883
40884         Work around the Solaris 10 ACE ACLs ABI change.
40885         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
40886         declare if ACL_NO_TRIVIAL is present.
40887         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
40888         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
40889         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
40890         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
40891         define if ACL_NO_TRIVIAL is present.
40892         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
40893         and use the current ABI.
40894         (file_has_acl): Use same #if condition as elsewhere.
40895         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
40896         in use, and use the current ABI.
40897         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
40898         Reported by Jim Meyering.
40899
40900 2008-06-09  Eric Blake  <ebb9@byu.net>
40901
40902         Work around environments that (stupidly) ignore SIGALRM.
40903         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
40904         before using alarm().
40905         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40906         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40907         Reported by Ian Beckwith <ianb@erislabs.net>.
40908
40909         Produce autobuild blurb earlier in log.
40910         * modules/autobuild (configure.ac-early): Move AB_INIT here.
40911
40912 2008-06-09  Jim Meyering  <meyering@redhat.com>
40913         and OndÅ™ej Vašík  <ovasik@redhat.com>
40914
40915         utimens.c: correct kernel bug work-around
40916         OndÅ™ej Vašík found that the invalid return value of 280 indicates
40917         failure, not success, and the kernel bug we're trying to work
40918         around affects not just the utimensat call, but also the fallback
40919         futimens call.
40920         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
40921         not success.
40922         [HAVE_FUTIMENS]: Use the same work-around, here.
40923
40924 2008-06-09  Jim Meyering  <meyering@redhat.com>
40925
40926         add more guards around definition of ACE_-related code
40927         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
40928         ALLOW and ACE_OWNER are also defined.
40929
40930 2008-06-08  Bruno Haible  <bruno@clisp.org>
40931
40932         * lib/acl-internal.h: Add me as co-author.
40933         * lib/file-has-acl.c: Likewise.
40934         * lib/set-mode-acl.c: Likewise.
40935         * lib/copy-acl.c: Likewise.
40936
40937 2008-06-08  Bruno Haible  <bruno@clisp.org>
40938
40939         Add support for AIX ACLs.
40940         * lib/acl-internal.h (acl_nontrivial): New declaration.
40941         * lib/file-has-acl.c (acl_nontrivial): New function.
40942         (file_has_acl): Add implementation using AIX 4 ACL API.
40943         * lib/set-mode-acl.c (qset_acl): Likewise.
40944         * lib/copy-acl.c (qcopy_acl): Likewise.
40945
40946 2008-06-08  Bruno Haible  <bruno@clisp.org>
40947
40948         Add support for HP-UX ACLs.
40949         * lib/acl-internal.h (acl_nontrivial): New declaration.
40950         * lib/file-has-acl.c (acl_nontrivial): New function.
40951         (file_has_acl): Add implementation using HP-UX 11 ACL API.
40952         * lib/set-mode-acl.c (qset_acl): Likewise.
40953         * lib/copy-acl.c (qcopy_acl): Likewise.
40954
40955 2008-06-08  Bruno Haible  <bruno@clisp.org>
40956
40957         Add support for Cygwin ACLs.
40958         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
40959         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
40960         the chmod_or_fchmod call.
40961         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
40962
40963 2008-06-08  Bruno Haible  <bruno@clisp.org>
40964
40965         Fix bug with setuid modes in Solaris 10+ code.
40966         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
40967         succeeded, when the mode contains some special bits.
40968
40969 2008-06-08  Bruno Haible  <bruno@clisp.org>
40970
40971         Add support for Solaris 7..10 ACLs.
40972         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
40973         declarations.
40974         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
40975         functions.
40976         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
40977         * lib/set-mode-acl.c (qset_acl): Likewise.
40978         * lib/copy-acl.c (qcopy_acl): Likewise.
40979
40980 2008-06-08  Bruno Haible  <bruno@clisp.org>
40981
40982         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
40983         declaration.
40984         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
40985         (acl_access_nontrivial): Remove MacOS X case.
40986         (file_has_acl): Use acl_extended_nontrivial.
40987         * lib/copy-acl.c (qcopy_acl): Likewise.
40988
40989 2008-06-08  Bruno Haible  <bruno@clisp.org>
40990
40991         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
40992
40993 2008-06-08  Jim Meyering  <meyering@redhat.com>
40994
40995         * modules/acl (Maintainer): Add Bruno Haible.
40996
40997 2008-06-07  Bruno Haible  <bruno@clisp.org>
40998
40999         Improve support for Tru64 ACLs.
41000         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
41001         ACL on OSF/1.
41002
41003 2008-06-07  Bruno Haible  <bruno@clisp.org>
41004
41005         Add support for MacOS X ACLs.
41006         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
41007         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
41008         * lib/set-mode-acl.c (qset_acl): Likewise.
41009         * lib/copy-acl.c (qcopy_acl): Likewise.
41010
41011 2008-06-07  Bruno Haible  <bruno@clisp.org>
41012
41013         Fix memory leak introduced on 2008-05-22.
41014         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
41015         use.
41016
41017 2008-06-07  Bruno Haible  <bruno@clisp.org>
41018
41019         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
41020         to construct an empty ACL.
41021
41022 2008-06-07  Bruno Haible  <bruno@clisp.org>
41023
41024         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
41025         precisely.
41026         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
41027
41028 2008-06-07  Bruno Haible  <bruno@clisp.org>
41029
41030         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
41031         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
41032
41033 2008-06-07  Bruno Haible  <bruno@clisp.org>
41034
41035         * doc/posix-functions/_setjmp.texi: Explain the use of this function
41036         regardless of POSIX.
41037         * doc/posix-functions/_longjmp.texi: Likewise.
41038         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
41039         SystemV platform in this case.
41040
41041 2008-06-06  Eric Blake  <ebb9@byu.net>
41042
41043         Document abort() bugs.
41044         * doc/posix-functions/abort.texi (abort): Mention anomalies.
41045
41046         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
41047         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
41048         sigsetjmp.
41049         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
41050         siglongjmp, but only as a macro.
41051         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
41052         is obsolete.
41053         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
41054
41055         Tweak documentation to cover cygwin argz bugs.
41056         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
41057         argz bug fix; no code change needed since no cygwin releases
41058         occurred between the last fix and the bug being tested.
41059         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
41060         module and recently fixed cygwin bugs.
41061         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
41062         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
41063         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
41064         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
41065         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
41066         Likewise.
41067         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
41068         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
41069         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
41070         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
41071         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
41072         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
41073         Likewise.
41074
41075         Avoid gcc warning on cygwin.
41076         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
41077         !ACL_NO_TRIVIAL]: Avoid unused variable.
41078
41079 2008-06-05  Eric Blake  <ebb9@byu.net>
41080
41081         Be tolerant of UNKNOWN version in gnulib-tool test dir.
41082         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
41083         git-version-gen fails to come up with a version.
41084         Reported by Simon Josefsson.
41085
41086 2008-06-05  Jim Meyering  <meyering@redhat.com>
41087             Paul Eggert  <eggert@cs.ucla.edu>
41088
41089         utimens.c: work around a probable Linux kernel bug
41090         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
41091         appears to be a kernel bug that causes utimensat to return 280
41092         instead of 0, indicating success.
41093
41094 2008-06-04  Bruno Haible  <bruno@clisp.org>
41095
41096         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
41097         2008-06-01 commit.
41098
41099 2008-06-04  Bruno Haible  <bruno@clisp.org>
41100
41101         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
41102         * lib/file-has-acl.c (acl_access_nontrivial): New function.
41103         (file_has_acl): Use it. Save errno afterwards.
41104         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
41105
41106 2008-06-03  Bruno Haible  <bruno@clisp.org>
41107
41108         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
41109         draft code. Simplify #ifs.
41110         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
41111         Put Solaris code after POSIX-draft code. Fix comments regarding
41112         Solaris 10, HP-UX. Mention Cygwin.
41113         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
41114
41115 2008-06-03  Eric Blake  <ebb9@byu.net>
41116
41117         Provide fallback for older kernels.
41118         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
41119         Provide runtime fallback if kernel lacks support.
41120         Reported by Mike Frysinger.
41121
41122 2008-06-02  Bruno Haible  <bruno@clisp.org>
41123
41124         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
41125         it exists.
41126
41127 2008-06-02  Bruno Haible  <bruno@clisp.org>
41128
41129         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
41130         * lib/copy-acl.c (qcopy_acl): Update comment.
41131
41132 2008-06-02  Bruno Haible  <bruno@clisp.org>
41133
41134         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
41135         like ACL APIs.
41136
41137 2008-06-02  Bruno Haible  <bruno@clisp.org>
41138
41139         * tests/test-file-has-acl.sh: Use different code for Cygwin.
41140         * tests/test-set-mode-acl.sh: Likewise.
41141         * tests/test-copy-acl.sh: Likewise.
41142         * tests/test-copy-file.sh: Likewise.
41143
41144 2008-06-02  Bruno Haible  <bruno@clisp.org>
41145
41146         * tests/test-file-has-acl.sh: Remove unused code.
41147
41148 2008-06-01  Bruno Haible  <bruno@clisp.org>
41149
41150         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
41151         (copy_acl): Just a wrapper around qcopy_acl that emits the error
41152         messages.
41153         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
41154
41155 2008-06-01  Bruno Haible  <bruno@clisp.org>
41156
41157         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
41158         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
41159         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
41160         APIs.
41161         * modules/acl-tests (configure.ac): Remove tests now contained in
41162         m4/acl.m4.
41163
41164 2008-06-02  Jim Meyering  <meyering@redhat.com>
41165
41166         announce-gen: use a better key-server host name
41167         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
41168         it may be more consistently reliable.  Suggested by Werner Koch
41169         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
41170
41171 2008-06-01  Bruno Haible  <bruno@clisp.org>
41172
41173         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
41174         Reported by Voroskoi Andras <voroskoi@gmail.com>.
41175
41176 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
41177
41178         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
41179
41180 2008-06-01  Bruno Haible  <bruno@clisp.org>
41181
41182         New ACL tests.
41183         * tests/test-file-has-acl.sh: New file.
41184         * tests/test-file-has-acl.c: New file.
41185         * tests/test-set-mode-acl.sh: New file.
41186         * tests/test-set-mode-acl.c: New file.
41187         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
41188         * tests/test-copy-acl.c: New file.
41189         * modules/acl-tests: New file, based on modules/copy-file-tests.
41190         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
41191         (Depends-on): Add acl-tests.
41192         (configure.ac): Remove checks.
41193         (Makefile.am): Don't create test-sameacls program here any more.
41194
41195 2008-06-01  Bruno Haible  <bruno@clisp.org>
41196
41197         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
41198         * tests/test-sameacls.c: Include progname.h.
41199         (main): Invoke set_program_name. Portability fixes for MacOS X,
41200         Solaris, HP-UX.
41201
41202 2008-06-01  Bruno Haible  <bruno@clisp.org>
41203
41204         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
41205         function.
41206         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
41207
41208 2008-06-01  Bruno Haible  <bruno@clisp.org>
41209
41210         * modules/rpmatch (Depends-on): Add strdup.
41211
41212 2008-06-01  Bruno Haible  <bruno@clisp.org>
41213
41214         * lib/pipe.c: Include unistd-safer.h.
41215         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
41216         * modules/pipe (Depends-on): Add unistd-safer.
41217
41218 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41219
41220         * modules/autobuild (configure.ac): Call AB_INIT.
41221
41222 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41223
41224         * tests/test-getaddrinfo.c: Don't print debug messages by default.
41225         Suggested by Bruno Haible <bruno@clisp.org>.
41226
41227 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41228
41229         * tests/test-base64.c: Cast size_t to unsigned long when invoking
41230         printf.  Use %lu instead of %d.  Reported by Bruno Haible
41231         <bruno@clisp.org>.
41232
41233 2008-05-29  Eric Blake  <ebb9@byu.net>
41234
41235         Prefer new POSIX 200x interfaces over futimesat.
41236         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
41237         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
41238         when available.
41239         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
41240
41241 2008-05-28  Bruno Haible  <bruno@clisp.org>
41242
41243         * modules/stpcpy (License): Change to LGPLv2+.
41244         Requested by David Lutterkort <dlutter@redhat.com>.
41245
41246 2008-05-27  Bruno Haible  <bruno@clisp.org>
41247
41248         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
41249         current mingw.
41250         Reported by Jose E. Marchesi <jemarch@gnu.org>.
41251
41252 2008-05-27  Bruno Haible  <bruno@clisp.org>
41253
41254         * modules/iconv_open (Link): New section, from module 'iconv'.
41255         * modules/striconv (Link): Likewise.
41256         * modules/striconveh (Link): Likewise.
41257         * modules/xstriconv (Link): Likewise.
41258         * modules/unicodeio (Link): Likewise.
41259         * modules/propername (Link): Likewise.
41260         Reported by Jim Meyering.
41261
41262 2008-05-26  Jim Meyering  <meyering@redhat.com>
41263
41264         sha256: do not artificially restrict buffer length to be < 2^32
41265         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
41266         uint32_t to size_t.
41267         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
41268         to match.
41269
41270         avoid unaligned access errors, e.g., on sparc
41271         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
41272         direct access through a possibly-unaligned uint64* pointer.
41273         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
41274         direct access through a possibly-unaligned uint32* pointer.
41275         Prompted by this patch from Tom "spot" Callaway:
41276         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
41277
41278         sha512.c: fix typo in comment
41279         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
41280
41281 2008-05-25  Bruno Haible  <bruno@clisp.org>
41282
41283         * lib/set-mode-acl.c: Renamed from lib/acl.c.
41284         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
41285         (Makefile.am): Update lib_SOURCES.
41286
41287 2008-05-25  Bruno Haible  <bruno@clisp.org>
41288
41289         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
41290
41291 2008-05-25  Jim Meyering  <meyering@redhat.com>
41292
41293         useless-if-before-free: freed expr may have white-space differences
41294         * build-aux/useless-if-before-free: Recognize cases in which the
41295         freed expression differs from the tested one in embedded white
41296         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
41297         $1 was used, so we can't make any regexp shy.  Improved tests now
41298         detect this.
41299
41300         useless-if-before-free: accept white space in the expression.
41301         * build-aux/useless-if-before-free: For now, any white space
41302         in the expression must be identical in the free argument.
41303
41304         useless-if-before-free: efficiency tweak
41305         * build-aux/useless-if-before-free: Make the expression-matching
41306         regexp "shy".
41307         Make the *outer* regexp shy, not the expr-matching one.
41308
41309         update code-in-comment to accept cast of free arg
41310         * build-aux/useless-if-before-free: Update regexp.
41311
41312 2008-05-25  Bruno Haible  <bruno@clisp.org>
41313
41314         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
41315         * modules/copy-file-tests (Files, Makefile.am): Update.
41316         * tests/test-copy-file.c (func_test_copy): Update.
41317
41318 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
41319
41320         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
41321
41322 2008-05-23  Bruno Haible  <bruno@clisp.org>
41323
41324         Improve support for ACLs on OSF/1.
41325         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
41326         Remove fallback for unknown flavors of ACLs.
41327
41328 2008-05-22  Bruno Haible  <bruno@clisp.org>
41329
41330         Add support for ACLs on OSF/1.
41331         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
41332         replacements.
41333         (acl_free_text): New macro fallback.
41334         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
41335         acl_free.
41336         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
41337         acl_free_text function. Require AC_C_INLINE.
41338
41339 2008-05-22  Bruno Haible  <bruno@clisp.org>
41340
41341         Make copy_acl work on MacOS X 10.5.
41342         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
41343         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
41344         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
41345         If MODE_INSIDE_ACL, don't assume that every system has the same text
41346         representation for ACLs as FreeBSD.
41347         * lib/copy-acl.c (copy_acl): Add support for platforms with
41348         !MODE_INSIDE_ACL.
41349         * lib/file-has-acl.c (file_has_acl): Likewise.
41350         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
41351         FreeBSD, MacOS X, or IRIX, respectively.
41352
41353 2008-05-22  Bruno Haible  <bruno@clisp.org>
41354
41355         * lib/acl.h: Don't include <sys/acl.h>.
41356         (GETACLCNT): Move fallback to lib/acl-internal.h.
41357         * lib/acl-internal.h: Include <sys/acl.h> here.
41358         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
41359
41360 2008-05-22  Bruno Haible  <bruno@clisp.org>
41361
41362         Split off copy_acl function to separate file.
41363         * lib/copy-acl.c: New file, extracted from lib/acl.c.
41364         * lib/acl.c (copy_acl): Moved function to separate file.
41365         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
41366         * modules/acl (Files): Add lib/copy-acl.c.
41367         (Makefiles.am): Augment lib_SOURCES.
41368
41369 2008-05-22  Bruno Haible  <bruno@clisp.org>
41370
41371         * modules/copy-file-tests: New file.
41372         * tests/test-copy-file.sh: New file.
41373         * tests/test-copy-file.c: New file.
41374         * tests/test-copy-file-sameacls.c: New file.
41375
41376 2008-05-22  Eric Blake  <ebb9@byu.net>
41377
41378         Avoid gcc warning.
41379         * tests/test-memcmp.c (main): Pass NULL indirectly.
41380
41381 2008-05-21  Bruno Haible  <bruno@clisp.org>
41382
41383         Add reference doc about ACLs.
41384         * doc/acl-resources.txt: New file.
41385         * doc/acl-cygwin.txt: New file.
41386
41387 2008-05-21  Bruno Haible  <bruno@clisp.org>
41388
41389         Avoid one more warning from gcc.
41390         * lib/vasnprintf.c (IF_LINT): Update comments.
41391         (VASNPRINTF): Use it also for the 'prefix' array initializer.
41392
41393 2008-05-21  Jim Meyering  <meyering@redhat.com>
41394
41395         avoid a warning from gcc
41396         * lib/vasnprintf.c (IF_LINT): Define.
41397         (scale10_round_decimal_long_double):
41398         Use it to avoid a "may be used uninitialized" warning.
41399         (scale10_round_decimal_double): Likewise.
41400
41401 2008-05-21  Simon Josefsson  <simon@josefsson.org>
41402
41403         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
41404         declared.
41405
41406 2008-05-20  Bruno Haible  <bruno@clisp.org>
41407
41408         * tests/test-memcmp.c (main): Test also the sign of the result. Test
41409         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
41410
41411 2008-05-20  Simon Josefsson  <simon@josefsson.org>
41412
41413         * modules/memcmp-tests: New file.
41414         * tests/test-memcmp.c: New file.
41415
41416 2008-05-19  Bruno Haible  <bruno@clisp.org>
41417
41418         * modules/propername (Notice, configure.ac): Put quoted "..." into
41419         --keyword option.
41420         * lib/propername.h: Update comments accordingly.
41421         Reported by Eric Blake.
41422
41423 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
41424
41425         * modules/getpass-gnu (Depends-on): Add fseeko.
41426
41427 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41428
41429         * modules/base64-tests: New file.
41430
41431 2008-05-19  Bo Borgerson <gigabo@gmail.com>
41432
41433         * lib/base64.c (base64_decode_ctx): If a decode context structure
41434         was passed in use it to ignore newlines.  If a context structure
41435         was _not_ passed in, continue to treat newlines as garbage (this
41436         is the historical behavior).  Formerly base64_decode.
41437         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41438         takes a decode context structure.
41439         * lib/base64.h (base64_decode): Macro for four-argument calls.
41440         (base64_decode_alloc): Likewise.
41441         * lib/base64.c (base64_decode_ctx): If a decode context structure
41442         was passed in use it to ignore newlines.  If a context structure
41443         was _not_ passed in, continue to treat newlines as garbage (this
41444         is the historical behavior).  Formerly base64_decode.
41445         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41446         takes a decode context structure.
41447         * lib/base64.h (base64_decode): Macro for four-argument calls.
41448         (base64_decode_alloc): Likewise.
41449
41450 2008-05-19  Jim Meyering  <meyering@redhat.com>
41451
41452         avoid a warning from gcc
41453         * lib/trim.c (IF_LINT): Define.
41454         (trim2): Use it to avoid a "may be used uninitialized" warning.
41455
41456         Fix doc typo.
41457         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
41458
41459 2008-05-19  Bruno Haible  <bruno@clisp.org>
41460
41461         * doc/glibc-functions/getpass.texi: Document limits of other
41462         implementations.
41463
41464 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41465             Bruno Haible <bruno@clisp.org>
41466
41467         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
41468
41469 2008-05-18  Bruno Haible  <bruno@clisp.org>
41470
41471         * modules/propername: New file, from GNU gettext.
41472         * lib/propername.h: New file, from GNU gettext.
41473         * lib/propername.c: New file, from GNU gettext.
41474         * MODULES.html.sh (Internationalization functions): Add propername.
41475
41476 2008-05-16  Jim Meyering  <meyering@redhat.com>
41477             Bruno Haible  <bruno@clisp.org>
41478
41479         Avoid some warnings from "gcc -Wshadow".
41480         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
41481
41482 2008-05-15  Eric Blake  <ebb9@byu.net>
41483
41484         Extend previous patch to cygwin 1.7.0.
41485         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
41486         fast implementation in cygwin >= 1.7.0.
41487         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41488         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41489
41490 2008-05-15  Bruno Haible  <bruno@clisp.org>
41491
41492         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
41493         implementation in glibc >= 2.9.
41494         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41495         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41496
41497 2008-05-15  Bruno Haible  <bruno@clisp.org>
41498
41499         * MODULES.html.sh (Internationalization functions): Remove linebreak.
41500         (Unicode string functions): Add unilbrk/*.
41501         Reported by Karl Berry.
41502
41503 2008-05-15  Eric Blake  <ebb9@byu.net>
41504
41505         Fix violation of <stdbool.h> replacement in regex.
41506         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
41507         * lib/regexec.c (re_search_internal): Likewise.
41508         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
41509
41510 2008-05-15  Jim Meyering  <meyering@redhat.com>
41511
41512         avoid distracting test output when git or cvs is not found
41513         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
41514         * tests/test-vc-list-files-git.sh: Likewise.
41515
41516 2008-05-15  Eric Blake  <ebb9@byu.net>
41517
41518         Glibc finally accepted the memmem speedup code, bugzilla #5514.
41519         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
41520         glibc version.
41521         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41522         * doc/posix-functions/strstr.texi (strstr): Likewise.
41523         * lib/str-two-way.h (MAX): Sychronize with glibc.
41524
41525 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
41526
41527         * lib/regcomp.c (optimize_utf8): Add a note on why we test
41528         opr.ctx_type.
41529         (calc_first): Initialize constraint field.
41530         (duplicate_node_closure): Use it instead of special casing ANCHORS.
41531         Fix grammar.
41532         (duplicate_node): Merge constraint field for all node types.
41533         (calc_eclosure_iter): Look at constraint field for all node types.
41534         * lib/regex_internal.c (create_cd_newstate): Don't look at
41535         opr.ctx_type.
41536
41537 2008-05-14  Bruno Haible  <bruno@clisp.org>
41538
41539         Help GCC to do better code generation.
41540         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
41541         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
41542         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
41543         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
41544         Declare with attribute 'malloc' if supported.
41545
41546 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
41547
41548         use "echo STR|wc -c" rather than unportable "expr length STR"
41549         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
41550         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
41551
41552 2008-05-14  Jim Meyering  <meyering@redhat.com>
41553
41554         use dd ibs=$n count=1 ... rather than less-portable head -c$n
41555         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
41556         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
41557         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
41558         via Collin Lasse.
41559
41560 2008-05-14  Eric Blake  <ebb9@byu.net>
41561
41562         Avoid quadratic growth in gl_LIBSOURCES.
41563         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
41564         Suggested by Bruno Haible.
41565
41566         Test xmemdup0.
41567         * modules/xmemdup0-tests: New file.
41568         * tests/test-xmemdup0.c: Likewise.
41569
41570 2008-05-13  Eric Blake  <ebb9@byu.net>
41571
41572         Split xmemdup0 into its own module.
41573         * modules/xmemdup0: New file.
41574         * lib/xmemdup0.h: Likewise.
41575         * lib/xmemdup0.c: Likewise.
41576         * MODULES.html.sh (Memory management functions): Add xmemdup0.
41577         * lib/xalloc.h (xmemdup0): Remove.
41578         * lib/xmalloc.c (xmemdup0): Likewise.
41579
41580 2008-05-13  Eric Blake  <ebb9@byu.net>
41581             Bruno Haible  <bruno@clisp.org>
41582
41583         Reduce number of forks required during autoconf.
41584         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
41585         and gl_LIBSOURCES_DIR.
41586         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
41587         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
41588         m4_syscmd per file.
41589         <m4_foreach_w>: Move...
41590         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
41591
41592 2008-05-13  Eric Blake  <ebb9@byu.net>
41593
41594         * gnulib-tool: Fix various comment typos.
41595
41596 2008-05-12  Bruno Haible  <bruno@clisp.org>
41597
41598         Tailor the linebreaking algorithm.
41599         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
41600
41601 2008-05-12  Bruno Haible  <bruno@clisp.org>
41602
41603         Update to Unicode 5.0.0.
41604         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41605         LBP_JV, LBP_JT. Redistribute values.
41606         (unilbrk_table): Change size.
41607         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
41608         Unicode TR#14 rev. 22.
41609         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41610         LBP_JV, LBP_JT. Redistribute values.
41611         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
41612         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
41613         Update.
41614         * lib/unilbrk/lbrkprop1.h: Regenerated.
41615         * lib/unilbrk/lbrkprop2.h: Regenerated.
41616         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
41617         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
41618         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
41619         Likewise.
41620         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
41621         Likewise.
41622         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
41623         result.
41624         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41625         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41626         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
41627         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
41628         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
41629         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
41630
41631 2008-05-11  Bruno Haible  <bruno@clisp.org>
41632
41633         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
41634
41635 2008-05-11  Bruno Haible  <bruno@clisp.org>
41636
41637         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
41638         * modules/unilbrk/gen-lbrk: New file.
41639
41640 2008-05-11  Bruno Haible  <bruno@clisp.org>
41641
41642         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
41643         * m4/sha512.m4 (gl_SHA512): Likewise.
41644
41645 2008-05-11  Jim Meyering  <meyering@redhat.com>
41646
41647         New modules: crypto/sha256, crypto/sha512 (from coreutils)
41648         * modules/crypto/sha256: New file.
41649         * modules/crypto/sha512: Likewise.
41650         * lib/sha256.c: Likewise.
41651         * lib/sha256.h: Likewise.
41652         * lib/sha512.c: Likewise.
41653         * lib/sha512.h: Likewise.
41654         * lib/u64.h: Likewise.
41655         * m4/sha256.m4: Likewise.
41656         * m4/sha512.m4: Likewise.
41657         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
41658
41659 2008-05-10  Bruno Haible  <bruno@clisp.org>
41660
41661         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
41662         (Input/Output <stdio.h>): Add xprintf.
41663         (Signal handling <signal.h>): Add strsignal.
41664         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
41665         (Core language properties): Add func.
41666         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
41667         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
41668         strings.
41669         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
41670         (Input/output): New section.
41671         (File system functions): Add openat-die, stat-macros.
41672         (Networking functions): Add sockets.
41673         (Unicode string functions): Add unictype/*.
41674         (Support for building libraries and executables): Add gperf.
41675         (Support for building documentation): Add agpl-3.0.
41676         (Misc): Add nocrash.
41677
41678 2008-05-10  Bruno Haible  <bruno@clisp.org>
41679
41680         * modules/unictype/gen-ctype: New file.
41681
41682 2008-05-10  Jim Meyering  <meyering@redhat.com>
41683
41684         Make chdir-safer.c more efficient on a system with no symlinks.
41685         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
41686         also if ELOOP is zero.  Suggested by Bruno Haible.
41687
41688         Make chdir-safer.c slightly safer.
41689         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
41690         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
41691
41692         Avoid compile failure on systems without ELOOP (like mingw).
41693         * lib/chdir-safer.c (ELOOP): Define if not already defined.
41694         Reported by Bruno Haible.
41695
41696 2008-05-10  Bruno Haible  <bruno@clisp.org>
41697
41698         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
41699         (is_utf8_encoding): Use a case-insensitive comparison.
41700         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
41701         streq.
41702
41703 2008-05-10  Bruno Haible  <bruno@clisp.org>
41704
41705         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
41706         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
41707         * lib/unilbrk/ulc-common.h (iconv_string_length,
41708         iconv_string_keeping_offsets): Remove declarations.
41709         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
41710         Don't include <iconv.h>, streq.h, xsize.h.
41711         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
41712         conversion.
41713         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
41714         <iconv.h>, streq.h, xsize.h.
41715         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
41716         conversion.
41717         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
41718         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
41719         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
41720         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
41721
41722 2008-05-10  Bruno Haible  <bruno@clisp.org>
41723
41724         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
41725         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
41726
41727         * modules/unilbrk/u32-width-linebreaks-tests: New file.
41728         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
41729
41730         * modules/unilbrk/u16-width-linebreaks-tests: New file.
41731         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
41732
41733         * modules/unilbrk/u8-width-linebreaks-tests: New file.
41734         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
41735
41736         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
41737         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
41738
41739         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
41740         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
41741
41742         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
41743         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
41744
41745         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
41746         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
41747
41748 2008-05-10  Bruno Haible  <bruno@clisp.org>
41749
41750         Split up 'linebreak' module.
41751         * lib/unilbrk.h: New file, based on lib/linebreak.h.
41752         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
41753         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
41754         modifications.
41755         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
41756         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
41757         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
41758         lib/linebreak.c.
41759         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
41760         lib/linebreak.c.
41761         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
41762         lib/linebreak.c.
41763         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
41764         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
41765         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
41766         lib/linebreak.c.
41767         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
41768         lib/linebreak.c.
41769         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
41770         lib/linebreak.c.
41771         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
41772         lib/linebreak.c.
41773         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
41774         lib/linebreak.c.
41775         * modules/unilbrk/base: New file.
41776         * modules/unilbrk/tables: New file.
41777         * modules/unilbrk/u8-possible-linebreaks: New file.
41778         * modules/unilbrk/u16-possible-linebreaks: New file.
41779         * modules/unilbrk/u32-possible-linebreaks: New file.
41780         * modules/unilbrk/ulc-common: New file.
41781         * modules/unilbrk/ulc-possible-linebreaks: New file.
41782         * modules/unilbrk/u8-width-linebreaks: New file.
41783         * modules/unilbrk/u16-width-linebreaks: New file.
41784         * modules/unilbrk/u32-width-linebreaks: New file.
41785         * modules/unilbrk/ulc-width-linebreaks: New file.
41786         * lib/linebreak.h: Remove file.
41787         * lib/linebreak.c: Remove file.
41788         * m4/linebreak.m4: Remove file.
41789         * modules/linebreak: Remove file.
41790         * NEWS: Mention the changes.
41791
41792 2008-05-09  Eric Blake  <ebb9@byu.net>
41793
41794         Add xmemdup0.
41795         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
41796         implementation.
41797         * lib/xmalloc.c (xmemdup0): New C implementation.
41798
41799 2008-05-08  Bruno Haible  <bruno@clisp.org>
41800
41801         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
41802
41803 2008-05-07  Eric Blake  <ebb9@byu.net>
41804
41805         Support cross-compilation of <wctype.h>.
41806         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
41807         AC_CACHE_CHECK.
41808
41809 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
41810
41811         * build-aux/vc-list-files: Add support for bzr.
41812
41813 2008-05-03  Jim Meyering  <meyering@redhat.com>
41814
41815         avoid failed assertion with tight malloc
41816         * tests/test-getndelim2.c: Correct an off-by-one assertion.
41817
41818 2008-05-03  Simon Josefsson  <simon@josefsson.org>
41819
41820         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
41821         are needed from arpa/inet.h.
41822         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
41823         Reported by Bruno Haible.
41824
41825 2008-05-02  Jim Meyering  <meyering@redhat.com>
41826
41827         avoid compilation error on FreeBSD 6
41828         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
41829
41830 2008-05-01  Jim Meyering  <meyering@redhat.com>
41831
41832         useless-if-before-free: correct --help's exit status description
41833         * build-aux/useless-if-before-free (usage): Like grep, exit 0
41834         for one or more matches, etc.  Reported by Bruno Haible.
41835
41836         vc-list-files: make the stand-alone gnulib test work
41837         * modules/vc-list-files-tests (configure.ac):
41838         Define and AC_SUBST abs_aux_dir.
41839         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
41840         $(abs_top_srcdir) to each script and having each of them
41841         duplicate the work of setting PATH, set PATH here, using
41842         the new variable, abs_aux_dir instead.
41843         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
41844         * tests/test-vc-list-files-git.sh: Likewise.
41845         Reported by Bruno Haible.
41846
41847 2008-05-01  Bruno Haible  <bruno@clisp.org>
41848
41849         * lib/getndelim2.c (getndelim2): Fix newsize computation during
41850         reallocation. Rename 'done' to 'found_delimiter'.
41851
41852 2008-05-01  Jim Meyering  <meyering@redhat.com>
41853
41854         vc-list-files: accommodate /bin/sh like the one from Solaris 10
41855         * build-aux/vc-list-files: Use `...`, not $(...).
41856
41857 2008-04-30  Jim Meyering  <meyering@redhat.com>
41858
41859         add tests for vc-list-files
41860         * modules/vc-list-files-tests: New module.
41861         * tests/test-vc-list-files-cvs.sh: New file.
41862         * tests/test-vc-list-files-git.sh: New file.
41863
41864         avoid a warning from gcc
41865         * lib/getndelim2.c (IF_LINT): Define.
41866         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
41867
41868         vc-list-files: work properly with build-aux/cvsu, too
41869         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
41870         to all cvs-based clauses.
41871
41872         vc-list-files: work properly in the CVS+awk case, too
41873         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
41874
41875         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
41876         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
41877         take more than one file argument, so .  Add quotes, just in case $dir
41878         ever contains a shell meta-character.  Prompted by Soren Hansen in
41879         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
41880
41881 2008-04-29  Eric Blake  <ebb9@byu.net>
41882
41883         Optimize getndelim2 to use block operations when possible.
41884         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
41885         freadseek, and memchr2.
41886         * lib/getndelim2.c (getndelim2): Use them for block reads.
41887
41888 2008-04-29  Bruno Haible  <bruno@clisp.org>
41889
41890         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
41891         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41892         * modules/inet_ntop (Depends-on): Add extensions.
41893         * modules/inet_pton (Depends-on): Likewise.
41894         Reported by Simon Josefsson.
41895
41896 2008-04-29  Jim Meyering  <meyering@redhat.com>
41897
41898         When the is more than one match in a block, match all of them.
41899         * build-aux/useless-if-before-free: Iterate through each block
41900         until there are no more matches.
41901
41902         Fix broken useless-if-before-free script.
41903         * build-aux/useless-if-before-free: Fix typo: missing "?" after
41904         the expression to match cast of argument to free-like function.
41905
41906 2008-04-29  Eric Blake  <ebb9@byu.net>
41907
41908         Use new header.
41909         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
41910
41911 2008-04-29  Jim Meyering  <meyering@redhat.com>
41912
41913         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
41914         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
41915         by gnulib to exist and to declare e.g., inet_ntop.
41916         Don't include "inet_ntop.h", now removed.
41917
41918         * m4/arpa_inet_h.m4: Remove trailing blanks.
41919
41920 2008-04-29  Eric Blake  <ebb9@byu.net>
41921
41922         Silence valgrind on safe reads beyond potential array bounds.
41923         * lib/rawmemchr.valgrind: New file.
41924         * lib/strchrnul.valgrind: Likewise.
41925         * modules/rawmemchr (Files): Distribute new file.
41926         * modules/strchrnul (Files): Likewise.
41927         Suggested by Bruno Haible.
41928
41929 2008-04-29  Bruno Haible  <bruno@clisp.org>
41930
41931         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
41932         (inet_ntop, inet_pton): Change portability warning's wording.
41933         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
41934         Invoke gl_CHECK_NEXT_HEADERS.
41935         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
41936         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
41937         set ARPA_INET_H.
41938         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41939         * modules/arpa_inet (Description): No longer only for systems that
41940         lack it.
41941         (Depends-on): Add include_next.
41942         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
41943         HAVE_ARPA_INET_H.
41944
41945 2008-04-29  Jim Meyering  <meyering@redhat.com>
41946
41947         * modules/mkdir (License): Re-license as LGPLv2+.
41948
41949 2008-04-29  Bruno Haible  <bruno@clisp.org>
41950
41951         * modules/rawmemchr (Maintainer): Set to Eric.
41952         * modules/strchrnul (Maintainer): Likewise.
41953
41954 2008-04-29  Simon Josefsson  <simon@josefsson.org>
41955
41956         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
41957         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
41958
41959         * modules/arpa_inet (arpa/inet.h): Use them.
41960
41961 2008-04-28  Eric Blake  <ebb9@byu.net>
41962
41963         Test getndelim2.
41964         * modules/getndelim2-tests: New file.
41965         * tests/test-getndelim2.c: Likewise.
41966         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
41967         stream.
41968         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
41969
41970         * MODULES.html.sh: Document new module.
41971
41972 2008-04-20  Bruno Haible  <bruno@clisp.org>
41973
41974         * lib/c-stack.c (die): Use raise.
41975         * modules/c-stack (Depends-on): Add raise.
41976
41977 2008-04-28  Bruno Haible  <bruno@clisp.org>
41978
41979         Expect rpmatch to be declared.
41980         * lib/yesno.c (rpmatch): Remove declaration.
41981
41982         Declare rpmatch.
41983         * lib/stdlib.in.h (rpmatch): New declaration.
41984         * lib/rpmatch.c: Include <stdlib.h> first.
41985         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
41986         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
41987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
41988         HAVE_RPMATCH.
41989         * modules/rpmatch (Depends-on): Add stdlib, extensions.
41990         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41991         (Include): Set to <stdlib.h>.
41992         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
41993         HAVE_RPMATCH.
41994         * NEWS: Document the change.
41995
41996 2008-04-28  Bruno Haible  <bruno@clisp.org>
41997
41998         Change rpmatch to use nl_langinfo when appropriate.
41999         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
42000         (N_): New macro.
42001         (localized_pattern): New function/macro.
42002         (try): Remove match, nomatch arguments. Copy the pattern into safe
42003         memory before caching it.
42004         (rpmatch): Use localized_pattern. Add translator comments.
42005         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
42006         Suggested by Eric Blake.
42007         * modules/rpmatch (Depends-on): Add stdbool.
42008
42009 2008-04-28  Eric Blake  <ebb9@byu.net>
42010
42011         Add rawmemchr module, matching glibc.
42012         * modules/string (Makefile.am): New indicator.
42013         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
42014         * lib/string.in.h (rawmemchr): Declare when appropriate.
42015         * modules/rawmemchr: New file.
42016         * m4/rawmemchr.m4: Likewise.
42017         * lib/rawmemchr.c: Likewise.
42018         * modules/rawmemchr-tests: Likewise.
42019         * tests/test-rawmemchr.c: Likewise.
42020         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
42021         module.
42022         * modules/strchrnul (Depends-on): Add rawmemchr.
42023         * lib/strchrnul.c (strchrnul): Optimize a corner case.
42024
42025         Whitespace cleanup.
42026         * tests/test-strchrnul.c: Reindent.
42027         * lib/strchrnul.c: Likewise.
42028
42029         Optimize and test strchrnul.
42030         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
42031         * modules/strchrnul-tests: New file.
42032         * tests/test-strchrnul.c: Likewise.
42033
42034         Remove intprops dependency.
42035         * modules/memchr (Depends-on): Remove intprops.
42036         * modules/memrchr (Depends-on): Likewise.
42037         * modules/memchr2 (Depends-on): Likewise.
42038         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
42039         * lib/memrchr.c (__memrchr): Likewise.
42040         * lib/memrchr2.c (memchr2): Likewise.
42041         Reported by Simon Josefsson.
42042
42043 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42044
42045         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
42046         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42047
42048 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42049
42050         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
42051
42052         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
42053
42054         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
42055
42056         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
42057         declarations.
42058         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
42059
42060         * m4/inet_pton.m4: Don't check for header files.
42061
42062         * m4/inet_ntop.m4: Don't check for header files.
42063
42064 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42065
42066         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
42067         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
42068         trigger for cygwin).
42069         Reported by Bruno Haible  <bruno@clisp.org>.
42070
42071 2008-04-28  Bruno Haible  <bruno@clisp.org>
42072
42073         * doc/posix-functions/strdup.texi: Mention mingw problem.
42074
42075 2008-04-27  Bruno Haible  <bruno@clisp.org>
42076
42077         * modules/stat-time-tests (Depends-on): Add sleep.
42078         * tests/test-stat-time.c (force_unlink): New function.
42079         (cleanup): Use it.
42080         (test_mtime): Remove the ctime related tests.
42081         (test_ctime): New function, containing the ctime related tests.
42082         (main): Call test_ctime, except on native Windows platforms.
42083
42084 2008-04-27  Bruno Haible  <bruno@clisp.org>
42085
42086         * lib/rpmatch.c (rpmatch): Add some comments.
42087         Reported by James Youngman <jay@gnu.org>.
42088
42089 2008-04-27  Bruno Haible  <bruno@clisp.org>
42090
42091         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
42092         quiet NaNs.
42093
42094 2008-04-27  Bruno Haible  <bruno@clisp.org>
42095
42096         Make test-yesno.sh work on mingw.
42097         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
42098         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
42099         (main): Set stdin to binary mode.
42100         * modules/yesno-tests (Depends-on): Add binary-io.
42101
42102 2008-04-27  Bruno Haible  <bruno@clisp.org>
42103
42104         Fix 'isfinite' on x86, x86_64, ia64 platforms.
42105         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
42106         argument that lie outside the IEEE 854 domain.
42107         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
42108         (gl_ISFINITE): Use it.
42109         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
42110
42111 2008-04-27  Bruno Haible  <bruno@clisp.org>
42112
42113         Allow local renaming in config.h.
42114         * lib/memrchr.c (memrchr): Don't undefine outside libc.
42115
42116 2008-04-27  Bruno Haible  <bruno@clisp.org>
42117
42118         * lib/memchr.c (__memchr): Change type of 'i'.
42119         * lib/memchr2.c (memchr2): Likewise.
42120
42121 2008-04-26  Eric Blake  <ebb9@byu.net>
42122         and Bruno Haible  <bruno@clisp.org>
42123
42124         Optimize and test memrchr.
42125         * modules/memrchr (Depends-on): Add intprops.
42126         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
42127         * modules/memrchr-tests: New file.
42128         * tests/test-memrchr.c: New file.
42129
42130 2008-04-26  Bruno Haible  <bruno@clisp.org>
42131
42132         Add tentative support for DragonFly BSD.
42133         * lib/stdio-impl.h: Add macros for DragonFly BSD.
42134         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
42135         fp.
42136         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42137         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
42138         * lib/fpurge.c (fpurge): Likewise.
42139         * lib/freadable.c (freaadable): Likewise.
42140         * lib/freadahead.c (freadahead): Likewise.
42141         * lib/freading.c (freading): Likewise.
42142         * lib/freadptr.c (freadptr): Likewise.
42143         * lib/freadseek.c (freadptrinc): Likewise.
42144         * lib/fseeko.c (fseeko): Likewise.
42145         * lib/fseterr.c (fseterr): Likewise.
42146         * lib/fwritable.c (fwritable): Likewise.
42147         * lib/fwriting.c (fwriting): Likewise.
42148
42149 2008-04-26  Bruno Haible  <bruno@clisp.org>
42150
42151         * lib/stdio-impl.h: New file.
42152         * lib/fbufmode.c: Include stdio-impl.h.
42153         (fbufmode): Use fp_, remove redundant #defines.
42154         * lib/fflush.c: Include stdio-impl.h.
42155         (clear_ungetc_buffer): Remove redundant #defines.
42156         * lib/fpurge.c: Include stdio-impl.h.
42157         (fpurge): Remove redundant #defines.
42158         * lib/freadable.c: Include stdio-impl.h.
42159         (freadable): Remove redundant #defines.
42160         * lib/freadahead.c: Include stdio-impl.h.
42161         (freadahead): Remove redundant #defines.
42162         * lib/freading.c: Include stdio-impl.h.
42163         (freading): Remove redundant #defines.
42164         * lib/freadptr.c: Include stdio-impl.h.
42165         (freadptr): Remove redundant #defines.
42166         * lib/freadseek.c: Include stdio-impl.h.
42167         (freadptrinc): Remove redundant #defines.
42168         * lib/fseeko.c: Include stdio-impl.h.
42169         (rpl_fseeko): Remove redundant #defines.
42170         * lib/fseterr.c: Include stdio-impl.h.
42171         (fseterr): Remove redundant #defines.
42172         * lib/fwritable.c: Include stdio-impl.h.
42173         (fwritable: Remove redundant #defines.
42174         * lib/fwriting.c: Include stdio-impl.h.
42175         (fwriting): Remove redundant #defines.
42176         * modules/fbufmode (Files): Add lib/stdio-impl.h.
42177         * modules/fflush (Files): Likewise.
42178         * modules/fpurge (Files): Likewise.
42179         * modules/freadable (Files): Likewise.
42180         * modules/freadahead (Files): Likewise.
42181         * modules/freading (Files): Likewise.
42182         * modules/freadptr (Files): Likewise.
42183         * modules/freadseek (Files): Likewise.
42184         * modules/fseeko (Files): Likewise.
42185         * modules/fseterr (Files): Likewise.
42186         * modules/fwritable (Files): Likewise.
42187         * modules/fwriting (Files): Likewise.
42188
42189 2008-04-26  Bruno Haible  <bruno@clisp.org>
42190
42191         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42192         restore_seek_optimization, update_fpos_cache): New functions, extracted
42193         from rpl_fflush.
42194         (rpl_fflush): Use them.
42195         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
42196         (gl_REPLACE_FFLUSH): Use it.
42197
42198 2008-04-26  Bruno Haible  <bruno@clisp.org>
42199
42200         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
42201         on Solaris.
42202         * tests/test-xstrtoimax.sh: Likewise.
42203         * tests/test-xstrtoumax.sh: Likewise.
42204         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42205
42206 2008-04-26  Bruno Haible  <bruno@clisp.org>
42207
42208         * modules/memchr-tests: New file.
42209         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
42210
42211 2008-04-26  Eric Blake  <ebb9@byu.net>
42212             Bruno Haible  <bruno@clisp.org>
42213
42214         * lib/memchr.c: Include intprops.h.
42215         (__memchr): Optimize parallel detection of matching bytes. Rename local
42216         variables. Add explanatory comments.
42217
42218 2008-04-26  Bruno Haible  <bruno@clisp.org>
42219
42220         Fix module 'memchr', broken since 2000-10-28.
42221         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
42222
42223 2008-04-26  Bruno Haible  <bruno@clisp.org>
42224
42225         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
42226         comments.
42227
42228 2008-04-25  Eric Blake  <ebb9@byu.net>
42229
42230         Use native fstatat on cygwin 1.7.0.
42231         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
42232         first.
42233
42234 2008-04-23  Eric Blake  <ebb9@byu.net>
42235
42236         Improve memchr2 performance.
42237         * lib/memchr2.c (memchr2): Further optimize parallel detection of
42238         NUL bytes.
42239         * modules/memchr2 (Depends-on): Use intprops.h.
42240
42241 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42242
42243         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
42244         an inline function instead of a CPP macro.  Patch by Ben Pfaff
42245         <blp@cs.stanford.edu>.
42246
42247 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42248
42249         * lib/arpa_inet.in.h: New file.
42250
42251         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
42252         (Makefile.am): Sed in substitute header file.
42253
42254         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
42255         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
42256
42257         * modules/inet_ntop (configure.ac): Use
42258         gl_ARPA_INET_MODULE_INDICATOR.
42259
42260         * modules/inet_pton (configure.ac): Use
42261         gl_ARPA_INET_MODULE_INDICATOR.
42262
42263 2008-04-22  Jim Meyering  <meyering@redhat.com>
42264
42265         * modules/verify (License): Re-license as LGPLv2+.
42266
42267 2008-04-22  Simon Josefsson  <simon@josefsson.org>
42268
42269         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
42270         parameter to void* as per POSIX standard (MinGW uses char*).
42271
42272 2008-04-21  Bruno Haible  <bruno@clisp.org>
42273
42274         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42275         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42276         Define to replacements if REPLACE_ISWCNTRL is 1.
42277         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
42278         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
42279         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
42280         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
42281         what it fixes.
42282         * doc/posix-functions/iswalpha.texi: Likewise.
42283         * doc/posix-functions/iswblank.texi: Likewise.
42284         * doc/posix-functions/iswcntrl.texi: Likewise.
42285         * doc/posix-functions/iswdigit.texi: Likewise.
42286         * doc/posix-functions/iswgraph.texi: Likewise.
42287         * doc/posix-functions/iswlower.texi: Likewise.
42288         * doc/posix-functions/iswprint.texi: Likewise.
42289         * doc/posix-functions/iswpunct.texi: Likewise.
42290         * doc/posix-functions/iswspace.texi: Likewise.
42291         * doc/posix-functions/iswupper.texi: Likewise.
42292         * doc/posix-functions/iswxdigit.texi: Likewise.
42293         Reported by Alain Guibert.
42294
42295 2008-04-21  Bruno Haible  <bruno@clisp.org>
42296
42297         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
42298         Patch by Alain Guibert.
42299
42300 2008-04-21  Bruno Haible  <bruno@clisp.org>
42301
42302         Fix test failures on mingw.
42303         * tests/test-xstrtol.c (print_no_progname): New function.
42304         (main): Install it in error_print_progname hook.
42305         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
42306         * tests/test-xstrtoimax.sh: Likewise.
42307         * tests/test-xstrtoumax.sh: Likewise.
42308
42309 2008-04-21  Bruno Haible  <bruno@clisp.org>
42310
42311         Fix test failure on mingw.
42312         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
42313
42314 2008-04-21  Bruno Haible  <bruno@clisp.org>
42315
42316         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
42317         Actually assign a value.
42318
42319 2008-04-20  Bruno Haible  <bruno@clisp.org>
42320
42321         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
42322         take 2.
42323         * lib/canonicalize.c (canonicalize_file_name): Elide if the
42324         'canonicalize-lgpl' module is also used.
42325         * lib/canonicalize-lgpl.c: Undo last change.
42326         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
42327
42328 2008-04-20  Bruno Haible  <bruno@clisp.org>
42329
42330         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
42331         config.h. Provide _mkdir based fallback for mingw.
42332         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
42333         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
42334         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
42335         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
42336         rather than defining mkdir in config.h.
42337         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
42338         (gl_SYS_STAT_H_DEFAULTS): New macro.
42339         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
42340         HAVE_IO_H any more.
42341         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
42342         HAVE_DECL_MKDIR and HAVE_IO_H.
42343
42344 2008-04-20  Bruno Haible  <bruno@clisp.org>
42345
42346         * lib/isapipe.c: Port to native Windows platforms.
42347
42348 2008-04-20  Bruno Haible  <bruno@clisp.org>
42349
42350         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
42351
42352 2008-04-21  Eric Blake  <ebb9@byu.net>
42353
42354         Work around preprocessors that don't handle UINTMAX_MAX.
42355         * lib/memchr2.c (memchr2): Avoid embedded #if.
42356         Reported by Alain Guibert, fix suggested by Bruno Haible.
42357
42358 2008-04-21  Simon Josefsson  <simon@josefsson.org>
42359
42360         * doc/posix-functions/strftime.texi (strftime): Explain better
42361         Windows incompatibility.  Suggested by Micah Cowan
42362         <micah@cowan.name>.
42363
42364 2008-04-20  Bruno Haible  <bruno@clisp.org>
42365
42366         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
42367         unistr/u8-mblen.
42368
42369 2008-04-20  Bruno Haible  <bruno@clisp.org>
42370
42371         Fix test failure on platforms with non-GNU iconv.
42372         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
42373         (U_TO_U8): Use it, rather than u16_to_u8.
42374         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
42375         units at the end of the input string.
42376         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
42377
42378 2008-04-20  Bruno Haible  <bruno@clisp.org>
42379
42380         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
42381         when the resulting length is 0.
42382         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
42383
42384 2008-04-20  Bruno Haible  <bruno@clisp.org>
42385
42386         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
42387         works.
42388         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
42389
42390 2008-04-20  Bruno Haible  <bruno@clisp.org>
42391
42392         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
42393         * modules/tsearch-tests (configure.ac): Test for initstate function.
42394
42395 2008-04-20  Bruno Haible  <bruno@clisp.org>
42396
42397         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
42398         for nlink_t if missing.
42399         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
42400
42401 2008-04-19  Bruno Haible  <bruno@clisp.org>
42402
42403         Work around snprintf bug on Linux libc5.
42404         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
42405         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42406         gl_SNPRINTF_SIZE1.
42407         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42408         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
42409         that test failed.
42410         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
42411         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
42412         * modules/snprintf (Files): Add m4/printf.m4.
42413         * modules/vsnprintf (Files): Likewise.
42414         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
42415         * doc/posix-functions/vsnprintf.texi: Likewise.
42416
42417 2008-04-19  Bruno Haible  <bruno@clisp.org>
42418
42419         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
42420         from 0.0058 to less than 10^-7.
42421
42422 2008-04-19  Bruno Haible  <bruno@clisp.org>
42423
42424         Fix rounding when a precision is given.
42425         * lib/vasnprintf.c (is_borderline): New function.
42426         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
42427         9...9x.
42428         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
42429         %e, %g.
42430         * tests/test-vasprintf-posix.c (test_function): Likewise.
42431         * tests/test-snprintf-posix.h (test_function): Likewise.
42432         * tests/test-sprintf-posix.h (test_function): Likewise.
42433         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
42434         * tests/test-printf-posix.h (test_function): Likewise.
42435         * tests/test-printf-posix.output: Update.
42436         Reported by John Darrington <john@darrington.wattle.id.au> via
42437         Ben Pfaff <blp@cs.stanford.edu>.
42438
42439 2008-04-18  Simon Josefsson  <simon@josefsson.org>
42440
42441         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
42442         Suggested by Bruno Haible <bruno@clisp.org>.
42443
42444 2008-04-17  Bruno Haible  <bruno@clisp.org>
42445
42446         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
42447         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
42448         implementation.
42449         Patch by Bruce Merry <bmerry@gmail.com>.
42450
42451 2008-04-17  Simon Josefsson  <simon@josefsson.org>
42452
42453         * doc/posix-functions/strftime.texi (strftime): Mention that %e
42454         doesn't work under Windows.
42455
42456 2008-04-16  Bruno Haible  <bruno@clisp.org>
42457
42458         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
42459         New macros.
42460         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
42461         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
42462         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
42463         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
42464         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
42465         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
42466         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
42467         macros.
42468         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
42469         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
42470         Northern Sotho, Uighur.
42471
42472 2008-04-16  Bruno Haible  <bruno@clisp.org>
42473
42474         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
42475         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
42476         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
42477         Reported by Daniel Bergström <daniel@octocode.com>.
42478
42479 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
42480             Bruno Haible  <bruno@clisp.org>
42481
42482         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
42483         function.
42484         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
42485         New functions, mostly extracted from gl_locale_name_default.
42486         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
42487
42488 2008-04-16  Eric Blake  <ebb9@byu.net>
42489
42490         Adjust strtod detection to catch glibc 2.7 bug.
42491         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
42492         Reported by John Gatewood Ham.
42493
42494 2008-04-16  Bruno Haible  <bruno@clisp.org>
42495
42496         Add tentative support for Linux libc5.
42497         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
42498         * lib/fpurge.c (fpurge): Likewise.
42499         * lib/freadable.c (freadable): Likewise.
42500         * lib/freadahead.c (freadahead): Likewise.
42501         * lib/freading.c (freading): Likewise.
42502         * lib/freadptr.c (freadptr): Likewise.
42503         * lib/freadseek.c (freadptrinc): Likewise.
42504         * lib/fseeko.c (rpl_fseeko): Likewise.
42505         * lib/fseterr.c (fseterr): Likewise.
42506         * lib/fwritable.c (fwritable): Likewise.
42507         * lib/fwriting.c (fwriting): Likewise.
42508         Reported by Alain Guibert <alguibert+bts@free.fr>.
42509
42510 2008-04-15  Bruno Haible  <bruno@clisp.org>
42511
42512         * modules/mathl (configure.ac): Define module indicator.
42513
42514 2008-04-15  Bruno Haible  <bruno@clisp.org>
42515
42516         * lib/logl.c (logl): Remove unused variables.
42517
42518 2008-04-15  Bruno Haible  <bruno@clisp.org>
42519
42520         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
42521         fails.
42522
42523 2008-04-15  Bruno Haible  <bruno@clisp.org>
42524
42525         * lib/trim.c (trim2): Fix argument of isspace() macro.
42526
42527 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
42528
42529         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
42530         to 0.
42531         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
42532
42533 2008-04-14  Bruno Haible  <bruno@clisp.org>
42534
42535         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
42536         AC_LANG_PROGRAM argument.
42537         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
42538         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
42539         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42540         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42541         * m4/math_h.m4 (gl_MATH_H): Likewise.
42542         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42543         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42544         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42545         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
42546         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42547         * m4/regex.m4 (gl_REGEX): Likewise.
42548         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
42549         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
42550         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42551         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
42552         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42553         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42554         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42555         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42556
42557 2008-04-14  Jim Meyering  <meyering@redhat.com>
42558
42559         test-strtod: fix typos: s/abs/fabs/
42560         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
42561
42562 2008-04-13  Bruno Haible  <bruno@clisp.org>
42563
42564         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
42565         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
42566         module is also used and while not building the reloc-wrapper.
42567
42568 2008-04-13  Bruno Haible  <bruno@clisp.org>
42569
42570         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
42571
42572 2008-04-13  Bruno Haible  <bruno@clisp.org>
42573
42574         Fix AIX compilation failure introduced on 2008-04-02.
42575         * tests/test-frexp.c (exp): Undefine before redefining.
42576         * tests/test-frexpl.c (exp): Likewise.
42577
42578 2008-04-13  Bruno Haible  <bruno@clisp.org>
42579
42580         Work around a HP-UX stdio bug.
42581         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
42582         * tests/test-ftello.c (main): Likewise.
42583         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
42584         * doc/posix-functions/ftello.texi: Likewise.
42585
42586 2008-04-13  Bruno Haible  <bruno@clisp.org>
42587
42588         Make test-signbit pass on HP-UX/hppa.
42589         * tests/test-signbit.c (minus_zerol): New variable.
42590         (test_signbitl): Use it.
42591
42592 2008-04-13  Bruno Haible  <bruno@clisp.org>
42593
42594         Make truncl work on OSF/1 4.0.
42595         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
42596         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42597         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
42599         HAVE_DECL_TRUNCL.
42600         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
42601         HAVE_DECL_TRUNCL.
42602         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
42603
42604 2008-04-13  Bruno Haible  <bruno@clisp.org>
42605
42606         * lib/unictype.h: Remove trailing comma from enumeration definitions.
42607
42608 2008-04-13  Bruno Haible  <bruno@clisp.org>
42609
42610         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
42611         expression, so as to avoid HP-UX 11 cc compiler bug.
42612
42613 2008-04-13  Bruno Haible  <bruno@clisp.org>
42614
42615         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
42616
42617 2008-04-13  Bruno Haible  <bruno@clisp.org>
42618
42619         * lib/git-merge-changelog.c: Remove empty declaration outside of
42620         functions.
42621
42622 2008-04-13  Bruno Haible  <bruno@clisp.org>
42623
42624         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
42625
42626 2008-04-13  Bruno Haible  <bruno@clisp.org>
42627
42628         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
42629         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
42630         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
42631         also if it exists but lacks definitions of the SHUT_* macros.
42632         * modules/sys_socket (Description): Update.
42633         Reported by Elbert Pol <e.pol@chello.nl>.
42634
42635 2008-04-13  Bruno Haible  <bruno@clisp.org>
42636
42637         * lib/localcharset.c (OS2): Don't redefine if already defined.
42638         Reported by Elbert Pol <e.pol@chello.nl>.
42639
42640 2008-04-13  Bruno Haible  <bruno@clisp.org>
42641
42642         * lib/binary-io.h [__EMX__]: Include <io.h>.
42643         Reported by Elbert Pol <e.pol@chello.nl>.
42644
42645 2008-04-12  Bruno Haible  <bruno@clisp.org>
42646
42647         * lib/fpucw.h: Enable the definitions also for x86_64.
42648         Needed for NetBSD/x86_64.
42649         Reported by Thomas Klausner <tk@giga.or.at>.
42650
42651 2008-04-12  Bruno Haible  <bruno@clisp.org>
42652
42653         * tests/test-strtod.c: Include isnand.h.
42654         (main): Use isnand instead of isnan.
42655         Reported by Jim Meyering.
42656
42657 2008-04-12  Bruno Haible  <bruno@clisp.org>
42658
42659         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
42660         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42661
42662 2008-04-12  Jim Meyering  <meyering@redhat.com>
42663
42664         * m4/math_h.m4 (gl_MATH_H): Fix typos.
42665
42666 2008-04-12  Bruno Haible  <bruno@clisp.org>
42667
42668         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
42669         Reported by Elbert Pol <e.pol@chello.nl>.
42670
42671 2008-04-12  Eric Blake  <ebb9@byu.net>
42672
42673         Work around Solaris 10 math.h bug.
42674         * m4/math_h.m4 (gl_MATH_H): Check for bug.
42675         (gl_MATH_H_DEFAULTS): Set up default.
42676         * modules/math (Makefile.am): Replace new indicators.
42677         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
42678         * tests/test-math.c (main): Test this.
42679         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
42680         * doc/posix-headers/math.texi (math.h): Mention bug.
42681         Reported by Nelson H. F. Beebe and Jim Meyering.
42682
42683 2008-04-11  Bruno Haible  <bruno@clisp.org>
42684
42685         Adapt to future versions of Apple GCC.
42686         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
42687         Reported by Peter O'Gorman <peter@pogma.com>.
42688
42689 2008-04-11  Bruno Haible  <bruno@clisp.org>
42690
42691         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
42692
42693 2008-04-11  Bruno Haible  <bruno@clisp.org>
42694
42695         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
42696
42697         * modules/getaddrinfo-tests (Makefile.am): Define
42698         test_getaddrinfo_LDADD.
42699
42700 2008-04-11  Bruno Haible  <bruno@clisp.org>
42701
42702         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
42703         (init): Fix syntax error.
42704         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
42705         is declared.
42706
42707 2008-04-11  Bruno Haible  <bruno@clisp.org>
42708
42709         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
42710         * modules/glob (Depends-on): Add stdbool.
42711
42712 2008-04-11  Bruno Haible  <bruno@clisp.org>
42713
42714         * lib/trim.c: Include <string.h>.
42715
42716 2008-04-11  Eric Blake  <ebb9@byu.net>
42717
42718         Avoid compile failure on OS/2.
42719         * lib/regex_internal.h (internal_function): Disable optimization
42720         on OS/2 (__EMX__), where it caused compiler error.
42721         Reported by Elbert Pol.
42722
42723 2008-04-11  Bruno Haible  <bruno@clisp.org>
42724
42725         Flush the standard error stream before aborting. Needed on mingw.
42726         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
42727         * tests/test-array_list.c (ASSERT): Likewise.
42728         * tests/test-array_oset.c (ASSERT): Likewise.
42729         * tests/test-avltree_list.c (ASSERT): Likewise.
42730         * tests/test-avltree_oset.c (ASSERT): Likewise.
42731         * tests/test-avltreehash_list.c (ASSERT): Likewise.
42732         * tests/test-binary-io.c (ASSERT): Likewise.
42733         * tests/test-byteswap.c (ASSERT): Likewise.
42734         * tests/test-c-ctype.c (ASSERT): Likewise.
42735         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
42736         * tests/test-c-strcasestr.c (ASSERT): Likewise.
42737         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
42738         * tests/test-c-strstr.c (ASSERT): Likewise.
42739         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
42740         * tests/test-canonicalize.c (ASSERT): Likewise.
42741         * tests/test-carray_list.c (ASSERT): Likewise.
42742         * tests/test-ceilf1.c (ASSERT): Likewise.
42743         * tests/test-ceilf2.c (ASSERT): Likewise.
42744         * tests/test-ceill.c (ASSERT): Likewise.
42745         * tests/test-count-one-bits.c (ASSERT): Likewise.
42746         * tests/test-fbufmode.c (ASSERT): Likewise.
42747         * tests/test-fflush2.c (ASSERT): Likewise.
42748         * tests/test-floorf1.c (ASSERT): Likewise.
42749         * tests/test-floorf2.c (ASSERT): Likewise.
42750         * tests/test-floorl.c (ASSERT): Likewise.
42751         * tests/test-fopen.c (ASSERT): Likewise.
42752         * tests/test-fpending.c (ASSERT): Likewise.
42753         * tests/test-fprintf-posix.c (ASSERT): Likewise.
42754         * tests/test-fpurge.c (ASSERT): Likewise.
42755         * tests/test-freadable.c (ASSERT): Likewise.
42756         * tests/test-freadahead.c (ASSERT): Likewise.
42757         * tests/test-freading.c (ASSERT): Likewise.
42758         * tests/test-freadptr.c (ASSERT): Likewise.
42759         * tests/test-freadptr2.c (ASSERT): Likewise.
42760         * tests/test-freadseek.c (ASSERT): Likewise.
42761         * tests/test-freopen.c (ASSERT): Likewise.
42762         * tests/test-frexp.c (ASSERT): Likewise.
42763         * tests/test-frexpl.c (ASSERT): Likewise.
42764         * tests/test-fseek.c (ASSERT): Likewise.
42765         * tests/test-fseeko.c (ASSERT): Likewise.
42766         * tests/test-fstrcmp.c (ASSERT): Likewise.
42767         * tests/test-ftell.c (ASSERT): Likewise.
42768         * tests/test-ftello.c (ASSERT): Likewise.
42769         * tests/test-func.c (ASSERT): Likewise.
42770         * tests/test-fwritable.c (ASSERT): Likewise.
42771         * tests/test-fwriting.c (ASSERT): Likewise.
42772         * tests/test-getdelim.c (ASSERT): Likewise.
42773         * tests/test-getline.c (ASSERT): Likewise.
42774         * tests/test-i-ring.c (ASSERT): Likewise.
42775         * tests/test-iconv-utf.c (ASSERT): Likewise.
42776         * tests/test-iconv.c (ASSERT): Likewise.
42777         * tests/test-isfinite.c (ASSERT): Likewise.
42778         * tests/test-isnand.c (ASSERT): Likewise.
42779         * tests/test-isnanf.c (ASSERT): Likewise.
42780         * tests/test-isnanl.h (ASSERT): Likewise.
42781         * tests/test-ldexpl.c (ASSERT): Likewise.
42782         * tests/test-linked_list.c (ASSERT): Likewise.
42783         * tests/test-linkedhash_list.c (ASSERT): Likewise.
42784         * tests/test-localename.c (ASSERT): Likewise.
42785         * tests/test-lseek.c (ASSERT): Likewise.
42786         * tests/test-mbscasecmp.c (ASSERT): Likewise.
42787         * tests/test-mbscasestr1.c (ASSERT): Likewise.
42788         * tests/test-mbscasestr2.c (ASSERT): Likewise.
42789         * tests/test-mbscasestr3.c (ASSERT): Likewise.
42790         * tests/test-mbscasestr4.c (ASSERT): Likewise.
42791         * tests/test-mbschr.c (ASSERT): Likewise.
42792         * tests/test-mbscspn.c (ASSERT): Likewise.
42793         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
42794         * tests/test-mbspbrk.c (ASSERT): Likewise.
42795         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
42796         * tests/test-mbsrchr.c (ASSERT): Likewise.
42797         * tests/test-mbsspn.c (ASSERT): Likewise.
42798         * tests/test-mbsstr1.c (ASSERT): Likewise.
42799         * tests/test-mbsstr2.c (ASSERT): Likewise.
42800         * tests/test-mbsstr3.c (ASSERT): Likewise.
42801         * tests/test-memchr2.c (ASSERT): Likewise.
42802         * tests/test-memmem.c (ASSERT): Likewise.
42803         * tests/test-open.c (ASSERT): Likewise.
42804         * tests/test-printf-frexp.c (ASSERT): Likewise.
42805         * tests/test-printf-frexpl.c (ASSERT): Likewise.
42806         * tests/test-printf-posix.c (ASSERT): Likewise.
42807         * tests/test-quotearg.c (ASSERT): Likewise.
42808         * tests/test-rbtree_list.c (ASSERT): Likewise.
42809         * tests/test-rbtree_oset.c (ASSERT): Likewise.
42810         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
42811         * tests/test-round1.c (ASSERT): Likewise.
42812         * tests/test-roundf1.c (ASSERT): Likewise.
42813         * tests/test-roundl.c (ASSERT): Likewise.
42814         * tests/test-signbit.c (ASSERT): Likewise.
42815         * tests/test-sleep.c (ASSERT): Likewise.
42816         * tests/test-snprintf-posix.c (ASSERT): Likewise.
42817         * tests/test-snprintf.c (ASSERT): Likewise.
42818         * tests/test-sprintf-posix.c (ASSERT): Likewise.
42819         * tests/test-stat-time.c (ASSERT): Likewise.
42820         * tests/test-strcasestr.c (ASSERT): Likewise.
42821         * tests/test-strerror.c (ASSERT): Likewise.
42822         * tests/test-striconv.c (ASSERT): Likewise.
42823         * tests/test-striconveh.c (ASSERT): Likewise.
42824         * tests/test-striconveha.c (ASSERT): Likewise.
42825         * tests/test-strsignal.c (ASSERT): Likewise.
42826         * tests/test-strstr.c (ASSERT): Likewise.
42827         * tests/test-strtod.c (ASSERT): Likewise.
42828         * tests/test-trunc1.c (ASSERT): Likewise.
42829         * tests/test-trunc2.c (ASSERT): Likewise.
42830         * tests/test-truncf1.c (ASSERT): Likewise.
42831         * tests/test-truncf2.c (ASSERT): Likewise.
42832         * tests/test-truncl.c (ASSERT): Likewise.
42833         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
42834         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
42835         * tests/test-vasnprintf.c (ASSERT): Likewise.
42836         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
42837         * tests/test-vasprintf.c (ASSERT): Likewise.
42838         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
42839         * tests/test-vprintf-posix.c (ASSERT): Likewise.
42840         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
42841         * tests/test-vsnprintf.c (ASSERT): Likewise.
42842         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
42843         * tests/test-wcwidth.c (ASSERT): Likewise.
42844         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
42845         * tests/test-xprintf-posix.c (ASSERT): Likewise.
42846         * tests/test-xvasprintf.c (ASSERT): Likewise.
42847         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
42848         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
42849         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
42850         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
42851         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
42852         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
42853         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
42854         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
42855         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
42856         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
42857         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
42858         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
42859         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
42860         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
42861         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
42862         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
42863         * tests/unictype/test-block_list.c (ASSERT): Likewise.
42864         * tests/unictype/test-block_of.c (ASSERT): Likewise.
42865         * tests/unictype/test-block_test.c (ASSERT): Likewise.
42866         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
42867         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
42868         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
42869         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
42870         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
42871         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
42872         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
42873         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
42874         * tests/unictype/test-combining.c (ASSERT): Likewise.
42875         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
42876         * tests/unictype/test-digit.c (ASSERT): Likewise.
42877         * tests/unictype/test-mirror.c (ASSERT): Likewise.
42878         * tests/unictype/test-numeric.c (ASSERT): Likewise.
42879         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
42880         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
42881         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
42882         * tests/unictype/test-scripts.c (ASSERT): Likewise.
42883         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
42884         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
42885         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
42886         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
42887         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
42888         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
42889         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
42890         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
42891         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
42892         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
42893         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
42894         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
42895         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
42896         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
42897         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
42898         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
42899         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
42900         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
42901         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
42902         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
42903         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
42904         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
42905         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
42906         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
42907         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
42908         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
42909         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
42910         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
42911         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
42912         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
42913         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
42914         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
42915         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
42916         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
42917         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
42918         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
42919         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
42920         Reported by Eric Blake.
42921
42922 2008-04-11  Bruno Haible  <bruno@clisp.org>
42923
42924         * lib/wchar.in.h: Tweak comment.
42925
42926 2008-04-11  Bruno Haible  <bruno@clisp.org>
42927
42928         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
42929         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
42930         gl_COMMON.
42931         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
42932
42933 2008-04-11  Bruno Haible  <bruno@clisp.org>
42934
42935         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
42936
42937 2008-04-11  Simon Josefsson  <simon@josefsson.org>
42938
42939         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
42940         of attempting to use non-existing /dev/*random.  Based on patch
42941         from Adam Strzelecki <ono@java.pl> in
42942         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
42943
42944 2008-04-08  Bruno Haible  <bruno@clisp.org>
42945
42946         Add tentative support for emx+gcc.
42947         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
42948         * lib/fpurge.c (fpurge): Likewise.
42949         * lib/freadable.c (freadable): Likewise.
42950         * lib/freadahead.c (freadahead): Likewise.
42951         * lib/freading.c (freading): Likewise.
42952         * lib/freadptr.c (freadptr): Likewise.
42953         * lib/freadseek.c (freadptrinc): Likewise.
42954         * lib/fseeko.c (rpl_fseeko): Likewise.
42955         * lib/fseterr.c (fseterr): Likewise.
42956         * lib/fwritable.c (fwritable): Likewise.
42957         * lib/fwriting.c (fwriting): Likewise.
42958         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
42959
42960 2008-04-09  Eric Blake  <ebb9@byu.net>
42961
42962         Avoid some autoconf warnings.
42963         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
42964         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
42965         * m4/afs.m4 (gl_AFS): Likewise.
42966         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
42967         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
42968         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42969         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
42970         (gl_INTEGER_TYPE_SUFFIX): Likewise.
42971         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
42972         (AC_CHECK_DECLS_ONCE): Likewise.
42973         Rename file...
42974         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
42975         gnulib-tool requires autoconf 2.59 or better.
42976         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
42977
42978 2008-04-08  Eric Blake  <ebb9@byu.net>
42979
42980         Use 'git describe --match' if present (added in git 1.5.5).
42981         * build-aux/git-version-gen: Limit result to tags that match 'v*'
42982         if possible.
42983
42984 2008-04-08  Bruno Haible  <bruno@clisp.org>
42985
42986         Add tentative support for OpenServer.
42987         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
42988         _ptr, _cnt.
42989         * lib/fpurge.c (fpurge): Likewise.
42990         * lib/freadable.c (freadable): Likewise.
42991         * lib/freadahead.c (freadahead): Likewise.
42992         * lib/freading.c (freading): Likewise.
42993         * lib/freadptr.c (freadptr): Likewise.
42994         * lib/freadseek.c (freadptrinc): Likewise.
42995         * lib/fseeko.c (rpl_fseeko): Likewise.
42996         * lib/fseterr.c (fseterr): Likewise.
42997         * lib/fwritable.c (fwritable): Likewise.
42998         * lib/fwriting.c (fwriting): Likewise.
42999         Reported by Roger Cornelius <rac@tenzing.org> and
43000         Brian K. White <brian@aljex.com>.
43001
43002 2008-04-06  Jim Meyering  <meyering@redhat.com>
43003
43004         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
43005
43006 2008-04-06  Bruno Haible  <bruno@clisp.org>
43007
43008         Avoid possible error with non-ASCII bytes in UTF-8 locales.
43009         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
43010         * tests/test-printf-posix.sh: Likewise.
43011         * tests/test-vfprintf-posix.sh: Likewise.
43012         * tests/test-vprintf-posix.sh: Likewise.
43013         * tests/test-xprintf-posix.sh: Likewise.
43014
43015 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43016
43017         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
43018         hide error from 'ls', needed on OS/2.
43019         Report by Elbert Pol <elbert.pol@gmail.com>.
43020
43021 2008-04-04  Eric Blake  <ebb9@byu.net>
43022
43023         Make test-fseeko.c failures meaningful.
43024         * tests/test-fseeko.c: Print line number on failure.
43025         * tests/test-fseek.c: Likewise.
43026         Reported by Nelson H. F. Beebe.
43027
43028         Improve strtod bug detection check.
43029         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
43030         required for Solaris 10.
43031         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
43032
43033 2008-04-04  Bruno Haible  <bruno@clisp.org>
43034
43035         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
43036         by m4/setenv.m4.
43037
43038 2008-04-03  Eric Blake  <ebb9@byu.net>
43039
43040         Ensure sane .version contents.
43041         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
43042         version string.
43043         * build-aux/git-version-gen: Improve documentation.
43044
43045         Make GNU make output nicer.
43046         * top/GNUmakefile [!_have-Makefile]: Add dependency on
43047         MAKECMDGOALS to enforce message for all command line targets.  Set
43048         srcdir for use in maint.mk.
43049
43050         Another maintainer tweak.
43051         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
43052         a target that regenerates version.
43053
43054 2008-04-03  Jim Meyering  <meyering@redhat.com>
43055
43056         vc-list-files: don't cause coreutils "make po-check" failure
43057         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
43058
43059 2008-04-03  Eric Blake  <ebb9@byu.net>
43060
43061         Allow VPATH usage of vc-list-files.
43062         * build-aux/vc-list-files (scriptversion): Add timestamp.
43063         (options): Add --help, --version, -C.
43064         (CVS): Support installed cvsu.
43065
43066 2008-04-02  Bruno Haible  <bruno@clisp.org>
43067
43068         Avoid some "statement with no effect" warnings from gcc.
43069         * tests/test-wctype.c (main): Explicitly ignore unused values.
43070         Reported by Jim Meyering.
43071
43072 2008-04-02  Jim Meyering  <meyering@redhat.com>
43073
43074         Avoid some warnings from "gcc -Wshadow".
43075         * tests/test-frexp.c (exp): Define to a different identifier.
43076         * tests/test-frexpl.c (exp): Likewise.
43077
43078 2008-04-03  Jim Meyering  <meyering@redhat.com>
43079
43080         bootstrap: remove dangling *.[ch] symlinks from lib
43081         * build-aux/bootstrap [dangling symlink removal]: Move find's
43082         -depth option to precede all others, to avoid a warning.
43083         Remove *.[ch] files too, and from "$source_base" (usually lib/).
43084
43085 2008-04-02  Bruno Haible  <bruno@clisp.org>
43086
43087         Avoid some warnings from "gcc -Wshadow".
43088         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
43089         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
43090         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
43091         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
43092         Reported by Jim Meyering.
43093
43094 2008-04-01  Bruno Haible  <bruno@clisp.org>
43095
43096         Fix test to work on IRIX 6.5 with cc.
43097         * tests/test-math.c (numeric_equal): New function.
43098         (main): Use it.
43099
43100 2008-04-01  Bruno Haible  <bruno@clisp.org>
43101
43102         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
43103
43104 2008-04-01  Bruno Haible  <bruno@clisp.org>
43105
43106         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
43107         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43108         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
43109         (Depends-on): Remove math.
43110
43111         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
43112         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43113         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
43114         (Depends-on): Remove math.
43115
43116         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
43117         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43118         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
43119         (Depends-on): Remove math.
43120         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
43121         (Depends-on): Remove math.
43122
43123         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
43124         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43125         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
43126         (Depends-on): Remove math.
43127         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
43128         (Depends-on): Remove math.
43129
43130         * tests/test-round1.c: Include nan.h.
43131         (main): Use NaNd instead of NAN.
43132         * modules/round-tests (Files): Add tests/nan.h.
43133
43134         * tests/test-trunc1.c: Include nan.h.
43135         (main): Use NaNd instead of NAN.
43136         * modules/trunc-tests (Files): Add tests/nan.h.
43137
43138         * tests/test-roundf1.c: Include nan.h.
43139         (main): Use NaNf instead of NAN.
43140         * modules/roundf-tests (Files): Add tests/nan.h.
43141
43142         * tests/test-truncf1.c: Include nan.h.
43143         (main): Use NaNf instead of NAN.
43144         * modules/truncf-tests (Files): Add tests/nan.h.
43145
43146         * tests/test-ceilf1.c: Include nan.h.
43147         (main): Use NaNf instead of NAN.
43148         * modules/ceilf-tests (Files): Add tests/nan.h.
43149
43150         * tests/test-floorf1.c: Include nan.h.
43151         (main): Use NaNf instead of NAN.
43152         * modules/floorf-tests (Files): Add tests/nan.h.
43153
43154         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
43155         (main): Use NaNf instead of NAN.
43156         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
43157
43158         * tests/test-isnand.c: Include nan.h instead of <math.h>.
43159         (main): Use NaNd instead of NAN.
43160         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
43161
43162         * tests/test-frexp.c: Include nan.h.
43163         (main): Use NaNd instead of NAN.
43164         * modules/frexp-tests (Files): Add tests/nan.h.
43165
43166         * lib/isnan.c: Don't include <math.h>.
43167         (FUNC): Don't use NAN macro.
43168         * modules/isnand-nolibm (Depends-on): Remove math.
43169         * modules/isnanf-nolibm (Depends-on): Remove math.
43170         * modules/isnanl (Depends-on): Remove math.
43171         * modules/isnanl-nolibm (Depends-on): Remove math.
43172
43173         * tests/nan.h: New file.
43174
43175 2008-04-01  Eric Blake  <ebb9@byu.net>
43176
43177         Fix typos.
43178         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
43179         values to be the right type.
43180
43181         For now, cater to gnulib strtod inaccuracies.
43182         * tests/test-strtod.c (main): Allow 1-ulp error on expected
43183         fractional results.  While not as nice from a QoI perspective, it
43184         is a quicker patch than correctly implementing decimal to binary
43185         rounding.
43186
43187 2008-03-31  Eric Blake  <ebb9@byu.net>
43188
43189         Guarantee a definition of NAN.
43190         * lib/math.in.h (NAN): Define if missing.
43191         * tests/test-math.c (main): Test it.
43192         * doc/posix-headers/math.texi (math.h): Document this.
43193         * lib/isnan.c (rpl_isnand): Use it.
43194         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
43195         * tests/test-floorf1.c (NaN): Likewise.
43196         * tests/test-frexp.c (NaN): Likewise.
43197         * tests/test-isnand.c (NaN): Likewise.
43198         * tests/test-isnanf.c (NaN): Likewise.
43199         * tests/test-round1.c (NaN): Likewise.
43200         * tests/test-roundf1.c (NaN): Likewise.
43201         * tests/test-snprintf-posix.h (NaN): Likewise.
43202         * tests/test-sprintf-posix.h (NaN): Likewise.
43203         * tests/test-trunc1.c (NaN): Likewise.
43204         * tests/test-truncf1.c (NaN): Likewise.
43205         * tests/test-vasnprintf-posix.c (NaN): Likewise.
43206         * tests/test-vasprintf-posix.c (NaN): Likewise.
43207         * modules/isnand-nolibm (Depends-on): Add math.
43208         * modules/isnanf-nolibm (Depends-on): Likewise.
43209         * modules/isnanl (Depends-on): Likewise.
43210         * modules/isnanl-nolibm (Depends-on): Likewise.
43211         * modules/snprintf-posix-tests (Depends-on): Likewise.
43212         * modules/sprintf-posix-tests (Depends-on): Likewise.
43213         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
43214         * modules/vsprintf-posix-tests (Depends-on): Likewise.
43215         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
43216         * modules/vasprintf-posix-tests (Depends-on): Likewise.
43217
43218 2008-03-31  Bruno Haible  <bruno@clisp.org>
43219
43220         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
43221         * doc/posix-functions/strtod.texi: Likewise.
43222
43223 2008-03-31  Bruno Haible  <bruno@clisp.org>
43224
43225         * tests/test-strtod.c (main): Don't use C99 syntax.
43226
43227 2008-03-31  Bruno Haible  <bruno@clisp.org>
43228
43229         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
43230         Reported by Eric Blake.
43231
43232 2008-03-31  Jim Meyering  <meyering@redhat.com>
43233
43234         Don't compare actual signbit return values.
43235         * tests/test-strtod.c (main): Rather, compare only their
43236         zero/non-zero nature.
43237
43238 2008-03-31  Eric Blake  <ebb9@byu.net>
43239
43240         More strtod documentation.
43241         * doc/posix-functions/strtod.texi (strtod): Interpret more test
43242         failures as distinct bugs.
43243
43244 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43245
43246         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
43247         Problem reported by Erik Benada in
43248         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
43249
43250 2008-03-30  Bruno Haible  <bruno@clisp.org>
43251
43252         * tests/test-strtod.c: Add comments about which assertion fails on which
43253         platform.
43254         * doc/posix-functions/strtod.texi: Add info about many more platforms.
43255
43256 2008-03-30  Eric Blake  <ebb9@byu.net>
43257
43258         Test signbit behavior on zeros.
43259         * tests/test-signbit.c (test_signbitf): Add tests for zero.
43260         (test_signbitd, test_signbitl): Likewise.
43261
43262         More strtod touchups.
43263         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
43264         sign of negative underflow, for now.  Use .5, not .1.
43265         * doc/posix-functions/strtod.texi (strtod): Mention these
43266         limitations.
43267         Reported by Jim Meyering.
43268
43269 2008-03-30  Bruno Haible  <bruno@clisp.org>
43270
43271         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
43272         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
43273
43274 2008-03-30  Bruno Haible  <bruno@clisp.org>
43275
43276         Avoid failure when attempting to return empty iconv results on some
43277         platforms.
43278         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
43279         allocation, don't report ENOMEM when the resulting string is empty.
43280
43281 2008-03-30  Bruno Haible  <bruno@clisp.org>
43282
43283         Fix buffer overrun.
43284         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
43285         Don't consider the width for tmp_length. Check count against tmp_length
43286         before doing the padding. Ensure enough allocation during padding.
43287
43288 2008-03-30  Eric Blake  <ebb9@byu.net>
43289
43290         strtod touchups.
43291         * lib/strtod.c (strtod): Avoid compiler warnings.
43292         Reported by Jim Meyering.
43293
43294 2008-03-30  Bruno Haible  <bruno@clisp.org>
43295
43296         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
43297         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
43298         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
43299         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
43300         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
43301         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
43302         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
43303         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
43304
43305         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
43306         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
43307         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
43308         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
43309         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
43310         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
43311         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
43312         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
43313
43314         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
43315         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
43316         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
43317         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
43318         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
43319         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
43320         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
43321         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
43322
43323         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
43324         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
43325
43326         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
43327         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
43328
43329         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
43330         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
43331
43332         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
43333         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
43334         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
43335
43336         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
43337         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
43338         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
43339
43340         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
43341         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
43342         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
43343
43344         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
43345         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
43346         * modules/vasprintf (Depends-on): Add EOVERFLOW.
43347
43348         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
43349         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
43350         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
43351         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
43352         (Depends-on): Add EOVERFLOW.
43353         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
43354         (Depends-on): Add EOVERFLOW.
43355         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43356         (Depends-on): Add EOVERFLOW.
43357         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43358         (Depends-on): Add EOVERFLOW.
43359         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43360         (Depends-on): Add EOVERFLOW.
43361         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43362         (Depends-on): Add EOVERFLOW.
43363         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43364         (Depends-on): Add EOVERFLOW.
43365         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43366         (Depends-on): Add EOVERFLOW.
43367
43368         * lib/sprintf.c (EOVERFLOW): Remove fallback.
43369         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
43370         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
43371
43372         * lib/snprintf.c (EOVERFLOW): Remove fallback.
43373         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
43374         * modules/snprintf (Depends-on): Add EOVERFLOW.
43375
43376         * lib/poll.c (EOVERFLOW): Remove fallback.
43377         * modules/poll (Depends-on): Add EOVERFLOW.
43378
43379         * lib/getugroups.c (EOVERFLOW): Remove fallback.
43380         * modules/getugroups (Depends-on): Add EOVERFLOW.
43381
43382         * lib/getdelim.c (EOVERFLOW): Remove fallback.
43383         * modules/getdelim (Depends-on): Add EOVERFLOW.
43384
43385         * lib/ftell.c (EOVERFLOW): Remove fallback.
43386         * modules/ftell (Depends-on): Add EOVERFLOW.
43387
43388         * lib/fprintf.c (EOVERFLOW): Remove fallback.
43389         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
43390         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
43391
43392         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
43393
43394         * modules/EOVERFLOW-tests: New file.
43395         * tests/test-EOVERFLOW.c: New file.
43396
43397         * modules/EOVERFLOW: New file.
43398         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
43399
43400 2008-03-30  Bruno Haible  <bruno@clisp.org>
43401
43402         Fix bug introduced on 2007-06-10.
43403         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
43404         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
43405
43406 2008-03-30  Bruno Haible  <bruno@clisp.org>
43407
43408         Improve freadseek's efficiency after ungetc.
43409         * lib/freadseek.c: Include freadahead.h.
43410         (freadptrinc): New function, extracted from freadseek.
43411         (freadseek): Use it in a loop. Use freadahead to determine the number
43412         of loop iterations.
43413         * modules/freadseek (Depends-on): Add freadahead.
43414         (configure.ac): Require AC_C_INLINE.
43415
43416 2008-03-30  Bruno Haible  <bruno@clisp.org>
43417
43418         * lib/freadseek.c (freadseek): Don't ignore the return value of
43419         freadptr.
43420
43421 2008-03-29  Eric Blake  <ebb9@byu.net>
43422
43423         Add hex float support.
43424         * modules/strtod (Depends-on): Add c-ctype.
43425         (Link): Mention POW_LIB.
43426         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
43427         whitespace between 'e' and exponent.
43428         * tests/test-strtod.c (main): Enable hex float tests.
43429         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
43430         now provides.
43431
43432         Document various strtod bugs, with some fixes.
43433         * doc/posix-functions/strtod.texi (strtod): Document bugs with
43434         "-0x", "inf", "nan", and hex constants.
43435         * doc/posix-functions/atof.texi (atof): Likewise.
43436         * modules/stdlib (Makefile.am): Support strtod.
43437         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43438         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
43439         detect additional strtod bugs.
43440         * lib/stdlib.in.h (rpl_strtod): Add declarations.
43441         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
43442         bool where appropriate.  Parse 'inf' and 'nan'.
43443         * tests/test-strtod.c: New file.
43444         * modules/strtod (Depends-on): Add stdbool, stdlib.
43445         (configure.ac): Turn on module indicator.
43446         * modules/strtod-tests: New module.
43447
43448 2008-03-29  Eric Blake  <ebb9@byu.net>
43449
43450         Fix ftell on mingw.
43451         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
43452         * modules/ftell-tests (Depends-on): Add binary-io.
43453         * modules/ftello-tests (Depends-on): Likewise.
43454         * tests/test-ftell.c (main): Enhance test to cover behavior after
43455         ungetc.  Enforce binary mode.
43456         * tests/test-ftello.c (main): Likewise.
43457
43458         Pass test-freadseek on cygwin.
43459         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
43460         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
43461         ungetc buffer.
43462
43463         * tests/test-fflush2.c (main): Fix typo.
43464
43465 2008-03-29  Bruno Haible  <bruno@clisp.org>
43466
43467         * tests/test-fflush2.c (main): Temporarily disable the contents of
43468         this test.
43469         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
43470         Reported by Eric Blake.
43471
43472 2008-03-28  Simon Josefsson  <simon@josefsson.org>
43473
43474         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
43475         (GC_SHA224_DIGEST_SIZE): Add.
43476
43477         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
43478         (gc_hash_digest_length): Likewise.
43479         (gc_hash_buffer): Likewise.
43480
43481 2008-03-25  Bruno Haible  <bruno@clisp.org>
43482
43483         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
43484         detail which gettext release to use.
43485         Reported by Simon Josefsson.
43486
43487 2008-03-26  Jim Meyering  <meyering@redhat.com>
43488
43489         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
43490         * modules/gnumakefile (clean-GNUmakefile): Also, use
43491         test ... && ... || : syntax rather than if-then ... fi.
43492
43493         gnumakefile: Don't double-quote-expand $(VPATH) value.
43494         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
43495
43496 2008-03-24  Eric Blake  <ebb9@byu.net>
43497
43498         Alter GNUmakefile to install into top directory.
43499         * modules/maintainer-makefile: Split, and add dependency...
43500         * modules/gnumakefile: to this new module.
43501         * build-aux/GNUmakefile: Move...
43502         * top/GNUmakefile: ...here.
43503         * build-aux/maint.mk: Move...
43504         * top/maint.mk: ...here.
43505         * MODULES.html.sh (Support for maintaining...): Document new
43506         module.
43507
43508 2008-03-23  Bruno Haible  <bruno@clisp.org>
43509
43510         * gnulib-tool: New options --vc-files, --no-vc-files.
43511         (func_usage): Document them.
43512         (vc_files): New variable.
43513         (func_import): Consider vc_files.
43514         (func_create_testdir): Set vc_files to empty.
43515         Suggested by Jim Meyering and Karl Berry.
43516
43517 2008-03-23  Bruno Haible  <bruno@clisp.org>
43518
43519         Fix regex compilation error on HP-UX 11.
43520         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
43521         * modules/regex (Files): Add m4/mbstate_t.m4.
43522         Reported by Ton Voon <ton.voon@altinity.com>.
43523
43524 2008-03-23  Bruno Haible  <bruno@clisp.org>
43525
43526         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
43527
43528 2008-03-23  Eric Blake  <ebb9@byu.net>
43529             Bruno Haible  <bruno@clisp.org>
43530
43531         Install files from top/ in the destination directory.
43532         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43533         augmentation also for the files from top/.
43534         (func_import, func_create_testdir): Rewrite file names:
43535         top/filename -> filename.
43536
43537 2008-03-23  Bruno Haible  <bruno@clisp.org>
43538
43539         Tweak "gnulib --version" output.
43540         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
43541
43542 2008-03-23  Bruno Haible  <bruno@clisp.org>
43543
43544         Tweak "gnulib --version" output.
43545         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
43546         rather than contents of ChangeLog, when possible.
43547
43548 2008-03-21  Eric Blake  <ebb9@byu.net>
43549
43550         More --version tweaks.
43551         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
43552         date of last ChangeLog entry.
43553
43554 2008-03-21  Jim Meyering  <meyering@redhat.com>
43555
43556         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
43557
43558 2008-03-20  Eric Blake  <ebb9@byu.net>
43559
43560         VPATH fix.
43561         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
43562
43563 2008-03-20  Simon Josefsson  <simon@josefsson.org>
43564
43565         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
43566         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
43567
43568 2008-03-20  Eric Blake  <ebb9@byu.net>
43569
43570         Sync GNUmakefile with coreutils.
43571         * build-aux/GNUmakefile (have-Makefile): Rename...
43572         (_have-Makefile): ...to this, for namespace consideration.
43573         (GNUmakefile.cfg): Include, if present.
43574         (_autoreconf): Define a default.
43575         (_is-dist-target): New rule for rebuilds to pick up intra-release
43576         version.
43577         (maint-cfg.mk): Rename...
43578         (cfg.mk): ...to this.
43579
43580 2008-03-18  Jim Meyering  <meyering@redhat.com>
43581
43582         New script and module: mktempd
43583         * MODULES.html.sh (maint+release support): Add mktempd.
43584         * build-aux/mktempd: New file.
43585         * modules/mktempd: New file.
43586
43587 2008-03-15  Jim Meyering  <meyering@redhat.com>
43588
43589         Undo last change.
43590         * lib/sha1.c, lib/md5.c: 63 != ~63.
43591         Reported by Andreas Schwab.
43592
43593         sha1.c, md5.c: Hoist a redundant expression.
43594         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
43595         "ctx->buflen" only once, before calling *_process_block.
43596         * lib/md5.c (md5_process_bytes): Likewise.
43597
43598 2008-03-14  Eric Blake  <ebb9@byu.net>
43599
43600         Bump copyright year in files generated by gnulib-tool.
43601         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
43602         gnulib-tool, rather than hard-coding it.
43603
43604         Fix 'gnulib-tool --version' output to work with git.
43605         * gnulib-tool (func_gnulib_dir): New function, extracted from...
43606         (startup): ...here.
43607         (func_version): Use it to invoke git-version-gen, rather than
43608         relying on CVS keyword expansion.  Modernize wording.
43609         (cvsdatestamp, last_checkin_date, version): Kill unused
43610         variables.
43611
43612 2008-03-12  Jim Meyering  <meyering@redhat.com>
43613
43614         Recognize optional cast of the argument to free.
43615         * build-aux/useless-if-before-free: Update regexps.
43616
43617         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
43618
43619 2008-03-11  Bruno Haible  <bruno@clisp.org>
43620
43621         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
43622         by a single package.
43623         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
43624         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
43625         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
43626         Reported by Sam Steingold <sds@gnu.org>.
43627
43628 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43629
43630         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
43631         repositories.
43632
43633 2008-03-11  Bruno Haible  <bruno@clisp.org>
43634
43635         Avoid conflicts between local macro definitions.
43636         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
43637         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
43638
43639 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
43640             Bruno Haible  <bruno@clisp.org>
43641
43642         Make va_copy work with some version of xlc on AIX 5.1.
43643         * lib/stdarg.in.h: New file.
43644         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
43645         On AIX, use a <stdarg.h> file substitute.
43646         * modules/stdarg (Files): Add lib/stdarg.in.h.
43647         (Depends-on): Add include_next.
43648         (Makefile.am): Build a stdarg.h substitute if requested.
43649         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
43650
43651 2008-03-10  Bruno Haible  <bruno@clisp.org>
43652
43653         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
43654         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43655         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43656
43657 2008-03-10  Bruno Haible  <bruno@clisp.org>
43658
43659         * modules/stdlib (Depends-on): Add include_next, remove
43660         absolute-header.
43661
43662 2008-03-09  Bruno Haible  <bruno@clisp.org>
43663
43664         * lib/freadahead.h (freadahead): Document more precisely.
43665         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
43666         the sum of both buffer sizes.
43667         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
43668         * NEWS: Document the change.
43669
43670 2008-03-09  Bruno Haible  <bruno@clisp.org>
43671
43672         Extend freadptr to return also the buffer size.
43673         * lib/freadptr.h (freadptr): Add sizep argument.
43674         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
43675         (freadptr): Add sizep argument. Determine buffer size like freadahead
43676         does.
43677         * tests/test-freadptr.c: Don't include freadahead.h.
43678         (main): Adapt for new calling convention of freadptr.
43679         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
43680         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
43681         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
43682         tests/test-freadptr2.sh.
43683         (Depends): Remove freadahead.
43684         (TESTS): Add test-freadptr2.sh.
43685         (check_PROGRAMS): Add test-freadptr2.
43686
43687 2008-03-09  Bruno Haible  <bruno@clisp.org>
43688
43689         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
43690         Report and solution by Simon Josefsson.
43691
43692 2008-03-06  Bruno Haible  <bruno@clisp.org>
43693
43694         Make fflush after ungetc work on BSD platforms.
43695         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
43696         * tests/test-fflush2.c: New file.
43697         * tests/test-fflush2.sh: New file.
43698         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
43699         tests/test-fflush2.c.
43700         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
43701         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
43702
43703 2008-03-06  Eric Blake  <ebb9@byu.net>
43704
43705         Likewise for ftello.
43706         * modules/ftello (Dependencies): Add extensions.
43707         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
43708
43709 2008-03-06  Bruno Haible  <bruno@clisp.org>
43710
43711         * modules/fseeko (Dependencies): Add extensions.
43712         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
43713         Needed on glibc systems.
43714
43715 2008-03-06  Bruno Haible  <bruno@clisp.org>
43716
43717         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
43718         email address.
43719         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43720
43721 2008-03-06  Bruno Haible  <bruno@clisp.org>
43722
43723         * users.txt: Add libgnupdf.
43724
43725 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43726
43727         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
43728         (Header File Substitutes, Function Substitutes,
43729         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
43730         (Build robot for gnulib): Fix typo.
43731
43732 2008-03-06  Bruno Haible  <bruno@clisp.org>
43733
43734         * doc/gnulib-tool.texi (VCS Issues): Small updates.
43735         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43736
43737 2008-03-06  Bruno Haible  <bruno@clisp.org>
43738
43739         * doc/func.texi: New file, extracted from doc/gnulib.texi.
43740         * doc/gnulib.texi: Include it.
43741
43742 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43743
43744         * modules/func (License): Change license to unlimited; there was
43745         no LGPL parts in the module anyway.
43746
43747 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43748
43749         * modules/__func__: Renamed to modules/func.
43750         * modules/__func__-tests: Renamed to modules/func-tests.
43751         * tests/test-__func__.c: Renamed to tests/test-func.c.
43752         * m4/__func__.m4: Renamed to m4/func.m4.
43753         * doc/gnulib.texi (__func__): Section renamed to func.
43754         Suggested by Eric Blake <ebb9@byu.net>.
43755
43756 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43757
43758         * doc/gnulib.texi (__func__): Use C99 terminology when talking
43759         about __func__.  Make example self-contained.  Suggested by Eric
43760         Blake <ebb9@byu.net>.
43761
43762         * tests/test-__func__.c (main): Avoid extraneous () around __func.
43763         Suggested by Eric Blake <ebb9@byu.net>.
43764
43765 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43766
43767         * modules/__func__: New file.
43768         * modules/__func__-tests: New file.
43769         * tests/test-__func__.c: New file.
43770         * m4/__func__.m4: New file.
43771         * doc/gnulib.texi (__func__): Document __func__ module.
43772
43773 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43774
43775         * modules/byteswap (License): Re-license as LGPLv2+.
43776
43777 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43778
43779         * doc/Makefile: Add pdf target.
43780
43781 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43782
43783         * modules/inline (License): Use 'unlimited', since there are only
43784         *.m4 files in this module.
43785
43786 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43787             Bruno Haible  <bruno@clisp.org>
43788
43789         Add support for HP C 7.1 on OpenVMS 8.3.
43790         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
43791
43792 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43793
43794         Update VMS specifics.
43795         * lib/getopt.c [VMS]: Remove include of unixlib.h.
43796
43797 2008-03-02  Jim Meyering  <meyering@redhat.com>
43798
43799         Remove the last dependency on the "free" module.
43800         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
43801         Reported by Bob Proulx.
43802
43803         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
43804
43805         Remove useless "if" tests before free.  Deprecate "free" module.
43806         * doc/posix-functions/free.texi: Mention that this
43807         module is no longer useful.
43808         * modules/free (Notice): Say this module is obsolete.
43809         * modules/readutmp (Depends-on): Remove free.
43810         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
43811         * lib/putenv.c (putenv): Likewise.
43812         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
43813         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
43814         * tests/test-c-strcasestr.c (main): Likewise.
43815         * tests/test-c-strstr.c (main): Likewise.
43816         * tests/test-mbscasestr1.c (main): Likewise.
43817         * tests/test-mbscasestr2.c (main): Likewise.
43818         * tests/test-mbsstr1.c (main): Likewise.
43819         * tests/test-mbsstr2.c (main): Likewise.
43820         * tests/test-memmem.c (main): Likewise.
43821         * tests/test-strcasestr.c (main): Likewise.
43822         * tests/test-striconv.c (main): Likewise.
43823         * tests/test-striconveh.c (main): Likewise.
43824         * tests/test-striconveha.c (main): Likewise.
43825         * tests/test-strstr.c (main): Likewise.
43826
43827         * build-aux/git-version-gen: Adjust a comment and the Usage string.
43828
43829         bootstrap: sync from coreutils again
43830         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
43831
43832 2008-03-01  Jim Meyering  <meyering@redhat.com>
43833
43834         bootstrap: sync from coreutils
43835         * build-aux/bootstrap (update_po_files): Copy a .po file into place
43836         also when the target doesn't exist.
43837
43838 2008-03-01  Eric Blake  <ebb9@byu.net>
43839
43840         Fix bugs in last patch.
43841         * lib/memchr2.c (memchr2): Fix typo.
43842         * tests/test-memchr2.c: Test previous bug, and don't use GNU
43843         extension.
43844         Reported by Bruce Korb.
43845
43846         New module 'memchr2'.
43847         * modules/memchr2: New file.
43848         * modules/memchr2-tests: Likewise.
43849         * lib/memchr2.h: Likewise.
43850         * lib/memchr2.c: Likewise, based on memchr.c.
43851         * tests/test-memchr2.c: New test.
43852         * MODULES.html.sh (String handling): Add memchr2.
43853
43854 2008-02-29  Bruno Haible  <bruno@clisp.org>
43855
43856         * modules/freadseek-tests: New file.
43857         * tests/test-freadseek.sh: New file.
43858         * tests/test-freadseek.c: New file.
43859
43860         New module 'freadseek'.
43861         * modules/freadseek: New file.
43862         * lib/freadseek.h: New file.
43863         * lib/freadseek.c: New file.
43864         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
43865
43866 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43867
43868         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
43869         wydawca.
43870
43871         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
43872         program_invocation_name and program_invocation_short_name are
43873         present.
43874
43875 2008-02-28  Bruno Haible  <bruno@clisp.org>
43876
43877         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
43878         * tests/test-freadptr.sh: Also test non-seekable stdin.
43879
43880 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
43881
43882         * build-aux/bootstrap (source_base, m4_base)
43883         (doc_base, tests_base): New variables.
43884         (gnulib_tool_options): Do not hardcode base directories, use
43885         the above variables instead.
43886
43887 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
43888
43889         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
43890
43891 2008-02-28  Bruno Haible  <bruno@clisp.org>
43892
43893         * modules/freadptr-tests: New file.
43894         * tests/test-freadptr.sh: New file.
43895         * tests/test-freadptr.c: New file.
43896
43897         New module 'freadptr'.
43898         * modules/freadptr: New file.
43899         * lib/freadptr.h: New file.
43900         * lib/freadptr.c: New file.
43901         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
43902
43903 2008-02-26  Karl Berry  <karl@freefriends.org>
43904
43905         Sync from Libtool:
43906         * libltdl/argz.c (argz_add, argz_count): New functions.
43907         * libltdl/argz.in.h: Declare them.
43908         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
43909
43910 2008-02-22  Bruno Haible  <bruno@clisp.org>
43911
43912         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
43913         is a pointer type.  Needed for HP-UX 10.
43914         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
43915         * doc/posix-functions/gmtime_r.texi: Likewise.
43916         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43917
43918 2008-02-24  Bruno Haible  <bruno@clisp.org>
43919
43920         * modules/environ-tests: New file.
43921         * tests/test-environ.c: New file.
43922
43923         New module 'environ'.
43924         * modules/environ: New file.
43925         * lib/unistd.in.h (environ): New declaration.
43926         * m4/environ.m4: New file.
43927         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
43928         after use.
43929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
43930         HAVE_DECL_ENVIRON.
43931         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
43932         HAVE_DECL_ENVIRON.
43933         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
43934         wrong claim that 'environ' is missing on some systems.
43935         * modules/execute (Depends-on): Add environ.
43936         * lib/execute.c (environ): Remove fallback declaration.
43937         * modules/pipe (Depends-on): Add environ.
43938         * lib/pipe.c (environ): Remove fallback declaration.
43939         * modules/setenv (Depends-on): Add environ.
43940         * lib/setenv.c (environ): Remove fallback declaration.
43941         * modules/unsetenv (Depends-on): Add environ.
43942         * lib/unsetenv.c (environ): Remove fallback declaration.
43943         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
43944         m4/environ.m4.
43945         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
43946         (gl_PREREQ_UNSETENV): Likewise.
43947
43948 2008-02-24  Bruno Haible  <bruno@clisp.org>
43949
43950         * doc/posix-functions/environ.texi: Document the MacOS X problem.
43951
43952 2008-02-20  Bob Proulx  <bob@proulx.com>
43953
43954         Enable use of older two part flavor 'git describe'.
43955         * build-aux/git-version-gen: If using the older two part flavor of
43956         git version then recreate the third part now present in the
43957         newer three part flavor of git describe.
43958
43959 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
43960
43961         * lib/fts.c (fts_build): Typo correction to comment.
43962
43963 2008-02-17  Bruno Haible  <bruno@clisp.org>
43964
43965         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
43966         generating no-op conflicts.
43967
43968 2008-02-17  Bruno Haible  <bruno@clisp.org>
43969
43970         Speed up by 10%.
43971         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
43972         result_entries, rather than an index-based loop.
43973
43974 2008-02-17  Bruno Haible  <bruno@clisp.org>
43975
43976         Speed up by 25%.
43977         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
43978         'hashcode_cached'.
43979         (entry_create): New function.
43980         (entry_hashcode): Use the cached hashcode if possible.
43981         (read_changelog_file, try_split_merged_entry): Use entry_create.
43982
43983 2008-02-17  Bruno Haible  <bruno@clisp.org>
43984
43985         Speed up from O(n^2) to O(n) for long ChangeLog files.
43986         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
43987         (read_changelog_file): Change implementation of entries_reversed list
43988         to rbtreehash.
43989         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
43990
43991 2008-02-17  Bruno Haible  <bruno@clisp.org>
43992
43993         New option --split-merged-entry.
43994         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
43995         (find_paragraph_end, try_split_merged_entry): New functions.
43996         (long_options): Add option --split-merged-entry.
43997         (usage): Document option --split-merged-entry.
43998         (main): Implement option --split-merged-entry.
43999         Reported by Eric Blake.
44000
44001 2008-02-17  Bruno Haible  <bruno@clisp.org>
44002
44003         * lib/git-merge-changelog.c: Include c-strstr.h.
44004         (main): Support the "git pull --rebase" situation.
44005         * modules/git-merge-changelog (Depends-on): Add c-strstr.
44006         Reported by Eric Blake.
44007
44008 2008-02-16  Eric Blake  <ebb9@byu.net>
44009
44010         Avoid doubling \ in common case of "c-maybe" quoting style.
44011         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
44012         eliding outer quotes.
44013         * lib/quotearg.h: Document this.
44014         * tests/test-quotearg.c (result_strings, inputs, results_g)
44015         (flag_results, locale_results): Test it by adding a new string to
44016         each test group.
44017         (compare_strings): Test new string.
44018
44019 2008-02-13  Eric Blake  <ebb9@byu.net>
44020
44021         Avoid trigraph quoting in default output.
44022         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
44023         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
44024         unless explicitly requested.
44025         * tests/test-quotearg.c (flag_results, main): Add additional tests.
44026
44027 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
44028
44029         Don't rely on signed integer overflowing to negative value.
44030         * lib/getugroups.c (getugroups): Include <limits.h>.
44031         Instead, compare against INT_MAX, and increment only if the test passes.
44032
44033 2008-02-13  Jim Meyering  <meyering@redhat.com>
44034         and Eric Blake  <ebb9@byu.net>
44035
44036         Avoid shadowing warning and compile errors on Linux.
44037         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
44038         forwarding macros on Linux.
44039         (dcgettext): Define a stub, for Linux.
44040         (results_g, main): Avoid warnings.
44041
44042 2008-02-12  Eric Blake  <ebb9@byu.net>
44043
44044         Silence warning in last patch.
44045         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
44046
44047         Quotearg part 4: add tests, fix c-maybe colon quoting.
44048         * lib/quotearg.h: Improve documentation.
44049         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
44050         escapes when adding outer quotes.  When quoting trigraphs, use
44051         valid C notation.  When quoting NUL, omit extra characters if next
44052         character is not digit.  Alter prototype.
44053         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
44054         callers.
44055         * modules/quotearg-tests: New module.
44056         * tests/test-quotearg.c: New test.
44057
44058 2008-02-07  Eric Blake  <ebb9@byu.net>
44059
44060         Quotearg part 3: add flag to control outer quote elision.
44061         * lib/quotearg.h (c_maybe_quoting_style): New style.
44062         (enum quoting_flags): Better documentation of flags.
44063         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
44064         c-maybe style.
44065         (quotearg_buffer_restyled): Handle new flag to elide outer
44066         quotes.
44067
44068         Quotearg part 2: add flag that can control NUL elision.
44069         * lib/quotearg.h (set_quoting_flags): New prototype.
44070         * lib/quotearg.c (struct quoting_options): Add flag field.
44071         (set_quoting_flags): New function.
44072         (quotearg_buffer_restyled): Add flags parameter.
44073         (quotearg_alloc_mem): Set the flag if length cannot be returned.
44074         (quotearg_n_options): Set the flag, since length cannot be
44075         returned.
44076         (quoting_options_from_style): Default flags correctly.
44077
44078         Quotearg part 1: more wrappers, restore quotearg_char state.
44079         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
44080         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
44081         (quotearg_colon_mem): New wrappers.
44082         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
44083         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
44084         functions.
44085         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
44086         (quotearg_colon_mem): New functions.
44087
44088 2008-02-11  Bruno Haible  <bruno@clisp.org>
44089
44090         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
44091         library in the current directory: it does not work with parallel make.
44092         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44093
44094 2008-02-11  Bruno Haible  <bruno@clisp.org>
44095
44096         * .gitattributes: New file.
44097
44098 2008-02-11  Jim Meyering  <meyering@redhat.com>
44099
44100         useless-if-before-free: Fix reversed exit values.
44101         * build-aux/useless-if-before-free: Use correct values
44102         for EXIT_MATCH and EXIT_NO_MATCH.
44103
44104         * build-aux/useless-if-before-free: Close stdout carefully.
44105
44106 2008-02-10  Bruno Haible  <bruno@clisp.org>
44107
44108         New module 'git-merge-changelog'.
44109         * modules/git-merge-changelog: New file.
44110         * lib/git-merge-changelog.c: New file.
44111
44112 2008-02-10  Jim Meyering  <meyering@redhat.com>
44113
44114         useless-if-before-free: New option: --list (-l).
44115
44116         useless-if-before-free: Don't exit immediately upon open failure.
44117         * build-aux/useless-if-before-free: Exit 2 for errors.
44118         Upon failure to open a file, don't exit immediately.
44119         Rather, just warn and continue with any remaining files.
44120
44121 2008-02-10  Bruno Haible  <bruno@clisp.org>
44122
44123         New abstract list operation 'node_set_value'.
44124         * lib/gl_list.h (gl_list_node_set_value): New function.
44125         (struct gl_list_implementation): New field node_set_value.
44126         * lib/gl_list.c (gl_list_node_set_value): New function.
44127         * lib/gl_array_list.c (gl_array_node_set_value): New function.
44128         (gl_array_list_implementation): Update.
44129         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
44130         (gl_carray_list_implementation): Update.
44131         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
44132         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44133         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44134         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
44135         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44136         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44137         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44138         Update.
44139         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
44140         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
44141         (gl_sublist_list_implementation): Update.
44142
44143 2008-02-10  Bruno Haible  <bruno@clisp.org>
44144
44145         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
44146         Needed when ELEMENT is #defined to 'some_type *'.
44147
44148 2008-02-10  Jim Meyering  <meyering@redhat.com>
44149
44150         New script and module: useless-if-before-free
44151         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
44152         * build-aux/useless-if-before-free: New file.
44153         * modules/useless-if-before-free: New file.
44154
44155         * build-aux/gitlog-to-changelog: Use committer date, not author date.
44156
44157         xstrtol_error: Fix typo.
44158         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
44159         s/exit_failure/exit_status/.
44160
44161 2008-02-09  Jim Meyering  <meyering@redhat.com>
44162
44163         New script and module: gitlog-to-changelog
44164         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
44165         * modules/gitlog-to-changelog: New file.
44166         * build-aux/gitlog-to-changelog: New file.
44167
44168 2008-02-08  Jim Meyering  <meyering@redhat.com>
44169
44170         Avoid two "parameter unused" warnings.
44171         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
44172         Mark "st" as used.
44173
44174         Use "git COMMAND", not "git-COMMAND".
44175         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
44176         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
44177         * build-aux/git-version-gen: Use "git status", not "git-status".
44178
44179 2008-02-07  Bruno Haible  <bruno@clisp.org>
44180
44181         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
44182         Avoids a crash on Windows Vista.
44183         Reported by Adam Strzelecki <ono@java.pl> via
44184         Simon Josefsson <simon@josefsson.org>.
44185
44186 2008-02-06  Bruno Haible  <bruno@clisp.org>
44187
44188         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
44189         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
44190         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
44191         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
44192         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44193         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44194         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
44195         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
44196         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44197         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44198         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44199         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44200         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44201         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44202         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44203         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
44204         left-adjust flag.
44205         * tests/test-snprintf-posix.h (test_function): Likewise.
44206         * tests/test-sprintf-posix.h (test_function): Likewise.
44207         * tests/test-vasprintf-posix.c (test_function): Likewise.
44208         * doc/posix-functions/fprintf.texi: Update.
44209         * doc/posix-functions/printf.texi: Update.
44210         * doc/posix-functions/snprintf.texi: Update.
44211         * doc/posix-functions/sprintf.texi: Update.
44212         * doc/posix-functions/vfprintf.texi: Update.
44213         * doc/posix-functions/vprintf.texi: Update.
44214         * doc/posix-functions/vsnprintf.texi: Update.
44215         * doc/posix-functions/vsprintf.texi: Update.
44216         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44217
44218 2008-02-06  Bruno Haible  <bruno@clisp.org>
44219
44220         Fix bug introduced on 2008-01-26.
44221         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
44222
44223 2008-02-06  Bruno Haible  <bruno@clisp.org>
44224
44225         Fix bug introduced on 2007-06-10.
44226         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
44227         !NEED_PRINTF_FLAG_ZERO.
44228
44229 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
44230
44231         getloadavg: use libperfstat on AIX5
44232         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
44233
44234 2008-02-03  Bruno Haible  <bruno@clisp.org>
44235
44236         * lib/diffseq.h: Add comments about required #includes.
44237         Reported by Michael Biggs <gnulib@doubleplum.net>.
44238
44239 2008-02-01  Bruno Haible  <bruno@clisp.org>
44240
44241         * users.txt: Add gnuit.
44242
44243 2008-01-31  Bruno Haible  <bruno@clisp.org>
44244
44245         * lib/md4.c (set_uint32): Mark as inline.
44246         * lib/md5.c (set_uint32): Likewise.
44247         * lib/sha1.c (set_uint32): Likewise.
44248         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
44249         * m4/md5.m4 (gl_MD5): Likewise.
44250         * m4/sha1.m4 (gl_SHA1): Likewise.
44251
44252 2008-01-31  Jim Meyering  <meyering@redhat.com>
44253
44254         Use "sizeof VAR", rather than a literal "4".
44255         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
44256         * lib/md4.c (md4_read_ctx): Likewise.
44257         * lib/sha1.c (sha1_read_ctx): Likewise.
44258
44259 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44260
44261         * tests/test-sha1.c: New file, based on test-md5.c.
44262
44263         * modules/crypto/sha1-tests: New file.
44264
44265 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44266
44267         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
44268
44269 2008-01-31  Jim Meyering  <meyering@redhat.com>
44270
44271         Prefer "sizeof v" over the equivalent "4".
44272         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
44273         * lib/md5.c (set_uint32): Likewise.
44274         * lib/sha1.c (set_uint32): Likewise.
44275
44276 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44277
44278         * lib/sha1.c (set_uint32): Mark function as static.
44279
44280 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44281
44282         md2: clarify comments to say that alignment is not required.
44283         * lib/md2.h: Remove warning about alignment in comment.
44284         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
44285         never been required.
44286
44287 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44288
44289         md4: adapt alignment constraint fix from sha1.
44290         * lib/md4.c (set_uint32): New function, from sha1.c
44291         (md4_read_ctx): Use it.
44292         (md4_finish_ctx): Doc fix.
44293         * lib/md4.h: Doc fix.
44294
44295 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44296
44297         md5: adapt alignment constraint fix from sha1.
44298         * lib/md5.c (set_uint32): New function, from sha1.c
44299         (md5_read_ctx): Use it.
44300         (md5_finish_ctx): Doc fix.
44301         * lib/md5.h: Doc fix.
44302
44303 2008-01-30  Peter Palfrader  <weasel@debian.org>
44304
44305         sha1: remove the result buffer alignment constraint
44306         * lib/sha1.c (set_uint32): New function.
44307         (sha1_read_ctx): Rewrite to remove the result buffer alignment
44308         constraint.
44309         (sha1_finish_ctx): Remove comment warning about alignment constraint.
44310         * lib/sha1.h: Likewise.
44311
44312 2008-01-30  Andreas Schwab  <schwab@suse.de>
44313             Bruno Haible  <bruno@clisp.org>
44314
44315         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
44316         correct definition of LDBL_MIN_EXP.
44317
44318 2008-01-30  Karl Berry  <karl@gnu.org>
44319
44320         * config/srclist-update: try to preserve x bit on updates.
44321         * config/srclistvars.sh: update for karl.
44322
44323 2008-01-29  Jim Meyering  <meyering@redhat.com>
44324
44325         vasnprintf.c: Avoid warning about unused label
44326         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
44327         "overflow" label definition and associated code with the
44328         same cpp condition that guards the sole use of that label.
44329
44330 2008-01-26  Bruno Haible  <bruno@clisp.org>
44331
44332         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
44333         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
44334         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
44335         * lib/isnanl-nolibm.h (isnanl): Likewise.
44336         Reported by Paul Eggert <eggert@cs.ucla.edu>.
44337
44338 2008-01-26  Bruno Haible  <bruno@clisp.org>
44339
44340         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
44341         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
44342
44343 2008-01-26  Bruno Haible  <bruno@clisp.org>
44344
44345         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
44346         GCC >= 4.0 built-in.
44347         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
44348
44349 2008-01-26  Bruno Haible  <bruno@clisp.org>
44350
44351         Rename isnan, applicable to 'double' only, to isnand.
44352         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
44353         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
44354         (configure.ac): Update.
44355         (Include): Replace "isnan.h" with "isnand.h".
44356         * m4/isnand.m4: Renamed from m4/isnan.m4.
44357         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
44358         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
44359         instead of isnan.c.
44360         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
44361         instead of HAVE_ISNAN_IN_LIBC.
44362         (isnand): Renamed from isnan.
44363         * lib/isnand.c: New file.
44364         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
44365         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
44366         (Makefile.am): Update.
44367         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
44368         Include isnand.h instead of isnan.h.
44369         (main): Test isnand instead of isnan.
44370         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
44371         isnan-nolibm.
44372         * modules/frexp (Depends-on): Likewise.
44373         * modules/frexp-tests (Depends-on): Likewise.
44374         * modules/frexp-nolibm (Depends-on): Likewise.
44375         * modules/frexp-nolibm-tests (Depends-on): Likewise.
44376         * modules/isfinite (Depends-on): Likewise.
44377         * modules/round-tests (Depends-on): Likewise.
44378         * modules/signbit (Depends-on): Likewise.
44379         * modules/signbit-tests (Depends-on): Likewise.
44380         * modules/snprintf-posix (Depends-on): Likewise.
44381         * modules/sprintf-posix (Depends-on): Likewise.
44382         * modules/trunc-tests (Depends-on): Likewise.
44383         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44384         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44385         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44386         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44387         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44388         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44389         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44390         * modules/vasnprintf-posix (Depends-on): Likewise.
44391         * modules/vasprintf-posix (Depends-on): Likewise.
44392         * modules/vfprintf-posix (Depends-on): Likewise.
44393         * modules/vsnprintf-posix (Depends-on): Likewise.
44394         * modules/vsprintf-posix (Depends-on): Likewise.
44395         * lib/frexp.c: Include isnand.h instead of isnan.h.
44396         (ISNAN): Set to isnand instead of isnan.
44397         * lib/isfinite.c: Include isnand.h instead of isnan.h.
44398         (gl_isfinited): Use isnand instead of isnan.
44399         * lib/signbitd.c: Include isnand.h instead of isnan.h.
44400         (gl_signbitd): Use isnand instead of isnan.
44401         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
44402         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
44403         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
44404         (main): Use isnand instead of isnan.
44405         * tests/test-round1.c: Include isnand.h.
44406         (main): Use isnand instead of isnan.
44407         * tests/test-round2.c: Include isnand.h instead of isnan.h.
44408         (ISNAN): Set to isnand instead of isnan.
44409         * tests/test-trunc1.c: Include isnand.h.
44410         (main): Use isnand instead of isnan.
44411         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
44412         (equal): Use isnand instead of isnan.
44413         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
44414         isnand-nolibm.
44415         * NEWS: Mention the change.
44416
44417 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44418             Bruno Haible  <bruno@clisp.org>
44419
44420         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
44421         the GCC builtins for signbits are present and set
44422         REPLACE_SIGNBIT_USING_GCC if so.
44423         * lib/math.in.h (signbit): Define using GCC builtins if
44424         REPLACE_SIGNBIT_USING_GCC is set.
44425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
44426         REPLACE_SIGNBIT_USING_GCC.
44427         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
44428
44429 2008-01-25  Jim Meyering  <meyering@redhat.com>
44430
44431         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
44432         * lib/poll.c: Include <config.h>, not "config.h".
44433         * tests/test-getaddrinfo.c: Likewise.
44434
44435 2008-01-25  Simon Josefsson  <simon@josefsson.org>
44436
44437         * modules/sockets-tests: New file.
44438
44439 2008-01-24  Simon Josefsson  <simon@josefsson.org>
44440
44441         * modules/sockets: New module, can be used to call WSA_Startup and
44442         WSA_Cleanup when needed.
44443
44444         * lib/sockets.h, lib/sockets.c: New files.
44445
44446         * m4/sockets.m4: New file.
44447
44448         * tests/test-sockets.c: New file.
44449
44450 2008-01-19  Bruno Haible  <bruno@clisp.org>
44451
44452         * doc/posix-headers: Renamed from doc/headers.
44453         * doc/posix-functions: Renamed from doc/functions.
44454         * doc/gnulib.texi: Update.
44455
44456 2008-01-19  Bruno Haible  <bruno@clisp.org>
44457
44458         * doc/glibc-functions/strcasestr.texi: Include contents of
44459         doc/functions/strcasestr.texi, fixing the list of platforms.
44460         * doc/functions/strcasestr.texi: Remove file.
44461
44462 2008-01-19  Bruno Haible  <bruno@clisp.org>
44463
44464         * doc/glibc-functions/memmem.texi: Include contents of
44465         doc/functions/memmem.texi.
44466         * doc/functions/memmem.texi: Remove file.
44467
44468 2008-01-18  Bruno Haible  <bruno@clisp.org>
44469
44470         * doc/glibc-functions/*.texi: New files.
44471         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
44472         to use the new files.
44473
44474 2008-01-17  Bruno Haible  <bruno@clisp.org>
44475
44476         * tests/test-gethostname.c (main): Fix printf statement.
44477
44478 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44479
44480         * modules/gethostname-tests: New file.
44481
44482         * tests/test-gethostname.c: New file.
44483
44484 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44485
44486         * lib/gethostname.c: Include string.h unconditionally, strncpy is
44487         used by the UNAME case.  Reported by Bruno Haible
44488         <bruno@clisp.org>.
44489
44490 2008-01-17  Eric Blake  <ebb9@byu.net>
44491
44492         Convert c-strcasestr to be more efficient.
44493         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
44494         (Depends-on): Add c-strcase, remove malloca, strnlen.
44495         * tests/test-c-strcasestr.c (main): Enhance test.
44496         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
44497
44498 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44499
44500         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
44501         Use it in creating po/Makevars.
44502
44503 2008-01-15  Simon Josefsson  <simon@josefsson.org>
44504
44505         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
44506         Applications that requires it should initialize libgcrypt
44507         manually.
44508
44509 2008-01-16  Simon Josefsson  <simon@josefsson.org>
44510
44511         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
44512
44513 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
44514
44515         Fix problem with getdate on mingw32 reported by Simon Josefsson
44516         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
44517         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
44518         tzname", when deciding whether to declare tzname.
44519         * lib/strftime.c (tzname): Likewise.
44520
44521 2008-01-15  Bruno Haible  <bruno@clisp.org>
44522
44523         Work around a MacOS X 10.5 bug in frexpl().
44524         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
44525         * doc/functions/frexpl.texi: Document the bug.
44526         Reported by Elias Pipping <pipping@gentoo.org>.
44527
44528 2008-01-14  Eric Blake  <ebb9@byu.net>
44529
44530         Touch up previous patch.
44531         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
44532         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
44533
44534         Convert strcasestr module to use Two-Way algorithm.
44535         * modules/strcasestr-simple: New module, based on the old
44536         strcasestr, but with Two-Way rather than KMP.
44537         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
44538         * lib/string.in.h (rpl_strcasestr): Declare.
44539         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
44540         performance.
44541         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
44542         * modules/string (Makefile.am): Support strcasestr.
44543         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44544         * modules/strcasestr-tests (Depends-on): Check for alarm.
44545         * tests/test-strcasestr.c: Augment test.
44546         * lib/str-two-way.h: Clean up stray macro.
44547         * NEWS: Document new module.
44548         * MODULES.html.sh (string handling): Likewise.
44549         * doc/functions/strcasestr.texi: New file.
44550         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
44551         here, since it is not a POSIX function.
44552
44553 2008-01-14  Colin Watson  <cjwatson@debian.org>
44554             Bruno Haible  <bruno@clisp.org>
44555
44556         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
44557         works fine; if not, set REPLACE_STRSIGNAL.
44558         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
44559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44560         REPLACE_STRSIGNAL.
44561         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
44562         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
44563         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
44564
44565 2008-01-14  Bruno Haible  <bruno@clisp.org>
44566
44567         * modules/strsignal (Include): Change to <string.h>.
44568
44569 2008-01-14  Colin Watson  <cjwatson@debian.org>
44570
44571         * modules/argp (Notice): Add a notice recommending to change
44572         XGETTEXT_OPTIONS.
44573         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
44574
44575 2008-01-13  Colin Watson  <cjwatson@debian.org>
44576
44577         * modules/strsignal-tests: New file.
44578         * tests/test-strsignal.c: New file.
44579
44580         * lib/strsignal.c: New file, from glibc with modifications.
44581         * lib/siglist.h: New file, from glibc with modifications.
44582         * lib/string.in.h (strsignal): New declaration.
44583         * m4/strsignal.m4: New file.
44584         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44585         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
44586         * modules/strsignal: New file.
44587         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
44588         HAVE_DECL_STRSIGNAL.
44589
44590 2008-01-13  Bruno Haible  <bruno@clisp.org>
44591
44592         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
44593         locale encoding is not ASCII. Needed for OpenBSD 4.0.
44594         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44595         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44596
44597 2008-01-13  Bruno Haible  <bruno@clisp.org>
44598
44599         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
44600         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
44601         * lib/argp.h (__attribute__): Likewise.
44602         * lib/c-stack.c (__attribute__): Likewise.
44603         * lib/error.h (__attribute__): Likewise.
44604         * lib/fts.c (__attribute__): Likewise.
44605         * lib/openat.h (__attribute__): Likewise.
44606         * lib/stdio.in.h (__attribute__): Likewise.
44607         * lib/string.in.h (__attribute__): Likewise.
44608         * lib/utimens.c (__attribute__): Likewise.
44609         * lib/vasnprintf.h (__attribute__): Likewise.
44610         * lib/xalloc.h (__attribute__): Likewise.
44611         * lib/xprintf.h (__attribute__): Likewise.
44612         * lib/xstrtol.h (__attribute__): Likewise.
44613         * lib/xvasprintf.h (__attribute__): Likewise.
44614
44615 2008-01-12  Bruno Haible  <bruno@clisp.org>
44616
44617         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
44618         * doc/glibc-headers/a.out.texi: New file.
44619         * doc/glibc-headers/aliases.texi: New file.
44620         * doc/glibc-headers/alloca.texi: New file.
44621         * doc/glibc-headers/ar.texi: New file.
44622         * doc/glibc-headers/argp.texi: New file.
44623         * doc/glibc-headers/argz.texi: New file.
44624         * doc/glibc-headers/byteswap.texi: New file.
44625         * doc/glibc-headers/crypt.texi: New file.
44626         * doc/glibc-headers/endian.texi: New file.
44627         * doc/glibc-headers/envz.texi: New file.
44628         * doc/glibc-headers/err.texi: New file.
44629         * doc/glibc-headers/error.texi: New file.
44630         * doc/glibc-headers/execinfo.texi: New file.
44631         * doc/glibc-headers/fpu_control.texi: New file.
44632         * doc/glibc-headers/fstab.texi: New file.
44633         * doc/glibc-headers/fts.texi: New file.
44634         * doc/glibc-headers/getopt.texi: New file.
44635         * doc/glibc-headers/ieee754.texi: New file.
44636         * doc/glibc-headers/ifaddrs.texi: New file.
44637         * doc/glibc-headers/libintl.texi: New file.
44638         * doc/glibc-headers/mcheck.texi: New file.
44639         * doc/glibc-headers/mntent.texi: New file.
44640         * doc/glibc-headers/obstack.texi: New file.
44641         * doc/glibc-headers/paths.texi: New file.
44642         * doc/glibc-headers/printf.texi: New file.
44643         * doc/glibc-headers/pty.texi: New file.
44644         * doc/glibc-headers/resolv.texi: New file.
44645         * doc/glibc-headers/shadow.texi: New file.
44646         * doc/glibc-headers/sysexits.texi: New file.
44647         * doc/glibc-headers/ttyent.texi: New file.
44648
44649 2008-01-12  Jim Meyering  <meyering@redhat.com>
44650
44651         announce-gen: emit Gnulib's git-based version string.
44652         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
44653         New option --gnulib-version=V, where V is expected to be
44654         the output of running git describe in the gnulib directory.
44655         (get_tool_versions): Request feedback on xdelta.  I suspect it's
44656         not useful, and plan to stop publishing an xdelta file with each
44657         coreutils release.
44658
44659         * build-aux/announce-gen: Also check for lzma-compressed files.
44660
44661 2008-01-11  Bruno Haible  <bruno@clisp.org>
44662
44663         * tests/test-memmem.c (main): Increase maximum allowed time.
44664         * tests/test-strstr.c (main): Likewise.
44665
44666 2008-01-11  Bruno Haible  <bruno@clisp.org>
44667
44668         * doc/functions/memmem.texi: Add more precisions about platforms.
44669         * doc/functions/strstr.texi: Likewise.
44670
44671 2008-01-10  Eric Blake  <ebb9@byu.net>
44672
44673         * m4/strstr.m4: Delete cruft from copy-n-paste.
44674         Reported by Bruno Haible.
44675
44676 2008-01-10  Bruno Haible  <bruno@clisp.org>
44677
44678         Make c-strstr rely on strstr.
44679         * lib/c-strstr.c: Don't include str-kmp.h.
44680         (c_strstr): Define in terms of strstr.
44681         * modules/c-strstr (Files): Remove lib/str-kmp.h.
44682         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
44683
44684 2008-01-10  Bruno Haible  <bruno@clisp.org>
44685
44686         * doc/gnulib.texi (String Functions in C Locale): New section.
44687         * doc/c-ctype.texi: New file.
44688         * doc/c-strcase.texi: New file.
44689         * doc/c-strcaseeq.texi: New file.
44690         * doc/c-strcasestr.texi: New file.
44691         * doc/c-strstr.texi: New file.
44692         * doc/c-strtod.texi: New file.
44693         * doc/c-strtold.texi: New file.
44694
44695 2008-01-10  Eric Blake  <ebb9@byu.net>
44696
44697         * lib/relocatable.h: Fix a comment.
44698
44699 2008-01-10  Eric Blake  <ebb9@byu.net>
44700
44701         Share two-way algorithm.
44702         * lib/str-two-way.h: New file, merged from...
44703         * lib/memmem.c: ...here...
44704         * lib/strstr.c: ...and here.
44705         * modules/memmem (Files): Use it.
44706         * modules/strstr (Files): Likewise.
44707
44708         Avoid quadratic strstr implementations.
44709         * lib/strstr.c: New file.
44710         * m4/strstr.m4: Likewise.
44711         * modules/strstr: Likewise.
44712         * modules/strstr-tests: Likewise.
44713         * tests/test-strstr.c: Likewise.
44714         * lib/string.in.h (rpl_strstr): Declare.
44715         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
44716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
44717         * modules/string (Makefile.am): Likewise.
44718         * MODULES.html.sh (string handling): Mention new module.
44719         * doc/functions/strstr.texi (strstr): Document the bug.
44720
44721 2008-01-10  Bruno Haible  <bruno@clisp.org>
44722
44723         * lib/relocatable.h (relocate): State whether result is freshly
44724         allocated or not.
44725         * lib/relocatable.c (relocate): Return a freshly allocated string
44726         instead of a pointer to a privately held string.
44727         Reported by Sylvain Beucler <beuc@gnu.org>.
44728
44729 2008-01-10  Colin Watson  <cjwatson@debian.org>
44730
44731         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
44732         s/S_ISNLK/S_ISLNK/.
44733
44734 2008-01-09  Bruno Haible  <bruno@clisp.org>
44735
44736         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
44737         and other files.
44738         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
44739         if it's only a guess.
44740         * modules/memmem: Simplify by depending on memmem-simple.
44741
44742 2008-01-09  Bruno Haible  <bruno@clisp.org>
44743
44744         Work around OpenBSD 4.0 tdelete() bug.
44745         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
44746         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
44747         macros and don't redefine the enum values.
44748         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
44749         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
44750         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
44751
44752 2008-01-09  Bruno Haible  <bruno@clisp.org>
44753
44754         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
44755         (main): Don't perform the tests if setlocale did not install a UTF-8
44756         locale. Needed on OpenBSD 4.0.
44757         * modules/wcwidth-tests (Depends-on): Add localcharset.
44758
44759 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44760
44761         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
44762         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
44763         * NEWS: announce this.
44764         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
44765
44766 2008-01-09  Simon Josefsson  <simon@josefsson.org>
44767         and Eric Blake  <ebb9@byu.net>
44768
44769         Add memmem-simple module.
44770         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
44771         (gl_FUNC_MEMMEM): Separate performance from presence checks.
44772         * modules/memmem-simple: New file.
44773         * modules/memmem (Description): Tweak.
44774         * MODULES.html.sh (string handling): Mention new module.
44775         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
44776         addressed by memmem-simple.
44777         * NEWS: Document the difference.
44778
44779 2008-01-09  Eric Blake  <ebb9@byu.net>
44780
44781         Give gcc some memmem optimization hints.
44782         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
44783         (strcasestr): Declare as pure.
44784         * modules/memmem (Maintainer): Claim my implementation.
44785
44786 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44787
44788         Support AIX 6.1 and higher.
44789         * build-aux/config.libpath: Likewise.
44790         * build-aux/config.rpath: Likewise.
44791
44792 2008-01-08  Jim Meyering  <meyering@redhat.com>
44793             Bruno Haible  <bruno@clisp.org>
44794
44795         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
44796         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
44797         Reported by Peter Fales in
44798         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
44799
44800 2008-01-08  Bruno Haible  <bruno@clisp.org>
44801
44802         * modules/unictype/category-of (Depends-on): Add
44803         unictype/category-none.
44804         * modules/unictype/category-and-tests (Depends-on): Add
44805         unictype/category-{L,N,Lu,Nd}.
44806         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
44807         * modules/unictype/category-or-tests (Depends-on): Add
44808         unictype/category-{L,N}.
44809         * modules/unictype/category-name-tests (Depends-on): Add
44810         unictype/category-{Z,Nl}.
44811         Reported by Simon Josefsson.
44812
44813 2008-01-08  Bruno Haible  <bruno@clisp.org>
44814
44815         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
44816         convention better.
44817         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
44818         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
44819         Reported by Peter Miller <millerp@canb.auug.org.au>.
44820
44821 2008-01-08  Eric Blake  <ebb9@byu.net>
44822
44823         Rewrite memmem to guarantee linear complexity without malloc.
44824         * lib/memmem.c (memmem): Use Two-Way rather than
44825         Knuth-Morris-Pratt, to allow O(1) space usage.
44826         (critical_factorization, two_way_short_needle)
44827         (two_way_long_needle): New functions.
44828         (knuth_morris_pratt): Delete.
44829         * modules/memmem (Depends-on): No longer need malloca or stdbool.
44830         Add stdint.
44831         * tests/test-memmem.c (main): Add tests for periodic needle and
44832         sublinear performance.
44833         * doc/functions/memmem.texi (memmem): Document other deficiencies
44834         in cygwin and older glibc.
44835
44836 2008-01-08  Bruno Haible  <bruno@clisp.org>
44837
44838         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
44839         augmentation.
44840
44841 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
44842
44843         Add a configure time option: --disable-acl.
44844         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
44845         AC_ARG_ENABLE(acl).
44846
44847 2008-01-06  Simon Josefsson  <simon@josefsson.org>
44848
44849         * tests/test-localename.c: Don't include obsolete "setenv.h".
44850
44851         * modules/localename-tests (Depends-on): Need unsetenv.
44852
44853 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44854
44855         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
44856
44857 2008-01-06  Colin Watson  <cjwatson@debian.org>
44858
44859         * users.txt: Add man-db.
44860
44861 2008-01-07  Bruno Haible  <bruno@clisp.org>
44862
44863         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
44864         previous section name.
44865
44866 2008-01-07  Bruno Haible  <bruno@clisp.org>
44867
44868         * lib/progname.c (set_program_name): Don't strip off a leading
44869         "lt-" prefix outside a .libs directory.
44870         Suggested by Paul Eggert.
44871
44872 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
44873             Bruno Haible  <bruno@clisp.org>
44874
44875         Improve memory cleanup in 'relocatable' module.
44876         * lib/relocatable.h (compute_curr_prefix): Change return type to
44877         'char *'.
44878         * lib/relocatable.c (compute_curr_prefix): Change return type to
44879         'char *'. Free curr_installdir after use.
44880         (relocate): Free curr_prefix_better after use.
44881         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
44882
44883 2008-01-01  Bruno Haible  <bruno@clisp.org>
44884
44885         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
44886         failure on older glibc systems.
44887         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44888
44889 2008-01-05  Eric Blake  <ebb9@byu.net>
44890
44891         Avoid quadratic system memmem.
44892         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
44893         Reported by Ralf Wildenhues.
44894
44895         Fix memmem test for mingw.
44896         * modules/memmem-tests (configure.ac): Check for alarm.
44897         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
44898         it.
44899         * doc/functions/memmem.texi: New file.
44900         * doc/gnulib.texi (Function Substitutes): Add memmem.
44901         Reported by Bruno Haible.
44902
44903 2008-01-04  Bruno Haible  <bruno@clisp.org>
44904
44905         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
44906         Require gl_HEADER_STRINGS_H_DEFAULTS, not
44907         gl_HEADER_STRING_H_DEFAULTS.
44908
44909 2008-01-04  Eric Blake  <ebb9@byu.net>
44910
44911         Shorten duration of memmem test.
44912         * tests/test-memmem.c (main): Use alarm to declare failure if test
44913         is taking too long.
44914         Reported by Ralf Wildenhues.
44915
44916 2007-12-21  Simon Josefsson  <simon@josefsson.org>
44917
44918         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
44919         string, needed by strerror.
44920
44921 2008-01-03  Colin Watson  <cjwatson@debian.org>
44922             Bruno Haible  <bruno@clisp.org>
44923
44924         * doc/gnulib-tool.texi (Localization): New section.
44925
44926 2008-01-02  Bruno Haible  <bruno@clisp.org>
44927
44928         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
44929         variables to 'unsigned char *' type.
44930         Reported by Paul Eggert.
44931
44932 2008-01-02  Jim Meyering  <jim@meyering.net>
44933
44934         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
44935
44936 2007-12-31  Jim Meyering  <jim@meyering.net>
44937
44938         Avoid use of private FTS type name.
44939         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
44940
44941 2007-12-30  Karl Berry  <karl@gnu.org>
44942
44943         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
44944         work around defect in Texinfo and/or the standalone Info browser.
44945
44946 2007-12-30  Bruno Haible  <bruno@clisp.org>
44947
44948         Unify 5 copies of the KMP code.
44949         * lib/str-kmp.h: New file.
44950         * lib/c-strcasestr.c: Include str-kmp.h.
44951         (knuth_morris_pratt): Remove function.
44952         (c_strcasestr): Update.
44953         * lib/c-strstr.c: Include str-kmp.h.
44954         (knuth_morris_pratt): Remove function.
44955         (c_strcasestr): Update.
44956         * lib/mbscasestr.c: Include str-kmp.h.
44957         (knuth_morris_pratt_unibyte): Remove function.
44958         * lib/mbsstr.c: Include str-kmp.h.
44959         (knuth_morris_pratt_unibyte): Remove function.
44960         * lib/strcasestr.c: Include str-kmp.h.
44961         (knuth_morris_pratt): Remove function.
44962         (strcasestr): Update.
44963         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
44964         * modules/c-strstr (Files): Likewise.
44965         * modules/mbscasestr (Files): Likewise.
44966         * modules/mbsstr (Files): Likewise.
44967         * modules/strcasestr (Files): Likewise.
44968         Suggested by Paul Eggert.
44969
44970 2007-12-30  Bruno Haible  <bruno@clisp.org>
44971
44972         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
44973         defined.
44974
44975 2007-12-30  Bruno Haible  <bruno@clisp.org>
44976
44977         * lib/xmalloca.h: Include xalloc.h.
44978         (xnmalloca): New macro.
44979
44980 2007-12-30  Bruno Haible  <bruno@clisp.org>
44981
44982         * lib/malloca.h (nmalloca): New macro.
44983         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
44984         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
44985         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
44986         knuth_morris_pratt_multibyte): Likewise.
44987         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
44988         knuth_morris_pratt_multibyte): Likewise.
44989         * lib/memmem.c (knuth_morris_pratt): Likewise.
44990         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
44991
44992 2007-12-25  Bruno Haible  <bruno@clisp.org>
44993
44994         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
44995         * lib/glob.c: Don't include openat.h.
44996         (link_exists2_p): Add back the code that deals with the
44997         !GLOB_ALTDIRFUNC case.
44998         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
44999         let it do the filename concatenation.
45000         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
45001         * modules/glob (Depends-on): Remove openat.
45002
45003 2007-12-31  Bruno Haible  <bruno@clisp.org>
45004
45005         * modules/dirfd (License): Change to LGPLv2+.
45006         Approved by Jim Meyering.
45007
45008 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45009
45010         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
45011         when multiplying M by sizeof (size_t).
45012
45013 2007-12-10  Martin Lambers  <marlam@marlam.de>
45014
45015         Override getpagesize on mingw.
45016         * lib/getpagesize.c: New file.
45017         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
45018         * modules/getpagesize (Files): Add lib/getpagesize.c.
45019         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
45020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45021         REPLACE_GETPAGESIZE.
45022         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
45023
45024 2007-12-25  Bruno Haible  <bruno@clisp.org>
45025
45026         * modules/localcharset (Notice): New field.
45027         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
45028         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45029
45030 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45031             Bruno Haible  <bruno@clisp.org>
45032
45033         Avoid using the syntax symbol() in formatted documentation.
45034         * MODULES.html.sh (func_module): When replacing symbol() with a
45035         hyperlink, remove the parentheses. Show an error if some remain.
45036         Recognize and render the '...' syntax.
45037         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
45038         Rework. Add paragraph about GCC's inlining.
45039         * doc/alloca.texi: Likewise.
45040         * doc/error.texi: Remove parentheses from symbol reference.
45041         * doc/gnulib-intro.texi: Likewise.
45042         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
45043         * modules/fnmatch (Description): Reword to say "the ... function".
45044         * modules/full-read (Description): Likewise.
45045         * modules/full-write (Description): Likewise.
45046         * modules/safe-read (Description): Likewise.
45047         * modules/safe-write (Description): Likewise.
45048         * modules/strchrnul (Description): Likewise.
45049         * modules/trim (Description): Likewise.
45050         * modules/error (Description): Remove parentheses from symbol
45051         references.
45052         * modules/verror (Description): Likewise.
45053         Reported by Karl Berry.
45054
45055 2007-12-25  Bruno Haible  <bruno@clisp.org>
45056
45057         Fixup after 2007-10-16 commit.
45058         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
45059
45060 2007-12-24  Bruno Haible  <bruno@clisp.org>
45061
45062         Make --enable-relocatable work with DESTDIR.
45063         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
45064         to compute installdir from destprog.
45065         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
45066         also set the RELOC_DESTDIR variable.
45067         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45068
45069 2007-12-24  Bruno Haible  <bruno@clisp.org>
45070
45071         Fix link error due to xalloc_die().
45072         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
45073         of xreadlink.
45074         * lib/relocwrapper.c: Update comments.
45075         * build-aux/install-reloc: Remove xreadlink.c from file list.
45076         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
45077         xreadlink.c.
45078         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45079
45080 2007-12-24  Bruno Haible  <bruno@clisp.org>
45081
45082         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
45083         * lib/setenv.h: Remove file.
45084         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
45085         lib/setenv.h.
45086         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
45087         (Depends-on): Add stdlib.
45088         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
45089         gl_FUNC_UNSETENV.
45090         (Include): Replace setenv.h with <stdlib.h>.
45091         * modules/unsetenv: New file.
45092         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
45093         * lib/unsetenv.c: Include <stdlib.h> first.
45094         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
45095         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
45096         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
45097         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
45098         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
45099         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
45101         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45102         * doc/functions/unsetenv.texi: Update.
45103         * modules/xsetenv (Depends-on): Add unsetenv.
45104         * modules/getdate (Depends-on): Likewise.
45105         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
45106         * lib/xsetenv.c: Don't include setenv.h.
45107         * lib/getdate.y: Likewise.
45108         * lib/relocwrapper.c: Likewise.
45109         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
45110         (Depends-on): Add stdlib.
45111         * NEWS: Mention the changes.
45112         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45113
45114 2007-12-23  Bruno Haible  <bruno@clisp.org>
45115
45116         * lib/memmem.c (memmem): Use lowercase variable names. Tab
45117         indentation.
45118
45119 2007-12-23  Bruno Haible  <bruno@clisp.org>
45120
45121         * lib/c-strcasestr.c: Add more comments.
45122         * lib/c-strstr.c: Likewise.
45123         * lib/mbscasestr.c: Likewise.
45124         * lib/mbsstr.c: Likewise.
45125         * lib/strcasestr.c: Likewise.
45126         * lib/memmem.c: Likewise.
45127
45128 2007-12-23  Bruno Haible  <bruno@clisp.org>
45129
45130         * tests/test-memmem.c: Include <string.h> first.
45131
45132 2007-12-22  Bruno Haible  <bruno@clisp.org>
45133
45134         * gnulib-tool (func_create_testdir): Change $auxdir while generating
45135         the contents of $testsbase.
45136         Reported by Ralf Wildenhues.
45137
45138 2007-12-22  Bruno Haible  <bruno@clisp.org>
45139
45140         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
45141         two variables local_ldadd_before, local_ldadd_last.
45142
45143 2007-12-20  Eric Blake  <ebb9@byu.net>
45144
45145         Work around circular library issue when cross-compiling.
45146         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
45147         that progname.o does not need to pull in rpl_memcmp.
45148
45149 2007-12-19  Eric Blake  <ebb9@byu.net>
45150
45151         Fix memmem to avoid O(n^2) worst-case complexity.
45152         * lib/memmem.c (knuth_morris_pratt): New function.
45153         (memmem): Use it if first few naive iterations fail.
45154         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
45155         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
45156         * modules/memchr (License): Likewise.
45157         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
45158         malloca.
45159         * tests/test-memmem.c: Rewrite, borrowing ideas from
45160         test-mbsstr1.c; the old version wouldn't even compile!
45161         * modules/memmem-tests: New file.
45162         * lib/string.in.h (rpl_memmem): Add declaration.
45163         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
45164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
45165         REPLACE_MEMMEM.
45166
45167 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45168
45169         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
45170         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
45171         before any system include files, and undef after them all.  This
45172         should fix a problem on VMS reported by John E. Malmberg in
45173         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
45174
45175 2007-12-17  Eric Blake  <ebb9@byu.net>
45176
45177         Revert addition of verify, for BSD/OS.
45178         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
45179         can't handle large files, for the sake of obsolete platforms.
45180         * modules/fseeko (Depends-on): Remove verify.
45181         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
45182         * doc/functions/ftello.texi (ftello): Likewise.
45183         * doc/functions/fgetpos.texi (fgetpos): Likewise.
45184         Reported by Larry Jones.
45185
45186 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
45187
45188         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
45189         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
45190
45191 2007-12-17  Jim Meyering  <meyering@redhat.com>
45192
45193         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
45194         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
45195         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
45196         * modules/getcwd (Depends-on): Add openat.
45197         Reported by Petr Salinger.
45198
45199 2007-12-17  Bruno Haible  <bruno@clisp.org>
45200
45201         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
45202         avoid a segmentation fault of the configure test on x86_64 systems.
45203
45204 2007-12-15  Jim Meyering  <meyering@redhat.com>
45205
45206         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
45207
45208 2007-12-13  Eric Blake  <ebb9@byu.net>
45209
45210         Another fseek test.
45211         * tests/test-fseek.c (main): Also test ungetc handling.
45212         * tests/test-fseeko.c (main): Likewise.
45213         * modules/fseeko (Depends-on): Add verify.
45214         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
45215         large.
45216         Reported by Larry Jones.
45217
45218         Fix fseeko on mingw.
45219         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
45220         seek.
45221
45222         Beef up fseek tests.
45223         * tests/test-fseek.c (main): Also test eof handling.
45224         * tests/test-fseeko.c (main): Likewise.
45225         Reported by Larry Jones.
45226
45227 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
45228
45229         Fix fseeko on BSD-based platforms.
45230         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
45231         successful seek.
45232
45233 2007-12-12  Eric Blake  <ebb9@byu.net>
45234
45235         Allow circular dependency of separate libtests.a
45236         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
45237         when use_libtests.
45238
45239 2007-12-11  Eric Blake  <ebb9@byu.net>
45240
45241         Fix bug with -0.0L in previous patch.
45242         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
45243         * tests/test-isnan.c (main): Also test on zeroes.
45244         * tests/test-isnanf.c (main): Likewise.
45245         * tests/test-isnanl.h (main): Likewise.
45246
45247         Detect pseudo-denormals on x86 even when cross-compiling.
45248         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
45249         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
45250         invalid bit patterns that happen to satisfy ==.
45251
45252         Avoid link failures with separate libtests.a.
45253         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
45254         last, to satisfy circular dependencies.
45255
45256 2007-12-11  Eric Blake  <ebb9@byu.net>
45257         and Bruno Haible  <bruno@clisp.org>
45258
45259         Fix OpenBSD 4.0 <float.h> handling of long double.
45260         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
45261         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
45262         * doc/headers/float.texi (float.h): Document OpenBSD bug.
45263
45264 2007-12-11  Jim Meyering  <meyering@redhat.com>
45265
45266         * users.txt: Add libvirt.
45267
45268         Support versions of autoconf prior to 2.59c.
45269         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
45270         if it is not already defined.
45271
45272 2007-12-09  Bruno Haible  <bruno@clisp.org>
45273
45274         Let 'gnulib-tool --import' collect sources needed for the tests in
45275         tests/ rather than in lib/.
45276         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
45277         argument. If true, add rules to generate libtests.a, and put libtests.a
45278         into $(LDADD). Consider source files in subdirectories and set
45279         uses_subdirs.
45280         (func_emit_initmacro_start, func_emit_initmacro_end,
45281         func_emit_initmacro_done): Pass all arguments explicitly.
45282         (func_import): Determine two module lists main_modules,
45283         testsrelated_modules. Determine use_libtests. Determine two variables
45284         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
45285         instead of just sed_transform_lib_file. Determine two variables
45286         main_files and testsrelated_files. Compute 'files' as the union of
45287         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
45288         func_add_or_update. In the generated gnulib-comp.m4, collect the
45289         object files for tests/ in different variables than those for lib/.
45290         Substitute LIBTESTS_LIBDEPS.
45291         (func_create_testdir): Combine the uses_subdirs results from
45292         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
45293
45294 2007-12-09  Bruno Haible  <bruno@clisp.org>
45295
45296         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
45297         the build-aux directory.
45298
45299 2007-12-09  Bruno Haible  <bruno@clisp.org>
45300
45301         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
45302         introduced on 2006-09-09.
45303
45304 2007-12-07  Jim Meyering  <meyering@redhat.com>
45305
45306         Let these macros work also with autoconf-2.59.
45307         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
45308         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
45309         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45310
45311 2007-12-06  Jim Meyering  <meyering@redhat.com>
45312
45313         Avoid a configure-time syntax error in gl_FUNC_ACL.
45314         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
45315         function in each branch, before testing the cache variable.
45316
45317 2007-12-04  Eric Blake  <ebb9@byu.net>
45318
45319         Make scripts executable.
45320         * build-aux/config.guess: Add execute permissions.
45321         * build-aux/config.sub: Likewise.
45322         * build-aux/gendocs.sh: Likewise.
45323
45324         Fix frexp on mingw.
45325         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
45326         cross-compiling.
45327         * doc/functions/frexp.texi (frexp): Document the bug.
45328
45329         Make cygwin fseeko check more reliable.
45330         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
45331         version numbers, rather than unrelated feature check.
45332         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
45333         * doc/functions/ftello.texi (ftello): Likewise.
45334         Reported by Bruno Haible.
45335
45336         * m4/strerror.m4: Bump version number.
45337
45338 2007-12-03  Bruno Haible  <bruno@clisp.org>
45339
45340         * doc/functions/mprotect.texi: Mention the mingw problem.
45341
45342 2007-12-03  Eric Blake  <ebb9@byu.net>
45343
45344         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
45345         REPLACE_STRERROR is initialized before this macro.
45346
45347 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45348
45349         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
45350         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
45351         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
45352         put -lsec in even for programs other than 'ls'.  This fixes a problem
45353         for gettext reported by Bruno Haible in
45354         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
45355         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
45356         Add support for Solaris 10.  This isn't efficient, but should get the
45357         job done for now.
45358
45359 2007-12-03  James Youngman  <jay@gnu.org>
45360
45361         * doc/regexprops-generic.texi: change "an close-group" to "a
45362         close-group" and "illegal" to "not allowed".
45363
45364 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45365
45366         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
45367         pr_byname.h. Needed for the rare case when the maintainer has done
45368         "make maintainer-clean" in the source directory and then attempts a
45369         build outside the source directory.
45370         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
45371         scripts_byname.h.
45372
45373 2007-12-02  Martin Lambers <marlam@marlam.de>
45374             Bruno Haible  <bruno@clisp.org>
45375
45376         * lib/getpagesize.h: Remove file.
45377         * lib/unistd.in.h: Include declaration of getpagesize here.
45378         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
45379         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
45380         HAVE_SYS_PARAM_H.
45381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
45382         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45383         * modules/getpagesize (Files): Remove lib/getpagesize.h.
45384         (Depends-on): Add unistd.
45385         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45386         (Include): Use <unistd.h> instead of getpagesize.h.
45387         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
45388         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45389         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
45390         gl_GETPAGESIZE invocation, already handled by module dependency.
45391         * lib/pagealign_alloc.c: Don't include getpagesize.h.
45392
45393 2007-12-02  Bruno Haible  <bruno@clisp.org>
45394
45395         * modules/strings-tests: New file.
45396         * tests/test-strings.c: New file.
45397
45398         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
45399         * lib/strings.in.h: New file.
45400         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
45401         * m4/strings_h.m4: New file.
45402         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
45403         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
45404         * modules/strings: New file.
45405         * modules/string (Makefile.am): Update.
45406         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
45407         Reported by Karl Berry.
45408
45409 2007-12-01  Eric Blake  <ebb9@byu.net>
45410
45411         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
45412         accomodate fix in cygwin 1.5.25.
45413
45414 2007-12-01  Jim Meyering  <meyering@redhat.com>
45415
45416         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
45417         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
45418         that would inhibit utf8-optimization of a regexp containing line-
45419         or buffer-anchors, e.g., `^', `$'.
45420
45421 2007-11-30  Bruno Haible  <bruno@clisp.org>
45422
45423         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
45424         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
45425         glthread_recursive_lock_init.
45426         * lib/lock.c (glthread_recursive_lock_init)
45427         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
45428         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45429
45430 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
45431
45432         New function qset_acl, like set_acl but with syscall semantics.
45433         * lib/acl.h (qset_acl): New decl.
45434         * lib/acl.c (qset_acl): New function.
45435         (set_acl): Use new function.  Use more-consistent diagnostics.
45436
45437 2007-11-28  Jim Meyering  <meyering@redhat.com>
45438
45439         * modules/physmem (License): Change from GPL to LGPLv2+.
45440
45441 2007-11-26  Bruno Haible  <bruno@clisp.org>
45442
45443         * lib/vasnprintf.c (decode_long_double): Don't abort if the
45444         'long double' type has excess precision.
45445         Reported by Jim Meyering in
45446         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
45447
45448 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45449
45450         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
45451         Sync from <http://gnu.org/licenses>.
45452         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
45453         with license text from same location.
45454         * doc/maintain.texi, doc/standards.texi:  Sync from
45455         <http://savannah.gnu.org/projects/gnustandards>.
45456
45457 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
45458         and Jim Meyering  <meyering@redhat.com>
45459
45460         Adjust getdate' grammar to accept a slightly more regular language.
45461         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
45462         Before, the former was rejected.
45463         * lib/getdate.y (digits_to_date_time): New function, factored
45464         out of ...
45465         (number): ...here.  Just call digits_to_date_time.
45466         (hybrid): New non-terminal to handle an <unsigned number,
45467         signed relative offset> sequence consistently.
45468
45469 2007-11-18  Jim Meyering  <meyering@redhat.com>
45470
45471         Pull my changes from coreutils:
45472         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
45473         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
45474         use of $gnulib_tool_option_extras, so that it's separated from the
45475         preceding argument.
45476
45477         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
45478         * build-aux/bootstrap (cp_mark_as_generated): Create any required
45479         parent destination directories before copying a file into place.
45480
45481 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45482
45483         bootstrap: work also with 4-argument variant of AC_INIT
45484         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
45485
45486 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45487
45488         Port test-getaddrinfo to Solaris.
45489         Problem reported by Bruno Haible in
45490         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
45491         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
45492         explanation of setting 'hints'.
45493         Don't reject an implementation merely because it returns EAI_SERVICE.
45494         (EAI_SERVICE): Define to 0 if not defined.
45495
45496 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45497
45498         The license of gnu-make and posix-shell is now "GPLed build tool".
45499         * modules/gnu-make (License): Likewise.
45500         * modules/posix-shell (License): Likewise.
45501
45502         New module posix-shell, for determining a POSIX shell
45503         or perhaps something that is close enough to a POSIX shell.
45504         * m4/posix-shell.m4: New file.
45505         * modules/posix-shell: New file.
45506
45507         * MODULES.html.sh: Mention new module.
45508
45509         New module gnu-make, for determining whether we're using GNU Make.
45510         * m4/gnu-make.m4: New file.
45511         * modules/gnu-make: New file.
45512         * MODULES.html.sh: Mention new module.
45513
45514 2007-11-14  Jim Meyering  <meyering@redhat.com>
45515
45516         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
45517         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
45518         use this macro to create a function _definition_.
45519         Remove useless "#undef ARGMATCH_DIE".
45520
45521 2007-11-14  Bruno Haible  <bruno@clisp.org>
45522
45523         * lib/config.charset: Update for OpenBSD 4.1.
45524         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
45525
45526 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
45527
45528         Document 64-bit #if problems in stdint.texi.
45529         * doc/headers/stdint.texi (stdint.h): Mention problems with
45530         64-bit-#if, and how to work around them.
45531
45532         Don't insist on 'long long int' support in the preprocessor.  It
45533         breaks too many things.  For example, PRIdMAX still uses a 'long
45534         long int' format with the latest Sun compiler, even though
45535         HAVE_LONG_LONG_INT isn't defined due to that compiler's
45536         preprocessor problem.  This causes the latest coreutils to dump
45537         core on Solaris 10 sparc with the Sun C compiler.
45538         Instead, fix the 2007-10-16 problem in a different way, by evaluating
45539         the troublesome expressions at configure-time, not at #if-time.
45540         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
45541         preprocessor.
45542         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
45543         compile-time C checks, done at 'configure'-time.
45544         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
45545         * modules/inttypes (Makefile): Substitute the new symbols that
45546         gl_INTTYPES_H now generates.
45547         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
45548
45549 2007-11-12  Bruno Haible  <bruno@clisp.org>
45550
45551         Tests for Unicode character classification functions.
45552
45553         * modules/unictype/bidicategory-byname-tests: New file.
45554         * modules/unictype/bidicategory-name-tests: New file.
45555         * modules/unictype/bidicategory-of-tests: New file.
45556         * modules/unictype/bidicategory-test-tests: New file.
45557         * modules/unictype/block-list-tests: New file.
45558         * modules/unictype/block-of-tests: New file.
45559         * modules/unictype/block-test-tests: New file.
45560         * modules/unictype/category-C-tests: New file.
45561         * modules/unictype/category-Cc-tests: New file.
45562         * modules/unictype/category-Cf-tests: New file.
45563         * modules/unictype/category-Cn-tests: New file.
45564         * modules/unictype/category-Co-tests: New file.
45565         * modules/unictype/category-Cs-tests: New file.
45566         * modules/unictype/category-L-tests: New file.
45567         * modules/unictype/category-Ll-tests: New file.
45568         * modules/unictype/category-Lm-tests: New file.
45569         * modules/unictype/category-Lo-tests: New file.
45570         * modules/unictype/category-Lt-tests: New file.
45571         * modules/unictype/category-Lu-tests: New file.
45572         * modules/unictype/category-M-tests: New file.
45573         * modules/unictype/category-Mc-tests: New file.
45574         * modules/unictype/category-Me-tests: New file.
45575         * modules/unictype/category-Mn-tests: New file.
45576         * modules/unictype/category-N-tests: New file.
45577         * modules/unictype/category-Nd-tests: New file.
45578         * modules/unictype/category-Nl-tests: New file.
45579         * modules/unictype/category-No-tests: New file.
45580         * modules/unictype/category-P-tests: New file.
45581         * modules/unictype/category-Pc-tests: New file.
45582         * modules/unictype/category-Pd-tests: New file.
45583         * modules/unictype/category-Pe-tests: New file.
45584         * modules/unictype/category-Pf-tests: New file.
45585         * modules/unictype/category-Pi-tests: New file.
45586         * modules/unictype/category-Po-tests: New file.
45587         * modules/unictype/category-Ps-tests: New file.
45588         * modules/unictype/category-S-tests: New file.
45589         * modules/unictype/category-Sc-tests: New file.
45590         * modules/unictype/category-Sk-tests: New file.
45591         * modules/unictype/category-Sm-tests: New file.
45592         * modules/unictype/category-So-tests: New file.
45593         * modules/unictype/category-Z-tests: New file.
45594         * modules/unictype/category-Zl-tests: New file.
45595         * modules/unictype/category-Zp-tests: New file.
45596         * modules/unictype/category-Zs-tests: New file.
45597         * modules/unictype/category-and-not-tests: New file.
45598         * modules/unictype/category-and-tests: New file.
45599         * modules/unictype/category-byname-tests: New file.
45600         * modules/unictype/category-name-tests: New file.
45601         * modules/unictype/category-none-tests: New file.
45602         * modules/unictype/category-of-tests: New file.
45603         * modules/unictype/category-or-tests: New file.
45604         * modules/unictype/category-test-withtable-tests: New file.
45605         * modules/unictype/combining-class-tests: New file.
45606         * modules/unictype/ctype-alnum-tests: New file.
45607         * modules/unictype/ctype-alpha-tests: New file.
45608         * modules/unictype/ctype-blank-tests: New file.
45609         * modules/unictype/ctype-cntrl-tests: New file.
45610         * modules/unictype/ctype-digit-tests: New file.
45611         * modules/unictype/ctype-graph-tests: New file.
45612         * modules/unictype/ctype-lower-tests: New file.
45613         * modules/unictype/ctype-print-tests: New file.
45614         * modules/unictype/ctype-punct-tests: New file.
45615         * modules/unictype/ctype-space-tests: New file.
45616         * modules/unictype/ctype-upper-tests: New file.
45617         * modules/unictype/ctype-xdigit-tests: New file.
45618         * modules/unictype/decimal-digit-tests: New file.
45619         * modules/unictype/digit-tests: New file.
45620         * modules/unictype/mirror-tests: New file.
45621         * modules/unictype/numeric-tests: New file.
45622         * modules/unictype/property-alphabetic-tests: New file.
45623         * modules/unictype/property-ascii-hex-digit-tests: New file.
45624         * modules/unictype/property-bidi-arabic-digit-tests: New file.
45625         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
45626         * modules/unictype/property-bidi-block-separator-tests: New file.
45627         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
45628         * modules/unictype/property-bidi-common-separator-tests: New file.
45629         * modules/unictype/property-bidi-control-tests: New file.
45630         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
45631         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
45632         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
45633         * modules/unictype/property-bidi-european-digit-tests: New file.
45634         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
45635         * modules/unictype/property-bidi-left-to-right-tests: New file.
45636         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
45637         * modules/unictype/property-bidi-other-neutral-tests: New file.
45638         * modules/unictype/property-bidi-pdf-tests: New file.
45639         * modules/unictype/property-bidi-segment-separator-tests: New file.
45640         * modules/unictype/property-bidi-whitespace-tests: New file.
45641         * modules/unictype/property-byname-tests: New file.
45642         * modules/unictype/property-combining-tests: New file.
45643         * modules/unictype/property-composite-tests: New file.
45644         * modules/unictype/property-currency-symbol-tests: New file.
45645         * modules/unictype/property-dash-tests: New file.
45646         * modules/unictype/property-decimal-digit-tests: New file.
45647         * modules/unictype/property-default-ignorable-code-point-tests: New file.
45648         * modules/unictype/property-deprecated-tests: New file.
45649         * modules/unictype/property-diacritic-tests: New file.
45650         * modules/unictype/property-extender-tests: New file.
45651         * modules/unictype/property-format-control-tests: New file.
45652         * modules/unictype/property-grapheme-base-tests: New file.
45653         * modules/unictype/property-grapheme-extend-tests: New file.
45654         * modules/unictype/property-grapheme-link-tests: New file.
45655         * modules/unictype/property-hex-digit-tests: New file.
45656         * modules/unictype/property-hyphen-tests: New file.
45657         * modules/unictype/property-id-continue-tests: New file.
45658         * modules/unictype/property-id-start-tests: New file.
45659         * modules/unictype/property-ideographic-tests: New file.
45660         * modules/unictype/property-ids-binary-operator-tests: New file.
45661         * modules/unictype/property-ids-trinary-operator-tests: New file.
45662         * modules/unictype/property-ignorable-control-tests: New file.
45663         * modules/unictype/property-iso-control-tests: New file.
45664         * modules/unictype/property-join-control-tests: New file.
45665         * modules/unictype/property-left-of-pair-tests: New file.
45666         * modules/unictype/property-line-separator-tests: New file.
45667         * modules/unictype/property-logical-order-exception-tests: New file.
45668         * modules/unictype/property-lowercase-tests: New file.
45669         * modules/unictype/property-math-tests: New file.
45670         * modules/unictype/property-non-break-tests: New file.
45671         * modules/unictype/property-not-a-character-tests: New file.
45672         * modules/unictype/property-numeric-tests: New file.
45673         * modules/unictype/property-other-alphabetic-tests: New file.
45674         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
45675         * modules/unictype/property-other-grapheme-extend-tests: New file.
45676         * modules/unictype/property-other-id-continue-tests: New file.
45677         * modules/unictype/property-other-id-start-tests: New file.
45678         * modules/unictype/property-other-lowercase-tests: New file.
45679         * modules/unictype/property-other-math-tests: New file.
45680         * modules/unictype/property-other-uppercase-tests: New file.
45681         * modules/unictype/property-paired-punctuation-tests: New file.
45682         * modules/unictype/property-paragraph-separator-tests: New file.
45683         * modules/unictype/property-pattern-syntax-tests: New file.
45684         * modules/unictype/property-pattern-white-space-tests: New file.
45685         * modules/unictype/property-private-use-tests: New file.
45686         * modules/unictype/property-punctuation-tests: New file.
45687         * modules/unictype/property-quotation-mark-tests: New file.
45688         * modules/unictype/property-radical-tests: New file.
45689         * modules/unictype/property-sentence-terminal-tests: New file.
45690         * modules/unictype/property-soft-dotted-tests: New file.
45691         * modules/unictype/property-space-tests: New file.
45692         * modules/unictype/property-terminal-punctuation-tests: New file.
45693         * modules/unictype/property-test-tests: New file.
45694         * modules/unictype/property-titlecase-tests: New file.
45695         * modules/unictype/property-unassigned-code-value-tests: New file.
45696         * modules/unictype/property-unified-ideograph-tests: New file.
45697         * modules/unictype/property-uppercase-tests: New file.
45698         * modules/unictype/property-variation-selector-tests: New file.
45699         * modules/unictype/property-white-space-tests: New file.
45700         * modules/unictype/property-xid-continue-tests: New file.
45701         * modules/unictype/property-xid-start-tests: New file.
45702         * modules/unictype/property-zero-width-tests: New file.
45703         * modules/unictype/scripts-tests: New file.
45704         * modules/unictype/syntax-c-ident-tests: New file.
45705         * modules/unictype/syntax-c-whitespace-tests: New file.
45706         * modules/unictype/syntax-java-ident-tests: New file.
45707         * modules/unictype/syntax-java-whitespace-tests: New file.
45708         * tests/unictype/test-bidi_byname.c: New file.
45709         * tests/unictype/test-bidi_name.c: New file.
45710         * tests/unictype/test-bidi_of.c: New file.
45711         * tests/unictype/test-bidi_test.c: New file.
45712         * tests/unictype/test-block_list.c: New file.
45713         * tests/unictype/test-block_of.c: New file.
45714         * tests/unictype/test-block_test.c: New file.
45715         * tests/unictype/test-categ_and.c: New file.
45716         * tests/unictype/test-categ_and_not.c: New file.
45717         * tests/unictype/test-categ_byname.c: New file.
45718         * tests/unictype/test-categ_name.c: New file.
45719         * tests/unictype/test-categ_none.c: New file.
45720         * tests/unictype/test-categ_of.c: New file.
45721         * tests/unictype/test-categ_or.c: New file.
45722         * tests/unictype/test-categ_test_withtable.c: New file.
45723         * tests/unictype/test-combining.c: New file.
45724         * tests/unictype/test-decdigit.c: New file.
45725         * tests/unictype/test-digit.c: New file.
45726         * tests/unictype/test-mirror.c: New file.
45727         * tests/unictype/test-numeric.c: New file.
45728         * tests/unictype/test-pr_byname.c: New file.
45729         * tests/unictype/test-pr_test.c: New file.
45730         * tests/unictype/test-predicate-part1.h: New file.
45731         * tests/unictype/test-predicate-part2.h: New file.
45732         * tests/unictype/test-scripts.c: New file.
45733         * tests/unictype/test-sy_c_ident.c: New file.
45734         * tests/unictype/test-sy_java_ident.c: New file.
45735
45736         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
45737         for Unicode 5.0.0.
45738         * tests/unictype/test-categ_Cc.c: Likewise.
45739         * tests/unictype/test-categ_Cf.c: Likewise.
45740         * tests/unictype/test-categ_Cn.c: Likewise.
45741         * tests/unictype/test-categ_Co.c: Likewise.
45742         * tests/unictype/test-categ_Cs.c: Likewise.
45743         * tests/unictype/test-categ_L.c: Likewise.
45744         * tests/unictype/test-categ_Ll.c: Likewise.
45745         * tests/unictype/test-categ_Lm.c: Likewise.
45746         * tests/unictype/test-categ_Lo.c: Likewise.
45747         * tests/unictype/test-categ_Lt.c: Likewise.
45748         * tests/unictype/test-categ_Lu.c: Likewise.
45749         * tests/unictype/test-categ_M.c: Likewise.
45750         * tests/unictype/test-categ_Mc.c: Likewise.
45751         * tests/unictype/test-categ_Me.c: Likewise.
45752         * tests/unictype/test-categ_Mn.c: Likewise.
45753         * tests/unictype/test-categ_N.c: Likewise.
45754         * tests/unictype/test-categ_Nd.c: Likewise.
45755         * tests/unictype/test-categ_Nl.c: Likewise.
45756         * tests/unictype/test-categ_No.c: Likewise.
45757         * tests/unictype/test-categ_P.c: Likewise.
45758         * tests/unictype/test-categ_Pc.c: Likewise.
45759         * tests/unictype/test-categ_Pd.c: Likewise.
45760         * tests/unictype/test-categ_Pe.c: Likewise.
45761         * tests/unictype/test-categ_Pf.c: Likewise.
45762         * tests/unictype/test-categ_Pi.c: Likewise.
45763         * tests/unictype/test-categ_Po.c: Likewise.
45764         * tests/unictype/test-categ_Ps.c: Likewise.
45765         * tests/unictype/test-categ_S.c: Likewise.
45766         * tests/unictype/test-categ_Sc.c: Likewise.
45767         * tests/unictype/test-categ_Sk.c: Likewise.
45768         * tests/unictype/test-categ_Sm.c: Likewise.
45769         * tests/unictype/test-categ_So.c: Likewise.
45770         * tests/unictype/test-categ_Z.c: Likewise.
45771         * tests/unictype/test-categ_Zl.c: Likewise.
45772         * tests/unictype/test-categ_Zp.c: Likewise.
45773         * tests/unictype/test-categ_Zs.c: Likewise.
45774         * tests/unictype/test-ctype_alnum.c: Likewise.
45775         * tests/unictype/test-ctype_alpha.c: Likewise.
45776         * tests/unictype/test-ctype_blank.c: Likewise.
45777         * tests/unictype/test-ctype_cntrl.c: Likewise.
45778         * tests/unictype/test-ctype_digit.c: Likewise.
45779         * tests/unictype/test-ctype_graph.c: Likewise.
45780         * tests/unictype/test-ctype_lower.c: Likewise.
45781         * tests/unictype/test-ctype_print.c: Likewise.
45782         * tests/unictype/test-ctype_punct.c: Likewise.
45783         * tests/unictype/test-ctype_space.c: Likewise.
45784         * tests/unictype/test-ctype_upper.c: Likewise.
45785         * tests/unictype/test-ctype_xdigit.c: Likewise.
45786         * tests/unictype/test-decdigit.h: Likewise.
45787         * tests/unictype/test-digit.h: Likewise.
45788         * tests/unictype/test-numeric.h: Likewise.
45789         * tests/unictype/test-pr_alphabetic.c: Likewise.
45790         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
45791         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45792         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
45793         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
45794         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
45795         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
45796         * tests/unictype/test-pr_bidi_control.c: Likewise.
45797         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
45798         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
45799         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45800         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45801         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45802         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45803         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45804         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45805         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
45806         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
45807         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
45808         * tests/unictype/test-pr_combining.c: Likewise.
45809         * tests/unictype/test-pr_composite.c: Likewise.
45810         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45811         * tests/unictype/test-pr_dash.c: Likewise.
45812         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45813         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
45814         * tests/unictype/test-pr_deprecated.c: Likewise.
45815         * tests/unictype/test-pr_diacritic.c: Likewise.
45816         * tests/unictype/test-pr_extender.c: Likewise.
45817         * tests/unictype/test-pr_format_control.c: Likewise.
45818         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45819         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45820         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45821         * tests/unictype/test-pr_hex_digit.c: Likewise.
45822         * tests/unictype/test-pr_hyphen.c: Likewise.
45823         * tests/unictype/test-pr_id_continue.c: Likewise.
45824         * tests/unictype/test-pr_id_start.c: Likewise.
45825         * tests/unictype/test-pr_ideographic.c: Likewise.
45826         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
45827         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
45828         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45829         * tests/unictype/test-pr_iso_control.c: Likewise.
45830         * tests/unictype/test-pr_join_control.c: Likewise.
45831         * tests/unictype/test-pr_left_of_pair.c: Likewise.
45832         * tests/unictype/test-pr_line_separator.c: Likewise.
45833         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45834         * tests/unictype/test-pr_lowercase.c: Likewise.
45835         * tests/unictype/test-pr_math.c: Likewise.
45836         * tests/unictype/test-pr_non_break.c: Likewise.
45837         * tests/unictype/test-pr_not_a_character.c: Likewise.
45838         * tests/unictype/test-pr_numeric.c: Likewise.
45839         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45840         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
45841         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
45842         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45843         * tests/unictype/test-pr_other_id_start.c: Likewise.
45844         * tests/unictype/test-pr_other_lowercase.c: Likewise.
45845         * tests/unictype/test-pr_other_math.c: Likewise.
45846         * tests/unictype/test-pr_other_uppercase.c: Likewise.
45847         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
45848         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
45849         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
45850         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
45851         * tests/unictype/test-pr_private_use.c: Likewise.
45852         * tests/unictype/test-pr_punctuation.c: Likewise.
45853         * tests/unictype/test-pr_quotation_mark.c: Likewise.
45854         * tests/unictype/test-pr_radical.c: Likewise.
45855         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45856         * tests/unictype/test-pr_soft_dotted.c: Likewise.
45857         * tests/unictype/test-pr_space.c: Likewise.
45858         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45859         * tests/unictype/test-pr_titlecase.c: Likewise.
45860         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45861         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45862         * tests/unictype/test-pr_uppercase.c: Likewise.
45863         * tests/unictype/test-pr_variation_selector.c: Likewise.
45864         * tests/unictype/test-pr_white_space.c: Likewise.
45865         * tests/unictype/test-pr_xid_continue.c: Likewise.
45866         * tests/unictype/test-pr_xid_start.c: Likewise.
45867         * tests/unictype/test-pr_zero_width.c: Likewise.
45868         * tests/unictype/test-sy_c_whitespace.c: Likewise.
45869         * tests/unictype/test-sy_java_whitespace.c: Likewise.
45870
45871 2007-11-12  Bruno Haible  <bruno@clisp.org>
45872
45873         Unicode character classification functions.
45874         * lib/unictype.h: New file.
45875         * modules/unictype/base: New file.
45876         * modules/unictype/category-L: New file.
45877         * modules/unictype/category-Lu: New file.
45878         * modules/unictype/category-Ll: New file.
45879         * modules/unictype/category-Lt: New file.
45880         * modules/unictype/category-Lm: New file.
45881         * modules/unictype/category-Lo: New file.
45882         * modules/unictype/category-M: New file.
45883         * modules/unictype/category-Mn: New file.
45884         * modules/unictype/category-Mc: New file.
45885         * modules/unictype/category-Me: New file.
45886         * modules/unictype/category-N: New file.
45887         * modules/unictype/category-Nd: New file.
45888         * modules/unictype/category-Nl: New file.
45889         * modules/unictype/category-No: New file.
45890         * modules/unictype/category-P: New file.
45891         * modules/unictype/category-Pc: New file.
45892         * modules/unictype/category-Pd: New file.
45893         * modules/unictype/category-Ps: New file.
45894         * modules/unictype/category-Pe: New file.
45895         * modules/unictype/category-Pi: New file.
45896         * modules/unictype/category-Pf: New file.
45897         * modules/unictype/category-Po: New file.
45898         * modules/unictype/category-S: New file.
45899         * modules/unictype/category-Sm: New file.
45900         * modules/unictype/category-Sc: New file.
45901         * modules/unictype/category-Sk: New file.
45902         * modules/unictype/category-So: New file.
45903         * modules/unictype/category-Z: New file.
45904         * modules/unictype/category-Zs: New file.
45905         * modules/unictype/category-Zl: New file.
45906         * modules/unictype/category-Zp: New file.
45907         * modules/unictype/category-C: New file.
45908         * modules/unictype/category-Cc: New file.
45909         * modules/unictype/category-Cf: New file.
45910         * modules/unictype/category-Cs: New file.
45911         * modules/unictype/category-Co: New file.
45912         * modules/unictype/category-Cn: New file.
45913         * modules/unictype/category-or: New file.
45914         * modules/unictype/category-of: New file.
45915         * modules/unictype/category-test: New file.
45916         * modules/unictype/category-test-withtable: New file.
45917         * modules/unictype/category-byname: New file.
45918         * modules/unictype/category-none: New file.
45919         * modules/unictype/category-and: New file.
45920         * modules/unictype/category-and-not: New file.
45921         * modules/unictype/category-name: New file.
45922         * modules/unictype/combining-class: New file.
45923         * modules/unictype/category-all: New file.
45924         * modules/unictype/bidicategory-all: New file.
45925         * modules/unictype/bidicategory-byname: New file.
45926         * modules/unictype/bidicategory-name: New file.
45927         * modules/unictype/bidicategory-of: New file.
45928         * modules/unictype/bidicategory-test: New file.
45929         * modules/unictype/decimal-digit: New file.
45930         * modules/unictype/digit: New file.
45931         * modules/unictype/numeric: New file.
45932         * modules/unictype/mirror: New file.
45933         * modules/unictype/property-white-space: New file.
45934         * modules/unictype/property-alphabetic: New file.
45935         * modules/unictype/property-other-alphabetic: New file.
45936         * modules/unictype/property-not-a-character: New file.
45937         * modules/unictype/property-default-ignorable-code-point: New file.
45938         * modules/unictype/property-other-default-ignorable-code-point: New
45939         file.
45940         * modules/unictype/property-deprecated: New file.
45941         * modules/unictype/property-logical-order-exception: New file.
45942         * modules/unictype/property-variation-selector: New file.
45943         * modules/unictype/property-private-use: New file.
45944         * modules/unictype/property-unassigned-code-value: New file.
45945         * modules/unictype/property-uppercase: New file.
45946         * modules/unictype/property-other-uppercase: New file.
45947         * modules/unictype/property-lowercase: New file.
45948         * modules/unictype/property-other-lowercase: New file.
45949         * modules/unictype/property-titlecase: New file.
45950         * modules/unictype/property-soft-dotted: New file.
45951         * modules/unictype/property-id-start: New file.
45952         * modules/unictype/property-other-id-start: New file.
45953         * modules/unictype/property-id-continue: New file.
45954         * modules/unictype/property-other-id-continue: New file.
45955         * modules/unictype/property-xid-start: New file.
45956         * modules/unictype/property-xid-continue: New file.
45957         * modules/unictype/property-pattern-white-space: New file.
45958         * modules/unictype/property-pattern-syntax: New file.
45959         * modules/unictype/property-join-control: New file.
45960         * modules/unictype/property-grapheme-base: New file.
45961         * modules/unictype/property-grapheme-extend: New file.
45962         * modules/unictype/property-other-grapheme-extend: New file.
45963         * modules/unictype/property-grapheme-link: New file.
45964         * modules/unictype/property-bidi-control: New file.
45965         * modules/unictype/property-bidi-left-to-right: New file.
45966         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
45967         * modules/unictype/property-bidi-arabic-right-to-left: New file.
45968         * modules/unictype/property-bidi-european-digit: New file.
45969         * modules/unictype/property-bidi-eur-num-separator: New file.
45970         * modules/unictype/property-bidi-eur-num-terminator: New file.
45971         * modules/unictype/property-bidi-arabic-digit: New file.
45972         * modules/unictype/property-bidi-common-separator: New file.
45973         * modules/unictype/property-bidi-block-separator: New file.
45974         * modules/unictype/property-bidi-segment-separator: New file.
45975         * modules/unictype/property-bidi-whitespace: New file.
45976         * modules/unictype/property-bidi-non-spacing-mark: New file.
45977         * modules/unictype/property-bidi-boundary-neutral: New file.
45978         * modules/unictype/property-bidi-pdf: New file.
45979         * modules/unictype/property-bidi-embedding-or-override: New file.
45980         * modules/unictype/property-bidi-other-neutral: New file.
45981         * modules/unictype/property-hex-digit: New file.
45982         * modules/unictype/property-ascii-hex-digit: New file.
45983         * modules/unictype/property-ideographic: New file.
45984         * modules/unictype/property-unified-ideograph: New file.
45985         * modules/unictype/property-radical: New file.
45986         * modules/unictype/property-ids-binary-operator: New file.
45987         * modules/unictype/property-ids-trinary-operator: New file.
45988         * modules/unictype/property-zero-width: New file.
45989         * modules/unictype/property-space: New file.
45990         * modules/unictype/property-non-break: New file.
45991         * modules/unictype/property-iso-control: New file.
45992         * modules/unictype/property-format-control: New file.
45993         * modules/unictype/property-dash: New file.
45994         * modules/unictype/property-hyphen: New file.
45995         * modules/unictype/property-punctuation: New file.
45996         * modules/unictype/property-line-separator: New file.
45997         * modules/unictype/property-paragraph-separator: New file.
45998         * modules/unictype/property-quotation-mark: New file.
45999         * modules/unictype/property-sentence-terminal: New file.
46000         * modules/unictype/property-terminal-punctuation: New file.
46001         * modules/unictype/property-currency-symbol: New file.
46002         * modules/unictype/property-math: New file.
46003         * modules/unictype/property-other-math: New file.
46004         * modules/unictype/property-paired-punctuation: New file.
46005         * modules/unictype/property-left-of-pair: New file.
46006         * modules/unictype/property-combining: New file.
46007         * modules/unictype/property-composite: New file.
46008         * modules/unictype/property-decimal-digit: New file.
46009         * modules/unictype/property-numeric: New file.
46010         * modules/unictype/property-diacritic: New file.
46011         * modules/unictype/property-extender: New file.
46012         * modules/unictype/property-ignorable-control: New file.
46013         * modules/unictype/property-test: New file.
46014         * modules/unictype/property-byname: New file.
46015         * modules/unictype/property-all: New file.
46016         * modules/unictype/scripts: New file.
46017         * modules/unictype/scripts-all: New file.
46018         * modules/unictype/block-of: New file.
46019         * modules/unictype/block-test: New file.
46020         * modules/unictype/block-list: New file.
46021         * modules/unictype/block-all: New file.
46022         * modules/unictype/syntax-c-whitespace: New file.
46023         * modules/unictype/syntax-java-whitespace: New file.
46024         * modules/unictype/syntax-c-ident: New file.
46025         * modules/unictype/syntax-java-ident: New file.
46026         * modules/unictype/ctype-alnum: New file.
46027         * modules/unictype/ctype-alpha: New file.
46028         * modules/unictype/ctype-cntrl: New file.
46029         * modules/unictype/ctype-digit: New file.
46030         * modules/unictype/ctype-graph: New file.
46031         * modules/unictype/ctype-lower: New file.
46032         * modules/unictype/ctype-print: New file.
46033         * modules/unictype/ctype-punct: New file.
46034         * modules/unictype/ctype-space: New file.
46035         * modules/unictype/ctype-upper: New file.
46036         * modules/unictype/ctype-xdigit: New file.
46037         * modules/unictype/ctype-blank: New file.
46038         * lib/unictype/bidi_byname.c: New file.
46039         * lib/unictype/bidi_name.c: New file.
46040         * lib/unictype/bidi_of.c: New file.
46041         * lib/unictype/bidi_test.c: New file.
46042         * lib/unictype/bitmap.h: New file.
46043         * lib/unictype/block_test.c: New file.
46044         * lib/unictype/blocks.c: New file.
46045         * lib/unictype/categ_C.c: New file.
46046         * lib/unictype/categ_Cc.c: New file.
46047         * lib/unictype/categ_Cf.c: New file.
46048         * lib/unictype/categ_Cn.c: New file.
46049         * lib/unictype/categ_Co.c: New file.
46050         * lib/unictype/categ_Cs.c: New file.
46051         * lib/unictype/categ_L.c: New file.
46052         * lib/unictype/categ_Ll.c: New file.
46053         * lib/unictype/categ_Lm.c: New file.
46054         * lib/unictype/categ_Lo.c: New file.
46055         * lib/unictype/categ_Lt.c: New file.
46056         * lib/unictype/categ_Lu.c: New file.
46057         * lib/unictype/categ_M.c: New file.
46058         * lib/unictype/categ_Mc.c: New file.
46059         * lib/unictype/categ_Me.c: New file.
46060         * lib/unictype/categ_Mn.c: New file.
46061         * lib/unictype/categ_N.c: New file.
46062         * lib/unictype/categ_Nd.c: New file.
46063         * lib/unictype/categ_Nl.c: New file.
46064         * lib/unictype/categ_No.c: New file.
46065         * lib/unictype/categ_P.c: New file.
46066         * lib/unictype/categ_Pc.c: New file.
46067         * lib/unictype/categ_Pd.c: New file.
46068         * lib/unictype/categ_Pe.c: New file.
46069         * lib/unictype/categ_Pf.c: New file.
46070         * lib/unictype/categ_Pi.c: New file.
46071         * lib/unictype/categ_Po.c: New file.
46072         * lib/unictype/categ_Ps.c: New file.
46073         * lib/unictype/categ_S.c: New file.
46074         * lib/unictype/categ_Sc.c: New file.
46075         * lib/unictype/categ_Sk.c: New file.
46076         * lib/unictype/categ_Sm.c: New file.
46077         * lib/unictype/categ_So.c: New file.
46078         * lib/unictype/categ_Z.c: New file.
46079         * lib/unictype/categ_Zl.c: New file.
46080         * lib/unictype/categ_Zp.c: New file.
46081         * lib/unictype/categ_Zs.c: New file.
46082         * lib/unictype/categ_and.c: New file.
46083         * lib/unictype/categ_and_not.c: New file.
46084         * lib/unictype/categ_byname.c: New file.
46085         * lib/unictype/categ_name.c: New file.
46086         * lib/unictype/categ_none.c: New file.
46087         * lib/unictype/categ_of.c: New file.
46088         * lib/unictype/categ_or.c: New file.
46089         * lib/unictype/categ_test.c: New file.
46090         * lib/unictype/combining.c: New file.
46091         * lib/unictype/ctype_alnum.c: New file.
46092         * lib/unictype/ctype_alpha.c: New file.
46093         * lib/unictype/ctype_blank.c: New file.
46094         * lib/unictype/ctype_cntrl.c: New file.
46095         * lib/unictype/ctype_digit.c: New file.
46096         * lib/unictype/ctype_graph.c: New file.
46097         * lib/unictype/ctype_lower.c: New file.
46098         * lib/unictype/ctype_print.c: New file.
46099         * lib/unictype/ctype_punct.c: New file.
46100         * lib/unictype/ctype_space.c: New file.
46101         * lib/unictype/ctype_upper.c: New file.
46102         * lib/unictype/ctype_xdigit.c: New file.
46103         * lib/unictype/decdigit.c: New file.
46104         * lib/unictype/digit.c: New file.
46105         * lib/unictype/identsyntaxmap.h: New file.
46106         * lib/unictype/mirror.c: New file.
46107         * lib/unictype/numeric.c: New file.
46108         * lib/unictype/pr_alphabetic.c: New file.
46109         * lib/unictype/pr_ascii_hex_digit.c: New file.
46110         * lib/unictype/pr_bidi_arabic_digit.c: New file.
46111         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
46112         * lib/unictype/pr_bidi_block_separator.c: New file.
46113         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
46114         * lib/unictype/pr_bidi_common_separator.c: New file.
46115         * lib/unictype/pr_bidi_control.c: New file.
46116         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
46117         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
46118         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
46119         * lib/unictype/pr_bidi_european_digit.c: New file.
46120         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
46121         * lib/unictype/pr_bidi_left_to_right.c: New file.
46122         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
46123         * lib/unictype/pr_bidi_other_neutral.c: New file.
46124         * lib/unictype/pr_bidi_pdf.c: New file.
46125         * lib/unictype/pr_bidi_segment_separator.c: New file.
46126         * lib/unictype/pr_bidi_whitespace.c: New file.
46127         * lib/unictype/pr_byname.c: New file.
46128         * lib/unictype/pr_byname.gperf: New file.
46129         * lib/unictype/pr_combining.c: New file.
46130         * lib/unictype/pr_composite.c: New file.
46131         * lib/unictype/pr_currency_symbol.c: New file.
46132         * lib/unictype/pr_dash.c: New file.
46133         * lib/unictype/pr_decimal_digit.c: New file.
46134         * lib/unictype/pr_default_ignorable_code_point.c: New file.
46135         * lib/unictype/pr_deprecated.c: New file.
46136         * lib/unictype/pr_diacritic.c: New file.
46137         * lib/unictype/pr_extender.c: New file.
46138         * lib/unictype/pr_format_control.c: New file.
46139         * lib/unictype/pr_grapheme_base.c: New file.
46140         * lib/unictype/pr_grapheme_extend.c: New file.
46141         * lib/unictype/pr_grapheme_link.c: New file.
46142         * lib/unictype/pr_hex_digit.c: New file.
46143         * lib/unictype/pr_hyphen.c: New file.
46144         * lib/unictype/pr_id_continue.c: New file.
46145         * lib/unictype/pr_id_start.c: New file.
46146         * lib/unictype/pr_ideographic.c: New file.
46147         * lib/unictype/pr_ids_binary_operator.c: New file.
46148         * lib/unictype/pr_ids_trinary_operator.c: New file.
46149         * lib/unictype/pr_ignorable_control.c: New file.
46150         * lib/unictype/pr_iso_control.c: New file.
46151         * lib/unictype/pr_join_control.c: New file.
46152         * lib/unictype/pr_left_of_pair.c: New file.
46153         * lib/unictype/pr_line_separator.c: New file.
46154         * lib/unictype/pr_logical_order_exception.c: New file.
46155         * lib/unictype/pr_lowercase.c: New file.
46156         * lib/unictype/pr_math.c: New file.
46157         * lib/unictype/pr_non_break.c: New file.
46158         * lib/unictype/pr_not_a_character.c: New file.
46159         * lib/unictype/pr_numeric.c: New file.
46160         * lib/unictype/pr_other_alphabetic.c: New file.
46161         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
46162         * lib/unictype/pr_other_grapheme_extend.c: New file.
46163         * lib/unictype/pr_other_id_continue.c: New file.
46164         * lib/unictype/pr_other_id_start.c: New file.
46165         * lib/unictype/pr_other_lowercase.c: New file.
46166         * lib/unictype/pr_other_math.c: New file.
46167         * lib/unictype/pr_other_uppercase.c: New file.
46168         * lib/unictype/pr_paired_punctuation.c: New file.
46169         * lib/unictype/pr_paragraph_separator.c: New file.
46170         * lib/unictype/pr_pattern_syntax.c: New file.
46171         * lib/unictype/pr_pattern_white_space.c: New file.
46172         * lib/unictype/pr_private_use.c: New file.
46173         * lib/unictype/pr_punctuation.c: New file.
46174         * lib/unictype/pr_quotation_mark.c: New file.
46175         * lib/unictype/pr_radical.c: New file.
46176         * lib/unictype/pr_sentence_terminal.c: New file.
46177         * lib/unictype/pr_soft_dotted.c: New file.
46178         * lib/unictype/pr_space.c: New file.
46179         * lib/unictype/pr_terminal_punctuation.c: New file.
46180         * lib/unictype/pr_test.c: New file.
46181         * lib/unictype/pr_titlecase.c: New file.
46182         * lib/unictype/pr_unassigned_code_value.c: New file.
46183         * lib/unictype/pr_unified_ideograph.c: New file.
46184         * lib/unictype/pr_uppercase.c: New file.
46185         * lib/unictype/pr_variation_selector.c: New file.
46186         * lib/unictype/pr_white_space.c: New file.
46187         * lib/unictype/pr_xid_continue.c: New file.
46188         * lib/unictype/pr_xid_start.c: New file.
46189         * lib/unictype/pr_zero_width.c: New file.
46190         * lib/unictype/scripts.c: New file.
46191         * lib/unictype/sy_c_ident.c: New file.
46192         * lib/unictype/sy_c_whitespace.c: New file.
46193         * lib/unictype/sy_java_ident.c: New file.
46194         * lib/unictype/sy_java_whitespace.c: New file.
46195
46196         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
46197         Unicode 5.0.0.
46198         * lib/unictype/blocks.h: Likewise.
46199         * lib/unictype/categ_C.h: Likewise.
46200         * lib/unictype/categ_Cc.h: Likewise.
46201         * lib/unictype/categ_Cf.h: Likewise.
46202         * lib/unictype/categ_Cn.h: Likewise.
46203         * lib/unictype/categ_Co.h: Likewise.
46204         * lib/unictype/categ_Cs.h: Likewise.
46205         * lib/unictype/categ_L.h: Likewise.
46206         * lib/unictype/categ_Ll.h: Likewise.
46207         * lib/unictype/categ_Lm.h: Likewise.
46208         * lib/unictype/categ_Lo.h: Likewise.
46209         * lib/unictype/categ_Lt.h: Likewise.
46210         * lib/unictype/categ_Lu.h: Likewise.
46211         * lib/unictype/categ_M.h: Likewise.
46212         * lib/unictype/categ_Mc.h: Likewise.
46213         * lib/unictype/categ_Me.h: Likewise.
46214         * lib/unictype/categ_Mn.h: Likewise.
46215         * lib/unictype/categ_N.h: Likewise.
46216         * lib/unictype/categ_Nd.h: Likewise.
46217         * lib/unictype/categ_Nl.h: Likewise.
46218         * lib/unictype/categ_No.h: Likewise.
46219         * lib/unictype/categ_P.h: Likewise.
46220         * lib/unictype/categ_Pc.h: Likewise.
46221         * lib/unictype/categ_Pd.h: Likewise.
46222         * lib/unictype/categ_Pe.h: Likewise.
46223         * lib/unictype/categ_Pf.h: Likewise.
46224         * lib/unictype/categ_Pi.h: Likewise.
46225         * lib/unictype/categ_Po.h: Likewise.
46226         * lib/unictype/categ_Ps.h: Likewise.
46227         * lib/unictype/categ_S.h: Likewise.
46228         * lib/unictype/categ_Sc.h: Likewise.
46229         * lib/unictype/categ_Sk.h: Likewise.
46230         * lib/unictype/categ_Sm.h: Likewise.
46231         * lib/unictype/categ_So.h: Likewise.
46232         * lib/unictype/categ_Z.h: Likewise.
46233         * lib/unictype/categ_Zl.h: Likewise.
46234         * lib/unictype/categ_Zp.h: Likewise.
46235         * lib/unictype/categ_Zs.h: Likewise.
46236         * lib/unictype/categ_of.h: Likewise.
46237         * lib/unictype/combining.h: Likewise.
46238         * lib/unictype/ctype_alnum.h: Likewise.
46239         * lib/unictype/ctype_alpha.h: Likewise.
46240         * lib/unictype/ctype_blank.h: Likewise.
46241         * lib/unictype/ctype_cntrl.h: Likewise.
46242         * lib/unictype/ctype_digit.h: Likewise.
46243         * lib/unictype/ctype_graph.h: Likewise.
46244         * lib/unictype/ctype_lower.h: Likewise.
46245         * lib/unictype/ctype_print.h: Likewise.
46246         * lib/unictype/ctype_punct.h: Likewise.
46247         * lib/unictype/ctype_space.h: Likewise.
46248         * lib/unictype/ctype_upper.h: Likewise.
46249         * lib/unictype/ctype_xdigit.h: Likewise.
46250         * lib/unictype/decdigit.h: Likewise.
46251         * lib/unictype/digit.h: Likewise.
46252         * lib/unictype/mirror.h: Likewise.
46253         * lib/unictype/numeric.h: Likewise.
46254         * lib/unictype/pr_alphabetic.h: Likewise.
46255         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
46256         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
46257         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
46258         * lib/unictype/pr_bidi_block_separator.h: Likewise.
46259         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
46260         * lib/unictype/pr_bidi_common_separator.h: Likewise.
46261         * lib/unictype/pr_bidi_control.h: Likewise.
46262         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
46263         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
46264         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
46265         * lib/unictype/pr_bidi_european_digit.h: Likewise.
46266         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
46267         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
46268         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
46269         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
46270         * lib/unictype/pr_bidi_pdf.h: Likewise.
46271         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
46272         * lib/unictype/pr_bidi_whitespace.h: Likewise.
46273         * lib/unictype/pr_combining.h: Likewise.
46274         * lib/unictype/pr_composite.h: Likewise.
46275         * lib/unictype/pr_currency_symbol.h: Likewise.
46276         * lib/unictype/pr_dash.h: Likewise.
46277         * lib/unictype/pr_decimal_digit.h: Likewise.
46278         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
46279         * lib/unictype/pr_deprecated.h: Likewise.
46280         * lib/unictype/pr_diacritic.h: Likewise.
46281         * lib/unictype/pr_extender.h: Likewise.
46282         * lib/unictype/pr_format_control.h: Likewise.
46283         * lib/unictype/pr_grapheme_base.h: Likewise.
46284         * lib/unictype/pr_grapheme_extend.h: Likewise.
46285         * lib/unictype/pr_grapheme_link.h: Likewise.
46286         * lib/unictype/pr_hex_digit.h: Likewise.
46287         * lib/unictype/pr_hyphen.h: Likewise.
46288         * lib/unictype/pr_id_continue.h: Likewise.
46289         * lib/unictype/pr_id_start.h: Likewise.
46290         * lib/unictype/pr_ideographic.h: Likewise.
46291         * lib/unictype/pr_ids_binary_operator.h: Likewise.
46292         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
46293         * lib/unictype/pr_ignorable_control.h: Likewise.
46294         * lib/unictype/pr_iso_control.h: Likewise.
46295         * lib/unictype/pr_join_control.h: Likewise.
46296         * lib/unictype/pr_left_of_pair.h: Likewise.
46297         * lib/unictype/pr_line_separator.h: Likewise.
46298         * lib/unictype/pr_logical_order_exception.h: Likewise.
46299         * lib/unictype/pr_lowercase.h: Likewise.
46300         * lib/unictype/pr_math.h: Likewise.
46301         * lib/unictype/pr_non_break.h: Likewise.
46302         * lib/unictype/pr_not_a_character.h: Likewise.
46303         * lib/unictype/pr_numeric.h: Likewise.
46304         * lib/unictype/pr_other_alphabetic.h: Likewise.
46305         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
46306         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
46307         * lib/unictype/pr_other_id_continue.h: Likewise.
46308         * lib/unictype/pr_other_id_start.h: Likewise.
46309         * lib/unictype/pr_other_lowercase.h: Likewise.
46310         * lib/unictype/pr_other_math.h: Likewise.
46311         * lib/unictype/pr_other_uppercase.h: Likewise.
46312         * lib/unictype/pr_paired_punctuation.h: Likewise.
46313         * lib/unictype/pr_paragraph_separator.h: Likewise.
46314         * lib/unictype/pr_pattern_syntax.h: Likewise.
46315         * lib/unictype/pr_pattern_white_space.h: Likewise.
46316         * lib/unictype/pr_private_use.h: Likewise.
46317         * lib/unictype/pr_punctuation.h: Likewise.
46318         * lib/unictype/pr_quotation_mark.h: Likewise.
46319         * lib/unictype/pr_radical.h: Likewise.
46320         * lib/unictype/pr_sentence_terminal.h: Likewise.
46321         * lib/unictype/pr_soft_dotted.h: Likewise.
46322         * lib/unictype/pr_space.h: Likewise.
46323         * lib/unictype/pr_terminal_punctuation.h: Likewise.
46324         * lib/unictype/pr_titlecase.h: Likewise.
46325         * lib/unictype/pr_unassigned_code_value.h: Likewise.
46326         * lib/unictype/pr_unified_ideograph.h: Likewise.
46327         * lib/unictype/pr_uppercase.h: Likewise.
46328         * lib/unictype/pr_variation_selector.h: Likewise.
46329         * lib/unictype/pr_white_space.h: Likewise.
46330         * lib/unictype/pr_xid_continue.h: Likewise.
46331         * lib/unictype/pr_xid_start.h: Likewise.
46332         * lib/unictype/pr_zero_width.h: Likewise.
46333         * lib/unictype/scripts.h: Likewise.
46334         * lib/unictype/scripts_byname.gperf: Likewise.
46335         * lib/unictype/sy_c_ident.h: Likewise.
46336         * lib/unictype/sy_c_whitespace.h: Likewise.
46337         * lib/unictype/sy_java_ident.h: Likewise.
46338         * lib/unictype/sy_java_whitespace.h: Likewise.
46339
46340         * lib/unictype/Makefile: New file.
46341         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
46342         glibc.
46343         * lib/unictype/3level.h: New file, copied from glibc.
46344         * lib/unictype/3levelbit.h: New file.
46345
46346 2007-11-11  Bruno Haible  <bruno@clisp.org>
46347
46348         * modules/gperf: New file.
46349         * modules/iconv_open (Depends-on): Add it.
46350         (Makefile.am): Remove the GPERF definition.
46351
46352 2007-11-11  Bruno Haible  <bruno@clisp.org>
46353
46354         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
46355         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
46356
46357 2007-11-11  Bruno Haible  <bruno@clisp.org>
46358
46359         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
46360         (usage): Remove function.
46361
46362 2007-11-11  Bruno Haible  <bruno@clisp.org>
46363
46364         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
46365         gl_FUNC_CEILF_LIBS.
46366         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
46367         gl_FUNC_CEIL_LIBS.
46368         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
46369         gl_FUNC_CEILL_LIBS.
46370         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
46371         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
46372         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
46373
46374 2007-11-11  Bruno Haible  <bruno@clisp.org>
46375
46376         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
46377         roundf were declared but do not exist on functions.
46378         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
46379         roundl were declared but do not exist on functions.
46380         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
46381         HAVE_FLOORL_AND_CEILL, respectively.
46382         Needed for Sun C on Solaris 10.
46383
46384 2007-11-11  Bruno Haible  <bruno@clisp.org>
46385
46386         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
46387         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
46388         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
46389         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
46390         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
46391         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
46392         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
46393         HAVE_DECL_ROUNDF.
46394         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
46395         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
46396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
46397         of HAVE_DECL_ROUND*.
46398         * modules/math (Makefile.am): Update.
46399
46400 2007-11-10  Bruno Haible  <bruno@clisp.org>
46401
46402         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
46403         ptrdiff_t as m4/intl.m4.
46404
46405 2007-11-10  Jim Meyering  <meyering@redhat.com>
46406
46407         Avoid link failure for the argmatch test.
46408         * tests/test-argmatch.c (usage): Define function to avoid a link
46409         failure: argmatch_die requires a usage function.
46410
46411 2007-11-09  Bruno Haible  <bruno@clisp.org>
46412
46413         * doc/functions/snprintf.texi: Mention BeOS deficiency.
46414         * doc/functions/vsnprintf.texi: Likewise.
46415         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
46416         with a size argument < 2.
46417
46418 2007-11-09  Bruno Haible  <bruno@clisp.org>
46419
46420         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
46421         buffer. Fixes an inefficiency introduced on 2007-11-03.
46422
46423 2007-11-09  Bruno Haible  <bruno@clisp.org>
46424
46425         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
46426         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
46427
46428 2007-11-08  Jim Meyering  <meyering@redhat.com>
46429
46430         Change cache variable name prefix "jm_" to "gl_" everywhere.
46431         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
46432         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
46433         * m4/uptime.m4: s/gl_/jm_/
46434
46435 2007-11-07  Bruno Haible  <bruno@clisp.org>
46436
46437         Update to GNU gettext 0.17.
46438         * m4/intl.m4: Update to GNU gettext 0.17.
46439         * m4/po.m4: Likewise.
46440         * modules/gettext (Files): Remove m4/ulonglong.m4.
46441         (configure.ac): Require gettext infrastructure from version 0.17.
46442
46443 2007-11-06  Bruno Haible  <bruno@clisp.org>
46444
46445         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
46446         symbolic values are not defined in a public header.
46447         * lib/freadable.c (freadable) [QNX]: Likewise.
46448         * lib/freadahead.c (freadahead) [QNX]: Likewise.
46449         * lib/freading.c (freading) [QNX]: Likewise.
46450         * lib/fseterr.c (fseterr) [QNX]: Likewise.
46451         * lib/fwritable.c (fwritable) [QNX]: Likewise.
46452         * lib/fwriting.c (fwriting) [QNX]: Likewise.
46453         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
46454         Reported by Alain Magloire.
46455
46456         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
46457
46458 2007-11-05  Bruno Haible  <bruno@clisp.org>
46459
46460         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
46461         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
46462         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
46463         Reported by Eric Blake.
46464
46465 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46466             Bruno Haible  <bruno@clisp.org>
46467
46468         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
46469         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
46470         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
46471         (malloc): Undefine also before including <stdlib.h>.
46472         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
46473         Needed on OSF/1 4.0.
46474
46475 2007-11-05  Jim Meyering  <meyering@redhat.com>
46476
46477         git-version-gen: sync from coreutils.
46478         * build-aux/git-version-gen: Add comments.
46479         Change the first '-' to '.' in the snapshot version string,
46480         e.g., 6.9-377-08144 -> 6.9.377-08144
46481         Remove first parameter.
46482         Don't declare a version "-dirty" merely because a time
46483         stamp has changed.
46484
46485 2007-11-04  Bruno Haible  <bruno@clisp.org>
46486
46487         * lib/lock.h: Protect all macro definitions containing an 'if'
46488         statement through a "do { ... } while (0)".
46489         * lib/tls.h: Likewise.
46490
46491 2007-11-04  Bruno Haible  <bruno@clisp.org>
46492
46493         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
46494
46495 2007-11-04  Bruno Haible  <bruno@clisp.org>
46496
46497         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
46498         * modules/fprintf-posix (Depends-on): Add nocrash.
46499         * modules/snprintf-posix (Depends-on): Likewise.
46500         * modules/sprintf-posix (Depends-on): Likewise.
46501         * modules/vasnprintf-posix (Depends-on): Likewise.
46502         * modules/vasprintf-posix (Depends-on): Likewise.
46503         * modules/vfprintf-posix (Depends-on): Likewise.
46504         * modules/vsnprintf-posix (Depends-on): Likewise.
46505         * modules/vsprintf-posix (Depends-on): Likewise.
46506         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46507         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46508         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46509         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46510         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46511         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46512         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46513
46514 2007-11-04  Bruno Haible  <bruno@clisp.org>
46515
46516         * modules/nocrash: New file.
46517         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
46518         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
46519
46520 2007-11-04  Bruno Haible  <bruno@clisp.org>
46521
46522         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
46523         precision handling.
46524         * tests/test-vasprintf-posix.c (test_function): Likewise.
46525         * tests/test-snprintf-posix.h (test_function): Likewise.
46526         * tests/test-sprintf-posix.h (test_function): Likewise.
46527
46528         Fix *printf behaviour for large precisions on mingw and BeOS.
46529         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
46530         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
46531         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
46532         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46533         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46534         gl_PRINTF_PRECISION and test its result. Invoke
46535         gl_PREREQ_VASNPRINTF_PRECISION.
46536         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46537         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46538         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46539         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46540         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46541         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46542         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46543         * doc/functions/fprintf.texi: Update.
46544         * doc/functions/printf.texi: Update.
46545         * doc/functions/snprintf.texi: Update.
46546         * doc/functions/sprintf.texi: Update.
46547         * doc/functions/vfprintf.texi: Update.
46548         * doc/functions/vprintf.texi: Update.
46549         * doc/functions/vsnprintf.texi: Update.
46550         * doc/functions/vsprintf.texi: Update.
46551
46552 2007-11-04  Bruno Haible  <bruno@clisp.org>
46553
46554         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
46555
46556 2007-11-04  Bruno Haible  <bruno@clisp.org>
46557
46558         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
46559         Reported by Sylvain Beucler <beuc@gnu.org>.
46560
46561 2007-11-03  Bruno Haible  <bruno@clisp.org>
46562
46563         * tests/test-fprintf-posix2.sh: New file.
46564         * tests/test-fprintf-posix2.c: New file.
46565         * modules/fprintf-posix-tests (Files): Add them.
46566         (TESTS): Add test-fprintf-posix2.sh.
46567         (configure.ac): Check for getrlimit and setrlimit.
46568         (check_PROGRAMS): Add test-fprintf-posix2.
46569
46570         * tests/test-printf-posix2.sh: New file.
46571         * tests/test-printf-posix2.c: New file.
46572         * modules/printf-posix-tests (Files): Add them.
46573         (TESTS): Add test-printf-posix2.sh.
46574         (configure.ac): Check for getrlimit and setrlimit.
46575         (check_PROGRAMS): Add test-printf-posix2.
46576
46577         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
46578         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
46579         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
46580         (decode_double): New function, copied from decode_long_double.
46581         (scale10_round_decimal_decoded): New function, extracted from
46582         scale10_round_decimal_long_double.
46583         (scale10_round_decimal_long_double): Use it.
46584         (scale10_round_decimal_double): New function.
46585         (floorlog10): New function.
46586         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
46587         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
46588         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46589         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46590         gl_PRINTF_ENOMEM and test its result. Invoke
46591         gl_PREREQ_VASNPRINTF_ENOMEM.
46592         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46593         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46594         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46595         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46596         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46597         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46598         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46599         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
46600         * modules/snprintf-posix (Depends-on): Likewise.
46601         * modules/sprintf-posix (Depends-on): Likewise.
46602         * modules/vasnprintf-posix (Depends-on): Likewise.
46603         * modules/vasprintf-posix (Depends-on): Likewise.
46604         * modules/vfprintf-posix (Depends-on): Likewise.
46605         * modules/vsnprintf-posix (Depends-on): Likewise.
46606         * modules/vsprintf-posix (Depends-on): Likewise.
46607         * doc/functions/fprintf.texi: Update.
46608         * doc/functions/printf.texi: Update.
46609         * doc/functions/snprintf.texi: Update.
46610         * doc/functions/sprintf.texi: Update.
46611         * doc/functions/vfprintf.texi: Update.
46612         * doc/functions/vprintf.texi: Update.
46613         * doc/functions/vsnprintf.texi: Update.
46614         * doc/functions/vsprintf.texi: Update.
46615
46616 2007-11-03  Bruno Haible  <bruno@clisp.org>
46617
46618         * modules/frexp-nolibm-tests: New file.
46619
46620         * modules/frexp-nolibm: New file.
46621         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
46622
46623 2007-11-03  Bruno Haible  <bruno@clisp.org>
46624
46625         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
46626         value is C99 compliant.
46627         Needed for OSF/1 5.1.
46628
46629 2007-11-03  Bruno Haible  <bruno@clisp.org>
46630
46631         Fix out-of-memory handling of vasnprintf.
46632         * lib/printf-parse.c: Include <errno.h>.
46633         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
46634         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
46635         is already set.
46636
46637 2007-11-02  Eric Blake  <ebb9@byu.net>
46638
46639         Fix tests on cygwin.
46640         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
46641
46642 2007-11-01  Bruno Haible  <bruno@clisp.org>
46643
46644         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
46645         warning.
46646         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
46647         needed for POSIX compatibility.
46648
46649 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46650
46651         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
46652         for compatibility with GNU.
46653
46654 2007-11-01  Bruno Haible  <bruno@clisp.org>
46655
46656         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
46657         (putenv): Renamed from rpl_putenv. Change argument type from
46658         'const char *' to 'char *'.
46659         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
46660         of defining putenv in config.h, just set REPLACE_PUTENV.
46661         * modules/putenv (Depends-on): Add stdlib.
46662         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46663         (Include): Use <stdlib.h>.
46664         * lib/stdlib.in.h (putenv): New declaration.
46665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
46666         REPLACE_PUTENV.
46667         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
46668         REPLACE_PUTENV.
46669         Needed for MacOS X 10.5.0.
46670         Reported by Peter O'Gorman <peter@pogma.com>.
46671
46672 2007-11-01  Jim Meyering  <meyering@redhat.com>
46673
46674         Treat an empty date string exactly like "0".
46675         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
46676         if the remaining date string (to be parsed) is empty, use "0".
46677         Reported by Mischa Molhoek and discussed in this thread:
46678         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
46679
46680 2007-10-31  Bruno Haible  <bruno@clisp.org>
46681
46682         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
46683         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
46684         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
46685         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
46686         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
46687         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
46688
46689 2007-10-31  Bruno Haible  <bruno@clisp.org>
46690
46691         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
46692         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
46693         (AC_TYPE_LONG_LONG_INT): Use it.
46694         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
46695         it as well.
46696         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
46697         to m4/longlong.m4.
46698         * modules/stdint (Files): Remove m4/ulonglong.m4.
46699         * modules/strtoull (Files): Use m4/longlong.m4 instead of
46700         m4/ulonglong.m4.
46701         * modules/strtoumax (Files): Likewise.
46702
46703 2007-10-30  Bruno Haible  <bruno@clisp.org>
46704
46705         * modules/xvasprintf-posix: New file.
46706         Suggested by Eric Blake.
46707
46708 2007-10-30  Bruno Haible  <bruno@clisp.org>
46709
46710         * modules/xprintf-posix-tests: New file.
46711         * tests/test-xprintf-posix.sh: New file.
46712         * tests/test-xprintf-posix.c: New file.
46713         * tests/test-xfprintf-posix.c: New file.
46714
46715         * modules/xprintf-posix: New file.
46716
46717 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46718
46719         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
46720         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
46721         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
46722
46723 2007-10-29  Bruno Haible  <bruno@clisp.org>
46724
46725         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
46726         contain the special marker '_cv_'.
46727         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46728         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46729         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46730         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
46731         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46732         Reported by Ralf Wildenhues.
46733
46734 2007-10-29  Bruno Haible  <bruno@clisp.org>
46735
46736         * gnulib-tool (func_import): When --lgpl is not specified, set
46737         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
46738         GPLv3.
46739         Reported by Simon Josefsson.
46740
46741 2007-10-28  Bruno Haible  <bruno@clisp.org>
46742
46743         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
46744         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
46745         HAVE_DECL_ISFINITE.
46746         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46747         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
46748         HAVE_DECL_ISFINITE.
46749
46750 2007-10-28  Bruno Haible  <bruno@clisp.org>
46751
46752         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
46753         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
46754
46755 2007-10-28  Bruno Haible  <bruno@clisp.org>
46756
46757         Fix link errors with Sun C 5.0 on Solaris 10.
46758         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
46759         function is declared but not present in the compiler's libm.
46760         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
46761         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
46762         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
46763         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
46764         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
46765         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
46766         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
46767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46768         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
46769         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
46770         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
46771         HAVE_DECL_FLOORL.
46772
46773 2007-10-28  Bruno Haible  <bruno@clisp.org>
46774
46775         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
46776         gl_FUNC_FLOORL. Cache the result.
46777         (gl_FUNC_FLOORL): Use it.
46778         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
46779         gl_FUNC_CEILL. Cache the result.
46780         (gl_FUNC_CEILL): Use it.
46781
46782         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
46783         gl_FUNC_FLOOR. Cache the result.
46784         (gl_FUNC_FLOOR): Use it.
46785         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
46786         gl_FUNC_CEIL. Cache the result.
46787         (gl_FUNC_CEIL): Use it.
46788
46789         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
46790         gl_FUNC_FLOORF. Cache the result.
46791         (gl_FUNC_FLOORF): Use it.
46792         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
46793         gl_FUNC_CEILF. Cache the result.
46794         (gl_FUNC_CEILF): Use it.
46795
46796 2007-10-28  Bruno Haible  <bruno@clisp.org>
46797
46798         * gnulib-tool: Allow specifying the LGPL version number through
46799         --lgpl=2 or --lgpl=3.
46800         (func_usage): Document --lgpl with argument.
46801         Handle --lgpl=... arguments.
46802         (func_import): Recognize also gl_LGPL calls with an argument. When
46803         --lgpl=2 is used and the module's license is just LGPL, report an
46804         error. Set sed_transform_lib_file according to the lgpl variable. In
46805         the generated files, use --lgpl or gl_LGPL invocations with argument,
46806         if necessary.
46807         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
46808         an LGPv2+ license.
46809         * doc/gnulib-tool.texi (Modified imports): Update explanation of
46810         gl_LGPL macro.
46811
46812 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46813             Bruno Haible  <bruno@clisp.org>
46814
46815         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
46816         (u16_uctomb_aux): Likewise.
46817         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
46818         !HAVE_INLINE.
46819         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
46820
46821 2007-10-28  Bruno Haible  <bruno@clisp.org>
46822
46823         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
46824         Invoke AM_GETTEXT_OPTION if it exists.
46825         * modules/vasprintf: Likewise.
46826         * modules/verror: Likewise.
46827         * modules/xprintf: Likewise.
46828         * modules/xvasprintf: Likewise.
46829
46830 2007-10-27  Ben Pfaff  <blp@gnu.org>
46831
46832         * lib/math.in.h: Define isfinite macro and prototypes for
46833         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
46834         implementations.
46835         * m4/math_h.m4: New substitutions for isfinite module.
46836         * lib/isfinite.c: New file.
46837         * m4/isfinite.m4: New file.
46838         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
46839         * modules/isfinite: New file.
46840         * modules/isfinite-tests: New file.
46841         * tests/tests-isfinite.c: New file.
46842         * doc/functions/isfinite.texi: Mention isfinite module.
46843         * MODULES.html.sh: Mention new module.
46844
46845 2007-10-27  Ben Pfaff  <blp@gnu.org>
46846
46847         Ralf Wildenhues reported that Tru64 4.0D declares the round
46848         functions but does not have definitions.
46849         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
46850         cannot be found in any library, set the output variable to
46851         "missing" instead of "".
46852         * m4/round.m4: Also use our substitute if we cannot find round in
46853         any library, even if it is declared.
46854         * m4/roundf.m4: Likewise for roundf.
46855         * m4/roundl.m4: Likewise for roundl.
46856         * lib/math.in.h: Undefine roundf, round, roundl before defining
46857         their replacements, to allow for hypothetical systems where these
46858         may be defined as macros but not available in libraries.
46859
46860 2007-10-27  Bruno Haible  <bruno@clisp.org>
46861
46862         * doc/gnulib.texi: Invoke @firstparagraphindent.
46863         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
46864         changes in gnulib.
46865         (Source changes): New section.
46866
46867 2007-10-26  Bruno Haible  <bruno@clisp.org>
46868
46869         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
46870         borrowed from autoconf.
46871
46872 2007-10-26  Bruno Haible  <bruno@clisp.org>
46873
46874         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
46875         strerror returned the empty string. Needed on HP-UX 11.00.
46876
46877 2007-10-24  Micah Cowan  <micah@cowan.name>
46878
46879         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
46880         * build-aux/bootstrap: Remove support for now-unnecessary option,
46881         --cvs-user, and envvars CVS_USER, CVS_RSH.
46882
46883 2007-10-24  Jim Meyering  <meyering@redhat.com>
46884
46885         Avoid diagnostics from sha1sum when there is no cached checksum.
46886         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
46887         if the po.s1 file hasn't been created yet.
46888
46889         * build-aux/bootstrap: Sync from coreutils:
46890         2007-10-24  Jim Meyering  <meyering@redhat.com>
46891         Get gnulib from the git repository, not from an obsolete cvs one.
46892         * build-aux/bootstrap: Suggestion from Micah Cowan.
46893         2007-10-04  Jim Meyering  <jim@meyering.net>
46894         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
46895         (update_po_files): Work also when there are no .po files in po/.
46896
46897 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46898
46899         * README: Append ".git" to git and cg examples.
46900         Problem reported by Benoit Sigoure.
46901
46902 2007-10-23  Micah Cowan  <micah@cowan.name>
46903
46904         * users.txt: Add wget.
46905
46906 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46907
46908         Fix linking of some unistdio tests on FreeBSD.
46909         * modules/unistdio/u16-vsnprintf-tests
46910         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
46911         * modules/unistdio/u16-vsprintf-tests
46912         (test_u16_vsnprintf1_LDADD): Likewise.
46913         * modules/unistdio/u32-vsnprintf-tests
46914         (test_u32_vsnprintf1_LDADD): Likewise.
46915         * modules/unistdio/u32-vsprintf-tests
46916         (test_u32_vsprintf1_LDADD): Likewise.
46917         * modules/unistdio/u8-vsnprintf-tests
46918         (test_u8_vsnprintf1_LDADD): Likewise.
46919         * modules/unistdio/u8-vsprintf-tests
46920         (test_u8_vsprintf1_LDADD): Likewise.
46921         * modules/unistdio/ulc-vsnprintf-tests
46922         (test_ulc_vsnprintf1_LDADD): Likewise.
46923         * modules/unistdio/ulc-vsprintf-tests
46924         (test_ulc_vsprintf1_LDADD): Likewise.
46925
46926         Fix linking of some uniconv tests on FreeBSD.
46927         * modules/uniconv/u16-conv-from-enc-tests
46928         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
46929         * modules/uniconv/u16-conv-to-enc-tests
46930         (test_u16_conv_to_enc_LDADD): Likewise.
46931         * modules/uniconv/u16-strconv-from-enc-tests
46932         (test_u16_strconv_from_enc_LDADD): Likewise.
46933         * modules/uniconv/u16-strconv-to-enc-tests
46934         (test_u16_strconv_to_enc_LDADD): Likewise.
46935         * modules/uniconv/u32-conv-from-enc-tests
46936         (test_u32_conv_from_enc_LDADD): Likewise.
46937         * modules/uniconv/u32-conv-to-enc-tests
46938         (test_u32_conv_to_enc_LDADD): Likewise.
46939         * modules/uniconv/u32-strconv-from-enc-tests
46940         (test_u32_strconv_from_enc_LDADD): Likewise.
46941         * modules/uniconv/u32-strconv-to-enc-tests
46942         (test_u32_strconv_to_enc_LDADD): Likewise.
46943         * modules/uniconv/u8-conv-from-enc-tests
46944         (test_u8_conv_from_enc_LDADD): Likewise.
46945         * modules/uniconv/u8-conv-to-enc-tests
46946         (test_u8_conv_to_enc_LDADD): Likewise.
46947         * modules/uniconv/u8-strconv-from-enc-tests
46948         (test_u8_strconv_from_enc_LDADD): Likewise.
46949         * modules/uniconv/u8-strconv-to-enc-tests
46950         (test_u8_strconv_to_enc_LDADD): Likewise.
46951
46952 2007-10-22  Bruno Haible  <bruno@clisp.org>
46953
46954         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
46955         size.
46956
46957 2007-10-22  Eric Blake  <ebb9@byu.net>
46958
46959         Tweak x*printf documentation.
46960         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
46961         variable name and comments.
46962         Suggested by Bruno Haible.
46963
46964 2007-10-22  Bruno Haible  <bruno@clisp.org>
46965
46966         * lib/acl.c (copy_acl): Fix file name in comment.
46967
46968 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46969
46970         Fix Tru64 problem with stdbool.h.
46971         * lib/stdbool.in.h (false, true):
46972         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
46973         Don't declare as an enum in this situation; it runs afoul of Tru64.
46974         Problem reported by Steven M. Schweda in
46975         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
46976
46977 2007-10-22  Eric Blake  <ebb9@byu.net>
46978
46979         Also wrap vf?printf.
46980         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
46981         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
46982         (xvprintf, xvfprintf): New functions.
46983
46984 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46985
46986         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
46987         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
46988
46989         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
46990         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
46991
46992 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46993
46994         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
46995         by Bruno Haible.
46996
46997 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46998
46999         * lib/getloadavg.c
47000         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
47001         Undef `sys' after including sys/table.h, for Tru64 4.0D.
47002
47003         * tests/test-i-ring.c: Work for C89.
47004
47005 2007-10-22  Bruno Haible  <bruno@clisp.org>
47006
47007         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
47008         -1u, in preprocessor expression, so that we don't test for the bug
47009         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
47010         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
47011
47012 2007-10-22  Eric Blake  <ebb9@byu.net>
47013
47014         * tests/test-yesno.sh: Silence stderr during test.
47015
47016 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47017
47018         * modules/crypto/gc-camellia: New file.
47019
47020         * m4/gc-camellia.m4: New file.
47021
47022         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
47023
47024         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
47025
47026 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47027
47028         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
47029         --help to stdout.  Reported by sms@antinode.org (Steven
47030         M. Schweda).
47031
47032 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47033
47034         * users.txt: Fix link to libksba.
47035
47036 2007-10-21  Ben Pfaff  <blp@gnu.org>
47037
47038         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
47039         round.c roundf implementation that depends on floorf and ceilf to
47040         be tested unconditionally.
47041
47042 2007-10-21  Ben Pfaff  <blp@gnu.org>
47043
47044         * m4/check-libm-func.m4: Removed.
47045         * m4/check-math-lib.m4: New file.
47046         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
47047         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
47048         definition and lack of AC_LIBOBJ([roundf]).
47049         * m4/roundl.m4: Ditto, and similarly for roundl.
47050         * modules/round: Reference new m4 file.
47051         * modules/roundf: Ditto.
47052         * modules/roundl: Ditto.
47053         * tests/test-round2.c (main): Use ROUND instead of round.
47054         Bug report from Bruno Haible.
47055
47056 2007-10-21  Bruno Haible  <bruno@clisp.org>
47057
47058         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
47059         context.
47060
47061 2007-10-21  Bruno Haible  <bruno@clisp.org>
47062
47063         * tests/test-wcwidth.c (main): Allow negative result for some control
47064         characters.
47065
47066         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
47067         Needed on OSF/1 5.1.
47068
47069 2007-10-21  Bruno Haible  <bruno@clisp.org>
47070
47071         * tests/test-floorf1.c: Include isnanf.h.
47072         (main): Use isnanf() instead of isnan().
47073         * tests/test-ceilf1.c: Include isnanf.h.
47074         (main): Use isnanf() instead of isnan().
47075         * tests/test-truncf1.c: Include isnanf.h.
47076         (main): Use isnanf() instead of isnan().
47077         * tests/test-roundf1.c: Include isnanf.h.
47078         (main): Use isnanf() instead of isnan().
47079
47080 2007-10-21  Eric Blake  <ebb9@byu.net>
47081
47082         * users.txt: Update URL for m4.
47083
47084 2007-10-21  Bruno Haible  <bruno@clisp.org>
47085
47086         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
47087
47088 2007-10-21  Bruno Haible  <bruno@clisp.org>
47089
47090         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
47091         Git's management files if the CVS files are not present.
47092
47093 2007-10-20  Bruno Haible  <bruno@clisp.org>
47094
47095         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
47096         gcc-3.4.x.
47097
47098 2007-10-20  Ben Pfaff  <blp@gnu.org>
47099
47100         * lib/math.in.h: Declare round, roundf, roundl if we are providing
47101         implementations.
47102         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
47103         * lib/round.c: New file.
47104         * lib/roundf.c: New file.
47105         * lib/roundl.c: New file.
47106         * m4/round.m4: New file.
47107         * m4/roundf.m4: New file.
47108         * m4/roundl.m4: New file.
47109         * m4/check-libm-func-m4: New file.
47110         * modules/math: Replace round, roundf, roundl related @VARS@ in
47111         math.in.h.
47112         * modules/round: New file.
47113         * modules/round-tests: New file.
47114         * modules/roundf: New file.
47115         * modules/roundf-tests: New file.
47116         * modules/roundl: New file.
47117         * modules/roundl-tests: New file.
47118         * tests/test-round1.c: New file.
47119         * tests/test-round2.c: New file.
47120         * tests/test-roundf1.c: New file.
47121         * tests/test-roundf2.c: New file.
47122         * tests/test-roundl.c: New file.
47123         * doc/functions/round.texi: Mention round module.
47124         * doc/functions/roundf.texi: Mention roundf module.
47125         * doc/functions/roundl.texi: Mention roundl module.
47126         * MODULES.html.sh: Mention new modules.
47127         Thanks to Bruno Haible for suggestions.
47128
47129 2007-10-20  Jim Meyering  <meyering@redhat.com>
47130
47131         * lib/xprintf.c: Include <config.h> unconditionally.
47132
47133         Change xprintf's license to GPL.
47134         * modules/xprintf (License): s/LGPL/GPL/, since this module
47135         depends on modules (exit and exitfail) which are GPL.
47136         Suggestion from Bruno Haible.
47137
47138         xprintf fixes.
47139         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
47140         Use a clearer diagnostic.
47141         Patch from Bruno Haible.
47142
47143 2007-10-20  Bruno Haible  <bruno@clisp.org>
47144
47145         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
47146         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
47147         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47148
47149 2007-10-20  Bruno Haible  <bruno@clisp.org>
47150
47151         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
47152         precision in the comparison result > x - 1 or similar.
47153         * tests/test-ceilf2.c (correct_result_p): Likewise.
47154         * tests/test-truncf2.c (correct_result_p): Likewise.
47155         * tests/test-trunc2.c (correct_result_p): Likewise.
47156         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47157
47158 2007-10-20  Bruno Haible  <bruno@clisp.org>
47159
47160         * modules/ceil: New file.
47161         * m4/ceil.m4: New file.
47162         * doc/functions/ceil.texi: Mention the 'ceil' module.
47163
47164 2007-10-20  Bruno Haible  <bruno@clisp.org>
47165
47166         * modules/floor: New file.
47167         * m4/floor.m4: New file.
47168         * doc/functions/floor.texi: Mention the 'floor' module.
47169
47170 2007-10-20  Bruno Haible  <bruno@clisp.org>
47171
47172         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
47173         of %a.
47174         * modules/floorf-tests (Depends-on): Likewise.
47175         * modules/truncf-tests (Depends-on): Likewise.
47176         * modules/trunc-tests (Depends-on): Likewise.
47177         Reported by Ben Pfaff.
47178
47179 2007-10-19  Jim Meyering  <meyering@redhat.com>
47180
47181         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
47182         Don't bother testing specific errno values.  Just test ferror.
47183
47184         New module: xprintf
47185         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
47186
47187 2007-10-19  Bruno Haible  <bruno@clisp.org>
47188
47189         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
47190         syntax.
47191         * modules/javaexec (Makefile.am): Likewise.
47192         * modules/relocatable-prog (Makefile.am): Likewise.
47193         Suggested by Jim Meyering.
47194
47195 2007-10-18  Bruno Haible  <bruno@clisp.org>
47196
47197         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
47198         Reported by Jim Meyering.
47199
47200 2007-10-18  Eric Blake  <ebb9@byu.net>
47201
47202         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
47203
47204 2007-10-18  Bruno Haible  <bruno@clisp.org>
47205
47206         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
47207         the format string into writable memory. Needed in Fortify conditions.
47208
47209 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
47210             Bruno Haible  <bruno@clisp.org>
47211
47212         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
47213         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
47214         * modules/trim (Depends-on): Add mbchar.
47215         (configure.ac): Add gl_FUNC_MBRTOWC.
47216         (Makefile.am): Augment lib_SOURCES.
47217
47218 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47219
47220         Modify glob.c to use fstatat and dirfd, to simplify it.
47221         Suggested by Eric Blake.
47222         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
47223         Don't include <stdbool.h>; not used.
47224         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
47225         (link_exists_p): Simplify implementation, since we can now assume
47226         dirfd and fstatat.
47227         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
47228
47229 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47230
47231         * gnulib-tool (func_get_dependencies): Fix sed script to
47232         match only tests.
47233
47234 2007-10-17  Bruno Haible  <bruno@clisp.org>
47235
47236         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
47237         allow locale names without encoding suffix.
47238         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47239         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47240
47241 2007-10-16  Bruno Haible  <bruno@clisp.org>
47242
47243         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
47244         * lib/getgroups.c (getgroups): Likewise.
47245         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
47246
47247 2007-10-16  Bruno Haible  <bruno@clisp.org>
47248
47249         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
47250         * modules/malloc-posix (License): Likewise.
47251         * modules/realloc-posix (License): Likewise.
47252         * modules/calloc-posix (License): Likewise.
47253         * modules/intprops (License): Change from GPL to LGPL, with
47254         Paul Eggert's approval.
47255
47256 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47257
47258         Merge glibc changes into lib/glob.c.
47259
47260         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
47261         2007-10-15 04:59:03 UTC.  Here are the changes:
47262
47263         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
47264
47265         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
47266
47267         * lib/glob.c: Add some branch prediction throughout.
47268
47269         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
47270
47271         [BZ #5103]
47272         * lib/glob.c (glob): Recognize patterns starting \/.
47273
47274         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
47275
47276         [BZ #3996]
47277         * lib/glob.c (attribute_hidden): Define if not defined.
47278         (glob): Unescape dirname, filename or username when needed and not
47279         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
47280         is NULL.  Handle unescaped [ in pattern without closing ].
47281         Don't pass GLOB_CHECK down to recursive glob for directories.
47282         (__glob_pattern_type): New function.
47283         (__glob_pattern_p): Implement using __glob_pattern_type.
47284         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
47285         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
47286         Remove unreachable code.
47287
47288         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
47289
47290         * lib/glob.c (glob_in_dir): Add some comments and asserts to
47291         explain why there are no leaks.
47292
47293         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
47294
47295         [BZ #3253]
47296         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
47297         time, rather allocate increasingly bigger arrays of pointers, if
47298         possible with alloca, if too large with malloc.
47299
47300 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47301
47302         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
47303         Problem reported by H.Merijn Brand in
47304         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
47305         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
47306         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47307
47308 2007-10-15  Bruno Haible  <bruno@clisp.org>
47309
47310         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
47311         with explicit rpl_ prefix.
47312         * lib/fopen.c (fopen): Likewise.
47313         * lib/freopen.c (freopen): Likewise.
47314         * lib/iconv.c (iconv): Likewise.
47315         * lib/iconv_close.c (iconv_close): Likewise.
47316
47317 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47318
47319         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
47320
47321 2007-10-15  Bruno Haible  <bruno@clisp.org>
47322
47323         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
47324         <stddef.h> instead of <stdlib.h> since we only need NULL.
47325         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47326
47327 2007-10-15  Bruno Haible  <bruno@clisp.org>
47328
47329         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
47330         Replace paragraph talking about LIBOBJS.
47331         Reported by Colin Watson <cjwatson@debian.org>.
47332
47333 2007-10-15  Bruno Haible  <bruno@clisp.org>
47334
47335         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
47336         <stdlib.h> before using NULL.
47337
47338 2007-10-15  Simon Josefsson  <simon@josefsson.org>
47339
47340         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
47341         Reported by Albert Chin <china@thewrittenword.com>.
47342
47343 2007-10-14  Bruno Haible  <bruno@clisp.org>
47344
47345         * modules/iconv_open-utf-tests: New file.
47346         * tests/test-iconv-utf.c: New file.
47347
47348         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
47349         * modules/iconv_open-utf: New file.
47350         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
47351         (iconv, iconv_close): New declarations.
47352         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
47353         be defined.
47354         (iconv_open): Add special handling of conversion between UTF-8 and
47355         UTF-{16,32}{BE,LE}.
47356         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
47357         * lib/iconv_close.c: New file.
47358         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
47359         gl_FUNC_ICONV_OPEN.
47360         (gl_FUNC_ICONV_OPEN): Use it.
47361         (gl_FUNC_ICONV_OPEN_UTF): New macro.
47362         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
47363         and REPLACE_ICONV_UTF.
47364         * modules/iconv_open (Depends-on): Add c-strcase.
47365         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
47366         ICONV_CONST.
47367         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
47368
47369 2007-10-13  Albert Chin  <china@thewrittenword.com>
47370             Bruno Haible  <bruno@clisp.org>
47371
47372         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
47373         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
47374
47375 2007-10-13  Bruno Haible  <bruno@clisp.org>
47376
47377         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
47378         defined, use the ISO C99 inline semantics.
47379         * lib/argp.h (ARGP_EI): Likewise.
47380
47381 2007-10-13  Bruno Haible  <bruno@clisp.org>
47382
47383         Handle 'inline' change in gcc 4.3.0.
47384         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
47385         argp_fmtstream_write, argp_fmtstream_set_lmargin,
47386         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
47387         argp_fmtstream_point): Disable 'extern' declaration if the function
47388         definition is going to be provided inline.
47389         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
47390         semantics, not the ISO C99 inline semantics.
47391         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
47392         'extern' declaration if the function definition is going to be provided
47393         inline.
47394         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
47395         the GNU C inline semantics, not the ISO C99 inline semantics. With
47396         GCC 4.2, avoid a warning.
47397
47398 2007-10-13  Bruno Haible  <bruno@clisp.org>
47399
47400         * lib/freading.h (freading): Enable the use of __freading for
47401         glibc >= 2.7.
47402         * lib/freading.c (freading): Likewise.
47403
47404 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47405
47406         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
47407         "warning: C99 inline functions are not supported; using GNU89".
47408
47409 2007-10-12  Bruno Haible  <bruno@clisp.org>
47410
47411         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
47412         of 2.
47413         * tests/test-ceilf2.c: New file.
47414         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
47415
47416         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
47417         * modules/ceilf-tests: Update.
47418
47419 2007-10-12  Bruno Haible  <bruno@clisp.org>
47420
47421         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
47422         of 2.
47423         * tests/test-floorf2.c: New file.
47424         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
47425
47426         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
47427         * modules/floorf-tests: Update.
47428
47429 2007-10-12  Bruno Haible  <bruno@clisp.org>
47430
47431         * tests/test-trunc2.c: New file.
47432         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
47433
47434         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
47435         * modules/trunc-tests: Update.
47436
47437 2007-10-12  Bruno Haible  <bruno@clisp.org>
47438
47439         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
47440         of 2.
47441         * tests/test-truncf2.c: New file.
47442         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
47443
47444         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
47445         * modules/truncf-tests: Update.
47446
47447 2007-10-11  Eric Blake  <ebb9@byu.net>
47448
47449         Don't claim strerror is broken on Interix.
47450         * doc/functions/strerror.texi (strerror): Known broken systems are
47451         now Solaris 8, and not Interix.
47452         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
47453         Interix on cross-compile.
47454         Reported by Martin Koeppe in
47455         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
47456
47457 2007-10-11  Bruno Haible  <bruno@clisp.org>
47458
47459         * modules/i-ring-tests: New file.
47460         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
47461         instead of assert.
47462
47463 2007-10-11  Bruno Haible  <bruno@clisp.org>
47464
47465         * modules/filenamecat-tests: New file.
47466         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
47467         * lib/filenamecat.c: Remove test code.
47468
47469 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47470
47471         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
47472
47473         * lib/strerror.c: Include <string.h> always, to test interface,
47474         and to remove the need for the dummy.
47475         Include intprops.h to compute width instead of doing it ourselves
47476         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
47477         (strerror): Define it to return NULL if there's no system strerror.
47478         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
47479         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
47480         ancient pre-strerror Unix systems well any more.  Saying "unknown
47481         system error" is enough.
47482         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
47483         simpler strerror.c implementation.
47484         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
47485         Simplify the tests to reflect the simpler strerror implementation.
47486         * modules/strerror (Depends-on): Add intprops.
47487
47488 2007-10-09  Eric Blake  <ebb9@byu.net>
47489
47490         Silence test-fpending.
47491         * modules/fpending-tests (Files): Add wrapper script.
47492         * tests/test-fpending.sh: New file.
47493
47494 2007-10-09  Bruno Haible  <bruno@clisp.org>
47495
47496         * MODULES.html.sh (func_module): Don't create a hyperlink for
47497         function names like 'printf_frexp'.
47498         (Misc): Add crc, memxor.
47499         (Characteristics of floating types): New section.
47500         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
47501         isnanf-nolibm, signbit, trunc, truncf, truncl.
47502         (Enhancements for ISO C 99 functions): New subsection Input/output.
47503         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
47504         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
47505         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
47506         (Compatibility checks for POSIX:2001 functions): Add clock-time.
47507         (Enhancements for POSIX:2001 functions): Add chdir-long.
47508         (File system functions): Add areadlink, chdir-safer, read-file.
47509         Remove cycle-check.
47510         (File system as inode set): New section.
47511         (Date and time): Add gethrxtime.
47512         (Multithreading): Add openmp.
47513         (Internationalization functions): Add localename.
47514         (Unicode string functions): Add unistr/u*-mbsnlen.
47515         (Support for maintaining and releasing projects): Add git-version-gen.
47516         (Lone files): Remove directories.
47517
47518 2007-10-08  Ben Pfaff  <blp@gnu.org>
47519
47520         * lib/xmalloca.h: Fix typo in comment.
47521
47522 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47523
47524         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
47525         when avoiding problems with integer overflow.  Use a portable test
47526         instead.
47527
47528 2007-10-08  Simon Josefsson  <simon@josefsson.org>
47529
47530         * modules/dummy (License): Change to LGPLv2+.
47531         * modules/float (License): Likewise
47532         * modules/realloc (License): Likewise
47533         * modules/stdlib (License): Likewise
47534
47535 2007-10-07  Bruno Haible  <bruno@clisp.org>
47536
47537         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
47538         * floor.c (TWO_MANT_DIG): Likewise.
47539         * ceil.c (TWO_MANT_DIG): Likewise.
47540         Reported by Ben Pfaff.
47541
47542 2007-10-07  Bruno Haible  <bruno@clisp.org>
47543
47544         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
47545         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
47546         * lib/frexp.c (FUNC): Likewise.
47547         * lib/printf-frexp.h (printf_frexp): Likewise.
47548         * lib/printf-frexpl.h (printf_frexpl): Likewise.
47549         * lib/printf-frexp.c (FUNC): Likewise.
47550         Suggested by Jim Meyering.
47551
47552 2007-10-07  Jim Meyering  <meyering@redhat.com>
47553
47554         Make xnanosleep's integer overflow test more robust.
47555         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
47556         so that gcc-4.3.0 doesn't optimize away this test for overflow.
47557
47558 2007-10-07  Bruno Haible  <bruno@clisp.org>
47559
47560         * NEWS: Mention the license change.
47561
47562         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
47563         abbreviations in the modules files.
47564
47565         Change copyright notice from GPLv2+ to GPLv3+.
47566         * README: Change copyright notice.
47567         * MODULES.html.sh: Likewise.
47568         * build-aux/bootstrap.conf: Likewise.
47569         * build-aux/config.libpath: Likewise.
47570         * build-aux/csharpcomp.sh.in: Likewise.
47571         * build-aux/csharpexec.sh.in: Likewise.
47572         * build-aux/install-reloc: Likewise.
47573         * build-aux/javacomp.sh.in: Likewise.
47574         * build-aux/javaexec.sh.in: Likewise.
47575         * build-aux/ldd.sh.in: Likewise.
47576         * build-aux/reloc-ldflags: Likewise.
47577         * build-aux/relocatable.sh.in: Likewise.
47578         * build-aux/x-to-1.in: Likewise.
47579         * check-module: Likewise.
47580         * config/srclistvars.sh: Likewise.
47581         * gnulib-tool: Likewise.
47582         * lib/acl-internal.h: Likewise.
47583         * lib/acl.c: Likewise.
47584         * lib/acl.h: Likewise.
47585         * lib/acl_entries.c: Likewise.
47586         * lib/areadlink-with-size.c: Likewise.
47587         * lib/areadlink.c: Likewise.
47588         * lib/areadlink.h: Likewise.
47589         * lib/argmatch.c: Likewise.
47590         * lib/argmatch.h: Likewise.
47591         * lib/argp-ba.c: Likewise.
47592         * lib/argp-eexst.c: Likewise.
47593         * lib/argp-fmtstream.c: Likewise.
47594         * lib/argp-fmtstream.h: Likewise.
47595         * lib/argp-fs-xinl.c: Likewise.
47596         * lib/argp-help.c: Likewise.
47597         * lib/argp-namefrob.h: Likewise.
47598         * lib/argp-parse.c: Likewise.
47599         * lib/argp-pin.c: Likewise.
47600         * lib/argp-pv.c: Likewise.
47601         * lib/argp-pvh.c: Likewise.
47602         * lib/argp-xinl.c: Likewise.
47603         * lib/argp.h: Likewise.
47604         * lib/at-func.c: Likewise.
47605         * lib/atanl.c: Likewise.
47606         * lib/backupfile.c: Likewise.
47607         * lib/backupfile.h: Likewise.
47608         * lib/basename.c: Likewise.
47609         * lib/binary-io.h: Likewise.
47610         * lib/byteswap.in.h: Likewise.
47611         * lib/c-stack.c: Likewise.
47612         * lib/c-stack.h: Likewise.
47613         * lib/c-strcasestr.c: Likewise.
47614         * lib/c-strcasestr.h: Likewise.
47615         * lib/c-strstr.c: Likewise.
47616         * lib/c-strstr.h: Likewise.
47617         * lib/c-strtod.c: Likewise.
47618         * lib/calloc.c: Likewise.
47619         * lib/canon-host.c: Likewise.
47620         * lib/canon-host.h: Likewise.
47621         * lib/canonicalize-lgpl.c: Likewise.
47622         * lib/canonicalize.c: Likewise.
47623         * lib/canonicalize.h: Likewise.
47624         * lib/ceil.c: Likewise.
47625         * lib/ceilf.c: Likewise.
47626         * lib/ceill.c: Likewise.
47627         * lib/chdir-long.c: Likewise.
47628         * lib/chdir-long.h: Likewise.
47629         * lib/chdir-safer.c: Likewise.
47630         * lib/chdir-safer.h: Likewise.
47631         * lib/chown.c: Likewise.
47632         * lib/classpath.c: Likewise.
47633         * lib/classpath.h: Likewise.
47634         * lib/clean-temp.c: Likewise.
47635         * lib/clean-temp.h: Likewise.
47636         * lib/cloexec.c: Likewise.
47637         * lib/close-stream.c: Likewise.
47638         * lib/closein.c: Likewise.
47639         * lib/closein.h: Likewise.
47640         * lib/closeout.c: Likewise.
47641         * lib/closeout.h: Likewise.
47642         * lib/concat-filename.c: Likewise.
47643         * lib/copy-file.c: Likewise.
47644         * lib/copy-file.h: Likewise.
47645         * lib/count-one-bits.h: Likewise.
47646         * lib/crc.c: Likewise.
47647         * lib/crc.h: Likewise.
47648         * lib/creat-safer.c: Likewise.
47649         * lib/csharpcomp.c: Likewise.
47650         * lib/csharpcomp.h: Likewise.
47651         * lib/csharpexec.c: Likewise.
47652         * lib/csharpexec.h: Likewise.
47653         * lib/cycle-check.c: Likewise.
47654         * lib/cycle-check.h: Likewise.
47655         * lib/diacrit.c: Likewise.
47656         * lib/diacrit.h: Likewise.
47657         * lib/diffseq.h: Likewise.
47658         * lib/dirchownmod.c: Likewise.
47659         * lib/dirent.in.h: Likewise.
47660         * lib/dirfd.c: Likewise.
47661         * lib/dirfd.h: Likewise.
47662         * lib/dirname.c: Likewise.
47663         * lib/dirname.h: Likewise.
47664         * lib/dummy.c: Likewise.
47665         * lib/dup-safer.c: Likewise.
47666         * lib/dup2.c: Likewise.
47667         * lib/eealloc.h: Likewise.
47668         * lib/error.c: Likewise.
47669         * lib/error.h: Likewise.
47670         * lib/euidaccess.c: Likewise.
47671         * lib/exclude.c: Likewise.
47672         * lib/exclude.h: Likewise.
47673         * lib/execute.c: Likewise.
47674         * lib/execute.h: Likewise.
47675         * lib/exitfail.c: Likewise.
47676         * lib/exitfail.h: Likewise.
47677         * lib/expl.c: Likewise.
47678         * lib/fatal-signal.c: Likewise.
47679         * lib/fatal-signal.h: Likewise.
47680         * lib/fbufmode.c: Likewise.
47681         * lib/fbufmode.h: Likewise.
47682         * lib/fchdir.c: Likewise.
47683         * lib/fchmodat.c: Likewise.
47684         * lib/fchownat.c: Likewise.
47685         * lib/fcntl--.h: Likewise.
47686         * lib/fcntl-safer.h: Likewise.
47687         * lib/fcntl.in.h: Likewise.
47688         * lib/fd-safer.c: Likewise.
47689         * lib/fflush.c: Likewise.
47690         * lib/file-has-acl.c: Likewise.
47691         * lib/file-set.c: Likewise.
47692         * lib/file-type.c: Likewise.
47693         * lib/file-type.h: Likewise.
47694         * lib/fileblocks.c: Likewise.
47695         * lib/filemode.c: Likewise.
47696         * lib/filemode.h: Likewise.
47697         * lib/filename.h: Likewise.
47698         * lib/filenamecat.c: Likewise.
47699         * lib/filenamecat.h: Likewise.
47700         * lib/findprog.c: Likewise.
47701         * lib/findprog.h: Likewise.
47702         * lib/float.in.h: Likewise.
47703         * lib/floor.c: Likewise.
47704         * lib/floorf.c: Likewise.
47705         * lib/floorl.c: Likewise.
47706         * lib/fopen-safer.c: Likewise.
47707         * lib/fopen.c: Likewise.
47708         * lib/fpending.c: Likewise.
47709         * lib/fpending.h: Likewise.
47710         * lib/fprintf.c: Likewise.
47711         * lib/fprintftime.h: Likewise.
47712         * lib/fpucw.h: Likewise.
47713         * lib/fpurge.c: Likewise.
47714         * lib/fpurge.h: Likewise.
47715         * lib/freadable.c: Likewise.
47716         * lib/freadable.h: Likewise.
47717         * lib/freadahead.c: Likewise.
47718         * lib/freadahead.h: Likewise.
47719         * lib/freading.c: Likewise.
47720         * lib/freading.h: Likewise.
47721         * lib/free.c: Likewise.
47722         * lib/freopen.c: Likewise.
47723         * lib/frexp.c: Likewise.
47724         * lib/frexpl.c: Likewise.
47725         * lib/fseek.c: Likewise.
47726         * lib/fseterr.c: Likewise.
47727         * lib/fseterr.h: Likewise.
47728         * lib/fstatat.c: Likewise.
47729         * lib/fstrcmp.c: Likewise.
47730         * lib/fstrcmp.h: Likewise.
47731         * lib/fsusage.c: Likewise.
47732         * lib/fsusage.h: Likewise.
47733         * lib/ftell.c: Likewise.
47734         * lib/ftello.c: Likewise.
47735         * lib/fts-cycle.c: Likewise.
47736         * lib/fts.c: Likewise.
47737         * lib/fts_.h: Likewise.
47738         * lib/full-read.c: Likewise.
47739         * lib/full-read.h: Likewise.
47740         * lib/full-write.c: Likewise.
47741         * lib/full-write.h: Likewise.
47742         * lib/fwritable.c: Likewise.
47743         * lib/fwritable.h: Likewise.
47744         * lib/fwriteerror.c: Likewise.
47745         * lib/fwriteerror.h: Likewise.
47746         * lib/fwriting.c: Likewise.
47747         * lib/fwriting.h: Likewise.
47748         * lib/gcd.c: Likewise.
47749         * lib/gcd.h: Likewise.
47750         * lib/getcwd.c: Likewise.
47751         * lib/getdate.h: Likewise.
47752         * lib/getdate.y: Likewise.
47753         * lib/getdomainname.c: Likewise.
47754         * lib/getdomainname.h: Likewise.
47755         * lib/getgroups.c: Likewise.
47756         * lib/gethostname.c: Likewise.
47757         * lib/gethrxtime.c: Likewise.
47758         * lib/gethrxtime.h: Likewise.
47759         * lib/getloadavg.c: Likewise.
47760         * lib/getndelim2.c: Likewise.
47761         * lib/getndelim2.h: Likewise.
47762         * lib/getnline.c: Likewise.
47763         * lib/getnline.h: Likewise.
47764         * lib/getopt.c: Likewise.
47765         * lib/getopt.in.h: Likewise.
47766         * lib/getopt1.c: Likewise.
47767         * lib/getopt_int.h: Likewise.
47768         * lib/getpagesize.h: Likewise.
47769         * lib/getsubopt.c: Likewise.
47770         * lib/gettime.c: Likewise.
47771         * lib/getugroups.c: Likewise.
47772         * lib/getugroups.h: Likewise.
47773         * lib/getusershell.c: Likewise.
47774         * lib/gl_anyavltree_list1.h: Likewise.
47775         * lib/gl_anyavltree_list2.h: Likewise.
47776         * lib/gl_anyhash_list1.h: Likewise.
47777         * lib/gl_anyhash_list2.h: Likewise.
47778         * lib/gl_anylinked_list1.h: Likewise.
47779         * lib/gl_anylinked_list2.h: Likewise.
47780         * lib/gl_anyrbtree_list1.h: Likewise.
47781         * lib/gl_anyrbtree_list2.h: Likewise.
47782         * lib/gl_anytree_list1.h: Likewise.
47783         * lib/gl_anytree_list2.h: Likewise.
47784         * lib/gl_anytree_oset.h: Likewise.
47785         * lib/gl_anytreehash_list1.h: Likewise.
47786         * lib/gl_anytreehash_list2.h: Likewise.
47787         * lib/gl_array_list.c: Likewise.
47788         * lib/gl_array_list.h: Likewise.
47789         * lib/gl_array_oset.c: Likewise.
47790         * lib/gl_array_oset.h: Likewise.
47791         * lib/gl_avltree_list.c: Likewise.
47792         * lib/gl_avltree_list.h: Likewise.
47793         * lib/gl_avltree_oset.c: Likewise.
47794         * lib/gl_avltree_oset.h: Likewise.
47795         * lib/gl_avltreehash_list.c: Likewise.
47796         * lib/gl_avltreehash_list.h: Likewise.
47797         * lib/gl_carray_list.c: Likewise.
47798         * lib/gl_carray_list.h: Likewise.
47799         * lib/gl_linked_list.c: Likewise.
47800         * lib/gl_linked_list.h: Likewise.
47801         * lib/gl_linkedhash_list.c: Likewise.
47802         * lib/gl_linkedhash_list.h: Likewise.
47803         * lib/gl_list.c: Likewise.
47804         * lib/gl_list.h: Likewise.
47805         * lib/gl_oset.c: Likewise.
47806         * lib/gl_oset.h: Likewise.
47807         * lib/gl_rbtree_list.c: Likewise.
47808         * lib/gl_rbtree_list.h: Likewise.
47809         * lib/gl_rbtree_oset.c: Likewise.
47810         * lib/gl_rbtree_oset.h: Likewise.
47811         * lib/gl_rbtreehash_list.c: Likewise.
47812         * lib/gl_rbtreehash_list.h: Likewise.
47813         * lib/gl_sublist.c: Likewise.
47814         * lib/gl_sublist.h: Likewise.
47815         * lib/group-member.c: Likewise.
47816         * lib/group-member.h: Likewise.
47817         * lib/hard-locale.c: Likewise.
47818         * lib/hard-locale.h: Likewise.
47819         * lib/hash-pjw.c: Likewise.
47820         * lib/hash-pjw.h: Likewise.
47821         * lib/hash-triple.c: Likewise.
47822         * lib/hash.c: Likewise.
47823         * lib/hash.h: Likewise.
47824         * lib/human.c: Likewise.
47825         * lib/human.h: Likewise.
47826         * lib/i-ring.c: Likewise.
47827         * lib/i-ring.h: Likewise.
47828         * lib/idcache.c: Likewise.
47829         * lib/imaxabs.c: Likewise.
47830         * lib/imaxdiv.c: Likewise.
47831         * lib/inet_pton.c: Likewise.
47832         * lib/inet_pton.h: Likewise.
47833         * lib/intprops.h: Likewise.
47834         * lib/inttostr.c: Likewise.
47835         * lib/inttostr.h: Likewise.
47836         * lib/inttypes.in.h: Likewise.
47837         * lib/isapipe.c: Likewise.
47838         * lib/isdir.c: Likewise.
47839         * lib/isnan.c: Likewise.
47840         * lib/isnan.h: Likewise.
47841         * lib/isnanf.c: Likewise.
47842         * lib/isnanf.h: Likewise.
47843         * lib/isnanl-nolibm.h: Likewise.
47844         * lib/isnanl.c: Likewise.
47845         * lib/isnanl.h: Likewise.
47846         * lib/javacomp.c: Likewise.
47847         * lib/javacomp.h: Likewise.
47848         * lib/javaexec.c: Likewise.
47849         * lib/javaexec.h: Likewise.
47850         * lib/javaversion.c: Likewise.
47851         * lib/javaversion.h: Likewise.
47852         * lib/javaversion.java: Likewise.
47853         * lib/lbrkprop.h: Likewise.
47854         * lib/lchmod.h: Likewise.
47855         * lib/lchown.c: Likewise.
47856         * lib/ldexpl.c: Likewise.
47857         * lib/linebreak.c: Likewise.
47858         * lib/linebreak.h: Likewise.
47859         * lib/linebuffer.c: Likewise.
47860         * lib/linebuffer.h: Likewise.
47861         * lib/locale.in.h: Likewise.
47862         * lib/logl.c: Likewise.
47863         * lib/long-options.c: Likewise.
47864         * lib/long-options.h: Likewise.
47865         * lib/lstat.c: Likewise.
47866         * lib/lstat.h: Likewise.
47867         * lib/math.in.h: Likewise.
47868         * lib/mbchar.c: Likewise.
47869         * lib/mbchar.h: Likewise.
47870         * lib/mbfile.h: Likewise.
47871         * lib/mbiter.h: Likewise.
47872         * lib/mbscasecmp.c: Likewise.
47873         * lib/mbscasestr.c: Likewise.
47874         * lib/mbschr.c: Likewise.
47875         * lib/mbscspn.c: Likewise.
47876         * lib/mbslen.c: Likewise.
47877         * lib/mbsncasecmp.c: Likewise.
47878         * lib/mbsnlen.c: Likewise.
47879         * lib/mbspbrk.c: Likewise.
47880         * lib/mbspcasecmp.c: Likewise.
47881         * lib/mbsrchr.c: Likewise.
47882         * lib/mbssep.c: Likewise.
47883         * lib/mbsspn.c: Likewise.
47884         * lib/mbsstr.c: Likewise.
47885         * lib/mbstok_r.c: Likewise.
47886         * lib/mbswidth.c: Likewise.
47887         * lib/mbswidth.h: Likewise.
47888         * lib/mbuiter.h: Likewise.
47889         * lib/memcasecmp.c: Likewise.
47890         * lib/memcasecmp.h: Likewise.
47891         * lib/memchr.c: Likewise.
47892         * lib/memcmp.c: Likewise.
47893         * lib/memcoll.c: Likewise.
47894         * lib/memcoll.h: Likewise.
47895         * lib/memcpy.c: Likewise.
47896         * lib/memrchr.c: Likewise.
47897         * lib/mkancesdirs.c: Likewise.
47898         * lib/mkdir-p.c: Likewise.
47899         * lib/mkdir-p.h: Likewise.
47900         * lib/mkdir.c: Likewise.
47901         * lib/mkdirat.c: Likewise.
47902         * lib/mkdtemp.c: Likewise.
47903         * lib/mkstemp-safer.c: Likewise.
47904         * lib/mkstemp.c: Likewise.
47905         * lib/modechange.c: Likewise.
47906         * lib/modechange.h: Likewise.
47907         * lib/mountlist.c: Likewise.
47908         * lib/mountlist.h: Likewise.
47909         * lib/mpsort.c: Likewise.
47910         * lib/nanosleep.c: Likewise.
47911         * lib/obstack.c: Likewise.
47912         * lib/obstack.h: Likewise.
47913         * lib/open-safer.c: Likewise.
47914         * lib/open.c: Likewise.
47915         * lib/openat-die.c: Likewise.
47916         * lib/openat-priv.h: Likewise.
47917         * lib/openat-proc.c: Likewise.
47918         * lib/openat.c: Likewise.
47919         * lib/openat.h: Likewise.
47920         * lib/pagealign_alloc.c: Likewise.
47921         * lib/pagealign_alloc.h: Likewise.
47922         * lib/physmem.c: Likewise.
47923         * lib/physmem.h: Likewise.
47924         * lib/pipe-safer.c: Likewise.
47925         * lib/pipe.c: Likewise.
47926         * lib/pipe.h: Likewise.
47927         * lib/posixtm.c: Likewise.
47928         * lib/posixtm.h: Likewise.
47929         * lib/posixver.c: Likewise.
47930         * lib/printf-frexp.c: Likewise.
47931         * lib/printf-frexp.h: Likewise.
47932         * lib/printf-frexpl.c: Likewise.
47933         * lib/printf-frexpl.h: Likewise.
47934         * lib/printf.c: Likewise.
47935         * lib/progname.c: Likewise.
47936         * lib/progname.h: Likewise.
47937         * lib/progreloc.c: Likewise.
47938         * lib/putenv.c: Likewise.
47939         * lib/quote.c: Likewise.
47940         * lib/quote.h: Likewise.
47941         * lib/quotearg.c: Likewise.
47942         * lib/quotearg.h: Likewise.
47943         * lib/raise.c: Likewise.
47944         * lib/readline.c: Likewise.
47945         * lib/readline.h: Likewise.
47946         * lib/readlink.c: Likewise.
47947         * lib/readtokens.c: Likewise.
47948         * lib/readtokens.h: Likewise.
47949         * lib/readtokens0.c: Likewise.
47950         * lib/readtokens0.h: Likewise.
47951         * lib/readutmp.c: Likewise.
47952         * lib/readutmp.h: Likewise.
47953         * lib/realloc.c: Likewise.
47954         * lib/relocwrapper.c: Likewise.
47955         * lib/rename-dest-slash.c: Likewise.
47956         * lib/rename.c: Likewise.
47957         * lib/rmdir.c: Likewise.
47958         * lib/rpmatch.c: Likewise.
47959         * lib/safe-read.c: Likewise.
47960         * lib/safe-read.h: Likewise.
47961         * lib/safe-write.c: Likewise.
47962         * lib/safe-write.h: Likewise.
47963         * lib/same-inode.h: Likewise.
47964         * lib/same.c: Likewise.
47965         * lib/same.h: Likewise.
47966         * lib/save-cwd.c: Likewise.
47967         * lib/save-cwd.h: Likewise.
47968         * lib/savedir.c: Likewise.
47969         * lib/savedir.h: Likewise.
47970         * lib/savewd.c: Likewise.
47971         * lib/savewd.h: Likewise.
47972         * lib/search.in.h: Likewise.
47973         * lib/setenv.c: Likewise.
47974         * lib/setenv.h: Likewise.
47975         * lib/settime.c: Likewise.
47976         * lib/sh-quote.c: Likewise.
47977         * lib/sh-quote.h: Likewise.
47978         * lib/sig2str.c: Likewise.
47979         * lib/sig2str.h: Likewise.
47980         * lib/signal.in.h: Likewise.
47981         * lib/signbitd.c: Likewise.
47982         * lib/signbitf.c: Likewise.
47983         * lib/signbitl.c: Likewise.
47984         * lib/sigprocmask.c: Likewise.
47985         * lib/sincosl.c: Likewise.
47986         * lib/sleep.c: Likewise.
47987         * lib/sprintf.c: Likewise.
47988         * lib/sqrtl.c: Likewise.
47989         * lib/stat-time.h: Likewise.
47990         * lib/stdio--.h: Likewise.
47991         * lib/stdio-safer.h: Likewise.
47992         * lib/stdlib--.h: Likewise.
47993         * lib/stdlib-safer.h: Likewise.
47994         * lib/stdlib.in.h: Likewise.
47995         * lib/stpcpy.c: Likewise.
47996         * lib/stpncpy.c: Likewise.
47997         * lib/strchrnul.c: Likewise.
47998         * lib/strcspn.c: Likewise.
47999         * lib/strerror.c: Likewise.
48000         * lib/strftime.c: Likewise.
48001         * lib/strftime.h: Likewise.
48002         * lib/striconveh.c: Likewise.
48003         * lib/striconveh.h: Likewise.
48004         * lib/striconveha.c: Likewise.
48005         * lib/striconveha.h: Likewise.
48006         * lib/stripslash.c: Likewise.
48007         * lib/strnlen1.c: Likewise.
48008         * lib/strnlen1.h: Likewise.
48009         * lib/strtod.c: Likewise.
48010         * lib/strtoimax.c: Likewise.
48011         * lib/strtok_r.c: Likewise.
48012         * lib/strtol.c: Likewise.
48013         * lib/strtoll.c: Likewise.
48014         * lib/strtoul.c: Likewise.
48015         * lib/strtoull.c: Likewise.
48016         * lib/sysexits.in.h: Likewise.
48017         * lib/tempname.c: Likewise.
48018         * lib/tempname.h: Likewise.
48019         * lib/timespec.h: Likewise.
48020         * lib/tls.c: Likewise.
48021         * lib/tls.h: Likewise.
48022         * lib/tmpdir.c: Likewise.
48023         * lib/tmpdir.h: Likewise.
48024         * lib/tmpfile-safer.c: Likewise.
48025         * lib/tmpfile.c: Likewise.
48026         * lib/trigl.c: Likewise.
48027         * lib/trigl.h: Likewise.
48028         * lib/trim.c: Likewise.
48029         * lib/trim.h: Likewise.
48030         * lib/trunc.c: Likewise.
48031         * lib/truncf.c: Likewise.
48032         * lib/truncl.c: Likewise.
48033         * lib/tsearch.c: Likewise.
48034         * lib/unicodeio.c: Likewise.
48035         * lib/unicodeio.h: Likewise.
48036         * lib/unistd--.h: Likewise.
48037         * lib/unistd-safer.h: Likewise.
48038         * lib/unistdio/ulc-fprintf.c: Likewise.
48039         * lib/unistdio/ulc-vfprintf.c: Likewise.
48040         * lib/unlinkdir.c: Likewise.
48041         * lib/unlinkdir.h: Likewise.
48042         * lib/unlocked-io.h: Likewise.
48043         * lib/unsetenv.c: Likewise.
48044         * lib/userspec.c: Likewise.
48045         * lib/utime.c: Likewise.
48046         * lib/utimecmp.c: Likewise.
48047         * lib/utimecmp.h: Likewise.
48048         * lib/utimens.c: Likewise.
48049         * lib/verify.h: Likewise.
48050         * lib/verror.c: Likewise.
48051         * lib/verror.h: Likewise.
48052         * lib/version-etc-fsf.c: Likewise.
48053         * lib/version-etc.c: Likewise.
48054         * lib/version-etc.h: Likewise.
48055         * lib/vfprintf.c: Likewise.
48056         * lib/vprintf.c: Likewise.
48057         * lib/vsprintf.c: Likewise.
48058         * lib/w32spawn.h: Likewise.
48059         * lib/wait-process.c: Likewise.
48060         * lib/wait-process.h: Likewise.
48061         * lib/wcwidth.c: Likewise.
48062         * lib/write-any-file.c: Likewise.
48063         * lib/xalloc-die.c: Likewise.
48064         * lib/xalloc.h: Likewise.
48065         * lib/xasprintf.c: Likewise.
48066         * lib/xgetcwd.c: Likewise.
48067         * lib/xgetcwd.h: Likewise.
48068         * lib/xgetdomainname.c: Likewise.
48069         * lib/xgetdomainname.h: Likewise.
48070         * lib/xgethostname.c: Likewise.
48071         * lib/xmalloc.c: Likewise.
48072         * lib/xmalloca.c: Likewise.
48073         * lib/xmalloca.h: Likewise.
48074         * lib/xmemcoll.c: Likewise.
48075         * lib/xnanosleep.c: Likewise.
48076         * lib/xreadlink.c: Likewise.
48077         * lib/xreadlink.h: Likewise.
48078         * lib/xsetenv.c: Likewise.
48079         * lib/xsetenv.h: Likewise.
48080         * lib/xstriconv.c: Likewise.
48081         * lib/xstriconv.h: Likewise.
48082         * lib/xstrndup.c: Likewise.
48083         * lib/xstrndup.h: Likewise.
48084         * lib/xstrtod.c: Likewise.
48085         * lib/xstrtod.h: Likewise.
48086         * lib/xstrtol-error.c: Likewise.
48087         * lib/xstrtol.c: Likewise.
48088         * lib/xstrtol.h: Likewise.
48089         * lib/xtime.h: Likewise.
48090         * lib/xvasprintf.c: Likewise.
48091         * lib/xvasprintf.h: Likewise.
48092         * lib/yesno.c: Likewise.
48093         * lib/yesno.h: Likewise.
48094         * posix-modules: Likewise.
48095         * tests/test-alloca-opt.c: Likewise.
48096         * tests/test-arcfour.c: Likewise.
48097         * tests/test-arctwo.c: Likewise.
48098         * tests/test-argmatch.c: Likewise.
48099         * tests/test-argp-2.sh: Likewise.
48100         * tests/test-argp.c: Likewise.
48101         * tests/test-arpa_inet.c: Likewise.
48102         * tests/test-array_list.c: Likewise.
48103         * tests/test-array_oset.c: Likewise.
48104         * tests/test-atexit.c: Likewise.
48105         * tests/test-avltree_list.c: Likewise.
48106         * tests/test-avltree_oset.c: Likewise.
48107         * tests/test-avltreehash_list.c: Likewise.
48108         * tests/test-base64.c: Likewise.
48109         * tests/test-binary-io.c: Likewise.
48110         * tests/test-byteswap.c: Likewise.
48111         * tests/test-c-ctype.c: Likewise.
48112         * tests/test-c-strcasecmp.c: Likewise.
48113         * tests/test-c-strcasestr.c: Likewise.
48114         * tests/test-c-strncasecmp.c: Likewise.
48115         * tests/test-c-strstr.c: Likewise.
48116         * tests/test-canonicalize-lgpl.c: Likewise.
48117         * tests/test-canonicalize.c: Likewise.
48118         * tests/test-carray_list.c: Likewise.
48119         * tests/test-ceilf.c: Likewise.
48120         * tests/test-ceill.c: Likewise.
48121         * tests/test-count-one-bits.c: Likewise.
48122         * tests/test-crc.c: Likewise.
48123         * tests/test-dirname.c: Likewise.
48124         * tests/test-fbufmode.c: Likewise.
48125         * tests/test-fcntl.c: Likewise.
48126         * tests/test-fflush.c: Likewise.
48127         * tests/test-floorf.c: Likewise.
48128         * tests/test-floorl.c: Likewise.
48129         * tests/test-fopen.c: Likewise.
48130         * tests/test-fprintf-posix.c: Likewise.
48131         * tests/test-fprintf-posix.h: Likewise.
48132         * tests/test-fpurge.c: Likewise.
48133         * tests/test-freadable.c: Likewise.
48134         * tests/test-freadahead.c: Likewise.
48135         * tests/test-freading.c: Likewise.
48136         * tests/test-freopen.c: Likewise.
48137         * tests/test-frexp.c: Likewise.
48138         * tests/test-frexpl.c: Likewise.
48139         * tests/test-fseek.c: Likewise.
48140         * tests/test-fseeko.c: Likewise.
48141         * tests/test-fseterr.c: Likewise.
48142         * tests/test-fstrcmp.c: Likewise.
48143         * tests/test-ftell.c: Likewise.
48144         * tests/test-ftello.c: Likewise.
48145         * tests/test-fwritable.c: Likewise.
48146         * tests/test-fwriting.c: Likewise.
48147         * tests/test-getaddrinfo.c: Likewise.
48148         * tests/test-getpass.c: Likewise.
48149         * tests/test-gettimeofday.c: Likewise.
48150         * tests/test-hmac-md5.c: Likewise.
48151         * tests/test-hmac-sha1.c: Likewise.
48152         * tests/test-iconv.c: Likewise.
48153         * tests/test-iconvme.c: Likewise.
48154         * tests/test-inttypes.c: Likewise.
48155         * tests/test-isnan.c: Likewise.
48156         * tests/test-isnanf.c: Likewise.
48157         * tests/test-isnanl-nolibm.c: Likewise.
48158         * tests/test-isnanl.c: Likewise.
48159         * tests/test-isnanl.h: Likewise.
48160         * tests/test-ldexpl.c: Likewise.
48161         * tests/test-linked_list.c: Likewise.
48162         * tests/test-linkedhash_list.c: Likewise.
48163         * tests/test-locale.c: Likewise.
48164         * tests/test-localename.c: Likewise.
48165         * tests/test-lock.c: Likewise.
48166         * tests/test-lseek.c: Likewise.
48167         * tests/test-malloca.c: Likewise.
48168         * tests/test-math.c: Likewise.
48169         * tests/test-mbscasecmp.c: Likewise.
48170         * tests/test-mbscasestr1.c: Likewise.
48171         * tests/test-mbscasestr2.c: Likewise.
48172         * tests/test-mbscasestr3.c: Likewise.
48173         * tests/test-mbscasestr4.c: Likewise.
48174         * tests/test-mbschr.c: Likewise.
48175         * tests/test-mbscspn.c: Likewise.
48176         * tests/test-mbsncasecmp.c: Likewise.
48177         * tests/test-mbspbrk.c: Likewise.
48178         * tests/test-mbspcasecmp.c: Likewise.
48179         * tests/test-mbsrchr.c: Likewise.
48180         * tests/test-mbsspn.c: Likewise.
48181         * tests/test-mbsstr1.c: Likewise.
48182         * tests/test-mbsstr2.c: Likewise.
48183         * tests/test-mbsstr3.c: Likewise.
48184         * tests/test-md5.c: Likewise.
48185         * tests/test-memmem.c: Likewise.
48186         * tests/test-netinet_in.c: Likewise.
48187         * tests/test-open.c: Likewise.
48188         * tests/test-printf-frexp.c: Likewise.
48189         * tests/test-printf-frexpl.c: Likewise.
48190         * tests/test-printf-posix.c: Likewise.
48191         * tests/test-printf-posix.h: Likewise.
48192         * tests/test-rbtree_list.c: Likewise.
48193         * tests/test-rbtree_oset.c: Likewise.
48194         * tests/test-rbtreehash_list.c: Likewise.
48195         * tests/test-read-file.c: Likewise.
48196         * tests/test-rijndael.c: Likewise.
48197         * tests/test-search.c: Likewise.
48198         * tests/test-signbit.c: Likewise.
48199         * tests/test-sleep.c: Likewise.
48200         * tests/test-snprintf-posix.c: Likewise.
48201         * tests/test-snprintf-posix.h: Likewise.
48202         * tests/test-snprintf.c: Likewise.
48203         * tests/test-sprintf-posix.c: Likewise.
48204         * tests/test-sprintf-posix.h: Likewise.
48205         * tests/test-stat-time.c: Likewise.
48206         * tests/test-stdbool.c: Likewise.
48207         * tests/test-stdint.c: Likewise.
48208         * tests/test-stdio.c: Likewise.
48209         * tests/test-stdlib.c: Likewise.
48210         * tests/test-stpncpy.c: Likewise.
48211         * tests/test-strcasestr.c: Likewise.
48212         * tests/test-striconv.c: Likewise.
48213         * tests/test-striconveh.c: Likewise.
48214         * tests/test-striconveha.c: Likewise.
48215         * tests/test-string.c: Likewise.
48216         * tests/test-sys_select.c: Likewise.
48217         * tests/test-sys_socket.c: Likewise.
48218         * tests/test-sys_stat.c: Likewise.
48219         * tests/test-sys_time.c: Likewise.
48220         * tests/test-sysexits.c: Likewise.
48221         * tests/test-time.c: Likewise.
48222         * tests/test-tls.c: Likewise.
48223         * tests/test-trunc.c: Likewise.
48224         * tests/test-truncf.c: Likewise.
48225         * tests/test-truncl.c: Likewise.
48226         * tests/test-unistd.c: Likewise.
48227         * tests/test-vasnprintf-posix.c: Likewise.
48228         * tests/test-vasnprintf-posix2.c: Likewise.
48229         * tests/test-vasnprintf.c: Likewise.
48230         * tests/test-vasprintf-posix.c: Likewise.
48231         * tests/test-vasprintf.c: Likewise.
48232         * tests/test-verify.c: Likewise.
48233         * tests/test-vfprintf-posix.c: Likewise.
48234         * tests/test-vprintf-posix.c: Likewise.
48235         * tests/test-vsnprintf-posix.c: Likewise.
48236         * tests/test-vsnprintf.c: Likewise.
48237         * tests/test-vsprintf-posix.c: Likewise.
48238         * tests/test-wchar.c: Likewise.
48239         * tests/test-wctype.c: Likewise.
48240         * tests/test-wcwidth.c: Likewise.
48241         * tests/test-xstrtol.c: Likewise.
48242         * tests/test-xvasprintf.c: Likewise.
48243         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
48244         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
48245         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48246         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48247         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48248         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
48249         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48250         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48251         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48252         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
48253         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48254         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48255         * tests/uniname/test-uninames.c: Likewise.
48256         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
48257         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
48258         * tests/unistdio/test-u16-printf1.h: Likewise.
48259         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
48260         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
48261         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
48262         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
48263         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
48264         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
48265         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
48266         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
48267         * tests/unistdio/test-u32-printf1.h: Likewise.
48268         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
48269         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
48270         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
48271         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
48272         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
48273         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
48274         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
48275         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
48276         * tests/unistdio/test-u8-printf1.h: Likewise.
48277         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
48278         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
48279         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
48280         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
48281         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
48282         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
48283         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
48284         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
48285         * tests/unistdio/test-ulc-printf1.h: Likewise.
48286         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
48287         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
48288         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
48289         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
48290         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
48291         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
48292         * tests/uniwidth/test-u16-strwidth.c: Likewise.
48293         * tests/uniwidth/test-u16-width.c: Likewise.
48294         * tests/uniwidth/test-u32-strwidth.c: Likewise.
48295         * tests/uniwidth/test-u32-width.c: Likewise.
48296         * tests/uniwidth/test-u8-strwidth.c: Likewise.
48297         * tests/uniwidth/test-u8-width.c: Likewise.
48298         * tests/uniwidth/test-uc_width.c: Likewise.
48299         * config/srclist-update: Likewise.
48300         (fixlicense): Update to GPLv3+.
48301
48302         Change copyright notice from LGPLv2.1+ to LGPLv3+.
48303         * tests/test-tsearch.c: Change copyright notice.
48304
48305         Change copyright notice from LGPLv2.0+ to LGPLv3+.
48306         * lib/c-strcaseeq.h: Change copyright notice.
48307         * lib/streq.h: Likewise.
48308         * lib/uniconv.h: Likewise.
48309         * lib/uniconv/u-conv-from-enc.h: Likewise.
48310         * lib/uniconv/u-conv-to-enc.h: Likewise.
48311         * lib/uniconv/u-strconv-from-enc.h: Likewise.
48312         * lib/uniconv/u-strconv-to-enc.h: Likewise.
48313         * lib/uniconv/u16-conv-from-enc.c: Likewise.
48314         * lib/uniconv/u16-conv-to-enc.c: Likewise.
48315         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
48316         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
48317         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
48318         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
48319         * lib/uniconv/u32-conv-from-enc.c: Likewise.
48320         * lib/uniconv/u32-conv-to-enc.c: Likewise.
48321         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
48322         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
48323         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
48324         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
48325         * lib/uniconv/u8-conv-from-enc.c: Likewise.
48326         * lib/uniconv/u8-conv-to-enc.c: Likewise.
48327         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
48328         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
48329         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
48330         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
48331         * lib/uniname.h: Likewise.
48332         * lib/uniname/uniname.c: Likewise.
48333         * lib/unistdio.h: Likewise.
48334         * lib/unistdio/u-asnprintf.h: Likewise.
48335         * lib/unistdio/u-asprintf.h: Likewise.
48336         * lib/unistdio/u-printf-args.c: Likewise.
48337         * lib/unistdio/u-printf-args.h: Likewise.
48338         * lib/unistdio/u-printf-parse.h: Likewise.
48339         * lib/unistdio/u-snprintf.h: Likewise.
48340         * lib/unistdio/u-sprintf.h: Likewise.
48341         * lib/unistdio/u-vasprintf.h: Likewise.
48342         * lib/unistdio/u-vsnprintf.h: Likewise.
48343         * lib/unistdio/u-vsprintf.h: Likewise.
48344         * lib/unistdio/u16-asnprintf.c: Likewise.
48345         * lib/unistdio/u16-asprintf.c: Likewise.
48346         * lib/unistdio/u16-printf-parse.c: Likewise.
48347         * lib/unistdio/u16-snprintf.c: Likewise.
48348         * lib/unistdio/u16-sprintf.c: Likewise.
48349         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
48350         * lib/unistdio/u16-u16-asprintf.c: Likewise.
48351         * lib/unistdio/u16-u16-snprintf.c: Likewise.
48352         * lib/unistdio/u16-u16-sprintf.c: Likewise.
48353         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
48354         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
48355         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
48356         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
48357         * lib/unistdio/u16-vasnprintf.c: Likewise.
48358         * lib/unistdio/u16-vasprintf.c: Likewise.
48359         * lib/unistdio/u16-vsnprintf.c: Likewise.
48360         * lib/unistdio/u16-vsprintf.c: Likewise.
48361         * lib/unistdio/u32-asnprintf.c: Likewise.
48362         * lib/unistdio/u32-asprintf.c: Likewise.
48363         * lib/unistdio/u32-printf-parse.c: Likewise.
48364         * lib/unistdio/u32-snprintf.c: Likewise.
48365         * lib/unistdio/u32-sprintf.c: Likewise.
48366         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
48367         * lib/unistdio/u32-u32-asprintf.c: Likewise.
48368         * lib/unistdio/u32-u32-snprintf.c: Likewise.
48369         * lib/unistdio/u32-u32-sprintf.c: Likewise.
48370         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
48371         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
48372         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
48373         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
48374         * lib/unistdio/u32-vasnprintf.c: Likewise.
48375         * lib/unistdio/u32-vasprintf.c: Likewise.
48376         * lib/unistdio/u32-vsnprintf.c: Likewise.
48377         * lib/unistdio/u32-vsprintf.c: Likewise.
48378         * lib/unistdio/u8-asnprintf.c: Likewise.
48379         * lib/unistdio/u8-asprintf.c: Likewise.
48380         * lib/unistdio/u8-printf-parse.c: Likewise.
48381         * lib/unistdio/u8-snprintf.c: Likewise.
48382         * lib/unistdio/u8-sprintf.c: Likewise.
48383         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
48384         * lib/unistdio/u8-u8-asprintf.c: Likewise.
48385         * lib/unistdio/u8-u8-snprintf.c: Likewise.
48386         * lib/unistdio/u8-u8-sprintf.c: Likewise.
48387         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
48388         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
48389         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
48390         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
48391         * lib/unistdio/u8-vasnprintf.c: Likewise.
48392         * lib/unistdio/u8-vasprintf.c: Likewise.
48393         * lib/unistdio/u8-vsnprintf.c: Likewise.
48394         * lib/unistdio/u8-vsprintf.c: Likewise.
48395         * lib/unistdio/ulc-asnprintf.c: Likewise.
48396         * lib/unistdio/ulc-asprintf.c: Likewise.
48397         * lib/unistdio/ulc-printf-parse.c: Likewise.
48398         * lib/unistdio/ulc-snprintf.c: Likewise.
48399         * lib/unistdio/ulc-sprintf.c: Likewise.
48400         * lib/unistdio/ulc-vasnprintf.c: Likewise.
48401         * lib/unistdio/ulc-vasprintf.c: Likewise.
48402         * lib/unistdio/ulc-vsnprintf.c: Likewise.
48403         * lib/unistdio/ulc-vsprintf.c: Likewise.
48404         * lib/unistr.h: Likewise.
48405         * lib/unistr/u-cpy-alloc.h: Likewise.
48406         * lib/unistr/u-cpy.h: Likewise.
48407         * lib/unistr/u-endswith.h: Likewise.
48408         * lib/unistr/u-move.h: Likewise.
48409         * lib/unistr/u-set.h: Likewise.
48410         * lib/unistr/u-startswith.h: Likewise.
48411         * lib/unistr/u-stpcpy.h: Likewise.
48412         * lib/unistr/u-stpncpy.h: Likewise.
48413         * lib/unistr/u-strcat.h: Likewise.
48414         * lib/unistr/u-strcpy.h: Likewise.
48415         * lib/unistr/u-strcspn.h: Likewise.
48416         * lib/unistr/u-strdup.h: Likewise.
48417         * lib/unistr/u-strlen.h: Likewise.
48418         * lib/unistr/u-strncat.h: Likewise.
48419         * lib/unistr/u-strncpy.h: Likewise.
48420         * lib/unistr/u-strnlen.h: Likewise.
48421         * lib/unistr/u-strpbrk.h: Likewise.
48422         * lib/unistr/u-strspn.h: Likewise.
48423         * lib/unistr/u-strstr.h: Likewise.
48424         * lib/unistr/u-strtok.h: Likewise.
48425         * lib/unistr/u16-check.c: Likewise.
48426         * lib/unistr/u16-chr.c: Likewise.
48427         * lib/unistr/u16-cmp.c: Likewise.
48428         * lib/unistr/u16-cpy-alloc.c: Likewise.
48429         * lib/unistr/u16-cpy.c: Likewise.
48430         * lib/unistr/u16-endswith.c: Likewise.
48431         * lib/unistr/u16-mblen.c: Likewise.
48432         * lib/unistr/u16-mbsnlen.c: Likewise.
48433         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48434         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48435         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48436         * lib/unistr/u16-mbtouc.c: Likewise.
48437         * lib/unistr/u16-mbtoucr.c: Likewise.
48438         * lib/unistr/u16-move.c: Likewise.
48439         * lib/unistr/u16-next.c: Likewise.
48440         * lib/unistr/u16-prev.c: Likewise.
48441         * lib/unistr/u16-set.c: Likewise.
48442         * lib/unistr/u16-startswith.c: Likewise.
48443         * lib/unistr/u16-stpcpy.c: Likewise.
48444         * lib/unistr/u16-stpncpy.c: Likewise.
48445         * lib/unistr/u16-strcat.c: Likewise.
48446         * lib/unistr/u16-strchr.c: Likewise.
48447         * lib/unistr/u16-strcmp.c: Likewise.
48448         * lib/unistr/u16-strcpy.c: Likewise.
48449         * lib/unistr/u16-strcspn.c: Likewise.
48450         * lib/unistr/u16-strdup.c: Likewise.
48451         * lib/unistr/u16-strlen.c: Likewise.
48452         * lib/unistr/u16-strmblen.c: Likewise.
48453         * lib/unistr/u16-strmbtouc.c: Likewise.
48454         * lib/unistr/u16-strncat.c: Likewise.
48455         * lib/unistr/u16-strncmp.c: Likewise.
48456         * lib/unistr/u16-strncpy.c: Likewise.
48457         * lib/unistr/u16-strnlen.c: Likewise.
48458         * lib/unistr/u16-strpbrk.c: Likewise.
48459         * lib/unistr/u16-strrchr.c: Likewise.
48460         * lib/unistr/u16-strspn.c: Likewise.
48461         * lib/unistr/u16-strstr.c: Likewise.
48462         * lib/unistr/u16-strtok.c: Likewise.
48463         * lib/unistr/u16-to-u32.c: Likewise.
48464         * lib/unistr/u16-to-u8.c: Likewise.
48465         * lib/unistr/u16-uctomb-aux.c: Likewise.
48466         * lib/unistr/u16-uctomb.c: Likewise.
48467         * lib/unistr/u32-check.c: Likewise.
48468         * lib/unistr/u32-chr.c: Likewise.
48469         * lib/unistr/u32-cmp.c: Likewise.
48470         * lib/unistr/u32-cpy-alloc.c: Likewise.
48471         * lib/unistr/u32-cpy.c: Likewise.
48472         * lib/unistr/u32-endswith.c: Likewise.
48473         * lib/unistr/u32-mblen.c: Likewise.
48474         * lib/unistr/u32-mbsnlen.c: Likewise.
48475         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48476         * lib/unistr/u32-mbtouc.c: Likewise.
48477         * lib/unistr/u32-mbtoucr.c: Likewise.
48478         * lib/unistr/u32-move.c: Likewise.
48479         * lib/unistr/u32-next.c: Likewise.
48480         * lib/unistr/u32-prev.c: Likewise.
48481         * lib/unistr/u32-set.c: Likewise.
48482         * lib/unistr/u32-startswith.c: Likewise.
48483         * lib/unistr/u32-stpcpy.c: Likewise.
48484         * lib/unistr/u32-stpncpy.c: Likewise.
48485         * lib/unistr/u32-strcat.c: Likewise.
48486         * lib/unistr/u32-strchr.c: Likewise.
48487         * lib/unistr/u32-strcmp.c: Likewise.
48488         * lib/unistr/u32-strcpy.c: Likewise.
48489         * lib/unistr/u32-strcspn.c: Likewise.
48490         * lib/unistr/u32-strdup.c: Likewise.
48491         * lib/unistr/u32-strlen.c: Likewise.
48492         * lib/unistr/u32-strmblen.c: Likewise.
48493         * lib/unistr/u32-strmbtouc.c: Likewise.
48494         * lib/unistr/u32-strncat.c: Likewise.
48495         * lib/unistr/u32-strncmp.c: Likewise.
48496         * lib/unistr/u32-strncpy.c: Likewise.
48497         * lib/unistr/u32-strnlen.c: Likewise.
48498         * lib/unistr/u32-strpbrk.c: Likewise.
48499         * lib/unistr/u32-strrchr.c: Likewise.
48500         * lib/unistr/u32-strspn.c: Likewise.
48501         * lib/unistr/u32-strstr.c: Likewise.
48502         * lib/unistr/u32-strtok.c: Likewise.
48503         * lib/unistr/u32-to-u16.c: Likewise.
48504         * lib/unistr/u32-to-u8.c: Likewise.
48505         * lib/unistr/u32-uctomb.c: Likewise.
48506         * lib/unistr/u8-check.c: Likewise.
48507         * lib/unistr/u8-chr.c: Likewise.
48508         * lib/unistr/u8-cmp.c: Likewise.
48509         * lib/unistr/u8-cpy-alloc.c: Likewise.
48510         * lib/unistr/u8-cpy.c: Likewise.
48511         * lib/unistr/u8-endswith.c: Likewise.
48512         * lib/unistr/u8-mblen.c: Likewise.
48513         * lib/unistr/u8-mbsnlen.c: Likewise.
48514         * lib/unistr/u8-mbtouc-aux.c: Likewise.
48515         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48516         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48517         * lib/unistr/u8-mbtouc.c: Likewise.
48518         * lib/unistr/u8-mbtoucr.c: Likewise.
48519         * lib/unistr/u8-move.c: Likewise.
48520         * lib/unistr/u8-next.c: Likewise.
48521         * lib/unistr/u8-prev.c: Likewise.
48522         * lib/unistr/u8-set.c: Likewise.
48523         * lib/unistr/u8-startswith.c: Likewise.
48524         * lib/unistr/u8-stpcpy.c: Likewise.
48525         * lib/unistr/u8-stpncpy.c: Likewise.
48526         * lib/unistr/u8-strcat.c: Likewise.
48527         * lib/unistr/u8-strchr.c: Likewise.
48528         * lib/unistr/u8-strcmp.c: Likewise.
48529         * lib/unistr/u8-strcpy.c: Likewise.
48530         * lib/unistr/u8-strcspn.c: Likewise.
48531         * lib/unistr/u8-strdup.c: Likewise.
48532         * lib/unistr/u8-strlen.c: Likewise.
48533         * lib/unistr/u8-strmblen.c: Likewise.
48534         * lib/unistr/u8-strmbtouc.c: Likewise.
48535         * lib/unistr/u8-strncat.c: Likewise.
48536         * lib/unistr/u8-strncmp.c: Likewise.
48537         * lib/unistr/u8-strncpy.c: Likewise.
48538         * lib/unistr/u8-strnlen.c: Likewise.
48539         * lib/unistr/u8-strpbrk.c: Likewise.
48540         * lib/unistr/u8-strrchr.c: Likewise.
48541         * lib/unistr/u8-strspn.c: Likewise.
48542         * lib/unistr/u8-strstr.c: Likewise.
48543         * lib/unistr/u8-strtok.c: Likewise.
48544         * lib/unistr/u8-to-u16.c: Likewise.
48545         * lib/unistr/u8-to-u32.c: Likewise.
48546         * lib/unistr/u8-uctomb-aux.c: Likewise.
48547         * lib/unistr/u8-uctomb.c: Likewise.
48548         * lib/unitypes.h: Likewise.
48549         * lib/uniwidth.h: Likewise.
48550         * lib/uniwidth/cjk.h: Likewise.
48551         * lib/uniwidth/u16-strwidth.c: Likewise.
48552         * lib/uniwidth/u16-width.c: Likewise.
48553         * lib/uniwidth/u32-strwidth.c: Likewise.
48554         * lib/uniwidth/u32-width.c: Likewise.
48555         * lib/uniwidth/u8-strwidth.c: Likewise.
48556         * lib/uniwidth/u8-width.c: Likewise.
48557         * lib/uniwidth/width.c: Likewise.
48558
48559 2007-10-07  Bruno Haible  <bruno@clisp.org>
48560
48561         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
48562         The file is still under LGPL (see modules/inttypes).
48563
48564 2007-10-06  Bruno Haible  <bruno@clisp.org>
48565
48566         * modules/trunc (Dependencies): Add 'extensions'.
48567         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
48568         Reported by Ben Pfaff <blp@gnu.org>.
48569
48570 2007-10-06  Bruno Haible  <bruno@clisp.org>
48571
48572         * modules/freopen-tests: New file.
48573         * tests/test-freopen.c: New file.
48574
48575         * modules/fopen-tests: New file.
48576         * tests/test-fopen.c: New file.
48577
48578         * modules/fopen: New file.
48579         * lib/fopen.c: New file.
48580         * m4/fopen.m4: New file.
48581         * modules/freopen: New file.
48582         * lib/freopen.c: New file.
48583         * m4/freopen.m4: New file.
48584         * lib/stdio.in.h (fopen, freopen): New declarations.
48585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
48586         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48587         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
48588         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48589         * doc/functions/fopen.texi: Mention the 'fopen' module.
48590         * doc/functions/freopen.texi: Mention the 'freopen' module.
48591
48592 2007-10-06  Bruno Haible  <bruno@clisp.org>
48593
48594         * modules/open-tests: New file.
48595         * tests/test-open.c: New file.
48596
48597         * modules/open: New file.
48598         * lib/open.c: New file.
48599         * m4/open.m4: New file.
48600         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
48601         lib/open.c does.
48602         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
48603         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
48604         macros.
48605         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
48606         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
48607         REPLACE_OPEN.
48608         * doc/functions/open.texi: Mention the 'open' module.
48609
48610 2007-10-04  Bruno Haible  <bruno@clisp.org>
48611
48612         * modules/ceill-tests: New file.
48613         * tests/test-ceill.c: New file.
48614
48615         * modules/ceill: New file.
48616         * lib/ceill.c: Replace entire file.
48617         * m4/ceill.m4: New file.
48618         * lib/math.in.h (ceill): Replace declaration.
48619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
48620         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
48621         * doc/functions/ceill.texi: Mention the 'ceill' module.
48622         * modules/mathl (Files): Remove lib/ceill.c.
48623         (Depends-on): Add ceill.
48624
48625 2007-10-04  Bruno Haible  <bruno@clisp.org>
48626
48627         * modules/ceilf-tests: New file.
48628         * tests/test-ceilf.c: New file.
48629
48630         * modules/ceilf: New file.
48631         * lib/ceil.c: New file.
48632         * lib/ceilf.c: New file.
48633         * m4/ceilf.m4: New file.
48634         * lib/math.in.h (ceilf): New declaration.
48635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
48636         HAVE_DECL_CEILF.
48637         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
48638         HAVE_DECL_CEILF.
48639         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
48640
48641 2007-10-04  Bruno Haible  <bruno@clisp.org>
48642
48643         * modules/floorl-tests: New file.
48644         * tests/test-floorl.c: New file.
48645
48646         * modules/floorl: New file.
48647         * lib/floorl.c: Replace entire file.
48648         * m4/floorl.m4: New file.
48649         * lib/math.in.h (floorl): Replace declaration.
48650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
48651         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
48652         * doc/functions/floorl.texi: Mention the 'floorl' module.
48653         * modules/mathl (Files): Remove lib/floorl.c.
48654         (Depends-on): Add floorl.
48655
48656 2007-10-04  Bruno Haible  <bruno@clisp.org>
48657
48658         * modules/floorf-tests: New file.
48659         * tests/test-floorf.c: New file.
48660
48661         * modules/floorf: New file.
48662         * lib/floor.c: New file.
48663         * lib/floorf.c: New file.
48664         * m4/floorf.m4: New file.
48665         * lib/math.in.h (floorf): New declaration.
48666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
48667         HAVE_DECL_FLOORF.
48668         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
48669         HAVE_DECL_FLOORF.
48670         * doc/functions/floorf.texi: Mention the 'floorf' module.
48671
48672 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
48673             Bruno Haible  <bruno@clisp.org>
48674
48675         Advertise for the Git server instead of the CVS server.
48676         * doc/gnulib-intro.texi (Steady Development): Mention the Git
48677         repository instead of the CVS one.
48678         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
48679         about all VCS systems generically.
48680         * doc/gnulib.texi (Introduction): Capitalize `Git'.
48681
48682 2007-10-04  Bruno Haible  <bruno@clisp.org>
48683
48684         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
48685         means.
48686         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
48687
48688 2007-10-04  Bruno Haible  <bruno@clisp.org>
48689
48690         * modules/truncl-tests: New file.
48691         * tests/test-truncl.c: New file.
48692
48693         * modules/truncl: New file.
48694         * lib/truncl.c: New file.
48695         * m4/truncl.m4: New file.
48696         * lib/math.in.h (truncl): New declaration.
48697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
48698         HAVE_DECL_TRUNCL.
48699         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
48700         HAVE_DECL_TRUNCL.
48701         * doc/functions/truncl.texi: Mention the 'truncl' module.
48702
48703 2007-10-04  Bruno Haible  <bruno@clisp.org>
48704
48705         * modules/truncf-tests: New file.
48706         * tests/test-truncf.c: New file.
48707
48708         * modules/truncf: New file.
48709         * lib/trunc.c: Make paramerizable through USE_* macros.
48710         * lib/truncf.c: New file.
48711         * m4/truncf.m4: New file.
48712         * lib/math.in.h (truncf): New declaration.
48713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
48714         HAVE_DECL_TRUNCF.
48715         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
48716         HAVE_DECL_TRUNCF.
48717         * doc/functions/truncf.texi: Mention the 'truncf' module.
48718
48719 2007-10-03  Bruno Haible  <bruno@clisp.org>
48720
48721         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48722         augmentation also for tests modules.
48723         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
48724         * modules/atexit-tests (Makefile.am): Likewise.
48725         * modules/binary-io-tests (Makefile.am): Likewise.
48726         * modules/c-strcase-tests (Makefile.am): Likewise.
48727         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
48728         * modules/canonicalize-tests (Makefile.am): Likewise.
48729         * modules/closein-tests (Makefile.am): Likewise.
48730         * modules/fprintf-posix-tests (Makefile.am): Likewise.
48731         * modules/freadahead-tests (Makefile.am): Likewise.
48732         * modules/fseek-tests (Makefile.am): Likewise.
48733         * modules/fseeko-tests (Makefile.am): Likewise.
48734         * modules/ftell-tests (Makefile.am): Likewise.
48735         * modules/ftello-tests (Makefile.am): Likewise.
48736         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
48737         * modules/isnanl-tests (Makefile.am): Likewise.
48738         * modules/lseek-tests (Makefile.am): Likewise.
48739         * modules/mbscasecmp-tests (Makefile.am): Likewise.
48740         * modules/mbscasestr-tests (Makefile.am): Likewise.
48741         * modules/mbschr-tests (Makefile.am): Likewise.
48742         * modules/mbscspn-tests (Makefile.am): Likewise.
48743         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
48744         * modules/mbspbrk-tests (Makefile.am): Likewise.
48745         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
48746         * modules/mbsrchr-tests (Makefile.am): Likewise.
48747         * modules/mbsspn-tests (Makefile.am): Likewise.
48748         * modules/mbsstr-tests (Makefile.am): Likewise.
48749         * modules/printf-posix-tests (Makefile.am): Likewise.
48750         * modules/snprintf-posix-tests (Makefile.am): Likewise.
48751         * modules/sprintf-posix-tests (Makefile.am): Likewise.
48752         * modules/tsearch-tests (Makefile.am): Likewise.
48753         * modules/uniname/uniname-tests (Makefile.am): Likewise.
48754         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
48755         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
48756         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
48757         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
48758         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
48759         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
48760         * modules/vprintf-posix-tests (Makefile.am): Likewise.
48761         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
48762         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
48763         * modules/xstrtoimax-tests (Makefile.am): Likewise.
48764         * modules/xstrtol-tests (Makefile.am): Likewise.
48765         * modules/xstrtoumax-tests (Makefile.am): Likewise.
48766         * modules/yesno-tests (Makefile.am): Likewise.
48767
48768 2007-10-03  Bruno Haible  <bruno@clisp.org>
48769
48770         * modules/trunc-tests: New file.
48771         * tests/test-trunc.c: New file.
48772
48773         * modules/trunc: New file.
48774         * lib/trunc.c: New file.
48775         * m4/trunc.m4: New file.
48776         * lib/math.in.h (trunc): New declaration.
48777         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
48778         HAVE_DECL_TRUNC.
48779         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
48780         HAVE_DECL_TRUNC.
48781         * doc/functions/trunc.texi: Mention the 'trunc' module.
48782
48783 2007-10-03  Bruno Haible  <bruno@clisp.org>
48784
48785         * tests/test-fpending.c: New file, mostly copied
48786         from coreutils/lib/t-fpending.c.
48787         * modules/fpending-tests: New file.
48788
48789 2007-10-03  Bruno Haible  <bruno@clisp.org>
48790
48791         Port the stdio extensions to QNX (untested).
48792         * lib/fseterr.c (fseterr): Add support for QNX.
48793         * lib/fbufmode.c (fbufmode): Likewise.
48794         * lib/freadable.c (freadable): Likewise.
48795         * lib/fwritable.c (fwritable): Likewise.
48796         * lib/freading.c (freading): Likewise.
48797         * lib/fwriting.c (fwriting): Likewise.
48798         * lib/freadahead.c (freadahed): Likewise.
48799         * lib/fpurge.c (fpurge): Likewise.
48800         * lib/fseeko.c (rpl_fseeko): Likewise.
48801
48802 2007-10-03  Bruno Haible  <bruno@clisp.org>
48803             Jim Meyering  <jim@meyering.net>
48804             Eric Blake  <ebb9@byu.net>
48805
48806         * doc/relocatable.texi: Use @command instead of @program.
48807
48808 2007-10-02  Jim Meyering  <jim@meyering.net>
48809
48810         Perform one more "_.h" -> ".in.h" substitution.
48811         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
48812         instead of unistd_.h here, too.
48813
48814 2007-10-01  Bruno Haible  <bruno@clisp.org>
48815
48816         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
48817         Needed for the alloca-opt module.
48818
48819 2007-09-30  Bruno Haible  <bruno@clisp.org>
48820
48821         * lib/alloca.in.h: Renamed from lib/alloca_.h.
48822         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
48823         alloca_.h.
48824         * lib/argz.in.h: Renamed from lib/argz_.h.
48825         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
48826         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
48827         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
48828         byteswap_.h.
48829         * lib/dirent.in.h: Renamed from lib/dirent_.h.
48830         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
48831         dirent_.h.
48832         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
48833         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
48834         fcntl_.h.
48835         * lib/float.in.h: Renamed from lib/float_.h.
48836         * modules/float (Files, Makefile.am): Use float.in.h instead of
48837         float_.h.
48838         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
48839         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
48840         fnmatch_.h.
48841         * lib/getopt.in.h: Renamed from lib/getopt_.h.
48842         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
48843         getopt_.h.
48844         * lib/glob.in.h: Renamed from lib/glob_.h.
48845         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
48846         * lib/iconv.in.h: Renamed from lib/iconv_.h.
48847         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
48848         iconv_.h.
48849         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
48850         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
48851         inttypes_.h.
48852         * lib/locale.in.h: Renamed from lib/locale_.h.
48853         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
48854         locale_.h.
48855         * lib/math.in.h: Renamed from lib/math_.h.
48856         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
48857         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
48858         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
48859         of netinet_in_.h. Add dependency.
48860         * lib/poll.in.h: Renamed from lib/poll_.h.
48861         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
48862         * lib/search.in.h: Renamed from lib/search_.h.
48863         * modules/search (Files, Makefile.am): Use search.in.h instead of
48864         search_.h.
48865         * lib/signal.in.h: Renamed from lib/signal_.h.
48866         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
48867         _signal.h.
48868         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
48869         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
48870         stdbool_.h.
48871         * lib/stdint.in.h: Renamed from lib/stdint_.h.
48872         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
48873         stdint_.h.
48874         * lib/stdio.in.h: Renamed from lib/stdio_.h.
48875         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
48876         stdio_.h.
48877         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
48878         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
48879         stdlib_.h.
48880         * lib/string.in.h: Renamed from lib/string_.h.
48881         * modules/string (Files, Makefile.am): Use string.in.h instead of
48882         string_.h.
48883         * doc/gnulib-tool.texi (Initial import): Update.
48884         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
48885         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
48886         of sys_select_.h. Add dependency.
48887         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
48888         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
48889         of sys_socket_.h.
48890         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
48891         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
48892         sys_stat_.h.
48893         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
48894         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
48895         sys_time_.h.
48896         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
48897         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
48898         sysexits_.h.
48899         * lib/time.in.h: Renamed from lib/time_.h.
48900         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
48901         * lib/unistd.in.h: Renamed from lib/unistd_.h.
48902         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
48903         unistd_.h.
48904         * lib/wchar.in.h: Renamed from lib/wchar_.h.
48905         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
48906         wchar_.h.
48907         * lib/wctype.in.h: Renamed from lib/wctype_.h.
48908         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
48909         wctype_.h.
48910         * build-aux/bootstrap (slurp): Update.
48911         * lib/.cppi-disable: Update.
48912
48913 2007-09-30  Bruno Haible  <bruno@clisp.org>
48914
48915         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
48916         Needed on BeOS.
48917
48918 2007-09-30  Bruno Haible  <bruno@clisp.org>
48919
48920         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
48921
48922 2007-09-29  Bruno Haible  <bruno@clisp.org>
48923
48924         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
48925
48926 2007-09-29  Bruno Haible  <bruno@clisp.org>
48927
48928         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
48929         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
48930         * build-aux/install-reloc: Compile also areadlink.c.
48931         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
48932
48933 2007-09-29  Bruno Haible  <bruno@clisp.org>
48934
48935         * gnulib-tool (func_emit_initmacro_done): Indentation.
48936
48937 2007-09-29  Bruno Haible  <bruno@clisp.org>
48938
48939         * README: Add CVS checkout update instructions.
48940         Info from Bob Proulx <bob@proulx.com>.
48941
48942 2007-09-28  Eric Blake  <ebb9@byu.net>
48943
48944         Provide move-if-change.
48945         * build-aux/move-if-change: New file, based on best practice
48946         rather than any canonical upstream location.
48947
48948 2007-09-28  Jim Meyering  <jim@meyering.net>
48949
48950         Fix canonicalize loop-detection corner case.
48951         Do not attempt to stat the symlink values stored via seen_triple.
48952         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
48953         on linux-2.6.18, (but not 2.6.22).
48954         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
48955         triple_compare.  The former compares dev,ino,filename, while the latter
48956         would actually stat dirname(filename) when dev and ino were equal.
48957         * lib/hash-triple.c: Install <string.h>.
48958         (STREQ): Define.
48959         (triple_compare_ino_str): New function.
48960         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
48961
48962 2007-09-28  Eric Blake  <ebb9@byu.net>
48963
48964         Enforce that AC_REPLACE_FUNCS files exist.
48965         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
48966         override check for typos.
48967
48968         Fix test-closein on Solaris 10.
48969         * tests/test-closein.c (main): Don't assume stdin can be inherited
48970         closed on all systems.
48971         * tests/test-closein.sh: Likewise.
48972         Reported by Piotr Tarnowski.
48973
48974 2007-09-28  Jim Meyering  <jim@meyering.net>
48975
48976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
48977
48978 2007-09-27  Jim Meyering  <jim@meyering.net>
48979
48980         canonicalize: Avoid a false-positive cycle failure.
48981         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
48982         Sort.  Remove cycle-check.
48983         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
48984         not cycle-check.h.
48985         (seen_triple): New function.
48986         (canonicalize_filename_mode): Use it instead of cycle-check.
48987         * tests/test-canonicalize.c: Add a test for this bug.
48988         * tests/test-canonicalize.sh: Set up and run the test.
48989
48990         New module, file-set, from coreutils.
48991         * modules/file-set: Define it.
48992         * lib/file-set.c, lib/file-set.h: Implement.
48993
48994         New module, hash-triple, from coreutils.
48995         * modules/hash-triple: Define it.
48996         * lib/hash-triple.c, lib/hash-triple.h: Implement.
48997
48998 2007-09-25  Eric Blake  <ebb9@byu.net>
48999
49000         Fix strerror on Interix.
49001         * lib/string_.h (strerror): Declare replacement.
49002         * doc/functions/strerror.texi (strerror): Document the Interix
49003         shortcoming.
49004         * modules/string (Makefile.am): Support new hooks.
49005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
49006         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
49007         gl_FUNC_STRERROR_SEPARATE.
49008         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
49009         * lib/strerror.c (rpl_strerror): Provide replacement.
49010         * modules/strerror (Depends-on): Add string.
49011         (configure.ac): Detect use of module.
49012         * tests/test-strerror.c: New file.
49013         * modules/strerror-tests: New test module.
49014         * modules/argp (Depends-on): Add strerror.
49015         * modules/error (Depends-on): Likewise.
49016         Reported by Martin Koeppe.
49017
49018 2007-09-24  Bruno Haible  <bruno@clisp.org>
49019
49020         * README: Update git instructions.
49021
49022 2007-09-24  Eric Blake  <ebb9@byu.net>
49023
49024         Revert fpending breakage from 2007-09-08.
49025         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
49026         __fpending.c.
49027
49028 2007-09-24  Jim Meyering  <jim@meyering.net>
49029
49030         filenamecat.c: Add a test.
49031         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
49032         showing how the function works when DIR is the empty string.
49033
49034 2007-09-21  Simon Josefsson  <simon@josefsson.org>
49035
49036         * tests/test-canonicalize.sh: Turn on executable bit.
49037
49038 2007-09-19  Eric Blake  <ebb9@byu.net>
49039
49040         * README: Update CVS instructions.
49041
49042 2007-09-18  Bruno Haible  <bruno@clisp.org>
49043
49044         * modules/areadlink: New file.
49045         * lib/areadlink.h (areadlink): New declaration.
49046         * lib/areadlink.c: New file, based on lib/xreadlink.c.
49047
49048 2007-09-17  Jim Meyering  <jim@meyering.net>
49049
49050         * lib/savewd.c (ESTALE) [!defined]: Define.
49051         Reported to be required on Interix by Martin Koeppe.
49052
49053 2007-09-17  Bruno Haible  <bruno@clisp.org>
49054
49055         * gnulib-tool (func_version): Use $version.
49056
49057 2007-09-16  Bruno Haible  <bruno@clisp.org>
49058
49059         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
49060         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
49061         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
49062         Reported by Greg Schafer <gschafer@zip.com.au>.
49063
49064 2007-09-15  Bruno Haible  <bruno@clisp.org>
49065
49066         * gnulib-tool (sed): Try a little harder to make bash understand the
49067         alias.
49068         Reported by Bruce Korb <bruce.korb@gmail.com>.
49069
49070 2007-09-13  Eric Blake  <ebb9@byu.net>
49071
49072         * ChangeLog: Remove conflict markers.
49073
49074 2007-09-13  Simon Josefsson  <simon@josefsson.org>
49075
49076         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
49077         Reported by Bruno Haible <bruno@clisp.org>.
49078
49079 2007-09-12  Bruno Haible  <bruno@clisp.org>
49080
49081         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
49082         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
49083         is not defined.
49084
49085 2007-09-12  Eric Blake  <ebb9@byu.net>
49086
49087         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
49088         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
49089         Autoconf definition.
49090         * modules/euidaccess (Depends-on): Add extensions, for
49091         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
49092         * modules/fnmatch (Depends-on): Likewise.
49093         * modules/getaddrinfo (Depends-on): Likewise.
49094         * modules/getdelim (Depends-on): Likewise.
49095         * modules/getline (Depends-on): Likewise.
49096         * modules/getsubopt (Depends-on): Likewise.
49097         * modules/gettext (Depends-on): Likewise.
49098         * modules/group-member (Depends-on): Likewise.
49099         * modules/mbchar (Depends-on): Likewise.
49100         * modules/memmem (Depends-on): Likewise.
49101         * modules/mempcpy (Depends-on): Likewise.
49102         * modules/memrchr (Depends-on): Likewise.
49103         * modules/pagealign_alloc (Depends-on): Likewise.
49104         * modules/readutmp (Depends-on): Likewise.
49105         * modules/stpcpy (Depends-on): Likewise.
49106         * modules/stpncpy (Depends-on): Likewise.
49107         * modules/strchrnul (Depends-on): Likewise.
49108         * modules/strndup (Depends-on): Likewise.
49109         * modules/strsep (Depends-on): Likewise.
49110         * modules/strverscmp (Depends-on): Likewise.
49111         * modules/vasprintf (Depends-on): Likewise.
49112         * modules/wcwidth (Depends-on): Likewise.
49113         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
49114         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
49115         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
49116         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
49117         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49118         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49119         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
49120         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49121         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
49122         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49123         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49124         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49125         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49126         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
49127         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
49128         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49129         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49130         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49131         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49132         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49133         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49134         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49135         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49136         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
49137         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
49138         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49139         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
49140         so that lock.m4 can be used in gettext without extensions module.
49141
49142 2007-09-11  Bruno Haible  <bruno@clisp.org>
49143
49144         * m4/isc-posix.m4: Remove file.
49145         Suggested by Eric Blake.
49146
49147 2007-09-11  Eric Blake  <ebb9@byu.net>
49148
49149         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
49150
49151 2007-09-10  Bruno Haible  <bruno@clisp.org>
49152
49153         * posix-modules: Fix typo in error message.
49154         Reported by Matt <mkraai@beckman.com>.
49155
49156 2007-09-09  Bruno Haible  <bruno@clisp.org>
49157
49158         * doc/functions/getdelim.texi: Update list of platforms lacking the
49159         function.
49160         * doc/functions/getline.texi: Likewise.
49161
49162 2007-09-09  Jim Meyering  <jim@meyering.net>
49163
49164         * lib/hash.c (hash_initialize): Detect calloc failure.
49165         Reported by Bruno Haible.
49166
49167 2007-09-09  Bruno Haible  <bruno@clisp.org>
49168
49169         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
49170         malloc or realloc fails.
49171
49172 2007-09-09  Bruno Haible  <bruno@clisp.org>
49173
49174         * modules/getcwd (Depends-on): Add malloc-posix.
49175         * modules/glob (Depends-on): Likewise.
49176         * modules/putenv (Depends-on): Likewise.
49177         * modules/strdup (Depends-on): Likewise.
49178         * modules/getdelim (Depends-on): Add realloc-posix.
49179         * modules/read-file (Depends-on): Likewise.
49180
49181 2007-09-09  Bruno Haible  <bruno@clisp.org>
49182
49183         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
49184         (gl_FUNC_MALLOC_POSIX): Require it.
49185         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
49186         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
49187         * modules/realloc (Files): Add m4/malloc.m4.
49188         * modules/calloc (Files): Likewise.
49189
49190 2007-09-09  Bruno Haible  <bruno@clisp.org>
49191
49192         * modules/malloc-posix: New file.
49193         * modules/malloc (Depends-on): Add malloc-posix.
49194         * lib/malloc.c: Include errno.h.
49195         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
49196         and a POSIX-compatible malloc into a single function. Set ENOMEM
49197         when returning NULL.
49198         * m4/malloc.m4: New file.
49199         * doc/functions/malloc.texi: Mention the malloc-posix module.
49200         * lib/stdlib_.h (malloc): New declaration.
49201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49202         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
49203         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
49204         and HAVE_MALLOC_POSIX.
49205
49206 2007-09-09  Bruno Haible  <bruno@clisp.org>
49207
49208         * modules/realloc-posix: New file.
49209         * modules/realloc (Depends-on): Add realloc-posix.
49210         * lib/realloc.c: Include errno.h.
49211         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
49212         and a POSIX-compatible realloc into a single function. Set ENOMEM
49213         when returning NULL.
49214         * m4/realloc.m4: New file.
49215         * doc/functions/realloc.texi: Mention the realloc-posix module.
49216         * lib/stdlib_.h (realloc): New declaration.
49217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49218         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
49219         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
49220         and HAVE_REALLOC_POSIX.
49221
49222 2007-09-09  Bruno Haible  <bruno@clisp.org>
49223
49224         * modules/calloc-posix: New file.
49225         * modules/calloc (Depends-on): Add calloc-posix.
49226         * lib/calloc.c: Include errno.h.
49227         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
49228         and a POSIX-compatible calloc into a single function. Set ENOMEM
49229         when returning NULL.
49230         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
49231         * doc/functions/calloc.texi: Mention the calloc-posix module.
49232         * lib/stdlib_.h (calloc): New declaration.
49233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49234         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
49235         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
49236         and HAVE_CALLOC_POSIX.
49237
49238 2007-09-09  Bruno Haible  <bruno@clisp.org>
49239
49240         Allow for modules to show an arbitrary notice.
49241         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
49242         * gnulib-tool: New option --extract-notice.
49243         (func_usage): Document it.
49244         (sed_extract_prog): Update.
49245         (func_get_notice): New function.
49246         (func_modules_notice): New function.
49247         (func_import, func_create_testdir): Invoke it.
49248         Suggested by Jim Meyering.
49249
49250 2007-09-09  Bruno Haible  <bruno@clisp.org>
49251
49252         * gnulib-tool: New options --verbose, --quiet.
49253         (func_usage): Document them.
49254         (verbose): New variable.
49255         (func_execute_command): New function.
49256         (func_import): Don't show the module list and the file list if
49257         $verbose < 0.
49258         (func_create_testdir): Likewise. Use func_execute_command.
49259         (func_create_megatestdir): Use func_execute_command.
49260
49261 2007-09-08  Bruno Haible  <bruno@clisp.org>
49262
49263         * gnulib-tool (func_import): Prefer rsync over wget when available,
49264         for fetching the PO files.
49265
49266 2007-09-08  Bruno Haible  <bruno@clisp.org>
49267
49268         * posix-modules: New file. Portions copied from gnulib-tool.
49269         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
49270
49271 2007-09-08  Jim Meyering  <jim@meyering.net>
49272
49273         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
49274         * lib/fpending.h: Rename from __fpending.h.
49275         * lib/fpending.c: Rename from __fpending.c.
49276         Include "fpending.h", not "__fpending.h".
49277         * lib/__fpending.h, lib/__fpending.c: Remove files.
49278         * modules/fpending (Files): Reflect new file names.
49279         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
49280
49281 2007-09-08  Bruno Haible  <bruno@clisp.org>
49282
49283         * m4/inttypes-h.m4: Remove stub file.
49284
49285 2007-09-07  Simon Josefsson  <simon@josefsson.org>
49286
49287         * doc/headers/stdint.texi: Discuss #include_next issue.
49288
49289 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49290
49291         * build-aux/bootstrap: Remove obsolete comment about wget --help.
49292
49293 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49294
49295         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
49296         in variable name.
49297
49298 2007-09-03  Jim Meyering  <jim@meyering.net>
49299
49300         New module: git-version-gen.
49301         * modules/git-version-gen: New file.
49302
49303         Import changes from coreutils for bootstrap script.
49304
49305         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
49306
49307         bootstrap: uses rsync to download the .po files
49308         * build-aux/bootstrap (po_download_command_format): New global.
49309         (download_po_files): Use rsync.
49310         (update_po_files): Don't remove .po files after download,
49311         so future rsync runs can take advantage of the copies.
49312
49313         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
49314
49315         Solve the unnecessary-.po-file-regeneration problem once and for all.
49316         * build-aux/bootstrap (download_po_files): New function, renamed from
49317         get_translations.  Now, downloads, but doesn't update LINGUAS.
49318         (update_po_files): New function.
49319
49320         bootstrap: Ignore more.
49321         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
49322         uniwidth to e.g., lib/.gitignore.
49323         (slurp): Handle the sys_stat_.h -> sys mapping, too.
49324
49325         * build-aux/bootstrap: New setting: vc_ignore.
49326         (insert_sorted_if_absent): Create $file if absent.
49327         Adapt to new, possibly empty, list: $vc_ignore.
49328
49329         bootstrap: generate more ignorable names
49330         * build-aux/bootstrap (slurp): When generating ignorable names,
49331         also map .sin to .sed, .gperf to .c, and .y to .c.
49332
49333 2007-09-03  Jim Meyering  <jim@meyering.net>
49334
49335         * build-aux/git-version-gen: New file, from coreutils.  For details, see
49336         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
49337
49338 2007-09-02  Bruno Haible  <bruno@clisp.org>
49339
49340         Fix mis-recognition of 'mcs' on QNX 6.
49341         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
49342         output contains the string "Mono".
49343         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
49344         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
49345
49346 2007-09-01  Bruno Haible  <bruno@clisp.org>
49347
49348         Fix collision between uniwidth/* and linebreak modules.
49349         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
49350         u32_width): Remove declarations.
49351         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
49352         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
49353         streq3, streq2, streq1, streq0): Remove functions.
49354         (STREQ): Remove macro.
49355         (is_cjk_encoding): Remove function.
49356         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
49357         (uc_width, u8_width, u16_width, u32_width): Remove functions.
49358         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
49359         * NEWS: Document the change.
49360
49361 2007-09-01  Bruno Haible  <bruno@clisp.org>
49362
49363         * lib/streq.h: Add double-inclusion guard.
49364
49365 2007-09-01  Karl Berry  <karl@gnu.org>
49366
49367         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
49368
49369 2007-08-28  Jim Meyering  <jim@meyering.net>
49370
49371         Rename mreadlink_with_size to areadlink_with_size.
49372         * NEWS: Document the change.
49373         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
49374         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
49375         * lib/mreadlink.h: Rename this to...
49376         * lib/areadlink.h: ...this.
49377         * modules/mreadlink-with-size: Rename this to...
49378         * modules/areadlink-with-size: ...this.
49379         * lib/canonicalize.c: Reflect the renaming.
49380         * modules/canonicalize: Likewise.
49381
49382 2007-08-26  Bruno Haible  <bruno@clisp.org>
49383
49384         * gnulib-tool (func_import): When deciding which files to remove,
49385         consider also dangling symbolic links.
49386         Reported by Eric Blake.
49387
49388 2007-08-26  Bruno Haible  <bruno@clisp.org>
49389
49390         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
49391
49392 2007-08-23  Simon Josefsson  <simon@josefsson.org>
49393
49394         * lib/readline.c: Don't include getline.h, the prototype is now
49395         found in stdio.h.
49396
49397 2007-08-23  Jim Meyering  <jim@meyering.net>
49398
49399         Getdelim touchup.
49400         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
49401         around the funlockfile call, since funlockfile never sets errno.
49402         Don't set errno upon failed realloc.
49403
49404 2007-08-22  Eric Blake  <ebb9@byu.net>
49405
49406         Getline touchups.
49407         * lib/getdelim.c (getdelim): Revert regression that required *n to
49408         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
49409         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
49410         getdelim, rather than whether implementation is missing.
49411         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
49412         * lib/stdio_.h (getline): Also declare if replacement is
49413         required.
49414         * doc/functions/getdelim.texi: New file.
49415         * doc/functions/getline.texi: Likewise.
49416         * doc/gnulib.texi (Function Substitutes): Add new files.
49417         Reported by Bruno Haible.
49418
49419 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
49420
49421         * users.txt: Add Guile.
49422
49423 2007-08-22  Eric Blake  <ebb9@byu.net>
49424
49425         * tests/test-getdelim.c (main): Use remove, not unlink.
49426         * tests/test-getline.c (main): Likewise.
49427
49428         Move getline and getdelim into stdio.h, per POSIX 200x.
49429         * modules/getline (Files): Remove getline.h.
49430         (Depends-on): Add stdio.
49431         (configure.ac): Add module indicator.
49432         * modules/getdelim (Files): Remove getdelim.h.
49433         (Depends-on): Add stdio.
49434         (configure.ac): Add module indicator.
49435         * modules/stdio (Makefile.am): Work with new indicators.
49436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
49437         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
49438         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49439         * lib/getdelim.h: Delete.
49440         * lib/getline.h: Delete.
49441         * lib/stdio_.h (getdelim, getline): Declare.
49442         * modules/getdelim-tests: New module.
49443         * modules/getline-tests: Likewise.
49444         * tests/test-getdelim.c: New file.
49445         * tests/test-getline.c: Likewise.
49446         * NEWS: Document the change.
49447         * lib/getline.c: Update choice of header.
49448         * lib/csharpcomp.c: Likewise.
49449         * lib/getpass.c: Likewise.
49450         * lib/javacomp.c: Likewise.
49451         * lib/javaversion.c: Likewise.
49452         * lib/yesno.c: Likewise.
49453         * lib/getdelim.c: Likewise.
49454         (getdelim): Set errno on failure, and avoid memory leak.
49455
49456 2007-08-19  Bruno Haible  <bruno@clisp.org>
49457
49458         * modules/closein (Depends-on): Add freadahead.
49459         * lib/closein.c: Include freadahead.h.
49460         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
49461         is zero.
49462
49463 2007-08-19  Bruno Haible  <bruno@clisp.org>
49464
49465         * modules/freadahead-tests: New file.
49466         * tests/test-freadahead.sh: New file.
49467         * tests/test-freadahead.c: New file.
49468
49469         * modules/freadahead: New file.
49470         * lib/freadahead.h: New file.
49471         * lib/freadahead.c: New file.
49472         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
49473         fbufmode, fpurge, freadable, fwritable.
49474
49475 2007-08-19  Eric Blake  <ebb9@byu.net>
49476
49477         Test yesno in combination with closein.
49478         * lib/yesno.c (yesno): Document use of stdin.
49479         * modules/yesno-tests (Files): New module.
49480         * tests/test-yesno.c (main): New file.
49481         * tests/test-yesno.sh: Likewise.
49482
49483 2007-08-19  Bruno Haible  <bruno@clisp.org>
49484
49485         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
49486         * lib/fseeko.c (rpl_fseeko): Likewise.
49487         * lib/fseterr.c (fseterr): Likewise.
49488
49489 2007-08-19  Bruno Haible  <bruno@clisp.org>
49490
49491         * tests/test-lseek.c (main): Disable a test for BeOS.
49492         * doc/functions/lseek.texi: Document the BeOS bug.
49493
49494 2007-08-19  Bruno Haible  <bruno@clisp.org>
49495             Eric Blake  <ebb9@byu.net>
49496
49497         * lib/lseek.c: Include <sys/stat.h>.
49498         (rpl_lseek): Add workaround code also for Unix platforms.
49499         Needed for BeOS.
49500         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
49501         * doc/functions/lseek.texi: Document BeOS definiency.
49502
49503 2007-08-18  Bruno Haible  <bruno@clisp.org>
49504
49505         * modules/fstrcmp-tests: New file.
49506         * tests/test-fstrcmp.c: New file.
49507
49508 2007-08-18  Bruno Haible  <bruno@clisp.org>
49509
49510         * modules/fstrcmp: New file, from GNU gettext with modifications.
49511         * lib/fstrcmp.h: New file, from GNU gettext.
49512         * lib/fstrcmp.c: New file, from GNU gettext.
49513         * MODULES.html.sh (String handling): Add fstrcmp.
49514
49515 2007-08-18  Bruno Haible  <bruno@clisp.org>
49516
49517         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
49518         'bool'.
49519         (diag, compareseq): Remove const from the ctxt argument.
49520         (USE_HEURISTIC): Undefine at the end.
49521
49522 2007-08-18  Jim Meyering  <jim@meyering.net>
49523
49524         New file: lib/idcache.h
49525         * NEWS: Mention the addition.
49526         * modules/idcache (Files): Add lib/idcache.h
49527         * lib/idcache.c: Include "idcache.h".
49528         Don't include <sys/types.h>.
49529         Add a FIXME comment.
49530         Move file-scoped "static" declarations to the top.
49531         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
49532
49533 2007-08-17  Bruno Haible  <bruno@clisp.org>
49534         and Paul Eggert  <eggert@cs.ucla.edu>
49535
49536         * MODULES.html.sh: Add diffseq.
49537         * modules/diffseq: New file.
49538         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
49539         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
49540
49541 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49542
49543         Import changes from coreutils for bootstrap script.
49544
49545         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
49546
49547         * build-aux/bootstrap (slurp): Work even in environments where
49548         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
49549         current code does not slurp files whose names start with ".", and
49550         this looks like it might be a troublesome area.
49551
49552         2007-07-11  Jim Meyering  <jim@meyering.net>
49553
49554         If there's a GPL vN copyright comment, require that N == 3.
49555
49556         2007-07-08  Jim Meyering  <jim@meyering.net>
49557
49558         Run the coreutils-specific code only if tests/Makefile.am.in exists.
49559         * build-aux/bootstrap (mam_template): Move definition out of loop.
49560
49561         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
49562
49563         * build-aux/bootstrap (symlink_to_dir): Rename function from
49564         symlink_to_gnulib.  Add a directory parameter.  Update all
49565         callers.
49566         (cp_mark_as_generated): Also check for -- and link to -- files in
49567         gl/.
49568
49569         2007-07-08  Jim Meyering  <jim@meyering.net>
49570
49571         Adapt to deeper hierarchy in gnulib.
49572         * build-aux/bootstrap (symlink_to_dir): If the destination
49573         directory doesn't exist, create it. This is required at least for
49574         "lib/uniwidth/cjk.h".
49575
49576         2007-05-15  Jim Meyering  <jim@meyering.net>
49577
49578         * build-aux/bootstrap: Now that generated Makefile.am files
49579         are no longer under version control, they must be created at
49580         bootstrap time.
49581
49582 2007-08-14  Ben Pfaff  <blp@gnu.org>
49583
49584         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
49585
49586 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49587
49588         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
49589         given the changes below.
49590         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
49591         even on hosts that have padding bits beyond the supported 64.
49592
49593 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49594
49595         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
49596         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
49597         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
49598         depends on it.
49599         (xstrtol_error): Remove.
49600         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
49601         but with a different signature.
49602         (ATTRIBUTE_NORETURN, __attribute__): New macros.
49603         * lib/xstrtol-error.c: Include exitfail.h.
49604         (xstrtol_fatal): New function, with a different signature from the
49605         old xstrtol_error, so that the caller need not worry about passing
49606         in an exit status, or about storage management of the option argument.
49607         (xstrtol_error): Now a static function.  Redo signature to
49608         implement xstrtol_fatal.  Output the correct number of hyphens in
49609         front of the option so that the caller need not worry about
49610         storage management.
49611         (N_): New macro.
49612         (_): Remove; not used now.
49613         * modules/xstrtol: Depend on getopt.
49614         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
49615         of old STRTOL_FATAL_ERROR macro.
49616         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
49617         of test program.
49618         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
49619         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
49620
49621 2007-08-08  Eric Blake  <ebb9@byu.net>
49622
49623         * lib/xstrtol-error.c: Add missing include.
49624
49625         Move xstrtol messages into gnulib domain, when --pobase is used.
49626         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
49627         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
49628         * modules/xstrtol (Files): Distribute new file.
49629         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
49630         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
49631         * tests/test-xstrtol.c: ...into new file.
49632         * tests/test-xstrtoul.c: Also test xstrtoul.
49633         * tests/test-xstrtoimax.c: Also test xstrtoimax.
49634         * tests/test-xstrtoumax.c: Also test xstrtoumax.
49635         * tests/test-xstrtol.sh: Drive the tests.
49636         * tests/test-xstrtoimax.sh: Likewise.
49637         * tests/test-xstrtoumax.sh: Likewise.
49638         * modules/xstrtol-tests: New module.
49639         * modules/xstrtoimax-tests: Likewise.
49640         * modules/xstrtoumax-tests: Likewise.
49641
49642 2007-08-08  Jim Meyering  <jim@meyering.net>
49643
49644         New function: mfile_name_concat.
49645         * lib/filenamecat.c (mfile_name_concat): New function, just like
49646         file_name_concat, but return NULL upon failure rather than exiting
49647         with a diagnostic.
49648         * lib/filenamecat.h: Declare it.
49649
49650 2007-08-07  Bruno Haible  <bruno@clisp.org>
49651
49652         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
49653         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
49654         warning from gcc.
49655         Reported by Eric Blake.
49656
49657 2007-08-07  Simon Josefsson  <simon@josefsson.org>
49658
49659         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
49660         * modules/crypto/arcfour (License): Likewise.
49661         * modules/crypto/des-tests (License): Likewise.
49662         * modules/crypto/gc-arctwo-tests (License): Likewise.
49663         * modules/crypto/gc-des-tests (License): Likewise.
49664         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
49665         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
49666         * modules/crypto/gc-md2-tests (License): Likewise.
49667         * modules/crypto/gc-md4-tests (License): Likewise.
49668         * modules/crypto/gc-md5-tests (License): Likewise.
49669         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
49670         * modules/crypto/gc-rijndael-tests (License): Likewise.
49671         * modules/crypto/gc-sha1-tests (License): Likewise.
49672         * modules/crypto/gc-tests (License): Likewise.
49673         * modules/crypto/hmac-md5 (License): Likewise.
49674         * modules/crypto/hmac-sha1 (License): Likewise.
49675         * modules/crypto/md2-tests (License): Likewise.
49676         * modules/crypto/md4-tests (License): Likewise.
49677         * modules/crypto/md5 (License): Likewise.
49678         * modules/crypto/rijndael (License): Likewise.
49679         * modules/crypto/sha1 (License): Likewise.
49680         * modules/memxor (License): Likewise.
49681
49682 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
49683         and Bruno Haible  <bruno@clisp.org>
49684
49685         * NEWS: Describe interface changes to human, xstrtol.
49686         * lib/human.h: Include <xstrtol.h>.
49687         (human_options): Return enum strtol_error, not int.  Remove
49688         bool arg; take int * instead.
49689         * lib/human.c: Don't include "gettext.h".
49690         (_): Remove; no longer used.
49691         Don't include <xstrtol.h>, since human.h does it.
49692         (human_options): Adjust to abovementioned interface changes.
49693         Do not report error to stderr; that's now the caller's
49694         responsibility.
49695         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
49696         interface change.
49697         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
49698         Str, Argument_type_string.  All uses changed.  Put " argument"
49699         in diagnostics to make them clearer.  Change wording of suffix
49700         message for clarity.
49701         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
49702         Argument_type_string.
49703         (STRTOL_FATAL_WARN): Remove; no longer used.
49704         * modules/human (Depends-on): Remove gettext-h.
49705
49706 2007-08-06  Simon Josefsson  <simon@josefsson.org>
49707
49708         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
49709
49710 2007-07-31  Bruno Haible  <bruno@clisp.org>
49711
49712         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
49713         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
49714         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
49715
49716 2007-07-31  Bruno Haible  <bruno@clisp.org>
49717
49718         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
49719         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
49720
49721 2007-07-30  Bruno Haible  <bruno@clisp.org>
49722
49723         * modules/base64 (License): Use the synonymous term "LGPLv2+".
49724         * modules/c-ctype (License): Likewise.
49725         * modules/c-strcase (License): Likewise.
49726         * modules/check-version (License): Likewise.
49727         * modules/iconv (License): Likewise.
49728         * modules/iconv_open (License): Likewise.
49729         * modules/read-file (License): Likewise.
49730         * modules/striconv (License): Likewise.
49731         * modules/strverscmp (License): Likewise.
49732         * modules/vasprintf (License): Likewise.
49733         * modules/crypto/des (License): Likewise.
49734         * modules/crypto/gc (License): Likewise.
49735         * modules/crypto/gc-arcfour (License): Likewise.
49736         * modules/crypto/gc-arctwo (License): Likewise.
49737         * modules/crypto/gc-des (License): Likewise.
49738         * modules/crypto/gc-hmac-md5 (License): Likewise.
49739         * modules/crypto/gc-hmac-sha1 (License): Likewise.
49740         * modules/crypto/gc-md2 (License): Likewise.
49741         * modules/crypto/gc-md4 (License): Likewise.
49742         * modules/crypto/gc-md5 (License): Likewise.
49743         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
49744         * modules/crypto/gc-random (License): Likewise.
49745         * modules/crypto/gc-rijndael (License): Likewise.
49746         * modules/crypto/gc-sha1 (License): Likewise.
49747         * modules/crypto/md2 (License): Likewise.
49748         * modules/crypto/md4 (License): Likewise.
49749
49750 2007-07-30  Jim Meyering  <jim@meyering.net>
49751
49752         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
49753         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
49754         it has valid stat data.  This bug would cause du not to count the
49755         sizes of inaccessible directories.
49756         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
49757         in <http://bugzilla.redhat.com/250077>.
49758
49759 2007-07-25  Peter O'Gorman  <peter@pogma.com>
49760             Bruno Haible  <bruno@clisp.org>
49761
49762         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
49763         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
49764         #include_next, gives a diagnostic about it, but reports no error in
49765         the exit code.
49766         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49767
49768 2007-07-24  Ben Pfaff  <blp@gnu.org>
49769
49770         Improve name: "count-one-bits" is better than "popcount".
49771         * MODULES.html.sh: Update name.
49772         * lib/popcount.h: Renamed lib/count-one-bits.h.
49773         (popcount): Renamed count_one_bits.
49774         (popcountl): Renamed count_one_bits_l.
49775         (popcountll): Renamed count_one_bits_ll.
49776         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
49777         * modules/popcount: Renamed module/count-one-bits.
49778         * modules/popcount-tests: Renamed module/count-one-bits-tests.
49779         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
49780
49781 2007-07-23  Ben Pfaff  <blp@gnu.org>
49782
49783         * lib/popcount.h (popcount32): Reduce size of constants, to allow
49784         better code generation, and add U to large constants to avoid
49785         warnings, in non-GCC case.
49786         Suggested by Bruno Haible.
49787
49788 2007-07-23  Ben Pfaff  <blp@gnu.org>
49789
49790         * lib/popcount.h: Use verify_true instead of if...abort.
49791         * modules/popcount: Depend on verify module.
49792         Suggested by Jim Meyering.
49793
49794 2007-07-23  Bruno Haible  <bruno@clisp.org>
49795
49796         * gnulib-tool (func_import): Create a .cvsignore file also when the
49797         directory is not yet in CVS but the toplevel directory is. When
49798         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
49799         Reported by Karl Berry.
49800
49801 2007-07-22  Ben Pfaff  <blp@gnu.org>
49802
49803         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
49804         case.
49805         Suggested by Eric Blake.
49806
49807 2007-07-22  Ben Pfaff  <blp@gnu.org>
49808
49809         New module: popcount.
49810         * MODULES.html.sh: Add popcount.
49811         * modules/popcount: New file.
49812         * modules/popcount-tests: New file.
49813         * tests/test-popcount.c: New file.
49814         * lib/popcount.h: New file.
49815         * m4/popcount.m4: New file.
49816
49817 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49818
49819         * build-aux/announce-gen: Update to GPLv3.
49820
49821         * build-aux/config.guess: Update from config.
49822
49823 2007-07-21  Bruno Haible  <bruno@clisp.org>
49824
49825         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
49826         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
49827
49828 2007-07-20  Jim Meyering  <jim@meyering.net>
49829
49830         * check-module: Diagnose a self-dependency.
49831
49832 2007-07-19  Bruno Haible  <bruno@clisp.org>
49833
49834         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
49835         empty.
49836         Reported by Eric Blake.
49837
49838 2007-07-18  Bruno Haible  <bruno@clisp.org>
49839
49840         * gnulib-tool: New options --po-base, --po-domain.
49841         (func_usage): Document them.
49842         (pobase, po_domain): New variables.
49843         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
49844         DEFAULT_TEXT_DOMAIN.
49845         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
49846         (func_import): Consider pobase and po_domain. Create a po/ directory.
49847         (func_create_testdir): Set pobase and po_domain to empty.
49848         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
49849         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
49850
49851 2007-07-18  Bruno Haible  <bruno@clisp.org>
49852
49853         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49854         EXTRA_DIST augmentation for files in build-aux/.
49855
49856 2007-07-16  Bruno Haible  <bruno@clisp.org>
49857
49858         * modules/lseek (License): Use the synonymous term "LGPLv2+".
49859         * modules/getdelim (License): Likewise.
49860
49861 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49862
49863         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
49864         * modules/d-type (License): Likewise.
49865         * modules/extensions (License): Likewise.
49866         * modules/fnmatch (License): Likewise.
49867         * modules/fseeko (License): Likewise.
49868         * modules/getaddrinfo (License): Likewise.
49869         * modules/getline (License): Likewise.
49870         * modules/getlogin_r (License): Likewise.
49871         * modules/getpass (License): Likewise.
49872         * modules/gettimeofday (License): Likewise.
49873         * modules/glob (License): Likewise.
49874         * modules/inet_ntop (License): Likewise.
49875         * modules/malloc (License): Likewise.
49876         * modules/malloca (License): Likewise.
49877         * modules/memmem (License): Likewise.
49878         * modules/mempcpy (License): Likewise.
49879         * modules/memset (License): Likewise.
49880         * modules/minmax (License): Likewise.
49881         * modules/mktime (License): Likewise.
49882         * modules/netinet_in (License): Likewise.
49883         * modules/pathmax (License): Likewise.
49884         * modules/poll (License): Likewise.
49885         * modules/regex (License): Likewise.
49886         * modules/snprintf (License): Likewise.
49887         * modules/stdbool (License): Likewise.
49888         * modules/stdint (License): Likewise.
49889         * modules/stdio (License): Likewise.
49890         * modules/strcase (License): Likewise.
49891         * modules/strcasestr (License): Likewise.
49892         * modules/strdup (License): Likewise.
49893         * modules/string (License): Likewise.
49894         * modules/strndup (License): Likewise.
49895         * modules/strnlen (License): Likewise.
49896         * modules/strpbrk (License): Likewise.
49897         * modules/strptime (License): Likewise.
49898         * modules/strsep (License): Likewise.
49899         * modules/sys_select (License): Likewise.
49900         * modules/sys_socket (License): Likewise.
49901         * modules/sys_stat (License): Likewise.
49902         * modules/sys_time (License): Likewise.
49903         * modules/time (License): Likewise.
49904         * modules/time_r (License): Likewise.
49905         * modules/timegm (License): Likewise.
49906         * modules/unistd (License): Likewise.
49907         * modules/vsnprintf (License): Likewise.
49908         * modules/wctype (License): Likewise.
49909
49910 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49911
49912         * modules/argz (License): LGPLv2+.
49913
49914 2007-07-15  Karl Berry  <karl@gnu.org>
49915
49916         * doc/gnulib.texi: revise node structure per new fdl.texi.
49917
49918 2007-07-14  Bruno Haible  <bruno@clisp.org>
49919
49920         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
49921         the output file.
49922         * lib/uniname/uninames.h: Regenerated.
49923
49924 2007-07-14  Karl Berry  <karl@gnu.org>
49925
49926         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
49927         omitting sectioning and index commands.
49928
49929 2007-07-13  Bruno Haible  <bruno@clisp.org>
49930
49931         New gnulib-tool option --more-symlinks.
49932         * gnulib-tool (func_usage): Document --more-symlinks.
49933         (do_copyrights): New variable.
49934         Recognize option --more-symlinks.
49935         (func_import): Don't add a copyright notice transform to
49936         sed_transform_lib_file if do_copyrights is empty.
49937
49938 2007-07-13  Bruno Haible  <bruno@clisp.org>
49939
49940         * lib/vasnprintf.c (decimal_point_char): Define also if
49941         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
49942         && !NEED_PRINTF_DIRECTIVE_A.
49943         Reported by Clemens Koller <clemens.koller@anagramm.de> via
49944         Gary V. Vaughan <gary@gnu.org>.
49945
49946 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
49947
49948         * lib/inttypes_.h: Undo previous change, since it was fixed
49949         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
49950
49951 2007-07-13  Bruno Haible  <bruno@clisp.org>
49952
49953         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
49954         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
49955
49956 2007-07-13  Jim Meyering  <jim@meyering.net>
49957
49958         df: Don't fail for Tru64's "file-on-file mount".
49959         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
49960         so we fall through and use statfs instead.  Details here:
49961         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
49962         Reported by Albert Chin.
49963
49964 2007-07-13  Bruno Haible  <bruno@clisp.org>
49965
49966         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
49967         * modules/configmake (License): Likewise.
49968         * modules/gettext (License): Likewise.
49969         * modules/gettext-h (License): Likewise.
49970         * modules/include_next (License): Likewise.
49971         * modules/link-warning (License): Likewise.
49972         * modules/localcharset (License): Likewise.
49973         * modules/localename (License): Likewise.
49974         * modules/lock (License): Likewise.
49975         * modules/relocatable-lib-lgpl (License): Likewise.
49976         * modules/size_max (License): Likewise.
49977         * modules/vasnprintf (License): Likewise.
49978         * modules/wchar (License): Likewise.
49979         * modules/xsize (License): Likewise.
49980
49981 2007-07-13  Bruno Haible  <bruno@clisp.org>
49982
49983         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
49984         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
49985
49986 2007-07-12  Bruno Haible  <bruno@clisp.org>
49987
49988         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
49989         in the modules files.
49990
49991 2007-07-11  Karl Berry  <karl@gnu.org>
49992
49993         * MODULES.html.sh (func_module): use
49994          sed -e '\|^'"${includefile}"'$|d'
49995          instead of /.../d, to avoid errors on $includefile's containing /.
49996
49997 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49998
49999         * gnulib-tool (func_import): Avoid duplication of --avoid
50000         statements
50001         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
50002         names to `_' in variable names.
50003
50004 2007-07-10  Eric Blake  <ebb9@byu.net>
50005
50006         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
50007         * NEWS: Document this change.
50008
50009 2007-07-08  Bruno Haible  <bruno@clisp.org>
50010
50011         Update to Unicode 5.0.
50012         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
50013         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
50014         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
50015         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
50016         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
50017         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
50018         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
50019         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
50020         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
50021         U+10A3F, U+1D242..U+1D244.
50022         (nonspacing_table_ind): Update.
50023         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
50024         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
50025
50026 2007-07-08  Bruno Haible  <bruno@clisp.org>
50027
50028         Update to Unicode 5.0.
50029         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
50030         code transform. Extend the name index field of unicode_name_to_code and
50031         unicode_code_to_name from 16 to 24 bits.
50032         * lib/uniname/uniname.c (unicode_character_name,
50033         unicode_name_character): Add the range 0x12xxx to the code transform.
50034         * lib/uniname/uninames.h: Regenerated.
50035         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
50036
50037 2007-07-07  Bruno Haible  <bruno@clisp.org>
50038
50039         * modules/wcwidth-tests: New file.
50040         * tests/test-wcwidth.c: New file.
50041
50042         Work around MacOS X wcwidth() bug.
50043         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
50044         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
50045         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
50046         original wcwidth in non-UTF-8 locales.
50047         * modules/wcwidth (Depends-on): Add localcharset, streq,
50048         uniwidth/width.
50049         * doc/functions/wcwidth.texi: Update.
50050
50051 2007-07-07  Bruno Haible  <bruno@clisp.org>
50052
50053         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
50054         (wcwidth): New declaration.
50055         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
50056         macros.
50057         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
50058         here. Prepare for creating <wchar.h> unconditionally.
50059         * modules/wchar (Depends-on): Add link-warning.
50060         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
50061         REPLACE_WCWIDTH, and GL_LINK_WARNING.
50062         * lib/wcwidth.h: Remove file.
50063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
50064         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
50065         * modules/wcwidth (Files): Remove lib/wcwidth.h.
50066         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
50067         (Include): Replace wcwidth.h with <wchar.h>.
50068         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
50069         * lib/mbchar.h: Don't include wcwidth.h.
50070         * lib/mbswidth.c: Likewise.
50071         * NEWS: Mention the change.
50072
50073 2007-07-07  Bruno Haible  <bruno@clisp.org>
50074
50075         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
50076         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
50077         definition with an external declaration.
50078         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
50079         defined as a function. Remove AC_C_INLINE requirement.
50080         * modules/wcwidth (Files): Add lib/wcwidth.c.
50081         (Makefile.am): Remove redundant statement.
50082
50083 2007-07-07  Bruno Haible  <bruno@clisp.org>
50084
50085         * MODULES.html.sh (Unicode string functions): Add the new modules.
50086
50087         * tests/uniwidth/test-u32-strwidth.c: New file.
50088         * modules/uniwidth/u32-strwidth-tests: New file.
50089
50090         * lib/uniwidth/u32-strwidth.c: New file.
50091         * modules/uniwidth/u32-strwidth: New file.
50092
50093         * tests/uniwidth/test-u16-strwidth.c: New file.
50094         * modules/uniwidth/u16-strwidth-tests: New file.
50095
50096         * lib/uniwidth/u16-strwidth.c: New file.
50097         * modules/uniwidth/u16-strwidth: New file.
50098
50099         * tests/uniwidth/test-u8-strwidth.c: New file.
50100         * modules/uniwidth/u8-strwidth-tests: New file.
50101
50102         * lib/uniwidth/u8-strwidth.c: New file.
50103         * modules/uniwidth/u8-strwidth: New file.
50104
50105         * tests/uniwidth/test-u32-width.c: New file.
50106         * modules/uniwidth/u32-width-tests: New file.
50107
50108         * lib/uniwidth/u32-width.c: New file.
50109         * modules/uniwidth/u32-width: New file.
50110
50111         * tests/uniwidth/test-u16-width.c: New file.
50112         * modules/uniwidth/u16-width-tests: New file.
50113
50114         * lib/uniwidth/u16-width.c: New file.
50115         * modules/uniwidth/u16-width: New file.
50116
50117         * tests/uniwidth/test-u8-width.c: New file.
50118         * modules/uniwidth/u8-width-tests: New file.
50119
50120         * lib/uniwidth/u8-width.c: New file.
50121         * modules/uniwidth/u8-width: New file.
50122
50123         * tests/uniwidth/test-uc_width.c: New file.
50124         * modules/uniwidth/width-tests: New file.
50125
50126         * lib/uniwidth/width.c: New file, from GNU libiconv.
50127         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
50128         * modules/uniwidth/width: New file.
50129
50130         * lib/uniwidth.h: New file, from GNU libiconv.
50131         * modules/uniwidth/base: New file.
50132
50133 2007-07-07  Bruno Haible  <bruno@clisp.org>
50134
50135         * lib/uniname.h: New file, from GNU gettext.
50136         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
50137         * lib/uniname/uninames.h: New file, from GNU gettext.
50138         * lib/uniname/uniname.c: New file, from GNU gettext.
50139         * tests/uniname/test-uninames.sh: New file.
50140         * tests/uniname/test-uninames.c: New file, from GNU gettext.
50141         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
50142         * modules/uniname/base: New file.
50143         * modules/uniname/uniname: New file.
50144         * modules/uniname/uniname-tests: New file.
50145         * MODULES.html.sh (Unicode string functions): Add the new modules.
50146
50147 2007-07-06  Bruno Haible  <bruno@clisp.org>
50148
50149         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
50150
50151 2007-07-06  Bruno Haible  <bruno@clisp.org>
50152
50153         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
50154         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
50155         includes <cygwin/sys_time.h> which includes <sys/select.h> which
50156         include <sys/time.h>.
50157         Reported by Eric Blake.
50158
50159 2007-07-06  Eric Blake  <ebb9@byu.net>
50160
50161         Fix testing canonicalize on cygwin.
50162         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50163         Revert patch from 2007-06-19.
50164         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
50165         canonicalize module is also in use.
50166         * tests/test-canonicalize.c: New file.
50167         * tests/test-canonicalize.sh: Likewise.
50168         * modules/canonicalize-tests: Likewise.
50169
50170 2007-07-06  Jim Meyering  <jim@meyering.net>
50171
50172         * lib/getugroups.c (getugroups): Detect getgrent failure.
50173         Adjust comment to reflect reality: this function may return -1.
50174
50175 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50176
50177         * build-aux/bootstrap (TP_URL,get_translations): Update to use
50178         the new TP address.
50179         (usage): Fix typo
50180         (gnulib_mk): New variable.
50181
50182 2007-07-05  Jim Meyering  <jim@meyering.net>
50183
50184         Don't let endgrent clobber errno, no matter how improbable.
50185         * lib/getugroups.c (getugroups): Save and restore errno around
50186         endgrent call.
50187
50188         Close the group DB even when failing with 2^31 or more members.
50189         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
50190
50191 2007-07-04  Jim Meyering  <jim@meyering.net>
50192
50193         * lib/getugroups.h: New file.
50194         * lib/getugroups.c: Include "getugroups.h".
50195         Remove uses of "register" keyword.
50196         Move local variable, "cp", down into scope where used.
50197         Give "username" parameter the "const" attribute.
50198         * modules/getugroups (Files): Add lib/getugroups.h
50199
50200 2007-07-04  Karl Berry  <karl@gnu.org>
50201
50202         * MODULES.html.sh (func_all_modules): Complete rename of
50203         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
50204
50205 2007-07-02  Bruno Haible  <bruno@clisp.org>
50206
50207         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
50208         mode, when inttypes.h comes from gnulib.
50209         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50210
50211 2007-07-02  Simon Josefsson  <simon@josefsson.org>
50212
50213         * NEWS: Mention lgpl module name change.
50214
50215         * modules/lgpl-2.1: Renamed from lgpl.
50216
50217         * NEWS: Mention gpl module name change.
50218
50219         * modules/gpl-3.0: New file, based on gpl-2.0.
50220
50221         * modules/gpl-2.0: Renamed from gpl.
50222
50223         * modules/gpl: Fix filename, doc/gpl.texi is now found at
50224         doc/gpl-2.0.texi.
50225
50226 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50227
50228         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
50229         #define __STDC_LIMIT_MACROS temporarily while including
50230         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
50231         Problem reported by Joel E. Denny in
50232         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
50233
50234 2007-07-01  Bruno Haible  <bruno@clisp.org>
50235
50236         * lib/unistdio.h: New file.
50237         * lib/unistdio/u-asnprintf.h: New file.
50238         * lib/unistdio/u-asprintf.h: New file.
50239         * lib/unistdio/u-printf-args.c: New file.
50240         * lib/unistdio/u-printf-args.h: New file.
50241         * lib/unistdio/u-printf-parse.h: New file.
50242         * lib/unistdio/u-snprintf.h: New file.
50243         * lib/unistdio/u-sprintf.h: New file.
50244         * lib/unistdio/u-vasprintf.h: New file.
50245         * lib/unistdio/u-vsnprintf.h: New file.
50246         * lib/unistdio/u-vsprintf.h: New file.
50247         * lib/unistdio/ulc-asnprintf.c: New file.
50248         * lib/unistdio/ulc-asprintf.c: New file.
50249         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
50250         * lib/unistdio/ulc-printf-parse.c: New file.
50251         * lib/unistdio/ulc-snprintf.c: New file.
50252         * lib/unistdio/ulc-sprintf.c: New file.
50253         * lib/unistdio/ulc-vasnprintf.c: New file.
50254         * lib/unistdio/ulc-vasprintf.c: New file.
50255         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
50256         * lib/unistdio/ulc-vsnprintf.c: New file.
50257         * lib/unistdio/ulc-vsprintf.c: New file.
50258         * lib/unistdio/u8-asnprintf.c: New file.
50259         * lib/unistdio/u8-asprintf.c: New file.
50260         * lib/unistdio/u8-printf-parse.c: New file.
50261         * lib/unistdio/u8-snprintf.c: New file.
50262         * lib/unistdio/u8-sprintf.c: New file.
50263         * lib/unistdio/u8-vasnprintf.c: New file.
50264         * lib/unistdio/u8-vasprintf.c: New file.
50265         * lib/unistdio/u8-vsnprintf.c: New file.
50266         * lib/unistdio/u8-vsprintf.c: New file.
50267         * lib/unistdio/u8-u8-asnprintf.c: New file.
50268         * lib/unistdio/u8-u8-asprintf.c: New file.
50269         * lib/unistdio/u8-u8-snprintf.c: New file.
50270         * lib/unistdio/u8-u8-sprintf.c: New file.
50271         * lib/unistdio/u8-u8-vasnprintf.c: New file.
50272         * lib/unistdio/u8-u8-vasprintf.c: New file.
50273         * lib/unistdio/u8-u8-vsnprintf.c: New file.
50274         * lib/unistdio/u8-u8-vsprintf.c: New file.
50275         * lib/unistdio/u16-asnprintf.c: New file.
50276         * lib/unistdio/u16-asprintf.c: New file.
50277         * lib/unistdio/u16-printf-parse.c: New file.
50278         * lib/unistdio/u16-snprintf.c: New file.
50279         * lib/unistdio/u16-sprintf.c: New file.
50280         * lib/unistdio/u16-vasnprintf.c: New file.
50281         * lib/unistdio/u16-vasprintf.c: New file.
50282         * lib/unistdio/u16-vsnprintf.c: New file.
50283         * lib/unistdio/u16-vsprintf.c: New file.
50284         * lib/unistdio/u16-u16-asnprintf.c: New file.
50285         * lib/unistdio/u16-u16-asprintf.c: New file.
50286         * lib/unistdio/u16-u16-snprintf.c: New file.
50287         * lib/unistdio/u16-u16-sprintf.c: New file.
50288         * lib/unistdio/u16-u16-vasnprintf.c: New file.
50289         * lib/unistdio/u16-u16-vasprintf.c: New file.
50290         * lib/unistdio/u16-u16-vsnprintf.c: New file.
50291         * lib/unistdio/u16-u16-vsprintf.c: New file.
50292         * lib/unistdio/u32-asnprintf.c: New file.
50293         * lib/unistdio/u32-asprintf.c: New file.
50294         * lib/unistdio/u32-printf-parse.c: New file.
50295         * lib/unistdio/u32-snprintf.c: New file.
50296         * lib/unistdio/u32-sprintf.c: New file.
50297         * lib/unistdio/u32-vasnprintf.c: New file.
50298         * lib/unistdio/u32-vasprintf.c: New file.
50299         * lib/unistdio/u32-vsnprintf.c: New file.
50300         * lib/unistdio/u32-vsprintf.c: New file.
50301         * lib/unistdio/u32-u32-asnprintf.c: New file.
50302         * lib/unistdio/u32-u32-asprintf.c: New file.
50303         * lib/unistdio/u32-u32-snprintf.c: New file.
50304         * lib/unistdio/u32-u32-sprintf.c: New file.
50305         * lib/unistdio/u32-u32-vasnprintf.c: New file.
50306         * lib/unistdio/u32-u32-vasprintf.c: New file.
50307         * lib/unistdio/u32-u32-vsnprintf.c: New file.
50308         * lib/unistdio/u32-u32-vsprintf.c: New file.
50309         * tests/unistdio/test-ulc-asnprintf1.c: New file.
50310         * tests/unistdio/test-ulc-asnprintf1.h: New file.
50311         * tests/unistdio/test-ulc-printf1.h: New file.
50312         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
50313         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
50314         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
50315         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
50316         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
50317         * tests/unistdio/test-ulc-vasprintf1.c: New file.
50318         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
50319         * tests/unistdio/test-ulc-vsprintf1.c: New file.
50320         * tests/unistdio/test-u8-asnprintf1.c: New file.
50321         * tests/unistdio/test-u8-asnprintf1.h: New file.
50322         * tests/unistdio/test-u8-printf1.h: New file.
50323         * tests/unistdio/test-u8-vasnprintf1.c: New file.
50324         * tests/unistdio/test-u8-vasnprintf2.c: New file.
50325         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
50326         * tests/unistdio/test-u8-vasnprintf3.c: New file.
50327         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
50328         * tests/unistdio/test-u8-vasprintf1.c: New file.
50329         * tests/unistdio/test-u8-vsnprintf1.c: New file.
50330         * tests/unistdio/test-u8-vsprintf1.c: New file.
50331         * tests/unistdio/test-u16-asnprintf1.c: New file.
50332         * tests/unistdio/test-u16-asnprintf1.h: New file.
50333         * tests/unistdio/test-u16-printf1.h: New file.
50334         * tests/unistdio/test-u16-vasnprintf1.c: New file.
50335         * tests/unistdio/test-u16-vasnprintf2.c: New file.
50336         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
50337         * tests/unistdio/test-u16-vasnprintf3.c: New file.
50338         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
50339         * tests/unistdio/test-u16-vasprintf1.c: New file.
50340         * tests/unistdio/test-u16-vsnprintf1.c: New file.
50341         * tests/unistdio/test-u16-vsprintf1.c: New file.
50342         * tests/unistdio/test-u32-asnprintf1.c: New file.
50343         * tests/unistdio/test-u32-asnprintf1.h: New file.
50344         * tests/unistdio/test-u32-printf1.h: New file.
50345         * tests/unistdio/test-u32-vasnprintf1.c: New file.
50346         * tests/unistdio/test-u32-vasnprintf2.c: New file.
50347         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
50348         * tests/unistdio/test-u32-vasnprintf3.c: New file.
50349         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
50350         * tests/unistdio/test-u32-vasprintf1.c: New file.
50351         * tests/unistdio/test-u32-vsnprintf1.c: New file.
50352         * tests/unistdio/test-u32-vsprintf1.c: New file.
50353         * modules/unistdio/base: New file.
50354         * modules/unistdio/u-printf-args: New file.
50355         * modules/unistdio/ulc-asnprintf: New file.
50356         * modules/unistdio/ulc-asprintf: New file.
50357         * modules/unistdio/ulc-fprintf: New file.
50358         * modules/unistdio/ulc-printf-parse: New file.
50359         * modules/unistdio/ulc-snprintf: New file.
50360         * modules/unistdio/ulc-sprintf: New file.
50361         * modules/unistdio/ulc-vasnprintf: New file.
50362         * modules/unistdio/ulc-vasprintf: New file.
50363         * modules/unistdio/ulc-vfprintf: New file.
50364         * modules/unistdio/ulc-vsnprintf: New file.
50365         * modules/unistdio/ulc-vsprintf: New file.
50366         * modules/unistdio/u8-asnprintf: New file.
50367         * modules/unistdio/u8-asprintf: New file.
50368         * modules/unistdio/u8-printf-parse: New file.
50369         * modules/unistdio/u8-snprintf: New file.
50370         * modules/unistdio/u8-sprintf: New file.
50371         * modules/unistdio/u8-vasnprintf: New file.
50372         * modules/unistdio/u8-vasprintf: New file.
50373         * modules/unistdio/u8-vsnprintf: New file.
50374         * modules/unistdio/u8-vsprintf: New file.
50375         * modules/unistdio/u8-u8-asnprintf: New file.
50376         * modules/unistdio/u8-u8-asprintf: New file.
50377         * modules/unistdio/u8-u8-snprintf: New file.
50378         * modules/unistdio/u8-u8-sprintf: New file.
50379         * modules/unistdio/u8-u8-vasnprintf: New file.
50380         * modules/unistdio/u8-u8-vasprintf: New file.
50381         * modules/unistdio/u8-u8-vsnprintf: New file.
50382         * modules/unistdio/u8-u8-vsprintf: New file.
50383         * modules/unistdio/u16-asnprintf: New file.
50384         * modules/unistdio/u16-asprintf: New file.
50385         * modules/unistdio/u16-printf-parse: New file.
50386         * modules/unistdio/u16-snprintf: New file.
50387         * modules/unistdio/u16-sprintf: New file.
50388         * modules/unistdio/u16-vasnprintf: New file.
50389         * modules/unistdio/u16-vasprintf: New file.
50390         * modules/unistdio/u16-vsnprintf: New file.
50391         * modules/unistdio/u16-vsprintf: New file.
50392         * modules/unistdio/u16-u16-asnprintf: New file.
50393         * modules/unistdio/u16-u16-asprintf: New file.
50394         * modules/unistdio/u16-u16-snprintf: New file.
50395         * modules/unistdio/u16-u16-sprintf: New file.
50396         * modules/unistdio/u16-u16-vasnprintf: New file.
50397         * modules/unistdio/u16-u16-vasprintf: New file.
50398         * modules/unistdio/u16-u16-vsnprintf: New file.
50399         * modules/unistdio/u16-u16-vsprintf: New file.
50400         * modules/unistdio/u32-asnprintf: New file.
50401         * modules/unistdio/u32-asprintf: New file.
50402         * modules/unistdio/u32-printf-parse: New file.
50403         * modules/unistdio/u32-snprintf: New file.
50404         * modules/unistdio/u32-sprintf: New file.
50405         * modules/unistdio/u32-vasnprintf: New file.
50406         * modules/unistdio/u32-vasprintf: New file.
50407         * modules/unistdio/u32-vsnprintf: New file.
50408         * modules/unistdio/u32-vsprintf: New file.
50409         * modules/unistdio/u32-u32-asnprintf: New file.
50410         * modules/unistdio/u32-u32-asprintf: New file.
50411         * modules/unistdio/u32-u32-snprintf: New file.
50412         * modules/unistdio/u32-u32-sprintf: New file.
50413         * modules/unistdio/u32-u32-vasnprintf: New file.
50414         * modules/unistdio/u32-u32-vasprintf: New file.
50415         * modules/unistdio/u32-u32-vsnprintf: New file.
50416         * modules/unistdio/u32-u32-vsprintf: New file.
50417         * modules/unistdio/ulc-asnprintf-tests: New file.
50418         * modules/unistdio/ulc-vasnprintf-tests: New file.
50419         * modules/unistdio/ulc-vasprintf-tests: New file.
50420         * modules/unistdio/ulc-vsnprintf-tests: New file.
50421         * modules/unistdio/ulc-vsprintf-tests: New file.
50422         * modules/unistdio/u8-asnprintf-tests: New file.
50423         * modules/unistdio/u8-vasnprintf-tests: New file.
50424         * modules/unistdio/u8-vasprintf-tests: New file.
50425         * modules/unistdio/u8-vsnprintf-tests: New file.
50426         * modules/unistdio/u8-vsprintf-tests: New file.
50427         * modules/unistdio/u16-asnprintf-tests: New file.
50428         * modules/unistdio/u16-vasnprintf-tests: New file.
50429         * modules/unistdio/u16-vasprintf-tests: New file.
50430         * modules/unistdio/u16-vsnprintf-tests: New file.
50431         * modules/unistdio/u16-vsprintf-tests: New file.
50432         * modules/unistdio/u32-asnprintf-tests: New file.
50433         * modules/unistdio/u32-vasnprintf-tests: New file.
50434         * modules/unistdio/u32-vasprintf-tests: New file.
50435         * modules/unistdio/u32-vsnprintf-tests: New file.
50436         * modules/unistdio/u32-vsprintf-tests: New file.
50437         * MODULES.html.sh (Unicode string functions): Add the new modules.
50438
50439 2007-07-01  Bruno Haible  <bruno@clisp.org>
50440
50441         * lib/sprintf.c (sprintf): Limit the available length estimation,
50442         to avoid address wraparound.
50443         * lib/vsprintf.c (vsprintf): Likewise.
50444         * modules/sprintf-posix (Dependencies): Add stdint.
50445         * modules/vsprintf-posix (Dependencies): Likewise.
50446
50447 2007-07-01  Bruno Haible  <bruno@clisp.org>
50448
50449         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
50450         Windows PATH as well. Conservative double-quoting. Comments.
50451
50452 2007-07-01  Bruno Haible  <bruno@clisp.org>
50453             Eric Blake  <ebb9@byu.net>
50454             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50455
50456         * gnulib-tool (self_abspathname): Fix algorithm to cope with
50457         empty components in $PATH, denoting '.'.
50458
50459 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50460
50461         * gnulib-tool: Fix indentation.
50462         (func_create_megatestdir): Likewise.
50463         Report by Bruno Haible.
50464
50465 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50466
50467         Sync from Automake.
50468         * build-aux/gnupload: Fix shell portability issues with for loops.
50469         Report by Karl Berry.
50470
50471 2007-06-29  Simon Josefsson  <simon@josefsson.org>
50472
50473         * build-aux/maint.mk (POURL): Use translationproject.org.
50474
50475 2007-06-27  Simon Josefsson  <simon@josefsson.org>
50476             Bruno Haible  <bruno@clisp.org>
50477
50478         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
50479         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
50480         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
50481         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
50482         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
50483
50484 2007-06-27  Bruno Haible  <bruno@clisp.org>
50485
50486         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
50487         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
50488
50489 2007-06-26  Karl Berry  <karl@gnu.org>
50490
50491         * MODULES.html.sh: remove xreadlink-with-size.
50492
50493 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50494
50495         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
50496         method that I hope also handles the double-include problem noted
50497         by Bruno Haible in
50498         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
50499
50500 2007-06-23  Bruno Haible  <bruno@clisp.org>
50501
50502         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50503         Don't let the 'mostlyclean' target fail if the last subdirectory could
50504         not be removed.
50505         Reported by Karl Berry.
50506
50507 2007-06-23  Bruno Haible  <bruno@clisp.org>
50508
50509         * gnulib-tool (echo): Add a speedier workaround for ksh.
50510         * tests/test-echo.sh: Likewise.
50511
50512 2007-06-23  Bruno Haible  <bruno@clisp.org>
50513
50514         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
50515         * tests/test-echo.sh: Likewise.
50516
50517 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50518
50519         * gnulib-tool (IFS): Initialize early, so we don't set it to
50520         empty later.
50521         (self_abspathname): Rewrite algorithm to set it, reindent.
50522         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
50523         (func_create_megatestdir): Merge some sed scripts.
50524
50525 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50526
50527         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
50528         exposed by Sun Studio 11 cc on Solaris 8.
50529
50530 2007-06-22  Bruno Haible  <bruno@clisp.org>
50531
50532         * gnulib-tool (echo): Ensure the echo primitive does not interpret
50533         backslashes.
50534         * tests/test-echo.sh: New file.
50535
50536 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50537
50538         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
50539         simplify `sed_replace_build_aux' scripts, they are portable but
50540         echoing them with `echo' is not.
50541         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
50542
50543 2007-06-21  Karl Berry  <karl@gnu.org>
50544
50545         * config/srclist.txt: guess we can't handle the licenses via
50546         srclist at the moment.
50547
50548 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50549
50550         * MODULES.html.sh: Add include_next.
50551         * modules/include_next: New file.
50552
50553 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50554
50555         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
50556         INCLUDE_NEXT.
50557         (gl_CHECK_NEXT_HEADERS): New macro.
50558         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
50559         the obsolescent gl_ABSOLUTE_HEADER.
50560         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
50561         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
50562         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
50563         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50564         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50565         * m4/math_h.m4 (gl_MATH_H): Likewise.
50566         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50567         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50568         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50569         * m4/stdint.m4 (gl_STDINT_H): Likewise.
50570         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
50571         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
50572         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
50573         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50574         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50575         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
50576         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
50577         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
50578         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
50579         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50580         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
50581         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50582         * m4/inttypes.m4 (gl_INTTYPES_H): Define
50583         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
50584         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
50585         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
50586         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
50587         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
50588         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
50589         * lib/float_.h: Likewise.
50590         * lib/inttypes_.h: Likewise.
50591         * lib/math_.h: Likewise.
50592         * lib/search_.h: Likewise.
50593         * lib/signal_.h: Likewise.
50594         * lib/stdint_.h: Likewise.
50595         * lib/stdio_.h: Likewise.
50596         * lib/stdlib_.h: Likewise.
50597         * lib/string_.h: Likewise.
50598         * lib/sys_stat_.h: Likewise.
50599         * lib/sys_time_.h: Likewise.
50600         * lib/time_.h: Likewise.
50601         * lib/unistd_.h: Likewise.
50602         * lib/wchar_.h: Likewise.
50603         * lib/wctype_.h: Likewise.
50604         * lib/dirent_.h: Likewise.
50605         * lib/iconv_.h: Likewise.
50606         * lib/locale_.h: Likewise.
50607         * lib/netinet_in_.h: Likewise.
50608         * lib/sys_select_.h: Likewise.
50609         * lib/sys_socket_.h: Likewise.
50610         * lib/sysexits_.h: Likewise.
50611         * modules/fcntl (Depends-on): Depend on include_next, not
50612         absolute_header.
50613         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
50614         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
50615         * modules/fchdir: Likewise.
50616         * modules/float: Likewise.
50617         * modules/iconv_open: Likewise.
50618         * modules/inttypes: Likewise.
50619         * modules/locale: Likewise.
50620         * modules/math: Likewise.
50621         * modules/netinet_in: Likewise.
50622         * modules/search: Likewise.
50623         * modules/signal: Likewise.
50624         * modules/stdint: Likewise.
50625         * modules/stdio: Likewise.
50626         * modules/stdlib: Likewise.
50627         * modules/string: Likewise.
50628         * modules/sys_select: Likewise.
50629         * modules/sys_socket: Likewise.
50630         * modules/sys_stat: Likewise.
50631         * modules/sys_time: Likewise.
50632         * modules/sysexits: Likewise.
50633         * modules/time: Likewise.
50634         * modules/unistd: Likewise.
50635         * modules/wchar: Likewise.
50636         * modules/wctype: Likewise.
50637         * modules/sys_stat: Change maintainer to "all".
50638         * modules/unistd: Likewise.
50639
50640 2007-06-20  Karl Berry  <karl@gnu.org>
50641
50642         * config/srclist.txt: track www changes in license files.
50643
50644 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
50645
50646         * build-aux/bootstrap: Remove stray dot.
50647         Make sure build_aux settings are honored when linking
50648         gnulib_extra_files.
50649
50650 2007-06-19  Eric Blake  <ebb9@byu.net>
50651
50652         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50653         Allow compilation on cygwin.
50654
50655 2007-06-19  Jim Meyering  <jim@meyering.net>
50656
50657         xreadlink-with-size: Remove module.  No longer used.
50658         Ex-callers now use xreadlink or mreadlink-with-size.
50659         * modules/xreadlink-with-size: Remove module.
50660         * lib/xreadlink-with-size.c: Remove file.
50661         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
50662         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
50663         just before the function definition *is* accurate.
50664
50665         Eliminate one way canonicalize_filename_mode could exit.
50666         * lib/canonicalize.c (canonicalize_filename_mode):
50667         Use mreadlink_with_size, not xreadlink_with_size.
50668
50669 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
50670
50671         Detect porting problems to FreeBSD/arm, which has time_t wider than
50672         long int.  Original problem reported for GNU diff by Xin Li in
50673         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
50674         * modules/getdate (Depends-on): Add intprops, verify.
50675         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
50676         is an integer type no wider than long int.
50677
50678 2007-06-18  Jim Meyering  <jim@meyering.net>
50679
50680         New module: mreadlink-with-size.
50681         * MODULES.html.sh: Add mreadlink-with-size.
50682         * modules/mreadlink-with-size: New module
50683         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
50684         not xreadlink-with-size.
50685         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
50686
50687 2007-06-16  Bruno Haible  <bruno@clisp.org>
50688
50689         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
50690         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
50691         Reported by Gary V. Vaughan <gary@gnu.org>.
50692
50693 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50694
50695         Revamp lchown so that it lives in unistd.h where it belongs.
50696         * lib/lchown.h: Remove.
50697         * lib/dirchownmod.c: Don't include lib/lchown.h.
50698         * lib/fchownat.c: Likewise.
50699         * lib/openat.c: Likewise.
50700         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
50701         does not follow symlinks.
50702         (EOPNOTSUPP): Define if not defined.
50703         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
50704         is defined to 0.
50705         (lchown): New decl.
50706         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
50707         Do not check for lchown decl.
50708         Set REPLACE_LCHOWN.
50709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
50710         REPLACE_LCHOWN.
50711         * modules/chown: Make it clear it follows symlinks.
50712         * modules/lchown: Make it clear it doesn't follow symlinks.
50713         (Files): Remove lib/lchown.h
50714         (Depends-on): Add unistd.
50715         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
50716         (Include): Include <unistd.h>, not "lchown.h".
50717         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
50718         REPLACE_LCHOWN.
50719
50720 2007-06-15  Jim Meyering  <jim@meyering.net>
50721
50722         Change license (GPL to LGPL) of fsusage and dependents.
50723         * modules/fsusage (License): Change to LGPL.
50724         * modules/full-read (License): Likewise.
50725         * modules/full-write (License): Likewise.
50726         * modules/safe-read (License): Likewise.
50727         * modules/safe-write (License): Likewise.
50728
50729 2007-06-14  Ben Pfaff  <blp@gnu.org>
50730
50731         Missing part of allocsa -> malloca transition.
50732         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
50733         gl_MALLOCA.
50734
50735 2007-06-12  Bruno Haible  <bruno@clisp.org>
50736
50737         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
50738         to ia64, x86_64, i386.
50739         Reported by Eric Blake.
50740
50741 2007-06-12  Bruno Haible  <bruno@clisp.org>
50742
50743         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
50744         cross-compiling to x86_64.
50745
50746 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
50747
50748         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
50749         glitch reported by Ralf Wildenhues in
50750         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
50751
50752         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
50753         Vin Shelton.
50754
50755 2007-06-11  Bruno Haible  <bruno@clisp.org>
50756
50757         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
50758         replacement string.
50759         Reported by Eric Blake.
50760
50761 2007-06-10  Bruno Haible  <bruno@clisp.org>
50762
50763         Prepare vasnprintf code for use with Unicode strings.
50764         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
50765         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
50766         TYPE_U32_STRING.
50767         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
50768         a_u32_string variants.
50769         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50770         * lib/printf-args.c: Don't include config.h and the specification
50771         header if PRINTF_FETCHARGS is already defined.
50772         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50773         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
50774         TYPE_U16_STRING, TYPE_U32_STRING.
50775         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
50776         u16_directive, u16_directives, u32_directive, u32_directives): New
50777         types.
50778         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
50779         New declarations.
50780         * lib/printf-parse.c: Don't include config.h and the specification
50781         header if PRINTF_PARSE is already defined. Eliminate the set of
50782         parameters for WIDE_CHAR_VERSION; the user of this file must provide
50783         them now. Include c-ctype.h.
50784         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
50785         directive and CHAR_T_ONLY_ASCII.
50786         * lib/vasnprintf.c: Don't include config.h and the specification header
50787         if VASNPRINTF is already defined.
50788         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
50789         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
50790         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
50791         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
50792         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
50793         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
50794         code accordingly.
50795         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
50796         pad_ourselves also in this case, with the 'c' and 's' directives, and
50797         with a different notion of "width".
50798         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
50799
50800 2007-06-10  Bruno Haible  <bruno@clisp.org>
50801
50802         * modules/unistr/u32-mbsnlen: New file.
50803         * lib/unistr/u32-mbsnlen.c: New file.
50804
50805         * modules/unistr/u16-mbsnlen: New file.
50806         * lib/unistr/u16-mbsnlen.c: New file.
50807
50808         * modules/unistr/u8-mbsnlen: New file.
50809         * lib/unistr/u8-mbsnlen.c: New file.
50810
50811         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
50812         declarations.
50813
50814 2007-06-10  Bruno Haible  <bruno@clisp.org>
50815
50816         * lib/string_.h (mbsnlen): New declaration.
50817         * lib/mbsnlen.c: New file.
50818         * m4/mbsnlen.m4: New file.
50819         * modules/mbsnlen: New file.
50820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
50821         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
50822         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
50823
50824 2007-06-10  Bruno Haible  <bruno@clisp.org>
50825
50826         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
50827
50828 2007-06-10  Bruno Haible  <bruno@clisp.org>
50829
50830         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
50831         * lib/mbuiter.h: Likewise.
50832
50833 2007-06-10  Bruno Haible  <bruno@clisp.org>
50834
50835         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
50836         declaration.
50837
50838 2007-06-10  Karl Berry  <karl@gnu.org>
50839
50840         * config/srclist.txt: remove gettext entries, Bruno prefers
50841         to update individually.
50842
50843 2007-06-10  Bruno Haible  <bruno@clisp.org>
50844
50845         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
50846         'maxlen'. Ensure only length + width bytes are allocated, not
50847         length + 1 + width.
50848
50849 2007-06-09  Bruno Haible  <bruno@clisp.org>
50850
50851         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
50852         (CHAR_T): Remove macro.
50853         (VASNPRINTF): Update.
50854
50855 2007-06-09  Bruno Haible  <bruno@clisp.org>
50856
50857         * MODULES.html.sh (Unicode string functions): Add the new modules.
50858
50859         * modules/uniconv/u32-conv-to-enc: New file.
50860         * lib/uniconv/u32-conv-to-enc.c: New file.
50861         * modules/uniconv/u32-conv-to-enc-tests: New file.
50862         * tests/uniconv/test-u32-conv-to-enc.c: New file.
50863
50864         * modules/uniconv/u16-conv-to-enc: New file.
50865         * lib/uniconv/u16-conv-to-enc.c: New file.
50866         * lib/uniconv/u-conv-to-enc.h: New file.
50867         * modules/uniconv/u16-conv-to-enc-tests: New file.
50868         * tests/uniconv/test-u16-conv-to-enc.c: New file.
50869
50870         * modules/uniconv/u8-conv-to-enc: New file.
50871         * lib/uniconv/u8-conv-to-enc.c: New file.
50872         * modules/uniconv/u8-conv-to-enc-tests: New file.
50873         * tests/uniconv/test-u8-conv-to-enc.c: New file.
50874
50875         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50876         u32_conv_to_encoding): New declarations.
50877
50878 2007-06-09  Bruno Haible  <bruno@clisp.org>
50879
50880         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
50881
50882 2007-06-09  Bruno Haible  <bruno@clisp.org>
50883
50884         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
50885         * modules/malloca: Renamed from modules/allocsa, updated.
50886         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
50887         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
50888         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
50889         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
50890         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
50891         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
50892         * modules/xmalloca: Renamed from modules/xallocsa, updated.
50893         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
50894         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
50895         * modules/c-strcasestr (Depends-on): Update.
50896         * lib/c-strcasestr.c: Update.
50897         * modules/c-strstr (Depends-on): Update.
50898         * lib/c-strstr.c: Update.
50899         * modules/canonicalize-lgpl (Depends-on): Update.
50900         * lib/canonicalize-lgpl.c: Update.
50901         * modules/clean-temp (Depends-on): Update.
50902         * lib/clean-temp.c: Update.
50903         * modules/csharpcomp (Depends-on): Update.
50904         * lib/csharpcomp.c: Update.
50905         * modules/csharpexec (Depends-on): Update.
50906         * lib/csharpexec.c: Update.
50907         * modules/javacomp (Depends-on): Update.
50908         * lib/javacomp.c: Update.
50909         * modules/javaexec (Depends-on): Update.
50910         * lib/javaexec.c: Update.
50911         * modules/mbscasestr (Depends-on): Update.
50912         * lib/mbscasestr.c: Update.
50913         * modules/mbsstr (Depends-on): Update.
50914         * lib/mbsstr.c: Update.
50915         * modules/setenv (Depends-on): Update.
50916         * lib/setenv.c: Update.
50917         * modules/strcasestr (Depends-on): Update.
50918         * lib/strcasestr.c: Update.
50919         * modules/striconveha (Depends-on): Update.
50920         * lib/striconveha.c: Update.
50921         * modules/relocatable-prog-wrapper (Files): Update.
50922         * lib/relocwrapper.c: Update.
50923         * build-aux/install-reloc: Update.
50924         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
50925
50926 2007-06-08  Bruno Haible  <bruno@clisp.org>
50927
50928         Port to uClibc.
50929         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
50930         * lib/fpurge.c (fpurge): Likewise.
50931         * lib/freading.c (freading): Likewise.
50932         * lib/fseeko.c (rpl_fseeko): Likewise.
50933         * lib/fseterr.c (fseterr): Likewise.
50934         * lib/fwriting.c (fwriting): Likewise.
50935         * tests/test-fflush.c (main): Avoid a failure on uClibc.
50936
50937 2007-06-08  Bruno Haible  <bruno@clisp.org>
50938
50939         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
50940         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
50941         * modules/gettext (Files): Add m4/intlmacosx.m4.
50942
50943 2007-06-07  Bruno Haible  <bruno@clisp.org>
50944
50945         * modules/localename-tests: New file.
50946         * tests/test-localename.c: New file.
50947
50948         New module 'localename'.
50949         * lib/localename.h: New file.
50950         * lib/localename.c: New file, from GNU gettext.
50951         * m4/localename.m4: New file.
50952         * modules/localename: New file.
50953
50954 2007-06-07  Bruno Haible  <bruno@clisp.org>
50955
50956         Work around the lack of <wchar.h> on some builds of uClibc.
50957         * doc/headers/wchar.texi: Update.
50958         * lib/wchar_.h: Include <wchar.h> only if it exists.
50959         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
50960         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
50961         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
50962         doesn't exist.
50963         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
50964         * modules/mbfile (Depends-on): Add wchar.
50965         * modules/mbiter (Depends-on): Likewise.
50966         * modules/mbuiter (Depends-on): Likewise.
50967         Reported by Simon Josefsson.
50968
50969 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
50970
50971         Work around problem reported by Steven M. Schweda in
50972         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
50973         Tru64 5.1B with the Compaq compiler environment installed declares
50974         an 'isblank' function but does not define it in the C library.
50975         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
50976         * lib/regex_internal.h (isblank): Likewise.
50977         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
50978         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50979
50980 2007-06-05  Bruno Haible  <bruno@clisp.org>
50981
50982         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
50983         ia64.
50984         * modules/printf-safe: New file.
50985         * modules/fprintf-posix (Depends-on): Add printf-safe.
50986         * modules/printf-posix (Depends-on): Likewise.
50987         * modules/snprintf-posix (Depends-on): Likewise.
50988         * modules/sprintf-posix (Depends-on): Likewise.
50989         * modules/vasnprintf-posix (Depends-on): Likewise.
50990         * modules/vasprintf-posix (Depends-on): Likewise.
50991         * modules/vfprintf-posix (Depends-on): Likewise.
50992         * modules/vprintf-posix (Depends-on): Likewise.
50993         * modules/vsnprintf-posix (Depends-on): Likewise.
50994         * modules/vsprintf-posix (Depends-on): Likewise.
50995         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
50996         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
50997         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
50998         "no" on i386, x86_64, ia64.
50999         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
51000         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51001         on i386, x86_64, ia64.
51002         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
51003         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51004         on i386, x86_64, ia64.
51005         * tests/test-vasnprintf-posix.c: Include float.h.
51006         (LDBL80_WORDS): New macro.
51007         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51008         on i386, x86_64, ia64.
51009         * tests/test-vasprintf-posix.c: Include float.h.
51010         (LDBL80_WORDS): New macro.
51011         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51012         on i386, x86_64, ia64.
51013         * tests/test-snprintf-posix.c: Include float.h.
51014         * tests/test-sprintf-posix.c: Likewise.
51015         * tests/test-vsnprintf-posix.c: Likewise.
51016         * tests/test-vsprintf-posix.c: Likewise.
51017
51018 2007-06-05  Bruno Haible  <bruno@clisp.org>
51019
51020         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
51021         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
51022         non-IEEE numbers on i386, x86_64, ia64.
51023         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
51024         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
51025         * tests/test-isnanl.h: Include float.h.
51026         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
51027
51028 2007-06-05  Bruno Haible  <bruno@clisp.org>
51029
51030         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
51031         also the %a / %A. Handle the %a / %A code before this extra handling.
51032
51033 2007-06-05  Bruno Haible  <bruno@clisp.org>
51034
51035         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
51036         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
51037
51038 2007-06-05  Bruno Haible  <bruno@clisp.org>
51039
51040         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
51041         typo in variable name.
51042
51043 2007-06-05  Eric Blake  <ebb9@byu.net>
51044
51045         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
51046         Reported by Simon Josefsson.
51047
51048 2007-06-04  Bruno Haible  <bruno@clisp.org>
51049
51050         Avoid test failures on some PowerPC platforms.
51051         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
51052         Define differently for PowerPC.
51053         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
51054         Reported by Gary V. Vaughan <gary@gnu.org>.
51055
51056 2007-06-02  Bruno Haible  <bruno@clisp.org>
51057
51058         Fix test-stdint failure on FreeBSD/ia64.
51059         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
51060         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
51061         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
51062         * doc/headers/stdint.texi: Update.
51063
51064 2007-06-01  Bruno Haible  <bruno@clisp.org>
51065
51066         * tests/test-binary-io.c (main): Pass a third argument to open().
51067         Reported by Gary V. Vaughan <gary@gnu.org>.
51068
51069 2007-06-01  Bruno Haible  <bruno@clisp.org>
51070
51071         * doc/functions/frexpl.texi: Update for mingw.
51072
51073 2007-06-01  Bruno Haible  <bruno@clisp.org>
51074
51075         * tests/test-lseek.c (main): Disable test of errno for invalid third
51076         argument.
51077         * doc/functions/lseek.texi: Update.
51078         Reported by Gary V. Vaughan <gary@gnu.org>.
51079
51080 2007-05-28  Bruno Haible  <bruno@clisp.org>
51081
51082         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
51083
51084 2007-05-31  Eric Blake  <ebb9@byu.net>
51085
51086         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
51087         cross compiling.
51088
51089 2007-05-30  Eric Blake  <ebb9@byu.net>
51090         and Bruno Haible  <bruno@clisp.org>
51091
51092         Work around mingw test failures exposed by m4-1.4.9b.
51093         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
51094         * tests/test-unistd.c: Disable uid_t and git_t tests for the
51095         moment.
51096
51097 2007-05-30  Bruno Haible  <bruno@clisp.org>
51098
51099         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
51100         assuming that they are closed. Needed on HP-UX 11.
51101
51102 2007-05-29  Bruno Haible  <bruno@clisp.org>
51103
51104         Fix a problem with #include_next.
51105         * lib/dirent_.h: Split the double-inclusion guard.
51106         * lib/fcntl_.h: Likewise.
51107         * lib/float_.h: Likewise.
51108         * lib/iconv_.h: Likewise.
51109         * lib/inttypes_.h: Likewise.
51110         * lib/locale_.h: Likewise.
51111         * lib/math_.h: Likewise.
51112         * lib/netinet_in_.h: Likewise.
51113         * lib/search_.h: Likewise.
51114         * lib/signal_.h: Likewise.
51115         * lib/stdint_.h: Likewise.
51116         * lib/stdio_.h: Likewise.
51117         * lib/stdlib_.h: Likewise.
51118         * lib/string_.h: Likewise.
51119         * lib/sys_select_.h: Likewise.
51120         * lib/sys_socket_.h: Likewise.
51121         * lib/sys_stat_.h: Likewise.
51122         * lib/sys_time_.h: Likewise.
51123         * lib/sysexits_.h: Likewise.
51124         * lib/time_.h: Likewise.
51125         * lib/unistd_.h: Likewise.
51126         * lib/wchar_.h: Likewise.
51127         * lib/wctype_.h: Likewise.
51128
51129 2007-05-29  Bruno Haible  <bruno@clisp.org>
51130
51131         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
51132         for the moment.
51133
51134 2007-05-29  Bruno Haible  <bruno@clisp.org>
51135
51136         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
51137         invocation.
51138         Reported by Eric Blake.
51139
51140 2007-05-29  Bruno Haible  <bruno@clisp.org>
51141
51142         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
51143         compiling case.
51144
51145 2007-05-29  Eric Blake  <ebb9@byu.net>
51146             Bruno Haible  <bruno@clisp.org>
51147
51148         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
51149         cross compiles.
51150
51151 2007-05-28  Eric Blake  <ebb9@byu.net>
51152
51153         * modules/closein-tests (test_closein_LDADD): Support test on
51154         cygwin with libtool.
51155
51156 2007-05-28  Bruno Haible  <bruno@clisp.org>
51157
51158         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
51159         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51160         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51161         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51162         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51163         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51164         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51165         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51166         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51167
51168 2007-05-28  Eric Blake  <ebb9@byu.net>
51169
51170         Unconditionally include <config.h> in unit tests.
51171         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
51172         * tests/test-allocsa.c, tests/test-arcfour.c,
51173         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
51174         tests/test-array_list.c, tests/test-array_oset.c,
51175         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
51176         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
51177         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
51178         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
51179         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
51180         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
51181         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
51182         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
51183         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
51184         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
51185         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
51186         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
51187         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
51188         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
51189         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
51190         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
51191         test-md5.c, test-memmem.c, test-printf-posix.c,
51192         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
51193         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
51194         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
51195         test-strcasestr.c, test-striconv.c, test-striconveh.c,
51196         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
51197         test-vasnprintf-posix2.c, test-vasnprintf.c,
51198         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
51199         test-vfprintf-posix.c, test-vprintf-posix.c,
51200         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
51201         test-xvasprintf.c: Likewise.
51202
51203 2007-05-28  Bruno Haible  <bruno@clisp.org>
51204
51205         * gnulib-tool (func_import): Remember the --with-tests command-line
51206         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
51207         Reported by Eric Blake.
51208
51209 2007-05-28  Bruno Haible  <bruno@clisp.org>
51210
51211         * modules/ftell-tests: New file.
51212         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
51213         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
51214
51215         * lib/ftell.c: New file.
51216         * modules/ftell: New file.
51217         * m4/ftell.m4: New file.
51218         * doc/functions/ftell.texi: Update.
51219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
51220         REPLACE_FTELL.
51221         * lib/stdio_.h (rpl_ftell): New declaration.
51222         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
51223         REPLACE_FTELL.
51224
51225 2007-05-28  Eric Blake  <ebb9@byu.net>
51226
51227         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
51228
51229 2007-05-28  Bruno Haible  <bruno@clisp.org>
51230
51231         * modules/fseek-tests: New file.
51232         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
51233         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
51234
51235         * lib/fseek.c: New file.
51236         * modules/fseek: New file.
51237         * m4/fseek.m4: New file.
51238         * doc/functions/fseek.texi: Update.
51239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
51240         REPLACE_FSEEK.
51241         * lib/stdio_.h (rpl_fseek): New declaration.
51242         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
51243         REPLACE_FSEEK.
51244
51245 2007-05-28  Bruno Haible  <bruno@clisp.org>
51246
51247         * lib/stdio_.h (fflush): More comments.
51248
51249 2007-05-28  Bruno Haible  <bruno@clisp.org>
51250
51251         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
51252         runtime test.
51253
51254 2007-05-28  Eric Blake  <ebb9@byu.net>
51255
51256         Improve lseek module.
51257         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
51258         * lib/unistd_.h (lseek): Scale back link warning message.
51259         * tests/test-lseek.c: Beef up test.
51260         * tests/test-lseek.sh: Exercise more facets of lseek.
51261         Reported by Bruno Haible.
51262
51263 2007-05-28  Bruno Haible  <bruno@clisp.org>
51264
51265         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
51266         to define.
51267
51268 2007-05-27  Bruno Haible  <bruno@clisp.org>
51269
51270         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
51271
51272 2007-05-27  Bruno Haible  <bruno@clisp.org>
51273
51274         * modules/openmp: New file.
51275         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
51276         Noah Misch.
51277
51278 2007-05-26  Bruno Haible  <bruno@clisp.org>
51279
51280         * modules/chdir-long (Depends-on): Add fchdir.
51281         * modules/chdir-safer (Depends-on): Likewise.
51282         * modules/fts (Depends-on): Likewise.
51283         * modules/fts-lgpl (Depends-on): Likewise.
51284         * modules/openat (Depends-on): Likewise.
51285         * modules/savewd (Depends-on): Likewise.
51286
51287 2007-05-24  Eric Blake  <ebb9@byu.net>
51288
51289         Fix lseek on mingw.
51290         * modules/lseek: New module.
51291         * m4/lseek.m4: New file.
51292         * lib/lseek.c: New file.
51293         * modules/lseek-tests: New file.
51294         * tests/test-lseek.c: New file.
51295         * tests/test-lseek.sh: New file.
51296         * MODULES.html.sh: Document lseek module.
51297         * modules/fflush (Depends-on): Add lseek, fseeko.
51298         * modules/fseeko (Depends-on): Likewise.
51299         * modules/ftello (Depends-on): Likewise.
51300         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
51301         broken.
51302         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
51303         broken.
51304         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
51305         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
51306         * lib/ftello.c (rpl_ftello): Likewise.
51307         * tests/test-fseeko.c (main): Test this.
51308         * tests/test-fseeko.sh: Likewise.
51309         * tests/test-ftello.c (main): Likewise.
51310         * tests/test-ftello.sh: Likewise.
51311         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
51312         implies replacing fseek.
51313         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
51314         HAVE_FTELLO.
51315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
51316         * modules/unistd (Makefile.am): Likewise.
51317         * lib/unistd_.h (lseek): Declare a replacement.
51318         * doc/functions/lseek.texi (lseek): Document this fix.
51319         * doc/functions/fseek.texi (fseek): Likewise.
51320         * doc/functions/ftell.texi (ftell): Likewise.
51321
51322 2007-05-24  Bruno Haible  <bruno@clisp.org>
51323
51324         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
51325         in the printed representation of a NaN.
51326         * tests/test-vasprintf-posix.c (test_function): Likewise.
51327         * tests/test-snprintf-posix.h (test_function): Likewise.
51328         * tests/test-sprintf-posix.h (test_function): Likewise.
51329         Reported by Eric Blake.
51330
51331 2007-05-23  Eric Blake  <ebb9@byu.net>
51332
51333         Fix fseeko/ftello on cygwin 1.5.24.
51334         * doc/functions/fseeko.texi (fseeko): Document the fix.
51335         * doc/functions/ftello.texi (ftello): Document the fix.
51336         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
51337         * doc/functions/stdout.text (stdout): New file.
51338         * doc/functions/stderr.text (stderr): New file.
51339         * doc/gnulib.texi (Function Substitutes): Use new files.
51340         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
51341         prior to 1.7.0.
51342         * tests/test-ftello.c (main): Likewise for ftello.
51343         * tests/test-fseeko.sh: New file.
51344         * tests/test-ftello.sh: New file.
51345         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
51346         with seekable stdin.
51347         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
51348         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
51349         (gl_REPLACE_FSEEKO): New macro.
51350         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
51351         * modules/fseeko (Files): Distribute fseeko.c.
51352         * modules/ftello (Files): Distribute ftello.c.
51353         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
51354         mode.
51355         * lib/ftello.c (rpl_ftello): New file.
51356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
51357         fseeko, ftello.
51358         (gl_STDIN_LARGE_OFFSET): New macro.
51359         * modules/stdio (Makefile.am): Perform the replacement.
51360         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
51361
51362 2007-05-23  Bruno Haible  <bruno@clisp.org>
51363
51364         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
51365         GNULIB_POSIXCHECK is defined.
51366
51367 2007-05-21  Bruno Haible  <bruno@clisp.org>
51368
51369         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
51370         Check also the output for NaN arguments. When cross-compiling, guess
51371         no on IRIX.
51372         * lib/vasnprintf.c: Update comments.
51373         * tests/test-vasnprintf-posix.c (strisnan): New function.
51374         (test_function): Use it.
51375         * tests/test-vasprintf-posix.c (strisnan): New function.
51376         (test_function): Use it.
51377         * tests/test-snprintf-posix.h (strisnan): New function.
51378         (test_function): Use it.
51379         * tests/test-sprintf-posix.h (strisnan): New function.
51380         (test_function): Use it.
51381         Reported by Eric Blake.
51382
51383 2007-05-20  Bruno Haible  <bruno@clisp.org>
51384
51385         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
51386         numbers that fails on BeOS.
51387         * doc/functions/frexpl.texi: Update.
51388
51389 2007-05-20  Jim Meyering  <jim@meyering.net>
51390
51391         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
51392         forced upon us by glibc-2.6.
51393
51394 2007-05-20  Bruno Haible  <bruno@clisp.org>
51395
51396         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
51397         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
51398         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
51399         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
51400         NEED_PRINTF_INFINITE.
51401         (is_infinitel): New function.
51402         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
51403         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
51404         gl_PREREQ_VASNPRINTF_INFINITE.
51405         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
51406         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51407         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
51408         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
51409         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
51410         gl_PREREQ_VASNPRINTF_INFINITE.
51411         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51412         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51413         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51414         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51415         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51416         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51417         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51418         * doc/functions/fprintf.texi: Update.
51419         * doc/functions/printf.texi: Update.
51420         * doc/functions/snprintf.texi: Update.
51421         * doc/functions/sprintf.texi: Update.
51422         * doc/functions/vfprintf.texi: Update.
51423         * doc/functions/vprintf.texi: Update.
51424         * doc/functions/vsnprintf.texi: Update.
51425         * doc/functions/vsprintf.texi: Update.
51426
51427 2007-05-20  Bruno Haible  <bruno@clisp.org>
51428
51429         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
51430         was not found in libc.
51431         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
51432
51433 2007-05-20  Bruno Haible  <bruno@clisp.org>
51434
51435         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51436         printed as "-nan" instead of "nan".
51437         * tests/test-vasprintf-posix.c (test_function): Likewise.
51438         * tests/test-snprintf-posix.h (test_function): Likewise.
51439         * tests/test-sprintf-posix.h (test_function): Likewise.
51440         Needed for HP-UX 11.
51441
51442 2007-05-20  Jim Meyering  <jim@meyering.net>
51443
51444         Fix buggy test for the fchownat-deref bug.
51445         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
51446         symlink required for the run-test.  Without it, this test would
51447         always declare that fchownat doesn't work, and client code would
51448         unnecessarily use the replacement function with fixed libc.
51449         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
51450         Reported by Greg Schafer.
51451
51452 2007-05-19  Bruno Haible  <bruno@clisp.org>
51453
51454         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
51455         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
51456         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
51457         Needed for IRIX 6.5 and Solaris 2.5.1.
51458
51459 2007-05-19  Bruno Haible  <bruno@clisp.org>
51460
51461         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
51462         (test_function): Skip tests involving -0.0 on platforms where
51463         -0.0 = 0.0.
51464         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
51465         (test_function): Skip tests involving -0.0 on platforms where
51466         -0.0 = 0.0.
51467         * tests/test-snprintf-posix.h (have_minus_zero): New function.
51468         (test_function): Skip tests involving -0.0 on platforms where
51469         -0.0 = 0.0.
51470         * tests/test-sprintf-posix.h (have_minus_zero): New function.
51471         (test_function): Skip tests involving -0.0 on platforms where
51472         -0.0 = 0.0.
51473         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
51474         tests.
51475         * tests/test-printf-posix.h (test_function): Likewise.
51476         * tests/test-printf-posix.output: Remove all -0.0 related results.
51477         Needed for IRIX 6.5.
51478
51479 2007-05-19  Bruno Haible  <bruno@clisp.org>
51480
51481         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51482         printed as "nan0x7fffffff" instead of "nan".
51483         * tests/test-vasprintf-posix.c (test_function): Likewise.
51484         * tests/test-snprintf-posix.h (test_function): Likewise.
51485         * tests/test-sprintf-posix.h (test_function): Likewise.
51486         * tests/test-fprintf-posix.h (NaN): Remove macro.
51487         (test_function): Remove all NaN related tests.
51488         * tests/test-printf-posix.h (NaN): Remove macro.
51489         (test_function): Remove all NaN related tests.
51490         * tests/test-printf-posix.output: Remove all NaN related results.
51491         Needed for IRIX 6.5.
51492
51493 2007-05-19  Bruno Haible  <bruno@clisp.org>
51494
51495         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
51496         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
51497
51498 2007-05-19  Bruno Haible  <bruno@clisp.org>
51499
51500         * lib/float_.h: New file.
51501         * m4/float_h.m4: New file.
51502         * modules/float: New file.
51503         * modules/isnanl (Dependencies): Add float.
51504         * modules/isnanl-nolibm (Dependencies): Likewise.
51505         * modules/mathl (Dependencies): Likewise.
51506         * modules/printf-frexpl (Dependencies): Likewise.
51507         * modules/signbit (Dependencies): Likewise.
51508         * modules/vasnprintf (Dependencies): Likewise.
51509         * doc/headers/float.texi: Update.
51510
51511 2007-05-19  Jim Meyering  <jim@meyering.net>
51512
51513         * lib/utimens.c (gl_futimens): Rename from futimens,
51514         now that glibc-2.6 declares futimens.
51515         * lib/utimens.h: Likewise.
51516
51517 2007-05-19  Bruno Haible  <bruno@clisp.org>
51518
51519         Avoid test failures on mingw.
51520         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
51521         * tests/test-printf-posix.sh: Likewise.
51522         * tests/test-vfprintf-posix.sh: Likewise.
51523         * tests/test-vprintf-posix.sh: Likewise.
51524
51525 2007-05-19  Bruno Haible  <bruno@clisp.org>
51526
51527         Fix *printf result for NaN, Inf, -0.0 on mingw.
51528         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
51529         * lib/vasnprintf.c: Include math.h and isnan.h.
51530         (is_infinite_or_zero): New function.
51531         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
51532         values in the %f, %F, %e, %E, %g, %G directives.
51533         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
51534         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51535         gl_PRINTF_INFINITE and test its result. Invoke
51536         gl_PREREQ_VASNPRINTF_INFINITE.
51537         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51538         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51539         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51540         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51541         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51542         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51543         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51544         * doc/functions/fprintf.texi: Update.
51545         * doc/functions/printf.texi: Update.
51546         * doc/functions/snprintf.texi: Update.
51547         * doc/functions/sprintf.texi: Update.
51548         * doc/functions/vfprintf.texi: Update.
51549         * doc/functions/vprintf.texi: Update.
51550         * doc/functions/vsnprintf.texi: Update.
51551         * doc/functions/vsprintf.texi: Update.
51552
51553 2007-05-19  Bruno Haible  <bruno@clisp.org>
51554
51555         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
51556         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
51557         Instead of multiplying with 10^k, set extra_zeroes to k.
51558         (scale10_round_long_double): Remove function.
51559
51560 2007-05-18  Bruno Haible  <bruno@clisp.org>
51561
51562         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
51563         introduced on 2007-05-06.
51564
51565 2007-05-18  Bruno Haible  <bruno@clisp.org>
51566
51567         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
51568         %g directives.
51569         * tests/test-vasprintf-posix.c (test_function): Likewise.
51570         * tests/test-snprintf-posix.h (test_function): Likewise.
51571         * tests/test-sprintf-posix.h (test_function): Likewise.
51572
51573 2007-05-18  Bruno Haible  <bruno@clisp.org>
51574
51575         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
51576         (strmatch): New function.
51577         (test_function): Test the %f directive on numbers of various exponents.
51578         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
51579         (strmatch): New function.
51580         (test_function): Test the %f directive on numbers of various exponents.
51581         * tests/test-snprintf-posix.h (strmatch): New function.
51582         (test_function): Test the %f directive on numbers of various exponents.
51583         * tests/test-sprintf-posix.h (strmatch): New function.
51584         (test_function): Test the %f directive on numbers of various exponents.
51585         * tests/test-snprintf-posix.c (SIZEOF): New macro.
51586         * tests/test-sprintf-posix.c (SIZEOF): New macro.
51587         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
51588         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
51589
51590 2007-05-18  Bruno Haible  <bruno@clisp.org>
51591
51592         Add support for 'long double' number output.
51593         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
51594         * lib/vasnprintf.c: Include math.h and float+.h.
51595         (mp_limb_t): New type.
51596         (GMP_LIMB_BITS): New macro.
51597         (mp_twolimb_t): New type.
51598         (GMP_TWOLIMB_BITS): New macro.
51599         (mpn_t): New type.
51600         (multiply, divide, convert_to_decimal, decode_long_double,
51601         scale10_round_long_double, scale10_round_decimal_long_double,
51602         floorlog10l): New functions.
51603         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
51604         for the %f, %F, %e, %E, %g, %G directives.
51605         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
51606         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51607         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
51608         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
51609         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51610         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51611         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51612         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51613         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51614         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51615         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51616         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
51617         * modules/snprintf-posix (Depends-on): Likewise.
51618         * modules/sprintf-posix (Depends-on): Likewise.
51619         * modules/vasnprintf-posix (Depends-on): Likewise.
51620         * modules/vasprintf-posix (Depends-on): Likewise.
51621         * modules/vfprintf-posix (Depends-on): Likewise.
51622         * modules/vsnprintf-posix (Depends-on): Likewise.
51623         * modules/vsprintf-posix (Depends-on): Likewise.
51624         * modules/vasnprintf (Files): Add lib/float+.h.
51625         * doc/functions/fprintf.texi: Update.
51626         * doc/functions/printf.texi: Update.
51627         * doc/functions/snprintf.texi: Update.
51628         * doc/functions/sprintf.texi: Update.
51629         * doc/functions/vfprintf.texi: Update.
51630         * doc/functions/vprintf.texi: Update.
51631         * doc/functions/vsnprintf.texi: Update.
51632         * doc/functions/vsprintf.texi: Update.
51633
51634 2007-05-18  Bruno Haible  <bruno@clisp.org>
51635
51636         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
51637
51638 2007-05-18  Bruno Haible  <bruno@clisp.org>
51639
51640         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
51641         for printing 64-bit integers. Needed for mingw.
51642
51643 2007-05-18  Bruno Haible  <bruno@clisp.org>
51644
51645         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51646         gl_FUNC_FREXPL_WORKS.
51647         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
51648
51649 2007-05-18  Bruno Haible  <bruno@clisp.org>
51650
51651         * modules/frexpl-nolibm-tests: New file.
51652
51653         * modules/frexpl-nolibm: New file.
51654         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
51655
51656 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51657
51658         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
51659         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51660         GCC 4.2, which otherwise issues a lot of warnings.
51661         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
51662         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
51663         Likewise.
51664         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
51665         * modules/iconv_open (iconv.h): Likewise.
51666         * modules/locale (locale.h): Likewise.
51667         * modules/netinet_in (netinet/in.h): Likewise.
51668         * modules/sys_select (sys_select.h): Likewise.
51669         * modules/sys_socket (sys/socket.h): Likewise.
51670         * modules/sys_stat (sys/stat.h): Likewise.
51671         * modules/sysexits (sysexits.h): Likewise.
51672         * modules/unistd (unistd.h): Likewise.
51673
51674 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51675
51676         * modules/closein-tests (Makefile.am): Distribute
51677         `test-closein.sh'.
51678
51679 2007-05-17  Bruno Haible  <bruno@clisp.org>
51680
51681         * tests/test-printf-posix.output: Renamed from
51682         tests/test-fprintf-posix.out.
51683         * modules/fprintf-posix-tests: Update.
51684         * modules/printf-posix-tests: Update.
51685         * modules/vfprintf-posix-tests: Update.
51686         * modules/vprintf-posix-tests: Update.
51687         * tests/test-fprintf-posix.sh: Update.
51688         * tests/test-printf-posix.sh: Update.
51689         * tests/test-vfprintf-posix.sh: Update.
51690         * tests/test-vprintf-posix.sh: Update.
51691         Reported by Ralf Wildenhues.
51692
51693 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51694
51695         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
51696         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51697         GCC 4.2, which otherwise issues a lot of warnings.
51698         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
51699         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
51700         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
51701         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
51702         it should no longer be needed.
51703         * lib/string_.h: Likewise.
51704         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
51705         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
51706         * modules/inttypes (inttypes.h): Likewise.
51707         * modules/math (math.h): Likewise.
51708         * modules/search (search.h): Likewise.
51709         * modules/signal (signal.h): Likewise.
51710         * modules/stdint (stdint.h): Likewise.
51711         * modules/stdio (stdio.h): Likewise.
51712         * modules/stdlib (stdlib.h): Likewise.
51713         * modules/string (string.h): Likewise.
51714         * modules/sys_time (sys/time.h): Likewise.
51715         * modules/time (time.h): Likewise.
51716         * modules/wchar (wchar.h): Likewise.
51717         * modules/wctype (wtype.h): Likewise.
51718
51719 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51720
51721         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
51722
51723 2007-05-13  Bruno Haible  <bruno@clisp.org>
51724
51725         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
51726         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51727         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
51728         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51729         (gl_PREREQ_STRTOK_R): Don't require it here.
51730
51731 2007-05-13  Bruno Haible  <bruno@clisp.org>
51732
51733         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
51734         when used in C++ mode.
51735
51736 2007-05-12  Bruno Haible  <bruno@clisp.org>
51737
51738         * lib/linebuffer.h: Tweak doc.
51739         * lib/linebuffer.c: Likewise.
51740
51741 2007-05-12  James Youngman  <jay@gnu.org>
51742
51743         * lib/linebuffer.c (readlinebuffer_delim): New function,
51744         like readlinebuffer, but use a caller-specified delimiter.
51745         (readlinebuffer): Just call readlinebuffer_delim with '\n'
51746         as the delimiter.
51747         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
51748
51749 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51750
51751         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
51752         * modules/openat (Files): Remove openat-die.c.
51753         (Depends-on): Add openat-die.
51754         * modules/openat-die: New module.
51755
51756 2007-05-06  Bruno Haible  <bruno@clisp.org>
51757
51758         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
51759         Update with info about Cygwin.
51760         * doc/functions/fprintf.texi: Update.
51761         * doc/functions/printf.texi: Update.
51762         * doc/functions/snprintf.texi: Update.
51763         * doc/functions/sprintf.texi: Update.
51764         * doc/functions/vfprintf.texi: Update.
51765         * doc/functions/vprintf.texi: Update.
51766         * doc/functions/vsnprintf.texi: Update.
51767         * doc/functions/vsprintf.texi: Update.
51768         Reported by Eric Blake.
51769
51770 2007-05-06  Bruno Haible  <bruno@clisp.org>
51771
51772         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
51773         padding ourselves for the floating-point directives.
51774         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
51775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
51776         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51777         gl_PRINTF_FLAG_ZERO and test its result. Invoke
51778         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
51779         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51780         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51781         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51782         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51783         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51784         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51785         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51786         * tests/test-snprintf-posix.h (test_function): Also check the width
51787         and some flags in the %f directive.
51788         * tests/test-sprintf-posix.h (test_function): Likewise.
51789         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51790         * tests/test-vasprintf-posix.c (test_function): Likewise.
51791         * doc/functions/fprintf.texi: Update.
51792         * doc/functions/printf.texi: Update.
51793         * doc/functions/snprintf.texi: Update.
51794         * doc/functions/sprintf.texi: Update.
51795         * doc/functions/vfprintf.texi: Update.
51796         * doc/functions/vprintf.texi: Update.
51797         * doc/functions/vsnprintf.texi: Update.
51798         * doc/functions/vsprintf.texi: Update.
51799
51800 2007-05-06  Bruno Haible  <bruno@clisp.org>
51801
51802         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
51803         pass the ' flag character to sprintf or snprintf.
51804         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
51805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
51806         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51807         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
51808         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
51809         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51810         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51811         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51812         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51813         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51814         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51815         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51816         * tests/test-snprintf-posix.h (test_function): Also check the grouping
51817         flag.
51818         * tests/test-sprintf-posix.h (test_function): Likewise.
51819         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51820         * tests/test-vasprintf-posix.c (test_function): Likewise.
51821         * doc/functions/fprintf.texi: Update.
51822         * doc/functions/printf.texi: Update.
51823         * doc/functions/snprintf.texi: Update.
51824         * doc/functions/sprintf.texi: Update.
51825         * doc/functions/vfprintf.texi: Update.
51826         * doc/functions/vprintf.texi: Update.
51827         * doc/functions/vsnprintf.texi: Update.
51828         * doc/functions/vsprintf.texi: Update.
51829
51830 2007-05-01  Bruno Haible  <bruno@clisp.org>
51831
51832         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
51833
51834 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
51835
51836         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
51837         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
51838
51839 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51840
51841         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
51842         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
51843         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
51844
51845 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
51846
51847         * lib/argp-help.c (struct hol_entry): New member `ord'.
51848         (HOL_ENTRY_PTRCMP): Use ord for comparison
51849         (hol_sort): Initialize ord.
51850
51851 2007-05-01  Bruno Haible  <bruno@clisp.org>
51852
51853         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
51854         Reported by Eric Blake.
51855         * doc/gnulib.texi (Function Substitutes): Update.
51856
51857 2007-05-01  Bruno Haible  <bruno@clisp.org>
51858
51859         * doc/functions.texi: Remove file, now redundant through
51860         doc/functions/*.texi.
51861
51862 2007-05-01  Bruno Haible  <bruno@clisp.org>
51863
51864         * modules/argp (Depends-on): Add sleep.
51865
51866 2007-05-01  Bruno Haible  <bruno@clisp.org>
51867
51868         * modules/sleep-tests: New file.
51869         * tests/test-sleep.c: New file.
51870
51871         * modules/sleep: New file.
51872         * lib/sleep.c: New file.
51873         * m4/sleep.m4: New file.
51874         * lib/unistd_.h (sleep): New declaration.
51875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
51876         HAVE_SLEEP.
51877         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
51878         * doc/functions/sleep.texi: Document the sleep module.
51879
51880 2007-05-01  Bruno Haible  <bruno@clisp.org>
51881
51882         * lib/sigprocmask.h: Remove file.
51883         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
51884         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
51885         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
51886         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
51887         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51888         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
51889         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
51890         HAVE_SIGSET_T as a shell variable.
51891         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
51892         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
51893         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
51894         (Depends-on): Add signal. Remove verify.
51895         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
51896         (Include): Mention <signal.h> instead of sigprocmask.h.
51897         * NEWS: Mention the change.
51898         * lib/fatal-signal.c: Don't include sigprocmask.h.
51899
51900 2007-05-01  Bruno Haible  <bruno@clisp.org>
51901
51902         * modules/signal: New file.
51903         * lib/signal_.h: New file.
51904         * m4/signal_h.m4: New file.
51905
51906 2007-05-01  Bruno Haible  <bruno@clisp.org>
51907
51908         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
51909         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
51910         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
51911         HAVE_WCTYPE_CTMP_BUG into wctype.h.
51912
51913 2007-05-01  Bruno Haible  <bruno@clisp.org>
51914
51915         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
51916         configure time.
51917         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
51918         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
51919         * modules/sys_stat (Makefile.am): Substitute their values into
51920         sys/stat.h.
51921
51922 2007-05-01  Bruno Haible  <bruno@clisp.org>
51923
51924         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
51925         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
51926         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
51927
51928 2007-05-01  Bruno Haible  <bruno@clisp.org>
51929
51930         * doc/header/assert.texi: Undo last change: don't mention the gnulib
51931         'assert' module here.
51932
51933 2007-05-01  Bruno Haible  <bruno@clisp.org>
51934
51935         * doc/functions/*.texi: New files.
51936         * doc/functions/google-ranking.txt: New file.
51937         * doc/gnulib.texi (Function Substitutes): New chapter.
51938         (ctime, inet_ntoa): Remove sections.
51939         * doc/ctime.texi: Remove file.
51940         * doc/inet_ntoa.texi: Remove file.
51941         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
51942         dependencies.
51943         (%.info): New rule, specifying a --reference-limit.
51944
51945 2007-05-01  Bruno Haible  <bruno@clisp.org>
51946
51947         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
51948
51949 2007-05-01  Bruno Haible  <bruno@clisp.org>
51950
51951         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
51952         the portability of 'mkdir' to mingw systems.
51953
51954 2007-05-01  Bruno Haible  <bruno@clisp.org>
51955
51956         * doc/headers/google-ranking.txt: New file.
51957
51958 2007-04-30  Eric Blake  <ebb9@byu.net>
51959
51960         Prefer fseeko to fseek.
51961         * modules/getpass (Depends-on): Add fseeko.
51962         * lib/getpass.c (getpass): Use fseeko, not fseek.
51963
51964 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
51965
51966         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
51967         assumes the sorting is stable, while most qsort implementations
51968         are not.  Use argument addresses to ensure they never compare as
51969         equal.
51970
51971         * tests/test-argp-2.sh (usage-indent test): Fix output
51972         (func_compare): Restore diff options
51973         * tests/test-argp.c: Restore #include "progname.h"
51974
51975 2007-04-29  Bruno Haible  <bruno@clisp.org>
51976
51977         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
51978         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51979         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
51980         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51981         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
51982         (configure.ac): Define CHECK_SNPRINTF_POSIX.
51983         (TESTS, check_PROGRAMS): Add test-snprintf.
51984         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
51985         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
51986         (TESTS, check_PROGRAMS): Add test-vsnprintf.
51987         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
51988         assertions that fail on HP-UX, OSF/1, or IRIX.
51989         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
51990
51991 2007-04-29  Bruno Haible  <bruno@clisp.org>
51992
51993         * MODULES.html.sh (posix_functions): Remove 'contents'.
51994
51995 2007-04-29  Karl Berry  <karl@gnu.org>
51996
51997         * config/srclist.txt (gendocs_template_min): new entry.
51998
51999 2007-04-29  Bruno Haible  <bruno@clisp.org>
52000
52001         Work around fpurge bug on BSD systems.
52002         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
52003         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
52004         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
52005         fpurge to rpl_fpurge if the system already has this function.
52006         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
52007         the case where the system already has this function. Correct invariants
52008         on BSD systems.
52009         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
52010         BSD systems.
52011
52012 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52013
52014         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
52015         proposed by Sven Verdoolaege.
52016
52017         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
52018         options.
52019         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
52020         (usage and help tests): Update
52021
52022 2007-04-29  Bruno Haible  <bruno@clisp.org>
52023
52024         * tests/test-fflush.c (main): Use a file of size 17, not 10.
52025         Print more information in case of failure. Disable a test on BeOS.
52026
52027 2007-04-29  Bruno Haible  <bruno@clisp.org>
52028
52029         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
52030         This helps debugging on systems on which no gdb is available.
52031
52032 2007-04-29  Bruno Haible  <bruno@clisp.org>
52033
52034         * lib/freading.h: Improve comments.
52035         * lib/fwriting.h: Likewise.
52036         * tests/test-freading.c (main): Don't check freading immediately after
52037         repositioning. Needed for glibc.
52038
52039 2007-04-29  Bruno Haible  <bruno@clisp.org>
52040
52041         * lib/freading.c (freading): Trivial simplification.
52042
52043 2007-04-28  Bruno Haible  <bruno@clisp.org>
52044
52045         * tests/test-fwriting.c (main): Also test the interaction between
52046         fflush and fwriting.
52047         * modules/fwriting-tests (Depends-on): Add fflush.
52048
52049         * tests/test-freading.c (main): Also test the interaction between
52050         fflush and freading.
52051         * modules/freading-tests (Depends-on): Add fflush.
52052
52053 2007-04-28  Bruno Haible  <bruno@clisp.org>
52054
52055         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
52056         fseeko and ftello.
52057         Suggested by Eric Blake.
52058
52059 2007-04-28  Jim Meyering  <jim@meyering.net>
52060
52061         Avoid false-negative in gl_STDINT_H's C99 conformance test.
52062         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
52063         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
52064
52065 2007-04-27  Eric Blake  <ebb9@byu.net>
52066
52067         * doc/headers/assert.texi (assert.h): Document assert module use.
52068
52069 2007-04-27  Bruno Haible  <bruno@clisp.org>
52070
52071         * doc/headers/*.texi: New files.
52072         * doc/gnulib.texi (Header File Substitutes): New chapter.
52073         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
52074         dependencies.
52075         (standards.info ,standards.html, standards.dvi): Update dependencies.
52076         (mostlyclean, clean): New targets.
52077
52078 2007-04-27  Bruno Haible  <bruno@clisp.org>
52079
52080         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
52081         * modules/sysexits (Files, Makefile.am): Update.
52082
52083         * lib/sys_socket_.h: Renamed from lib/socket_.h.
52084         * modules/sys_socket (Files, Makefile.am): Update.
52085
52086         * lib/sys_stat_.h: Renamed from lib/stat_.h.
52087         * modules/sys_stat (Files, Makefile.am): Update.
52088
52089 2007-04-27  Eric Blake  <ebb9@byu.net>
52090
52091         * lib/freading.h: Improve comments.
52092         * lib/fwriting.h: Likewise.
52093         * lib/fflush.c: Likewise.
52094
52095         Fix closein for mingw.
52096         * modules/closein-tests: Add tests for closein.
52097         * tests/test-closein.c: New file.
52098         * tests/test-closein.sh: Likewise.
52099         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
52100         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
52101
52102 2007-04-27  Bruno Haible  <bruno@clisp.org>
52103
52104         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
52105         version is < 6.
52106         * lib/math_.h [__DECC]: Likewise.
52107         * lib/stdio_.h [__DECC]: Likewise.
52108         * lib/stdlib_.h [__DECC]: Likewise.
52109         * lib/string_.h [__DECC]: Likewise.
52110         * lib/time_.h [__DECC]: Likewise.
52111         * lib/wchar_.h [__DECC]: Likewise.
52112         * lib/wctype_.h [__DECC]: Likewise.
52113
52114 2007-04-27  Bruno Haible  <bruno@clisp.org>
52115
52116         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
52117
52118 2007-04-27  Bruno Haible  <bruno@clisp.org>
52119
52120         * lib/fflush.c: Add comments.
52121         * modules/fpurge-tests (Depends-on): Add fflush.
52122         * modules/freadable-tests (Depends-on): Likewise.
52123         * modules/fwritable-tests (Depends-on): Likewise.
52124
52125 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
52126
52127         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
52128         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
52129         Report by Bruno Haible <bruno@clisp.org>.
52130
52131 2007-04-26  Eric Blake  <ebb9@byu.net>
52132
52133         Fix fflush on mingw.
52134         * modules/fflush (Depends-on): Add freading.
52135         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
52136         but unread data.
52137
52138 2007-04-26  Eric Blake  <ebb9@byu.net>
52139         and Bruno Haible  <bruno@clisp.org>
52140
52141         Implement freading and fwriting.
52142         * lib/freading.c: New file.
52143         * lib/freading.h: Likewise.
52144         * m4/freading.m4: Likewise.
52145         * modules/freading: Likewise.
52146         * modules/freading-tests: Likewise.
52147         * tests/test-freading.c: Likewise.
52148         * lib/fwriting.c: New file.
52149         * lib/fwriting.h: Likewise.
52150         * m4/fwriting.m4: Likewise.
52151         * modules/fwriting: Likewise.
52152         * modules/fwriting-tests: Likewise.
52153         * tests/test-fwriting.c: Likewise.
52154         * MODULES.html.sh (File stream based Input/Output): Mention them.
52155
52156 2007-04-26  Bruno Haible  <bruno@clisp.org>
52157
52158         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
52159         'long' when we assume it.
52160         Suggested by Eric Blake.
52161
52162 2007-04-26  Bruno Haible  <bruno@clisp.org>
52163
52164         Ensure fseeko, ftello are declared on glibc systems.
52165         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
52166         * modules/fseeko (configure.ac-early): Likewise.
52167         * modules/ftello (configure.ac-early): Likewise.
52168         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
52169         AC_FUNC_FSEEKO for this.
52170         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
52171         (gl_CHECK_FSEEKO): Remove macro.
52172
52173 2007-04-26  Bruno Haible  <bruno@clisp.org>
52174
52175         * tests/test-fflush.c (main): Also check the ftell result after
52176         fflush and fseek/fseeko.
52177         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
52178         file descriptor position cache in the stream.
52179         * lib/fseeko.c (rpl_fseeko): Likewise.
52180
52181 2007-04-26  Bruno Haible  <bruno@clisp.org>
52182
52183         * modules/fflush-tests (Depends-on): Add fseeko.
52184
52185 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
52186             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52187
52188         * lib/argz_.h: ensure error_t definition is obtained in same
52189         mechanism system argz.h would have.
52190         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
52191         argz facilities are known bad.  Err on the side of caution if
52192         cross-compiling.
52193
52194 2007-04-25  Eric Blake  <ebb9@byu.net>
52195
52196         * lib/fpurge.c (includes): Use stdlib.h for free.
52197         * tests/test-fflush.c (main): Also test fflush-fseeko.
52198
52199 2007-04-25  Bruno Haible  <bruno@clisp.org>
52200
52201         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
52202         * lib/fseeko.c: New file.
52203         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
52204         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
52205         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
52206         gl_FUNC_FSEEKO.
52207         (gl_FUNC_FSEEKO): Invoke it.
52208         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
52209         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
52210         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
52211
52212 2007-04-25  Bruno Haible  <bruno@clisp.org>
52213
52214         * modules/fflush (Depends-on): Add ftello.
52215
52216 2007-04-25  Bruno Haible  <bruno@clisp.org>
52217
52218         * modules/ftello-tests: New file.
52219         * tests/test-ftello.c: New file.
52220
52221         * modules/ftello: New file.
52222         * m4/ftello.m4: New file.
52223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
52224         HAVE_FTELLO.
52225         * lib/stdio_.h (ftello): New declaration.
52226         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
52227         HAVE_FTELLO.
52228
52229 2007-04-25  Bruno Haible  <bruno@clisp.org>
52230
52231         * modules/fseeko-tests: New file.
52232         * tests/test-fseeko.c: New file.
52233
52234         * modules/fseeko: New file.
52235         * m4/fseeko.m4: New file.
52236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
52237         HAVE_FSEEKO.
52238         * lib/stdio_.h (fseeko): New declaration.
52239         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
52240         HAVE_FSEEKO.
52241
52242 2007-04-25  Bruno Haible  <bruno@clisp.org>
52243
52244         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
52245
52246 2007-04-25  Bruno Haible  <bruno@clisp.org>
52247
52248         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
52249         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
52250         * tests/test-unistd.c: Likewise.
52251         * tests/test-fcntl.c: Likewise.
52252
52253 2007-04-23  Eric Blake  <ebb9@byu.net>
52254
52255         * lib/fflush.c: Fix missing include.
52256         Reported by Bruno Haible.
52257
52258 2007-04-23  Bruno Haible  <bruno@clisp.org>
52259
52260         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
52261         Reported by Eric Blake.
52262
52263 2007-04-23  Bruno Haible  <bruno@clisp.org>
52264
52265         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
52266
52267 2007-04-23  Bruno Haible  <bruno@clisp.org>
52268
52269         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
52270
52271 2007-04-23  Bruno Haible  <bruno@clisp.org>
52272
52273         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
52274         Needed on HP-UX 11.
52275
52276 2007-04-16  Eric Blake  <ebb9@byu.net>
52277
52278         Make fflush rely on fpurge.
52279         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
52280         open coding all variants.
52281         * modules/fflush (Depends-on): Add fpurge and unistd.
52282         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
52283         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
52284
52285         Fix --with-tests compilation on cygwin.
52286         * modules/argmatch-tests (Makefile.am): List gnulib library first
52287         in LDADD.
52288         * modules/argp-tests (Makefile.am): Likewise.
52289         * modules/array-list-tests (Makefile.am): Likewise.
52290         * modules/array-oset-tests (Makefile.am): Likewise.
52291         * modules/avltree-list-tests (Makefile.am): Likewise.
52292         * modules/avltree-oset-tests (Makefile.am): Likewise.
52293         * modules/avltreehash-list-tests (Makefile.am): Likewise.
52294         * modules/carray-list-tests (Makefile.am): Likewise.
52295         * modules/dirname-tests (Makefile.am): Likewise.
52296         * modules/frexp-tests (Makefile.am): Likewise.
52297         * modules/isnanl-tests (Makefile.am): Likewise.
52298         * modules/linked-list-tests (Makefile.am): Likewise.
52299         * modules/linkedhash-list-tests (Makefile.am): Likewise.
52300         * modules/lock-tests (Makefile.am): Likewise.
52301         * modules/rbtree-list-tests (Makefile.am): Likewise.
52302         * modules/rbtree-oset-tests (Makefile.am): Likewise.
52303         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
52304         * modules/tls-tests (Makefile.am): Likewise.
52305         * modules/tsearch-tests (Makefile.am): Likewise.
52306         * modules/xvasprintf-tests (Makefile.am): Likewise.
52307
52308         Fix fpurge for cygwin.
52309         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
52310         value.
52311         * modules/fpurge-tests (Depends-on): Clean up trash.
52312
52313 2007-04-16  Simon Josefsson  <simon@josefsson.org>
52314
52315         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
52316
52317         * m4/autobuild.m4: Re-indent.
52318
52319 2007-04-13  Bruno Haible  <bruno@clisp.org>
52320
52321         * modules/fpurge-tests: New file.
52322         * tests/test-fpurge.c: New file.
52323
52324         * modules/fpurge: New file.
52325         * lib/fpurge.h: New file.
52326         * lib/fpurge.c: New file.
52327         * m4/fpurge.m4: New file.
52328
52329 2007-04-13  Bruno Haible  <bruno@clisp.org>
52330
52331         * modules/fbufmode-tests: New file.
52332         * tests/test-fbufmode.c: New file.
52333
52334         * modules/fbufmode: New file.
52335         * lib/fbufmode.h: New file.
52336         * lib/fbufmode.c: New file.
52337         * m4/fbufmode.m4: New file.
52338
52339 2007-04-13  Bruno Haible  <bruno@clisp.org>
52340
52341         * modules/fwritable-tests: New file.
52342         * tests/test-fwritable.c: New file.
52343
52344         * modules/fwritable: New file.
52345         * lib/fwritable.h: New file.
52346         * lib/fwritable.c: New file.
52347         * m4/fwritable.m4: New file.
52348
52349 2007-04-13  Bruno Haible  <bruno@clisp.org>
52350
52351         * modules/freadable-tests: New file.
52352         * tests/test-freadable.c: New file.
52353
52354         * modules/freadable: New file.
52355         * lib/freadable.h: New file.
52356         * lib/freadable.c: New file.
52357         * m4/freadable.m4: New file.
52358
52359 2007-04-13  Bruno Haible  <bruno@clisp.org>
52360
52361         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
52362         MOSTLYCLEANFILES.
52363
52364 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52365
52366         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
52367         gzip bootstrap.conf to avoid dragging in i18n machinery.
52368         (gnulib_tool_option): Use it.
52369
52370 2007-04-13  Bruno Haible  <bruno@clisp.org>
52371
52372         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
52373         %F directives.
52374         * tests/test-vasprintf-posix.c (test_function): Likewise.
52375         * tests/test-snprintf-posix.h (test_function): Likewise.
52376         * tests/test-sprintf-posix.h (test_function): Likewise.
52377         * tests/test-fprintf-posix.h (test_function): Likewise.
52378         * tests/test-printf-posix.h (test_function): Likewise.
52379         * tests/test-fprintf-posix.out: Likewise.
52380
52381 2007-04-13  Bruno Haible  <bruno@clisp.org>
52382
52383         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
52384         * modules/tls-tests (configure.ac): Likewise.
52385         Reported by Arto C. Nirkko <anirkko@insel.ch>.
52386
52387 2007-04-13  Bruno Haible  <bruno@clisp.org>
52388
52389         * lib/tls.c (glthread_tls_get): Fix return type.
52390         Patch by Arto C. Nirkko <anirkko@insel.ch>.
52391
52392 2007-04-12  Eric Blake  <ebb9@byu.net>
52393
52394         * modules/gettime (Depends-on): Remove gettime.
52395         Reported by Dmitry V. Levin.
52396
52397 2007-04-12  Bruno Haible  <bruno@clisp.org>
52398
52399         * modules/fflush (Include): Mention <stdio.h>.
52400         * modules/strtoimax (Include): Mention <inttypes.h>.
52401         * modules/strtoumax (Include): Likewise.
52402
52403 2007-04-12  Eric Blake  <ebb9@byu.net>
52404
52405         * .cvsignore: New file.
52406         * .gitignore: Likewise.
52407
52408 2007-04-12  Bruno Haible  <bruno@clisp.org>
52409
52410         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
52411         not before, since $(LDADD) often contains libgnu.a.
52412         * modules/striconv-tests (test_striconv_LDADD): Likewise.
52413         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
52414         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
52415         Needed on Cygwin.
52416
52417 2007-04-12  Eric Blake  <ebb9@byu.net>
52418
52419         Work around glibc's failure to flush stdin on fclose.
52420         * lib/closein.c (close_stdin): Flush stdin before closing.
52421
52422         Work around glibc's failure to reset seekable stdin on exit.
52423         * modules/closein: New module.
52424         * lib/closein.c: New file.
52425         * lib/closein.h: Likewise.
52426         * m4/closein.m4: Likewise.
52427         * MODULES.html.sh (File stream based Input/Output): Document it.
52428
52429 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52430
52431         * gnulib-tool: Rename generated 'autobuild' script to
52432         'do-autobuild' in --create-megatestdir output.
52433
52434         * doc/gnulib.texi (Build robot for gnulib): Fix.
52435
52436 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52437
52438         * modules/sysexits (Depends-on): Add absolute-header.
52439
52440 2007-04-12  Eric Blake  <ebb9@byu.net>
52441
52442         No need to preserve errno on success.
52443         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
52444         Reported by Bruno Haible.
52445
52446 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52447
52448         * MODULES.html.sh (Support for maintaining and releasing
52449         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
52450
52451 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52452
52453         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
52454
52455 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52456
52457         * modules/autobuild: New module.
52458
52459         * m4/autobuild.m4: New file.
52460
52461 2007-04-11  Bruno Haible  <bruno@clisp.org>
52462
52463         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
52464         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
52465         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
52466         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
52467         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52468         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52469         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52470         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52471         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52472         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52473         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
52474         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52475         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52476         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
52477         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52478         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52479         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
52480         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52481         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52482         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
52483         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52484         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52485         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
52486         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52487         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52488         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
52489         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52490         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52491         Reported by Eric Blake.
52492
52493 2007-04-11  Bruno Haible  <bruno@clisp.org>
52494
52495         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
52496
52497 2007-04-10  Bruno Haible  <bruno@clisp.org>
52498
52499         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
52500         for NaN and Infinity. Needed on FreeBSD 6.1.
52501         * tests/test-vasnprintf-posix.c (test_function): Undo last change
52502         regarding results for "%010a" of Infinity and NaN.
52503         * tests/test-vasprintf-posix.c (test_function): Likewise.
52504         * tests/test-snprintf-posix.h (test_function): Likewise.
52505         * tests/test-sprintf-posix.h (test_function): Likewise.
52506         * tests/test-fprintf-posix.h (test_function): Likewise.
52507         * tests/test-printf-posix.h (test_function): Likewise.
52508         * tests/test-fprintf-posix.out: Likewise.
52509
52510 2007-04-10  Bruno Haible  <bruno@clisp.org>
52511
52512         * modules/locale-tests: New file.
52513         * tests/test-locale.c: New file.
52514
52515         * modules/locale: New file.
52516         * lib/locale_.h: New file.
52517         * m4/locale_h.m4: New file.
52518
52519 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
52520             Bruno Haible  <bruno@clisp.org>
52521
52522         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
52523         be determined, test for availability of the copysignf, copysign,
52524         copysignl functions.
52525         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
52526         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
52527         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
52528
52529 2007-04-09  Eric Blake  <ebb9@byu.net>
52530
52531         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
52532         * modules/stdio (Makefile.am): Support fflush.
52533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52534         * modules/fflush: New file.
52535         * lib/fflush.c: Likewise.
52536         * m4/fflush.m4: Likewise.
52537         * modules/fflush-tests: New test.
52538         * tests/test-fflush.c: Likewise.
52539         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
52540
52541 2007-04-06  Bruno Haible  <bruno@clisp.org>
52542
52543         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
52544         (VASNPRINTF): Use signbit for faster determination whether to print a
52545         minus sign.
52546         * modules/vasnprintf (Files): Remove lib/float+.h.
52547         * modules/fprintf-posix (Depends-on): Add signbit.
52548         * modules/snprintf-posix (Depends-on): Likewise.
52549         * modules/sprintf-posix (Depends-on): Likewise.
52550         * modules/vasnprintf-posix (Depends-on): Likewise.
52551         * modules/vasprintf-posix (Depends-on): Likewise.
52552         * modules/vfprintf-posix (Depends-on): Likewise.
52553         * modules/vsnprintf-posix (Depends-on): Likewise.
52554         * modules/vsprintf-posix (Depends-on): Likewise.
52555
52556 2007-04-06  Bruno Haible  <bruno@clisp.org>
52557
52558         * tests/test-frexp.c (main): Test also the sign bit of zero results.
52559         * tests/test-frexpl.c (main): Likewise.
52560         * tests/test-ldexpl.c (main): Likewise.
52561         * modules/frexp-tests (Depends-on): Add signbit.
52562         * modules/frexpl-tests (Depdends-on): Likewise.
52563         * modules/ldexpl-tests (Depdends-on): Likewise.
52564
52565 2007-04-06  Bruno Haible  <bruno@clisp.org>
52566
52567         * modules/signbit-tests: New file.
52568         * tests/test-signbit.c: New file.
52569
52570         * modules/signbit: New file.
52571         * lib/signbitf.c: New file.
52572         * lib/signbitd.c: New file.
52573         * lib/signbitl.c: New file.
52574         * m4/signbit.m4: New file.
52575         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
52576         (signbit): New macro.
52577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
52578         REPLACE_SIGNBIT.
52579         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
52580         REPLACE_FREXPL into math.h.
52581
52582 2007-04-06  Bruno Haible  <bruno@clisp.org>
52583
52584         * modules/isnanf-nolibm-tests: New file.
52585         * tests/test-isnanf.c: New file.
52586
52587         * modules/isnanf-nolibm: New file.
52588         * lib/isnanf.h: New file.
52589         * lib/isnanf.c: New file.
52590         * lib/isnan.c: Consider the USE_FLOAT macro.
52591         * m4/isnanf.m4: New file.
52592
52593 2007-04-06  Bruno Haible  <bruno@clisp.org>
52594
52595         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
52596         (Link): New section.
52597
52598         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
52599
52600 2007-04-06  Bruno Haible  <bruno@clisp.org>
52601
52602         Assume the 'long double' type.
52603         * m4/longdouble.m4: Remove file.
52604         * config/srclist.txt: Don't mention longdouble.m4.
52605         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
52606         * lib/float+.h: Likewise.
52607         * lib/frexp.c: Likewise.
52608         * lib/printf-args.h: Likewise.
52609         * lib/printf-args.c: Likewise.
52610         * lib/printf-frexp.c: Likewise.
52611         * lib/printf-parse.c: Likewise.
52612         * lib/vasnprintf.c: Likewise.
52613         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
52614         * m4/intl.m4: Likewise.
52615         * m4/isnanl.m4: Likewise.
52616         * m4/printf.m4: Likewise.
52617         * m4/printf-frexpl.m4: Likewise.
52618         * m4/vasnprintf.m4: Likewise.
52619         * modules/allocsa (Files): Remove m4/longdouble.m4.
52620         * modules/gettext (Files): Likewise.
52621         * modules/relocatable-prog-wrapper (Files): Likewise.
52622         * modules/vasnprintf (Files): Likewise.
52623         * modules/isnanl (Files): Likewise.
52624         (Include): Simplify.
52625         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
52626         (Include): Simplify.
52627         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
52628         (Include): Simplify.
52629         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
52630         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52631         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
52632         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52633         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52634         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52635         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
52636         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52637         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52638         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52639         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
52640         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52641         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
52642         * tests/test-isnanl.c: Likewise.
52643         * tests/test-snprintf-posix.h: Likewise.
52644         * tests/test-sprintf-posix.h: Likewise.
52645         * tests/test-vasnprintf-posix.c: Likewise.
52646         * tests/test-vasnprintf-posix2.c: Likewise.
52647         * tests/test-vasprintf-posix.c: Likewise.
52648
52649 2007-04-06  Bruno Haible  <bruno@clisp.org>
52650
52651         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
52652         * lib/math_.h [__DECC]: Include the overridden include file through
52653         #include_next, outside the double-inclusion guard.
52654         * lib/stdio_.h [__DECC]: Likewise.
52655         * lib/stdlib_.h [__DECC]: Likewise.
52656         * lib/string_.h [__DECC]: Likewise.
52657         * lib/time_.h [__DECC]: Likewise.
52658         * lib/wchar_.h [__DECC]: Likewise.
52659         * lib/wctype_.h [__DECC]: Likewise.
52660         * lib/inttypes_.h [__DECC]: Likewise.
52661         Reported by Albert Chin <china@thewrittenword.com> in
52662         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
52663
52664 2007-04-04  Eric Blake  <ebb9@byu.net>
52665
52666         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
52667         1.5.x.
52668
52669 2007-04-04  Bruno Haible  <bruno@clisp.org>
52670
52671         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
52672         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
52673
52674 2007-04-04  Bruno Haible  <bruno@clisp.org>
52675
52676         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
52677         results for "%010a" of Infinity and NaN.
52678         * tests/test-vasprintf-posix.c (test_function): Likewise.
52679         * tests/test-snprintf-posix.h (test_function): Likewise.
52680         * tests/test-sprintf-posix.h (test_function): Likewise.
52681         * tests/test-fprintf-posix.h (test_function): Remove these tests.
52682         * tests/test-printf-posix.h (test_function): Likewise.
52683         * tests/test-fprintf-posix.out: Update.
52684         Needed for FreeBSD 6.1.
52685
52686 2007-04-04  Bruno Haible  <bruno@clisp.org>
52687
52688         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
52689         directly used by the gnulib modules nor by gnulib-tool.
52690
52691 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52692
52693         * DEPENDENCIES: Give overall description of version dependency
52694         desirability.  Use more-typical names for apps.
52695         Add shell, coreutils, diffutils, grep, tar, gzip.
52696
52697 2007-04-04  Simon Josefsson  <simon@josefsson.org>
52698
52699         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
52700
52701 2007-04-04  Karl Berry  <karl@gnu.org>
52702
52703         * MODULES.html.sh (func_module): missing '.
52704
52705 2007-04-03  Bruno Haible  <bruno@clisp.org>
52706
52707         * modules/argmatch-tests (Makefile.am): New variable
52708         test_argmatch_LDADD.
52709         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
52710         * modules/array-list-tests (Makefile.am): New variable
52711         test_array_list_LDADD.
52712         * modules/array-oset-tests (Makefile.am): New variable
52713         test_array_oset_LDADD.
52714         * modules/avltree-list-tests (Makefile.am): New variable
52715         test_avltree_list_LDADD.
52716         * modules/avltree-oset-tests (Makefile.am): New variable
52717         test_avltree_oset_LDADD.
52718         * modules/avltreehash-list-tests (Makefile.am): New variable
52719         test_avltreehash_list_LDADD.
52720         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
52721         test_canonicalize_lgpl_LDADD.
52722         * modules/carray-list-tests (Makefile.am): New variable
52723         test_carray_list_LDADD.
52724         * modules/dirname-tests (Makefile.am): New variable
52725         test_dirname_LDADD.
52726         * modules/linked-list-tests (Makefile.am): New variable
52727         test_linked_list_LDADD.
52728         * modules/linkedhash-list-tests (Makefile.am): New variable
52729         test_linkedhash_list_LDADD.
52730         * modules/rbtree-list-tests (Makefile.am): New variable
52731         test_rbtree_list_LDADD.
52732         * modules/rbtree-oset-tests (Makefile.am): New variable
52733         test_rbtree_oset_LDADD.
52734         * modules/rbtreehash-list-tests (Makefile.am): New variable
52735         test_rbtreehash_list_LDADD.
52736         * modules/xvasprintf-tests (Makefile.am): New variable
52737         test_xvasprintf_LDADD.
52738         Reported by Eric Blake.
52739
52740 2007-04-03  Eric Blake  <ebb9@byu.net>
52741
52742         * DEPENDENCIES: Weaken m4 requirements.
52743
52744 2007-04-03  Bruno Haible  <bruno@clisp.org>
52745
52746         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
52747         * modules/isnanl-tests (configure.ac): Likewise.
52748
52749 2007-04-03  Ben Pfaff  <blp@gnu.org>
52750
52751         * modules/iconv_open: Add $(srcdir)/ to source directory
52752         references in Makefile fragments that call gperf, to fix VPATH
52753         builds.
52754
52755 2007-04-03  Bruno Haible  <bruno@clisp.org>
52756
52757         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
52758         * lib/ldexpl.c: Undo last change.
52759
52760 2007-04-03  Bruno Haible  <bruno@clisp.org>
52761
52762         * modules/printf-frexpl (Depends-on): Undo last change.
52763         (Files): Add m4/ldexpl.m4.
52764
52765 2007-04-03  Bruno Haible  <bruno@clisp.org>
52766
52767         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
52768         * modules/isnanl (Link): New section.
52769
52770         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
52771         * modules/frexp (Link): New section.
52772
52773         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
52774         * modules/frexpl (Link): New section.
52775
52776         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
52777         * modules/ldexpl (Link): New section.
52778
52779 2007-04-03  Bruno Haible  <bruno@clisp.org>
52780
52781         * modules/TEMPLATE-EXTENDED: New file.
52782         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
52783
52784 2007-04-03  Bruno Haible  <bruno@clisp.org>
52785
52786         * DEPENDENCIES: New file.
52787         Suggested by Simon Josefsson.
52788
52789 2007-04-03  Bruno Haible  <bruno@clisp.org>
52790
52791         * doc/gnulib.texi: Escape @.
52792
52793 2007-04-03  James Youngman  <jay@gnu.org>
52794         and Paul Eggert  <eggert@cs.ucla.edu>
52795
52796         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
52797         birthtime on all systems that have birthtime, not just those which
52798         use st_birthtimensec rather than st_birthtim.  Putting zero in
52799         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
52800         that the birth time is not available for files on an NFS mount.
52801
52802 2007-04-03  Simon Josefsson  <simon@josefsson.org>
52803
52804         * modules/memxor: Move back from crypto/, suggested by Bruno.
52805         * modules/crypto/hmac-sha1: Fix memxor dependency.
52806
52807         * modules/crypto/gc: Moved from ../.
52808
52809 2007-04-02  Eric Blake  <ebb9@byu.net>
52810
52811         * lib/ldexpl.c (includes): Avoid libm.
52812
52813         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
52814
52815 2007-04-02  Bruno Haible  <bruno@clisp.org>
52816
52817         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
52818         on IRIX.
52819
52820 2007-04-02  Bruno Haible  <bruno@clisp.org>
52821
52822         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
52823         x86 or x86_64 platforms running MacOS X.
52824         Reported by Ryan Schmidt <@ryandesign.com>.
52825
52826 2007-04-02  Bruno Haible  <bruno@clisp.org>
52827
52828         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
52829         i386.
52830
52831 2007-04-01  Simon Josefsson  <simon@josefsson.org>
52832
52833         * modules/crypto/arcfour: Moved from ../.
52834         * modules/crypto/arcfour-tests: Moved from ../.
52835         * modules/crypto/arctwo: Moved from ../.
52836         * modules/crypto/arctwo-tests: Moved from ../.
52837         * modules/crypto/des: Moved from ../.
52838         * modules/crypto/des-tests: Moved from ../.
52839         * modules/crypto/gc-arcfour: Moved from ../.
52840         * modules/crypto/gc-arcfour-tests: Moved from ../.
52841         * modules/crypto/gc-arctwo: Moved from ../.
52842         * modules/crypto/gc-arctwo-tests: Moved from ../.
52843         * modules/crypto/gc-des: Moved from ../.
52844         * modules/crypto/gc-des-tests: Moved from ../.
52845         * modules/crypto/gc-hmac-md5: Moved from ../.
52846         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
52847         * modules/crypto/gc-hmac-sha1: Moved from ../.
52848         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
52849         * modules/crypto/gc-md2: Moved from ../.
52850         * modules/crypto/gc-md2-tests: Moved from ../.
52851         * modules/crypto/gc-md4: Moved from ../.
52852         * modules/crypto/gc-md4-tests: Moved from ../.
52853         * modules/crypto/gc-md5: Moved from ../.
52854         * modules/crypto/gc-md5-tests: Moved from ../.
52855         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
52856         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
52857         * modules/crypto/gc-random: Moved from ../.
52858         * modules/crypto/gc-rijndael: Moved from ../.
52859         * modules/crypto/gc-rijndael-tests: Moved from ../.
52860         * modules/crypto/gc-sha1: Moved from ../.
52861         * modules/crypto/gc-sha1-tests: Moved from ../.
52862         * modules/crypto/gc-tests: Moved from ../.
52863         * modules/crypto/hmac-md5: Moved from ../.
52864         * modules/crypto/hmac-md5-tests: Moved from ../.
52865         * modules/crypto/hmac-sha1: Moved from ../.
52866         * modules/crypto/hmac-sha1-tests: Moved from ../.
52867         * modules/crypto/md2: Moved from ../.
52868         * modules/crypto/md2-tests: Moved from ../.
52869         * modules/crypto/md4: Moved from ../.
52870         * modules/crypto/md4-tests: Moved from ../.
52871         * modules/crypto/md5: Moved from ../.
52872         * modules/crypto/md5-tests: Moved from ../.
52873         * modules/crypto/memxor: Moved from ../.
52874         * modules/crypto/rijndael: Moved from ../.
52875         * modules/crypto/rijndael-tests: Moved from ../.
52876         * modules/crypto/sha1: Moved from ../.
52877
52878 2007-03-30  James Youngman  <jay@gnu.org>
52879
52880         * tests/test-stat-time.c (prepare_test): use chmod() rather than
52881         rename() to change the ctime of a file (because ctime is unaffected
52882         by rename on jfs2 on AIX 5.1).
52883         (main): Start by doing cleanup, in case a previous run failed leaving
52884         test files behind.
52885
52886 2007-03-31  Bruno Haible  <bruno@clisp.org>
52887
52888         Support old proprietary implementations of iconv.
52889         * modules/iconv_open: New file.
52890         * lib/iconv_.h: New file.
52891         * m4/iconv_h.m4: New file.
52892         * lib/iconv_open.c: New file.
52893         * lib/iconv_open-aix.gperf: New file.
52894         * lib/iconv_open-hpux.gperf: New file.
52895         * lib/iconv_open-irix.gperf: New file.
52896         * lib/iconv_open-osf.gperf: New file.
52897         * m4/iconv_open.m4: New file.
52898         * modules/linebreak (Depends-on): Add iconv_open.
52899         * modules/striconv (Depends-on): Likewise.
52900         * modules/striconveh (Depends-on): Likewise.
52901         * modules/unicodeio (Depends-on): Likewise.
52902         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
52903         (iconv_t)(-1).
52904         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
52905         conversion if cd is (iconv_t)(-1).
52906         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
52907         is not possible.
52908
52909 2007-03-31  Bruno Haible  <bruno@clisp.org>
52910
52911         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52912         work on Solaris either. Protect also second use of "autodetect_jp".
52913
52914 2007-03-31  Bruno Haible  <bruno@clisp.org>
52915
52916         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
52917         the function is not present.
52918
52919 2007-03-31  Bruno Haible  <bruno@clisp.org>
52920
52921         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
52922         the function is not present.
52923
52924 2007-03-31  Bruno Haible  <bruno@clisp.org>
52925
52926         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
52927         a bug in HP-UX iconv_open().
52928
52929 2007-03-31  Bruno Haible  <bruno@clisp.org>
52930
52931         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
52932         (Mathematics <math.h>): New section, add fpieee.
52933         (Input/output <stdio.h>): Add fseterr.
52934         (Mathematics <math.h>): New section, add printf-frexp.
52935         (Container data structures): Add sublist.
52936         (Core language properties): Add fpucw, inline.
52937         (Functions for greatest-width integer types <inttypes.h>): Add
52938         imaxabs, imaxdiv, inttypes.
52939         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
52940         isnanl-nolibm, ldexp.
52941         (Mathematics <math.h>): New section, add printf-frexpl.
52942         (Support for systems lacking POSIX:2001): Add fprintf-posix,
52943         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
52944         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
52945         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
52946         (Unicode string functions): Add unistr/u*-mbtoucr.
52947         (Java): Add javacomp-script, javaexec-script.
52948         (C#): Add csharpcomp-script, csharpexec-script.
52949         (Support for building libraries and executables): Add havelib,
52950         relocatable-*.
52951         (Support for maintaining and releasing projects): Renamed from
52952         'Support for maintaining and release projects'. Add announce-gen.
52953
52954 2007-03-31  Bruno Haible  <bruno@clisp.org>
52955
52956         * README: Talk primarily about git.
52957         (git and CVS): Renamed from CVS.
52958         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
52959         gnulib is available through git.
52960         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
52961
52962 2007-03-30  Bruno Haible  <bruno@clisp.org>
52963
52964         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
52965         * lib/poll_.h: Likewise.
52966         * lib/stat_.h: Likewise.
52967         * lib/sys_time_.h: Likewise.
52968         * lib/sysexit_.h: Likewise.
52969         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
52970         * lib/stdbool_.h: Likewise.
52971         * lib/byteswap_.h: Add double-inclusion guard.
52972
52973 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
52974
52975         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
52976
52977 2007-03-30  Karl Berry  <karl@gnu.org>
52978
52979         * config/srclist-update: double space after USA in the license
52980         substitution, since that's how it's usually (?) written.
52981
52982 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52983
52984         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
52985         reported by Bruno Haible.
52986
52987 2007-03-29  Bruno Haible  <bruno@clisp.org>
52988
52989         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
52990         a bug in AIX iconv().
52991
52992 2007-03-29  Bruno Haible  <bruno@clisp.org>
52993
52994         * modules/ldexpl-tests: New file.
52995         * tests/test-ldexpl.c: New file.
52996
52997 2007-03-29  Bruno Haible  <bruno@clisp.org>
52998
52999         * lib/ldexpl.c: Include fpucw.h.
53000         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
53001         multiplication.
53002         * modules/ldexpl (Depends-on): Add fpucw.
53003
53004 2007-03-29  Bruno Haible  <bruno@clisp.org>
53005
53006         * modules/ldexpl: New file.
53007         * m4/ldexpl.m4: New file.
53008         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
53009         set.
53010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
53011         REPLACE_LDEXPL.
53012         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
53013         REPLACE_LDEXPL.
53014         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53015         gl_FUNC_LDEXPL_WORKS.
53016         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
53017         * modules/mathl (Files): Remove lib/ldexpl.c.
53018         (Depends-on): Add ldexpl.
53019
53020 2007-03-29  Bruno Haible  <bruno@clisp.org>
53021
53022         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
53023
53024 2007-03-29  Bruno Haible  <bruno@clisp.org>
53025
53026         * tests/test-striconveh.c (main): Don't assume that a direct conversion
53027         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
53028         and possibly also HP-UX.
53029         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53030         work on AIX, IRIX, HP-UX, OSF/1.
53031         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
53032         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
53033         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
53034         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
53035         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
53036         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
53037
53038 2007-03-29  Bruno Haible  <bruno@clisp.org>
53039
53040         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
53041
53042 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53043
53044         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
53045         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
53046
53047 2007-03-29  Eric Blake  <ebb9@byu.net>
53048
53049         * lib/acl-internal.h: Remove redundant include.
53050         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
53051         Cygwin when a file is locked.
53052
53053 2007-03-29  Bruno Haible  <bruno@clisp.org>
53054
53055         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
53056         file.
53057         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
53058
53059 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53060
53061         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
53062         try to remove a parent directory if the child couldn't be removed
53063         (except for the first rmdir, which could fail because the child
53064         doesn't exist).  Problem reported by Jeff Blaine in
53065         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
53066
53067 2007-03-28  Bruno Haible  <bruno@clisp.org>
53068
53069         * lib/striconveh.c (utf8conv_carefully): New function.
53070         (mem_cd_iconveh_internal): Invoke it.
53071
53072 2007-03-28  Bruno Haible  <bruno@clisp.org>
53073
53074         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
53075         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
53076         input.
53077         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
53078         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
53079         unistr/u8-uctomb.
53080
53081 2007-03-28  Bruno Haible  <bruno@clisp.org>
53082
53083         * modules/unistr/u8-mbtoucr: New file.
53084         * lib/unistr/u8-mbtoucr.c: New file.
53085         * modules/unistr/u16-mbtoucr: New file.
53086         * lib/unistr/u16-mbtoucr.c: New file.
53087         * modules/unistr/u16-mbtoucr: New file.
53088         * lib/unistr/u16-mbtoucr.c: New file.
53089         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
53090
53091 2007-03-27  Simon Josefsson  <simon@josefsson.org>
53092             Bruno Haible  <bruno@clisp.org>
53093
53094         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
53095         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
53096         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
53097
53098         * m4/stdio_h.m4: Add stubs for vasprintf too.
53099
53100         * modules/stdio: Support vasprintf in sed command.
53101
53102         * modules/vasprintf: Depend on stdio for prototypes.  Remove
53103         vasprintf.h.  Add stdio module indicator.
53104
53105         * lib/stdio_.h: Declare asprintf and vasprintf, based on
53106         vasprintf.h.
53107
53108         * lib/vasprintf.h: File removed.
53109
53110         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
53111         * lib/vasprintf.c: Ditto.
53112         * lib/xvasprintf.c: Ditto.
53113         * tests/test-vasprintf-posix.c: Ditto.
53114         * tests/test-vasprintf.c: Ditto.
53115
53116 2007-03-27  Bruno Haible  <bruno@clisp.org>
53117
53118         Make vasnprintf multithread-safe.
53119         * lib/vasnprintf.c (decimal_point_char): New function.
53120         (VASNPRINTF): Use it.
53121         Suggested by Simon Josefsson.
53122
53123 2007-03-27  Eric Blake  <ebb9@byu.net>
53124
53125         Support sub-second birthtime on cygwin.
53126         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
53127         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
53128         (get_stat_birthtime): Also work with st_birthtim.
53129
53130 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
53131
53132         * lib/stat-time.h (USE_BIRTHTIME): Remove.
53133         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
53134         (get_stat_birthtime_ns): Do not try to use "spare" fields.
53135         (get_stat_birthtime_ns): Simplify compile-time tests.
53136         (get_stat_birthtime): Change the API to look like
53137         get_stat_mtime etc., except return a negative tv_nsec on error.
53138         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
53139         Don't check for "spare" fields.
53140         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
53141         or for struct stat.st_birthtime, as these tests aren't used.
53142         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
53143
53144 2007-03-27  Bruno Haible  <bruno@clisp.org>
53145
53146         * lib/stat-time.h: Include <sys/stat.h>.
53147
53148 2007-03-27  James Youngman  <jay@gnu.org>
53149
53150         * lib/stat-time.h (get_stat_birthtime): New function for
53151           retrieving st_birthtime as provided by UFS2 (hence *BSD).
53152         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
53153           and its variants.
53154         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
53155         * modules/stat-time-test: New file.
53156         * tests/test-stat-time.c: New test, devised by Bruno Haible.
53157
53158 2007-03-26  Bruno Haible  <bruno@clisp.org>
53159
53160         Better support of signalling NaNs.
53161         * lib/atanl.c: Include isnanl.h.
53162         (atanl): Perform test for NaN at the beginning of the function and
53163         through a call to isnanl.
53164         * lib/cosl.c: Include isnanl.h.
53165         (cosl): Perform test for NaN at the beginning of the function and
53166         through a call to isnanl.
53167         * lib/ldexpl.c: Include isnanl.h.
53168         (ldexpl): Perform test for NaN through a call to isnanl.
53169         * lib/logl.c: Include isnanl.h.
53170         (logl): Perform test for NaN at the beginning of the function and
53171         through a call to isnanl.
53172         * lib/sinl.c: Include isnanl.h.
53173         (sinl): Perform test for NaN at the beginning of the function and
53174         through a call to isnanl.
53175         * lib/sqrtl.c: Include isnanl.h.
53176         (sqrtl): Perform test for NaN at the beginning of the function and
53177         through a call to isnanl.
53178         * lib/tanl.c: Include isnanl.h.
53179         (tanl): Perform test for NaN at the beginning of the function and
53180         through a call to isnanl.
53181         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
53182         * modules/mathl (Depends-on): Add isnanl.
53183
53184 2007-03-26  Eric Blake  <ebb9@byu.net>
53185
53186         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
53187         regression in logic sense of previous patch.
53188
53189 2007-03-26  Bruno Haible  <bruno@clisp.org>
53190
53191         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
53192         unportable shell command "if ! ...".
53193         Reported by Ralf Wildenhues.
53194
53195 2007-03-25  Bruno Haible  <bruno@clisp.org>
53196
53197         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
53198         <sysexits.h> file, and only add EX_CONFIG.
53199         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
53200         absolute file name and whether it is sufficient. Substitute also
53201         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
53202         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
53203         ABSOLUTE_SYSEXITS_H into sysexits.h.
53204
53205 2007-03-25  Bruno Haible  <bruno@clisp.org>
53206
53207         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
53208         hints is NULL.
53209
53210 2007-03-25  Bruno Haible  <bruno@clisp.org>
53211
53212         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
53213         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
53214
53215 2007-03-25  Bruno Haible  <bruno@clisp.org>
53216
53217         * lib/vasnprintf.c: Include langinfo.h.
53218         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
53219         multithread-safe.
53220         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
53221         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
53222         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53223         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53224         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53225         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53226         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53227         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
53228         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53229         Reported by Simon Josefsson.
53230
53231 2007-03-25  Bruno Haible  <bruno@clisp.org>
53232
53233         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
53234         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
53235         * modules/vasnprintf (Depends-on): Add stdint.
53236
53237 2007-03-25  Bruno Haible  <bruno@clisp.org>
53238
53239         * modules/fpieee: New file.
53240         * m4/fpieee.m4: New file.
53241         * modules/isnan-nolibm (Depends-on): Add fpieee.
53242         * modules/isnanl-nolibm (Depends-on): Add fpieee.
53243         * modules/isnanl (Depends-on): Add fpieee.
53244
53245 2007-03-25  Bruno Haible  <bruno@clisp.org>
53246
53247         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
53248
53249 2007-03-25  Bruno Haible  <bruno@clisp.org>
53250
53251         Avoid test failures on IRIX 6.5.
53252         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
53253         (main): Use it.
53254         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
53255         macros.
53256         (main): Use them.
53257
53258 2007-03-25  Bruno Haible  <bruno@clisp.org>
53259
53260         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
53261         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
53262         exists but doesn't work.
53263         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
53264         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
53265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
53266         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
53267         math.h.
53268
53269 2007-03-25  Bruno Haible  <bruno@clisp.org>
53270
53271         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
53272         returns inf. Needed on IRIX 6.5.
53273
53274 2007-03-25  Bruno Haible  <bruno@clisp.org>
53275
53276         * tests/test-frexpl.c: Include isnanl-nolibm.h.
53277         (main): Use isnanl instead of x != x idiom.
53278         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
53279
53280         * tests/test-frexp.c: Include isnan.h.
53281         (main): Use isnan instead of x != x idiom.
53282         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
53283
53284 2007-03-25  Bruno Haible  <bruno@clisp.org>
53285
53286         * tests/test-frexp.c (NaN): New function/macro.
53287         (main): Use it instead of 0.0 / 0.0.
53288         * tests/test-isnan.c (NaN): New function/macro.
53289         (main): Use it instead of 0.0 / 0.0.
53290         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
53291         (test_function): Use it instead of 0.0 / 0.0.
53292         * tests/test-vasprintf-posix.c (NaN): New function/macro.
53293         (test_function): Use it instead of 0.0 / 0.0.
53294         * tests/test-snprintf-posix.h (NaN): New function/macro.
53295         (test_function): Use it instead of 0.0 / 0.0.
53296         * tests/test-sprintf-posix.h (NaN): New function/macro.
53297         (test_function): Use it instead of 0.0 / 0.0.
53298         * tests/test-fprintf-posix.h (NaN): New function/macro.
53299         (test_function): Use it instead of 0.0 / 0.0.
53300         * tests/test-printf-posix.h (NaN): New function/macro.
53301         (test_function): Use it instead of 0.0 / 0.0.
53302
53303         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
53304
53305 2007-03-25  Bruno Haible  <bruno@clisp.org>
53306
53307         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
53308
53309 2007-03-25  Bruno Haible  <bruno@clisp.org>
53310
53311         * lib/regexec.c (merge_state_with_log): Make static.
53312
53313 2007-03-25  Bruno Haible  <bruno@clisp.org>
53314
53315         * lib/trigl.c (kernel_rem_pio2): Make static.
53316
53317 2007-03-25  Bruno Haible  <bruno@clisp.org>
53318
53319         * lib/sincosl.c (sincosl_table): Make static.
53320
53321 2007-03-25  Bruno Haible  <bruno@clisp.org>
53322
53323         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
53324         if the compiler does not support C99.
53325
53326 2007-03-25  Bruno Haible  <bruno@clisp.org>
53327
53328         * modules/time (Makefile.am): Ensure all rule action lines start with a
53329         tab.
53330
53331 2007-03-24  Bruno Haible  <bruno@clisp.org>
53332
53333         * modules/tsearch-tests: New file.
53334         * tests/test-tsearch.sh: New file.
53335         * tests/test-tsearch.c: New file, mostly copied from glibc.
53336
53337         * modules/search-tests: New file.
53338         * tests/test-search.c: New file.
53339
53340         * modules/search: New file.
53341         * lib/search_.h: New file, incorporating lib/tsearch.h.
53342         * m4/search_h.m4: New file.
53343         * lib/tsearch.h: Remove file.
53344         * lib/tsearch.c: Include search.h instead of tsearch.h.
53345         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
53346         HAVE_TSEARCH.
53347         * modules/tsearch (Files): Remove lib/tsearch.h.
53348         (Depends-on): Add search.
53349         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
53350         (Include): Change tsearch.h into search.h.
53351
53352 2007-03-24  Bruno Haible  <bruno@clisp.org>
53353
53354         * modules/fpucw: New file.
53355         * lib/fpucw.h: New file.
53356         * lib/frexp.c: Include fpucw.h.
53357         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53358         (FUNC): Use them.
53359         * lib/printf-frexp.c: Include fpucw.h.
53360         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53361         (FUNC): Use them.
53362         * lib/vasnprintf.c: Include fpucw.h.
53363         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
53364         'long double' calculations.
53365         * tests/test-frexpl.c: Include fpucw.h.
53366         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53367         * tests/test-printf-frexpl.c: Include fpucw.h.
53368         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53369         * modules/frexpl (Depends-on): Add fpucw.
53370         * modules/printf-frexpl (Depends-on): Likewise.
53371         * modules/fprintf-posix (Depends-on): Likewise.
53372         * modules/snprintf-posix (Depends-on): Likewise.
53373         * modules/sprintf-posix (Depends-on): Likewise.
53374         * modules/vasnprintf-posix (Depends-on): Likewise.
53375         * modules/vasprintf-posix (Depends-on): Likewise.
53376         * modules/vfprintf-posix (Depends-on): Likewise.
53377         * modules/vsnprintf-posix (Depends-on): Likewise.
53378         * modules/vsprintf-posix (Depends-on): Likewise.
53379         * modules/frexpl-tests (Depends-on): Likewise.
53380         * modules/printf-frexpl-tests (Depends-on): Likewise.
53381
53382 2007-03-24  Bruno Haible  <bruno@clisp.org>
53383
53384         * lib/float+.h: New file.
53385         * lib/isnan.c: Include float+.h.
53386         (SIZE): New macro.
53387         (FUNC): Compare only SIZE bytes of the value.
53388         * lib/vasnprintf.c: Include float+.h.
53389         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
53390         SIZEOF_LDBL or SIZEOF_DBL bytes.
53391         * modules/isnan-nolibm (Files): Add lib/float+.h.
53392         * modules/isnanl-nolibm (Files): Add lib/float+.h.
53393         * modules/isnanl (Files): Add lib/float+.h.
53394         * modules/vasnprintf (Files): Add lib/float+.h.
53395
53396 2007-03-24  Bruno Haible  <bruno@clisp.org>
53397
53398         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
53399         include isnanl-nolibm.h.
53400
53401 2007-03-24  Bruno Haible  <bruno@clisp.org>
53402
53403         * tests/test-read-file.c (main): Don't produce spurious output for
53404         expected situations. Make the test fail if it encountered unexpected
53405         results.
53406
53407 2007-03-24  Bruno Haible  <bruno@clisp.org>
53408
53409         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
53410         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
53411
53412 2007-03-24  Bruno Haible  <bruno@clisp.org>
53413
53414         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
53415
53416 2007-03-24  Bruno Haible  <bruno@clisp.org>
53417
53418         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
53419         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
53420
53421         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
53422         * modules/utf8-ucs4: Turn into a symbolic link to module
53423         unistr/u8-mbtouc.
53424
53425         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
53426         utf8-ucs4-unsafe.
53427         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
53428         unistr/u8-mbtouc-unsafe.
53429
53430         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
53431         * modules/utf16-ucs4: Turn into a symbolic link to module
53432         unistr/u16-mbtouc.
53433
53434         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
53435         utf16-ucs4-unsafe.
53436         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
53437         unistr/u16-mbtouc-unsafe.
53438
53439         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
53440         * modules/ucs4-utf8: Turn into a symbolic link to module
53441         unistr/u8-ubtomb.
53442
53443         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
53444         * modules/ucs4-utf16: Turn into a symbolic link to module
53445         unistr/u16-ubtomb.
53446
53447 2007-03-24  Bruno Haible  <bruno@clisp.org>
53448
53449         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
53450         Enable the function only if HAVE_INLINE.
53451         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
53452         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53453         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
53454         Enable the function only if HAVE_INLINE.
53455         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
53456         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53457         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
53458         Enable the function only if HAVE_INLINE.
53459         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
53460         Enable the function only if HAVE_INLINE.
53461         * modules/utf8-ucs4: Update.
53462         * modules/utf8-ucs4-unsafe: Update.
53463         * modules/utf16-ucs4: Update.
53464         * modules/utf16-ucs4-unsafe: Update.
53465         * modules/ucs4-utf8: Update.
53466         * modules/ucs4-utf16: Update.
53467
53468 2007-03-24  Bruno Haible  <bruno@clisp.org>
53469
53470         * lib/utf8-ucs4.h: Remove file.
53471         * lib/utf8-ucs4-unsafe.h: Remove file.
53472         * lib/utf16-ucs4.h: Remove file.
53473         * lib/utf16-ucs4-unsafe.h: Remove file.
53474         * lib/ucs4-utf8.h: Remove file.
53475         * lib/ucs4-utf16.h: Remove file.
53476         * lib/unistr.h: Include their previous contents.
53477         * m4/utf-ucs4.m4: Remove file.
53478         * m4/ucs4-utf.m4: Remove file.
53479         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
53480         (Depends-on): Add unistr/base.
53481         (configure.ac): Remove gl_UTF_UCS4.
53482         (Makefile.am): Update.
53483         (Include): Change to unistr.h.
53484         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
53485         (Depends-on): Add unistr/base.
53486         (configure.ac): Remove gl_UTF_UCS4.
53487         (Makefile.am): Update.
53488         (Include): Change to unistr.h.
53489         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
53490         (Depends-on): Add unistr/base.
53491         (configure.ac): Remove gl_UTF_UCS4.
53492         (Makefile.am): Update.
53493         (Include): Change to unistr.h.
53494         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
53495         (Depends-on): Add unistr/base.
53496         (configure.ac): Remove gl_UTF_UCS4.
53497         (Makefile.am): Update.
53498         (Include): Change to unistr.h.
53499         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
53500         (Depends-on): Add unistr/base.
53501         (configure.ac): Remove gl_UCS4_UTF.
53502         (Makefile.am): Update.
53503         (Include): Change to unistr.h.
53504         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
53505         (Depends-on): Add unistr/base.
53506         (configure.ac): Remove gl_UCS4_UTF.
53507         (Makefile.am): Update.
53508         (Include): Change to unistr.h.
53509         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
53510         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
53511         utf8-ucs4-unsafe.h.
53512         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
53513         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
53514         utf16-ucs4-unsafe.h.
53515         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
53516         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
53517         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
53518         * lib/unistr/u8-strchr.c: Likewise.
53519         * lib/unistr/u8-strrchr.c: Likewise.
53520         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
53521         * lib/unistr/u16-strchr.c: Likewise.
53522         * lib/unistr/u16-strrchr.c: Likewise.
53523         * lib/striconveh.c: Update.
53524         * lib/linebreak.c: Update.
53525
53526 2007-03-24  Bruno Haible  <bruno@clisp.org>
53527
53528         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
53529         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
53530
53531 2007-03-22  Bruno Haible  <bruno@clisp.org>
53532
53533         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
53534
53535 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53536
53537         * MODULES.html.sh (File system functions): New module write-any-file.
53538         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
53539         * m4/write-any-file.m4: New files.
53540
53541 2007-03-23  Eric Blake  <ebb9@byu.net>
53542
53543         * gnulib-tool: Rearrange space-tab sequences, since some editors
53544         like to eat them.
53545
53546 2007-03-23  Eric Blake  <ebb9@byu.net>
53547
53548         * lib/version-etc.c (version_etc_va): Update license wording to
53549         be more concise.  Recommended by Richard Stallman.
53550
53551 2007-03-22  Bruno Haible  <bruno@clisp.org>
53552
53553         * lib/poll.c (MSG_PEEK): New fallback definition.
53554
53555 2007-03-22  Bruno Haible  <bruno@clisp.org>
53556
53557         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
53558         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
53559         (main): Update.
53560         Fixes a compilation error on BeOS.
53561
53562 2007-03-22  Bruno Haible  <bruno@clisp.org>
53563
53564         * modules/frexpl-tests: New file.
53565         * tests/test-frexpl.c: New file.
53566
53567         * modules/frexpl: New file.
53568         * m4/frexpl.m4: New file.
53569         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
53570         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
53571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
53572         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
53573         (Depends-on): Add frexpl. Remove isnanl-nolibm.
53574         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
53575
53576 2007-03-22  Bruno Haible  <bruno@clisp.org>
53577
53578         * lib/frexpl.c: Share code with lib/frexp.c.
53579         * modules/mathl (Files): Add lib/frexp.c.
53580         (Depends-on): Add isnanl-nolibm.
53581
53582 2007-03-22  Bruno Haible  <bruno@clisp.org>
53583
53584         * modules/printf-frexp (Files): Add m4/frexp.m4.
53585         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
53586         only if the found frexp function actually works.
53587
53588 2007-03-22  Bruno Haible  <bruno@clisp.org>
53589
53590         * lib/frexp.c: Remove older implementation that uses divisions.
53591
53592 2007-03-21  Bruno Haible  <bruno@clisp.org>
53593
53594         * modules/frexp-tests: New file.
53595         * tests/test-frexp.c: New file.
53596
53597         * modules/frexp: New file.
53598         * lib/frexp.c: New file.
53599         * m4/frexp.m4: New file.
53600         * lib/math_.h (frexp): New declaration.
53601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
53602         REPLACE_FREXP.
53603         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
53604
53605 2007-03-21  Bruno Haible  <bruno@clisp.org>
53606
53607         * modules/isnanl-tests: New file.
53608         * tests/test-isnanl.c: New file.
53609
53610         * modules/isnanl: New file.
53611         * lib/isnanl.h: New file.
53612         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
53613         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
53614         gl_FUNC_ISNANL_WORKS.
53615         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
53616         New macros.
53617
53618 2007-03-21  Bruno Haible  <bruno@clisp.org>
53619
53620         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
53621         lib/isnanl.h.
53622         (Include): Update.
53623         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
53624         * lib/vasnprintf.c: Update.
53625         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
53626         tests/test-isnanl.h, remove tests/test-isnanl.c.
53627         (Makefile.am): Update.
53628         * tests/test-isnanl-nolibm.c: New file.
53629         * tests/test-isnanl.h: New file.
53630         * tests/test-isnanl.c: Remove file.
53631
53632 2007-03-21  Jim Meyering  <jim@meyering.net>
53633
53634         When trying to open ".", treat ESTALE like EACCES.
53635         * lib/savewd.c (savewd_save): Resort to forking not just upon
53636         failure with EACCES, but also when errno is ESTALE.
53637
53638 2007-03-20  Bruno Haible  <bruno@clisp.org>
53639
53640         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
53641         Needed on AIX 5.1. Reported by Matthew Woehlke.
53642
53643 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53644
53645         Suggestions by Bruno Haible:
53646         * lib/acl-internal.h: Include "gettext.h" rather than rolling
53647         our own.
53648         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
53649         * modules/acl (Depends-on): Add gettext.
53650
53651 2007-03-19  Bruno Haible  <bruno@clisp.org>
53652
53653         * modules/iconvme: Remove file.
53654         * lib/iconvme.h: Remove file.
53655         * lib/iconvme.c: Remove file.
53656         * m4/iconvme.m4: Remove file.
53657
53658 2007-03-19  Bruno Haible  <bruno@clisp.org>
53659
53660         * doc/relocatable-maint.texi: Break long shell script line.
53661         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53662
53663 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53664
53665         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
53666         handle file_has_acl.
53667         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
53668         * lib/acl.c: Move header inclusions and related macro defns into
53669         lib/acl-internal.h.
53670         (S_ISLNK): Remove defn, since that's now done for us.
53671         (file_has_acl): Move to lib/file-has-acl.c.
53672         Call acl_trivial if available.  This is the crucial part of the fix.
53673         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
53674         shared within the library.  Rewrite a bit, partly to make it compatible
53675         with the GNU coding style.
53676         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
53677         Remove unnecessary double-quotes.
53678         Don't test for acl_to_text; the build will catch that.
53679         Replace acl_entries if it doesn't exist and it is needed.
53680         Check for -lsec and acl_trivial (as used on Solaris 10).
53681         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
53682         lib/file-has-acl.c.
53683         (Depends-on): Add sys_stat, for S_ISLNK.
53684
53685 2007-03-19  Ben Pfaff  <blp@gnu.org>
53686
53687         * doc/gnulib.texi: Fix typos.
53688         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53689
53690 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53691
53692         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
53693         If size is zero here, buf must be zero.
53694
53695 2007-03-19  Simon Josefsson  <simon@josefsson.org>
53696
53697         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
53698         <bruno@clisp.org>.
53699
53700 2007-03-18  Bruno Haible  <bruno@clisp.org>
53701
53702         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
53703         Suggested by Eric Blake.
53704
53705 2007-03-18  Ben Pfaff  <blp@gnu.org>
53706
53707         * doc/relocatable.texi: Recommend using as prefix a directory
53708         that does not exist and will never be created.  Based on
53709         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
53710         and others.
53711
53712 2007-03-17  Bruno Haible  <bruno@clisp.org>
53713
53714         * lib/fchownat.c: Include lchown.h.
53715
53716 2007-03-17  Bruno Haible  <bruno@clisp.org>
53717
53718         Fix endless loop when the given allocated size was > INT_MAX.
53719         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
53720         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
53721         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
53722         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
53723         * lib/sprintf.c (sprintf): Likewise.
53724
53725 2007-03-17  Bruno Haible  <bruno@clisp.org>
53726
53727         * tests/test-argp-2.sh (func_compare): Output a context diff.
53728
53729 2007-03-17  Bruno Haible  <bruno@clisp.org>
53730
53731         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
53732         locale's decimal-point character.
53733
53734 2007-03-17  Bruno Haible  <bruno@clisp.org>
53735
53736         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
53737         before comparing it. Needed because on some platforms (e.g. x86) a
53738         'long double' occupies less bytes than sizeof (long double).
53739
53740 2007-03-17  Bruno Haible  <bruno@clisp.org>
53741
53742         * tests/test-crc.c (main): Make printf statements 64-bit clean.
53743         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
53744         * tests/test-getaddrinfo.c (simple): Likewise.
53745         * tests/test-read-file.c (main): Likewise.
53746
53747 2007-03-17  Bruno Haible  <bruno@clisp.org>
53748
53749         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
53750
53751 2007-03-17  Bruno Haible  <bruno@clisp.org>
53752
53753         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
53754         unused variable.
53755
53756 2007-03-17  Bruno Haible  <bruno@clisp.org>
53757
53758         * tests/test-c-strcasecmp.c: Include c-strcase.h.
53759         * tests/test-c-strncasecmp.c: Likewise.
53760
53761 2007-03-17  Bruno Haible  <bruno@clisp.org>
53762
53763         * modules/stdlib (Depends-on): Add unistd.
53764         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
53765         Needed for MacOS X 10.3.
53766
53767 2007-03-17  Bruno Haible  <bruno@clisp.org>
53768
53769         * lib/unistr/u-strdup.h: Include <stdlib.h>.
53770
53771 2007-03-17  Bruno Haible  <bruno@clisp.org>
53772
53773         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
53774
53775 2007-03-17  Bruno Haible  <bruno@clisp.org>
53776
53777         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
53778         to reflect files copied from gnulib (with or without modifications).
53779         Suggested by Jim Meyering.
53780
53781 2007-03-17  Eric Blake  <ebb9@byu.net>
53782
53783         * NEWS: Document stdlib change from 2007-02-18.
53784
53785 2007-03-17  Jim Meyering  <jim@meyering.net>
53786
53787         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
53788         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
53789         someone uses a name containing shell meta-characters.
53790         Reported by Alfred M. Szmidt.
53791
53792         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
53793
53794 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53795
53796         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
53797         and copy gettext configuration files only if configure.ac contains
53798         a use of AM_GNU_GETTEXT_VERSION.
53799
53800 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53801
53802         * build-aux/bootstrap (gnulib_name): New variable.
53803         (gnulib_tool_options): Use it.
53804
53805 2007-03-13  Simon Josefsson  <simon@josefsson.org>
53806
53807         * tests/test-des.c: Use new namespace.
53808
53809 2007-03-15  Bruno Haible  <bruno@clisp.org>
53810
53811         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
53812         Reported by James Youngman <jay@gnu.org>.
53813
53814 2007-03-15  Bruno Haible  <bruno@clisp.org>
53815
53816         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
53817         declared prototype. Needed with cc on OSF/1 5.1.
53818
53819 2007-03-15  Bruno Haible  <bruno@clisp.org>
53820
53821         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
53822         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
53823         (struct gl_list_implementation): Add dispose_fn argument to the
53824         'create_empty', 'create' methods.
53825         (struct gl_list_impl_base): Add field 'dispose_fn'.
53826         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
53827         argument.
53828         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
53829         dispose_fn argument.
53830         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
53831         dispose_fn on the dropped values.
53832         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
53833         dispose_fn argument.
53834         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
53835         dropped values.
53836         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
53837         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53838         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
53839         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53840         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
53841         argument.
53842         (gl_tree_list_free): Call dispose_fn on the dropped values.
53843         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
53844         the dropped values.
53845         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53846         Add dispose_fn argument.
53847         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
53848         Call dispose_fn on the dropped values.
53849         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
53850         Add dispose_fn argument.
53851         (gl_sublist_create): Initialize the 'dispose_fn' field.
53852         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
53853         * tests/test-array_list.c (main): Update.
53854         * tests/test-carray_list.c (main): Update.
53855         * tests/test-avltree_list.c (main): Update.
53856         * tests/test-rbtree_list.c (main): Update.
53857         * tests/test-avltreehash_list.c (main): Update.
53858         * tests/test-rbtreehash_list.c (main): Update.
53859         * tests/test-linked_list.c (main): Update.
53860         * tests/test-linkedhash_list.c (main): Update.
53861         * tests/test-array_oset.c (main): Update.
53862
53863 2007-03-15  Bruno Haible  <bruno@clisp.org>
53864
53865         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
53866         (gl_oset_create_empty): Add dispose_fn argument.
53867         (struct gl_oset_implementation): Add dispose_fn argument to
53868         'create_empty' method.
53869         (struct gl_oset_impl_base): Add dispose_fn field.
53870         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
53871         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
53872         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
53873         values.
53874         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
53875         (gl_tree_oset_free): Call dispose_fn on the dropped values.
53876         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53877         dropped value.
53878         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53879         dropped value.
53880         * tests/test-array_oset.c (main): Update.
53881         * tests/test-avltree_oset.c (main): Update.
53882         * tests/test-rbtree_oset.c (main): Update.
53883         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
53884
53885 2007-03-13  Bruno Haible  <bruno@clisp.org>
53886
53887         * tests/test-stdbool.c (i): Update after last patch.
53888
53889 2007-03-12  Bruno Haible  <bruno@clisp.org>
53890
53891         * lib/quotearg.c: Include <wctype.h> early, before the definition of
53892         the iswprint macro. Needed on Solaris 2.5.1.
53893
53894 2007-03-12  Bruno Haible  <bruno@clisp.org>
53895
53896         * tests/test-printf-frexp.c (main): Declare x as volatile.
53897
53898 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53899
53900         * doc/gnulib.texi (Build robot for gnulib): New section.
53901
53902 2007-03-12  Jim Meyering  <jim@meyering.net>
53903
53904         * build-aux/bootstrap: New file.
53905         * build-aux/bootstrap.conf: New file, from coreutils.
53906
53907 2007-03-11  Bruno Haible  <bruno@clisp.org>
53908
53909         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
53910
53911 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53912
53913         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
53914         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
53915         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
53916
53917 2007-03-11  Bruno Haible  <bruno@clisp.org>
53918
53919         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
53920         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
53921
53922 2007-03-11  Bruno Haible  <bruno@clisp.org>
53923
53924         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
53925         formula. Needed for SunPRO C 5.0.
53926
53927 2007-03-11  Bruno Haible  <bruno@clisp.org>
53928
53929         * modules/long-options (Depends-on): Add getopt.
53930
53931 2007-03-11  Bruno Haible  <bruno@clisp.org>
53932
53933         * modules/modechange (Depends-on): Add stdbool.
53934
53935 2007-03-11  Bruno Haible  <bruno@clisp.org>
53936
53937         * modules/i-ring (Depends-on): Add stdbool.
53938
53939 2007-03-11  Bruno Haible  <bruno@clisp.org>
53940
53941         * modules/gc-des (Depends-on): Add stdbool.
53942
53943 2007-03-11  Bruno Haible  <bruno@clisp.org>
53944
53945         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
53946
53947 2007-03-11  Bruno Haible  <bruno@clisp.org>
53948
53949         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
53950
53951 2007-03-11  Bruno Haible  <bruno@clisp.org>
53952
53953         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
53954
53955 2007-03-11  Bruno Haible  <bruno@clisp.org>
53956
53957         * lib/vasnprintf.c (sprintf): Undefine.
53958
53959 2007-03-11  Bruno Haible  <bruno@clisp.org>
53960
53961         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
53962         initializers in SunPRO C and Compaq C compilers.
53963
53964 2007-03-11  Bruno Haible  <bruno@clisp.org>
53965
53966         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
53967         decrementing code ANSI C compliant.
53968
53969 2007-03-11  Bruno Haible  <bruno@clisp.org>
53970
53971         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
53972         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
53973
53974 2007-03-11  Bruno Haible  <bruno@clisp.org>
53975
53976         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
53977         <stdbool.h> substitute doesn't pass.
53978
53979 2007-03-11  Bruno Haible  <bruno@clisp.org>
53980
53981         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
53982
53983 2007-03-11  Bruno Haible  <bruno@clisp.org>
53984
53985         * gnulib-tool (func_create_megatestdir): Create also an autobuild
53986         script, for submission to autobuild.josefsson.org.
53987
53988 2007-03-10  Bruno Haible  <bruno@clisp.org>
53989
53990         * modules/canonicalize-lgpl-tests: New file.
53991         * tests/test-canonicalize-lgpl.sh: New file.
53992         * tests/test-canonicalize-lgpl.c: New file.
53993
53994         * modules/c-strcase-tests: New file.
53995         * tests/test-c-strcase.sh: New file.
53996         * tests/test-c-strcasecmp.c: New file.
53997         * tests/test-c-strncasecmp.c: New file.
53998
53999         * modules/atexit-tests: New file.
54000         * tests/test-atexit.sh: New file.
54001         * tests/test-atexit.c: New file.
54002
54003 2007-03-10  Bruno Haible  <bruno@clisp.org>
54004
54005         * tests/test-binary-io.sh: Use temporary filenames that are not so
54006         likely to clash with those of other tests (in a parallel make).
54007         * tests/test-binary-io.c: Likewise.
54008
54009 2007-03-10  Bruno Haible  <bruno@clisp.org>
54010
54011         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
54012         fallback; use #error instead.
54013         Suggested by Simon Josefsson.
54014
54015 2007-03-10  Bruno Haible  <bruno@clisp.org>
54016
54017         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
54018         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
54019         first and the last.
54020
54021 2007-03-10  Bruno Haible  <bruno@clisp.org>
54022
54023         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
54024
54025 2007-03-10  Bruno Haible  <bruno@clisp.org>
54026
54027         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
54028         "make distcheck".
54029         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
54030         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
54031         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
54032
54033 2007-03-10  Bruno Haible  <bruno@clisp.org>
54034
54035         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
54036         variable.
54037         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
54038         variable.
54039
54040 2007-03-09  Eric Blake  <ebb9@byu.net>
54041         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
54042
54043         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
54044         types are not being provided by gnulib.
54045         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
54046         types are supported.
54047
54048 2007-03-10  Bruno Haible  <bruno@clisp.org>
54049
54050         * lib/stdio_.h (__attribute__): New macro.
54051         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
54052         vsprintf): Specify __attribute__ __format__ for GCC.
54053         Suggested by Eric Blake.
54054
54055 2007-03-09  Bruno Haible  <bruno@clisp.org>
54056
54057         * modules/printf-posix-tests: New file.
54058         * tests/test-printf-posix.sh: New file.
54059         * tests/test-printf-posix.c: New file.
54060
54061         * modules/printf-posix: New file.
54062         * lib/printf.c: New file.
54063         * m4/printf-posix-rpl.m4: New file.
54064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
54065         REPLACE_PRINTF.
54066         * lib/stdio_.h (printf): New declaration.
54067         (format, __format__, ____printf____, ____scanf____, ____strftime____,
54068         ____strfmon____): New macros.
54069         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
54070         REPLACE_PRINTF.
54071
54072 2007-03-09  Bruno Haible  <bruno@clisp.org>
54073
54074         * tests/test-vasnprintf-posix2.sh: New file.
54075         * tests/test-vasnprintf-posix2.c: New file.
54076         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
54077         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
54078         (Makefile.am): Activate test-vasnprintf-posix2.sh.
54079
54080         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
54081         a locale dependent decimal point, rather than always '.'.
54082
54083 2007-03-09  Eric Blake  <ebb9@byu.net>
54084
54085         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
54086         spite of platforms like Tandem/NSK that define it to -1.
54087
54088 2007-03-08  Bruno Haible  <bruno@clisp.org>
54089
54090         * modules/vprintf-posix-tests: New file.
54091         * tests/test-vprintf-posix.sh: New file.
54092         * tests/test-vprintf-posix.c: New file.
54093         * tests/test-printf-posix.h: New file.
54094
54095         * modules/vprintf-posix: New file.
54096         * lib/vprintf.c: New file.
54097         * m4/vprintf-posix.m4: New file.
54098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
54099         REPLACE_VPRINTF.
54100         * lib/stdio_.h (vprintf): New declaration.
54101         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
54102         REPLACE_VPRINTF.
54103
54104 2007-03-08  Bruno Haible  <bruno@clisp.org>
54105
54106         * modules/fprintf-posix-tests: New file.
54107         * tests/test-fprintf-posix.sh: New file.
54108         * tests/test-fprintf-posix.c: New file.
54109
54110         * modules/fprintf-posix: New file.
54111         * lib/fprintf.c: New file.
54112         * m4/fprintf-posix.m4: New file.
54113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
54114         REPLACE_FPRINTF.
54115         * lib/stdio_.h (fprintf): New declaration.
54116         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
54117         REPLACE_FPRINTF.
54118
54119 2007-03-08  Bruno Haible  <bruno@clisp.org>
54120
54121         * modules/vfprintf-posix-tests: New file.
54122         * tests/test-vfprintf-posix.sh: New file.
54123         * tests/test-vfprintf-posix.c: New file.
54124         * tests/test-fprintf-posix.h: New file.
54125         * tests/test-fprintf-posix.out: New file.
54126
54127         * modules/vfprintf-posix: New file.
54128         * lib/vfprintf.c: New file.
54129         * m4/vfprintf-posix.m4: New file.
54130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
54131         REPLACE_VFPRINTF.
54132         * lib/stdio_.h (vfprintf): New declaration.
54133         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
54134         REPLACE_VFPRINTF.
54135
54136 2007-03-08  Bruno Haible  <bruno@clisp.org>
54137
54138         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
54139
54140 2007-03-08  Bruno Haible  <bruno@clisp.org>
54141
54142         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
54143         instead of 'expr' invocations.
54144         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54145         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54146         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54147         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54148         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54149         Suggested by Paul Eggert.
54150
54151 2007-03-08  Bruno Haible  <bruno@clisp.org>
54152
54153         * modules/fseterr-tests: New file.
54154         * tests/test-fseterr.c: New file.
54155
54156         * modules/fseterr: New file.
54157         * lib/fseterr.h: New file.
54158         * lib/fseterr.c: New file.
54159
54160 2007-03-08  Bruno Haible  <bruno@clisp.org>
54161
54162         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
54163         * lib/getopt_.h: Likewise.
54164         * lib/mbswidth.h: Likewise.
54165         * lib/setenv.h: Likewise.
54166         * lib/vasnprintf.h: Likewise.
54167         * lib/vasprintf.h: Likewise.
54168         * lib/verror.h: Likewise.
54169         * lib/xsetenv.h: Likewise.
54170         * lib/xvasprintf.h: Likewise.
54171
54172 2007-03-08  Jim Meyering  <jim@meyering.net>
54173
54174         * users.txt: Add parted.
54175
54176         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
54177
54178 2007-03-07  Bruno Haible  <bruno@clisp.org>
54179
54180         * m4/printf.m4: Make the shell script snippets copy&pastable.
54181
54182 2007-03-02  Bruno Haible  <bruno@clisp.org>
54183
54184         * lib/netinet_in_.h: New file.
54185         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
54186         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
54187         * modules/netinet_in (Files): Add lib/netinet_in_.h.
54188         (Depends-on): Add absolute-header.
54189         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
54190         into netinet/in.h.
54191
54192 2007-03-03  Bruno Haible  <bruno@clisp.org>
54193
54194         * lib/sys_select_.h: New file.
54195         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
54196         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
54197         * modules/sys_select (Files): Add lib/sys_select_.h.
54198         (Depends-on): Add absolute-header.
54199         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
54200         into sys/select.h.
54201
54202 2007-03-02  Bruno Haible  <bruno@clisp.org>
54203
54204         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
54205         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
54206         values.
54207         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
54208         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
54209         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
54210         * modules/sys_socket (Depends-on): Add absolute-header.
54211         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
54212         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
54213         (Include): Remove requirement of inclusion of <sys/types.h>.
54214
54215 2007-03-02  Bruno Haible  <bruno@clisp.org>
54216
54217         * lib/byteswap_.h (bswap_32): Fix formula.
54218
54219 2007-03-06  Bruno Haible  <bruno@clisp.org>
54220
54221         * modules/sprintf-posix-tests: New file.
54222         * tests/test-sprintf-posix.c: New file.
54223
54224         * modules/sprintf-posix: New file.
54225         * lib/sprintf.c: New file.
54226         * m4/sprintf-posix.m4: New file.
54227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
54228         REPLACE_SPRINTF.
54229         * lib/stdio_.h (sprintf): New declaration.
54230         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
54231         REPLACE_SPRINTF.
54232
54233 2007-03-06  Bruno Haible  <bruno@clisp.org>
54234
54235         * modules/vsprintf-posix-tests: New file.
54236         * tests/test-vsprintf-posix.c: New file.
54237         * tests/test-sprintf-posix.h: New file.
54238
54239         * modules/vsprintf-posix: New file.
54240         * lib/vsprintf.c: New file.
54241         * m4/vsprintf-posix.m4: New file.
54242         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
54243         REPLACE_VSPRINTF.
54244         * lib/stdio_.h (vsprintf): New declaration.
54245         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
54246         REPLACE_VSPRINTF.
54247
54248 2007-03-06  Bruno Haible  <bruno@clisp.org>
54249
54250         * modules/vsnprintf (Depend-on): Remove minmax.
54251
54252 2007-03-06  Bruno Haible  <bruno@clisp.org>
54253
54254         * modules/snprintf-posix-tests: New file.
54255         * tests/test-snprintf-posix.c: New file.
54256
54257         * modules/snprintf-posix: New file.
54258         * m4/snprintf-posix.m4: New file.
54259         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
54260         gl_FUNC_SNPRINTF.
54261         (gl_FUNC_SNPRINTF): Invoke it.
54262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
54263         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
54264         is set.
54265         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
54266
54267 2007-03-06  Bruno Haible  <bruno@clisp.org>
54268
54269         * modules/vsnprintf-posix-tests: New file.
54270         * tests/test-vsnprintf-posix.c: New file.
54271         * tests/test-snprintf-posix.h: New file.
54272
54273         * modules/vsnprintf-posix: New file.
54274         * m4/vsnprintf-posix.m4: New file.
54275         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
54276         gl_FUNC_VSNPRINTF.
54277         (gl_FUNC_VSNPRINTF): Invoke it.
54278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
54279         * lib/stdio_.h (vsnprintf): Define as a replacement if
54280         REPLACE_VSNPRINTF is set.
54281         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
54282
54283 2007-03-06  Bruno Haible  <bruno@clisp.org>
54284
54285         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
54286         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
54287
54288 2007-03-06  Bruno Haible  <bruno@clisp.org>
54289
54290         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
54291         (asinl): Declare also if HAVE_DECL_ASINL is set.
54292         (atanl): Declare also if HAVE_DECL_ATANL is set.
54293         (ceill): Declare also if HAVE_DECL_CEILL is set.
54294         (cosl): Declare also if HAVE_DECL_COSL is set.
54295         (expl): Declare also if HAVE_DECL_EXPL is set.
54296         (floorl): Declare also if HAVE_DECL_FLOORL is set.
54297         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
54298         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
54299         (logl): Declare also if HAVE_DECL_LOGL is set.
54300         (sinl): Declare also if HAVE_DECL_SINL is set.
54301         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
54302         (tanl): Declare also if HAVE_DECL_TANL is set.
54303         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
54304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
54305         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
54306         declaration of frexpl, ldexpl.
54307         * modules/printf-frexpl (Depends-on): Add math.
54308         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
54309
54310 2007-03-05  Bruno Haible  <bruno@clisp.org>
54311
54312         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
54313         frexpl and ldexpl are declared.
54314         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
54315
54316 2007-03-05  Bruno Haible  <bruno@clisp.org>
54317
54318         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
54319         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
54320
54321 2007-03-05  Bruno Haible  <bruno@clisp.org>
54322
54323         * lib/stdio_.h: Include <stddef.h>.
54324
54325 2007-03-05  Bruno Haible  <bruno@clisp.org>
54326
54327         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
54328
54329 2007-03-05  Bruno Haible  <bruno@clisp.org>
54330
54331         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
54332         NetBSD 4, from Ralf Wildenhues.
54333
54334 2007-03-04  Bruno Haible  <bruno@clisp.org>
54335
54336         * lib/vasprintf.h: Update #if logic for the case when the functions
54337         exist but are overridden.
54338
54339 2007-03-04  Bruno Haible  <bruno@clisp.org>
54340
54341         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
54342         implementations: glibc-2.4 and MacOS X 10.3.
54343         * tests/test-vasnprintf-posix.c (test_function): Test also the case
54344         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
54345         * tests/test-vasprintf-posix.c (test_function): Likewise.
54346
54347 2007-03-04  Bruno Haible  <bruno@clisp.org>
54348
54349         * modules/vasprintf-posix-tests: New file.
54350         * tests/test-vasprintf-posix.c: New file.
54351
54352         * modules/vasprintf-posix: New file.
54353         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
54354         defined.
54355         * m4/vasprintf-posix.m4: New file.
54356         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
54357         gl_FUNC_VASPRINTF.
54358         (gl_FUNC_VASPRINTF): Invoke it.
54359         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
54360         here.
54361         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
54362
54363 2007-03-04  Bruno Haible  <bruno@clisp.org>
54364
54365         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
54366         REPLACE_GETTIMEOFDAY.
54367         * modules/sys_time (Makefile.am): Likewise.
54368         * m4/sys_time_h.m4: Likewise.
54369         * m4/gettimeofday.m4: Likewise.
54370
54371 2007-03-04  Bruno Haible  <bruno@clisp.org>
54372
54373         * modules/vasnprintf-posix-tests: New file.
54374         * tests/test-vasnprintf-posix.c: New file.
54375
54376         * modules/vasnprintf-posix: New file.
54377         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
54378         printf-frexpl.h.
54379         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
54380         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
54381         REPLACE_VASNPRINTF is defined.
54382         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
54383         gl_FUNC_VASNPRINTF.
54384         (gl_FUNC_VASNPRINTF): Invoke it.
54385         * m4/vasnprintf-posix.m4: New file.
54386         * m4/printf.m4: New file.
54387
54388 2007-03-04  Bruno Haible  <bruno@clisp.org>
54389
54390         Compile progreloc.c only if --enable-relocatable is specified.
54391         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
54392         if --enable-relocatable was specified.
54393         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
54394         lib_SOURCES.
54395
54396 2007-03-04  Jim Meyering  <jim@meyering.net>
54397
54398         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
54399         Use it consistently, rather than enumerating errno constants.
54400
54401 2007-03-04  Bruno Haible  <bruno@clisp.org>
54402
54403         * modules/xvasprintf-tests: New file.
54404         * tests/test-xvasprintf.c: New file.
54405
54406         * modules/vasprintf-tests: New file.
54407         * tests/test-vasprintf.c: New file.
54408
54409         * modules/vasnprintf-tests: New file.
54410         * tests/test-vasnprintf.c: New file.
54411
54412         * modules/vsnprintf-tests: New file.
54413         * tests/test-vsnprintf.c: New file.
54414
54415         * modules/snprintf-tests: New file.
54416         * tests/test-snprintf.c: New file.
54417
54418 2007-03-04  Bruno Haible  <bruno@clisp.org>
54419
54420         Compile relocatable.c only if --enable-relocatable is specified.
54421         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
54422         gl_RELOCATABLE_LIBRARY.
54423         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
54424         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
54425         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
54426         gl_RELOCATABLE_LIBRARY.
54427         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
54428         (Makefile.am): Remove lib_SOURCES.
54429         * modules/relocatable-lib-lgpl (configure.ac): Invoke
54430         gl_RELOCATABLE_LIBRARY.
54431         (Makefile.am): Remove lib_SOURCES.
54432         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
54433         always.
54434         * modules/relocatable-prog-wrapper (configure.ac): Invoke
54435         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
54436
54437 2007-03-04  Bruno Haible  <bruno@clisp.org>
54438
54439         * modules/argmatch-tests: New file.
54440         * tests/test-argmatch.c: New file.
54441
54442         * tests/test-allocsa.c (main): Halve the number of loop runs.
54443
54444         * modules/alloca-opt-tests: New file.
54445         * tests/test-alloca-opt.c: New file.
54446
54447 2007-03-04  Jim Meyering  <jim@meyering.net>
54448
54449         Work around difference between Linux ACLs and Solaris 10 ZFS.
54450         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
54451         for EINVAL.
54452
54453 2007-03-03  Bruno Haible  <bruno@clisp.org>
54454
54455         * modules/relocatable-prog (Depends-on): Add back progreloc's
54456         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
54457
54458 2007-03-03  Bruno Haible  <bruno@clisp.org>
54459
54460         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
54461         * modules/relocatable-lib: New file.
54462
54463 2007-03-03  Bruno Haible  <bruno@clisp.org>
54464
54465         * modules/relocatable-prog: Renamed from modules/relocatable.
54466         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
54467
54468 2007-03-03  Bruno Haible  <bruno@clisp.org>
54469
54470         * modules/relocatable-script (Files): Add doc/relocatable.texi,
54471         m4/relocatable-lib.m4.
54472         (Depends-on): Remove 'relocatable'.
54473         (configure.ac): Add gl_RELOCATABLE_NOP.
54474
54475 2007-03-03  Bruno Haible  <bruno@clisp.org>
54476
54477         * modules/relocatable-prog-wrapper: New file.
54478         * modules/relocatable (Depends-on): Add it. Remove all other
54479         dependencies except progname.
54480         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
54481
54482         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
54483         (gl_FUNC_STRERROR): Nop.
54484         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
54485
54486         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
54487         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
54488
54489         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
54490         (gl_FUNC_READLINK): Update.
54491
54492         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
54493
54494 2007-03-03  Bruno Haible  <bruno@clisp.org>
54495
54496         * lib/xreadlink.c: Include <unistd.h> unconditionally.
54497         * modules/xreadlink (Depends-on): Add unistd.
54498         * modules/xreadlink-with-size (Depends-on): Likewise.
54499
54500 2007-03-03  Bruno Haible  <bruno@clisp.org>
54501
54502         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
54503         extracted from gt_FUNC_SETENV.
54504         (gt_FUNC_SETENV): Remove macro.
54505         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
54506         remove gt_FUNC_SETENV.
54507
54508 2007-03-03  Bruno Haible  <bruno@clisp.org>
54509
54510         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
54511         ENABLE_RELOCATABLE here.
54512         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
54513
54514 2007-03-03  Bruno Haible  <bruno@clisp.org>
54515
54516         * modules/rbtreehash-list-tests (Depends-on): Add progname.
54517         * tests/test-rbtreehash_list.c: Include progname.h.
54518         (main): Call set_program_name.
54519
54520         * modules/rbtree-oset-tests (Depends-on): Add progname.
54521         * tests/test-rbtree_oset.c: Include progname.h.
54522         (main): Call set_program_name.
54523
54524         * modules/rbtree-list-tests (Depends-on): Add progname.
54525         * tests/test-rbtree_list.c: Include progname.h.
54526         (main): Call set_program_name.
54527
54528         * modules/linked-list-tests (Depends-on): Add progname.
54529         * tests/test-linked_list.c: Include progname.h.
54530         (main): Call set_program_name.
54531
54532 2007-03-03  Bruno Haible  <bruno@clisp.org>
54533
54534         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
54535         All uses of __restrict changed to _Restrict_.
54536         * lib/glob_.h (__restrict): Remove macro.
54537
54538 2007-03-02  Bruno Haible  <bruno@clisp.org>
54539
54540         * modules/gettext (configure.ac): Require gettext infrastructure
54541         from version 0.16.1.
54542
54543 2007-03-02  Bruno Haible  <bruno@clisp.org>
54544
54545         * modules/linkedhash-list-tests (Depends-on): Add progname.
54546         * tests/test-linkedhash_list.c: Include progname.h.
54547         (main): Call set_program_name.
54548
54549         * modules/carray-list-tests (Depends-on): Add progname.
54550         * tests/test-carray_list.c: Include progname.h.
54551         (main): Call set_program_name.
54552
54553         * modules/avltreehash-list-tests (Depends-on): Add progname.
54554         * tests/test-avltreehash_list.c: Include progname.h.
54555         (main): Call set_program_name.
54556
54557         * modules/avltree-oset-tests (Depends-on): Add progname.
54558         * tests/test-avltree_oset.c: Include progname.h.
54559         (main): Call set_program_name.
54560
54561         * modules/avltree-list-tests (Depends-on): Add progname.
54562         * tests/test-avltree_list.c: Include progname.h.
54563         (main): Call set_program_name.
54564
54565         * modules/array-oset-tests (Depends-on): Add progname.
54566         * tests/test-array_oset.c: Include progname.h.
54567         (main): Call set_program_name.
54568
54569         * modules/array-list-tests (Depends-on): Add progname.
54570         * tests/test-array_list.c: Include progname.h.
54571         (main): Call set_program_name.
54572
54573         * modules/argp-tests (Depends-on): Add progname.
54574         * tests/test-argp.c: Include argp.h first. Include progname.h.
54575         (main): Call set_program_name.
54576
54577 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
54578
54579         * doc/gnulib-tool.texi (Initial import): Reword description of
54580         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
54581         limited effect even if defined after the first system include.
54582
54583 2007-03-01  Bruno Haible  <bruno@clisp.org>
54584
54585         * build-aux/config.libpath: Update to libtool-1.5.22.
54586         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54587
54588 2007-03-01  Bruno Haible  <bruno@clisp.org>
54589
54590         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
54591         foo_CFLAGS.
54592         Reported by Ralf Wildenhues.
54593
54594 2007-03-01  Bruno Haible  <bruno@clisp.org>
54595
54596         * build-aux/install-reloc: Remove object files left over by some
54597         compilers.
54598         Reported by Ralf Wildenhues.
54599
54600 2007-03-01  Bruno Haible  <bruno@clisp.org>
54601
54602         * build-aux/install-reloc: Break long lines.
54603
54604 2007-03-01  Bruno Haible  <bruno@clisp.org>
54605
54606         * doc/relocatable.texi: Document that it may not work on OpenBSD.
54607         Reported by Ralf Wildenhues.
54608
54609 2007-03-01  Bruno Haible  <bruno@clisp.org>
54610
54611         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
54612         include ordering constraints.
54613
54614 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54615
54616         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
54617         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
54618         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
54619         as another example.
54620         * lib/time_.h: Fix misspelling.
54621         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54622         Require gl_HEADER_TIME_H_DEFAULTS.
54623         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
54624         * m4/time_r.m4 (gl_TIME_R): Likewise.
54625         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
54626
54627 2007-03-01  Bruno Haible  <bruno@clisp.org>
54628
54629         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
54630         * m4/utimens.m4 (gl_UTIMENS): Likewise.
54631
54632 2007-03-01  Jim Meyering  <jim@meyering.net>
54633
54634         * modules/xreadlink (Maintainer): Add my name.
54635         * modules/xreadlink-with-size (Depends-on): Alphabetize.
54636
54637 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
54638             Bruno Haible  <bruno@clisp.org>
54639
54640         * build-aux/install-reloc: Compile also c-ctype.c.
54641         * build-aux/relocatable.sh.in: New file.
54642         * doc/relocatable.texi: New file.
54643         * doc/relocatable-maint.texi: New file.
54644         * doc/gnulib.texi: Include relocatable-maint.texi.
54645         * lib/progreloc.c: Include unistd.h unconditionally.
54646         * lib/relocwrapper.c: Include unistd.h unconditionally.
54647         Include c-ctype.h.
54648         (add_dotbin): Use c_tolower.
54649         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
54650         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
54651         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
54652         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
54653         to m4/relocatable-lib.m4.
54654         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
54655         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
54656         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
54657         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
54658         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
54659         * modules/relocatable: New file.
54660         * modules/relocatable-lib: New file.
54661         * modules/relocatable-script: New file.
54662
54663 2007-02-28  Bruno Haible  <bruno@clisp.org>
54664
54665         Import --enable-relocatable infrastructure.
54666         * build-aux/config.libpath: New file, from GNU gettext.
54667         * build-aux/install-reloc: New file, from GNU gettext.
54668         * build-aux/reloc-ldflags: New file, from GNU gettext.
54669         * lib/relocatable.h: New file, from GNU gettext.
54670         * lib/relocatable.c: New file, from GNU gettext.
54671         * lib/relocwrapper.c: New file, from GNU gettext.
54672         * m4/relocatable.m4: New file, from GNU gettext.
54673
54674 2007-02-28  Bruno Haible  <bruno@clisp.org>
54675
54676         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
54677
54678         * modules/xreadlink: New file, from GNU gettext with modifications.
54679         * lib/xreadlink.c: New file, from GNU gettext.
54680         * lib/xreadlink.h: Add comments.
54681         (xreadlink): New declaration.
54682
54683         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
54684         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
54685         lib/xreadlink-with-size.c.
54686         (configure.ac): Remove gl_XREADLINK invocation.
54687         (Makefile.am): Augment lib_SOURCES.
54688         * m4/xreadlink.m4: Remove file.
54689         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
54690         (xreadlink_with_size): Renamed from xreadink.
54691         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
54692         * modules/canonicalize (Depends-on): Replace xreadlink with
54693         xreadlink-with-size.
54694         * lib/canonicalize.c (canonicalize_filename_mode): Update.
54695
54696 2007-02-25  Jim Meyering  <jim@meyering.net>
54697
54698         * build-aux/announce-gen: When complaining about excess arguments,
54699         list them.
54700
54701 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54702
54703         * README: Document signed integer overflow situation more
54704         accurately.
54705
54706 2007-02-25  Bruno Haible  <bruno@clisp.org>
54707
54708         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
54709         'a' or 'A' conversion.
54710
54711 2007-02-25  Bruno Haible  <bruno@clisp.org>
54712
54713         * modules/filename: Renamed from modules/pathname.
54714         (Files): Replace lib/pathname.h with lib/filename.h. Replace
54715         lib/concatpath.c with lib/concat-filename.c.
54716         (Makefile.am): Update.
54717         (Include): Replace pathname.h with filename.h.
54718         * lib/filename.h: Renamed from lib/pathname.h.
54719         (concatenated_filename): Renamed from concatenated_pathname.
54720         * lib/concat-filename.c: Renamed from lib/concatpath.c.
54721         (concatenated_filename): Renamed from concatenated_pathname.
54722         * lib/findprog.c: Include filename.h instead of pathname.h.
54723         (find_in_path): Update.
54724         * lib/javacomp.c: Include filename.h instead of pathname.h.
54725         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54726         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54727         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54728         is_oldgcj_14_13_usable, is_javac_usable): Update.
54729         * lib/javaexec.c: Include filename.h instead of pathname.h.
54730         (execute_java_class): Update.
54731         * modules/findprog: Update.
54732         * modules/javacomp: Update.
54733         * modules/javaexec: Update.
54734         * MODULES.html.sh (File system functions): Add 'filename', remove
54735         'pathname'.
54736
54737 2007-02-25  Bruno Haible  <bruno@clisp.org>
54738
54739         * modules/printf-frexpl-tests: New file.
54740         * tests/test-printf-frexpl.c: New file.
54741
54742         * modules/printf-frexpl: New file.
54743         * lib/printf-frexpl.h: New file.
54744         * lib/printf-frexpl.c: New file.
54745         * m4/printf-frexpl.m4: New file.
54746
54747 2007-02-25  Bruno Haible  <bruno@clisp.org>
54748
54749         * modules/printf-frexp-tests: New file.
54750         * tests/test-printf-frexp.c: New file.
54751
54752         * modules/printf-frexp: New file.
54753         * lib/printf-frexp.h: New file.
54754         * lib/printf-frexp.c: New file.
54755         * m4/printf-frexp.m4: New file.
54756
54757 2007-02-25  Bruno Haible  <bruno@clisp.org>
54758
54759         Assume automake >= 1.10 for the tests.
54760         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
54761         * modules/arctwo-tests: Likewise.
54762         * modules/argp-tests: Likewise.
54763         * modules/avltree-list-tests: Likewise.
54764         * modules/avltree-oset-tests: Likewise.
54765         * modules/avltreehash-list-tests: Likewise.
54766         * modules/carray-list-tests: Likewise.
54767         * modules/crc-tests: Likewise.
54768         * modules/des-tests: Likewise.
54769         * modules/gc-arcfour-tests: Likewise.
54770         * modules/gc-arctwo-tests: Likewise.
54771         * modules/gc-des-tests: Likewise.
54772         * modules/gc-hmac-md5-tests: Likewise.
54773         * modules/gc-hmac-sha1-tests: Likewise.
54774         * modules/gc-md2-tests: Likewise.
54775         * modules/gc-md4-tests: Likewise.
54776         * modules/gc-md5-tests: Likewise.
54777         * modules/gc-pbkdf2-sha1-tests: Likewise.
54778         * modules/gc-rijndael-tests: Likewise.
54779         * modules/gc-sha1-tests: Likewise.
54780         * modules/gc-tests: Likewise.
54781         * modules/getaddrinfo-tests: Likewise.
54782         * modules/hmac-md5-tests: Likewise.
54783         * modules/hmac-sha1-tests: Likewise.
54784         * modules/linked-list-tests: Likewise.
54785         * modules/linkedhash-list-tests: Likewise.
54786         * modules/lock-tests: Likewise.
54787         * modules/md2-tests: Likewise.
54788         * modules/md4-tests: Likewise.
54789         * modules/md5-tests: Likewise.
54790         * modules/rbtree-list-tests: Likewise.
54791         * modules/rbtree-oset-tests: Likewise.
54792         * modules/rbtreehash-list-tests: Likewise.
54793         * modules/read-file-tests: Likewise.
54794         * modules/rijndael-tests: Likewise.
54795         * modules/stdint-tests: Likewise.
54796         * modules/tls-tests: Likewise.
54797
54798 2007-02-24  Bruno Haible  <bruno@clisp.org>
54799
54800         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
54801         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
54802         function; instead check whether isnan with a double argument links.
54803         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
54804         function; instead check whether isnan with a 'long double' argument
54805         links.
54806         Reported by Eric Blake <ebb9@byu.net>.
54807
54808 2007-02-24  Bruno Haible  <bruno@clisp.org>
54809
54810         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
54811         defined.
54812         * lib/isnanl.c: Remove all code. Just include isnan.c.
54813         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
54814
54815 2007-02-25  Jim Meyering  <jim@meyering.net>
54816
54817         Avoid conflicting types for 'unsetenv' on FreeBSD.
54818         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
54819         conflicting with FreeBSD's (5.0 and 6.1) function declaration
54820         in stdlib.h.
54821
54822 2007-02-24  Bruno Haible  <bruno@clisp.org>
54823
54824         * modules/isnanl-nolibm-tests: New file.
54825         * tests/test-isnanl.c: New file.
54826
54827         * modules/isnanl-nolibm: New file.
54828         * lib/isnanl.h: New file.
54829         * lib/isnanl.c: New file.
54830         * m4/isnanl.m4: New file.
54831
54832 2007-02-24  Bruno Haible  <bruno@clisp.org>
54833
54834         * modules/isnan-nolibm-tests: New file.
54835         * tests/test-isnan.c: New file.
54836
54837         * modules/isnan-nolibm: New file.
54838         * lib/isnan.h: New file.
54839         * lib/isnan.c: New file.
54840         * m4/isnan.m4: New file.
54841
54842 2007-02-24  Bruno Haible  <bruno@clisp.org>
54843
54844         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
54845         assume that an exponent fits in 20 bits.
54846
54847 2007-02-24  Jim Meyering  <jim@meyering.net>
54848
54849         * m4/regex.m4: Update the description of the configure-time option,
54850         --without-included-regex, to state accurately what the defaults are,
54851         and perhaps to give people an idea why using this option is risky.
54852
54853 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54854
54855         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
54856         loops on small arguments.  This attempts to avoid the problem
54857         Bruno Haible reported for AIX 4.3.2 in
54858         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
54859
54860 2007-02-23  Bruno Haible  <bruno@clisp.org>
54861
54862         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
54863         Needed for help2man.
54864
54865 2007-02-23  Karl Berry  <karl@gnu.org>
54866
54867         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
54868         exists, foo.h should be cvs-ignored, not committed.
54869
54870 2007-02-23  Eric Blake  <ebb9@byu.net>
54871
54872         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
54873         * lib/stat-time.h (includes): Likewise.
54874         * lib/utimecmp.c (includes): Likewise.
54875         * lib/utimens.h (includes): Likewise.
54876         * lib/getdate.y (includes): Also include "timespec.h" for use
54877         internal to the module.
54878         * modules/utimens (Depends-on): Revert yesterday's patch.
54879         * modules/nanosleep (Depends-on): Add missing dependency.
54880
54881 2007-02-22  Bruno Haible  <bruno@clisp.org>
54882
54883         * lib/glob.c: Don't include getlogin_r.h.
54884
54885 2007-02-22  Jim Meyering  <jim@meyering.net>
54886
54887         * modules/utimens (Depends-on): Add timespec, required for
54888         utimens.h's inclusion of timespec.h.
54889
54890 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
54891
54892         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
54893         long unreadable paths in GNU/Linux.  Problem reported by Andreas
54894         Schwab in
54895         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
54896         I'll try to think of a better way to fix the Solaris problem.
54897
54898         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
54899         like glibc; on Solaris 10, it fails with errno == EINVAL.
54900         POSIX says the behavior is unspecified if the first argument is NULL,
54901         so play it safe and never pass NULL to the system getcwd.
54902
54903 2007-02-21  Jim Meyering  <jim@meyering.net>
54904
54905         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
54906         of gettimeofday.  It would conflict with the one now always
54907         provided via sys_time_.h.  Reported by Matthew Woehlke, as
54908         an IRIX 6.5 build failure.
54909
54910 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54911
54912         Minor fixups to port to Solaris 10 with Sun C 5.8.
54913         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
54914         * modules/getcwd (Depends-on): Add dirfd.
54915         * lib/putenv.c (putenv): #undef it.
54916         (rpl_putenv): New decl.
54917         (malloc, free): Include <stdlib.h> rather than prototyping separately.
54918
54919 2007-02-20  Bruno Haible  <bruno@clisp.org>
54920
54921         * modules/stdio-tests: New file.
54922         * tests/test-stdio.c: New file.
54923
54924         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
54925         (Depends-on): Add stdio.
54926         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54927         (Include): Use <stdio.h> instead of vsnprintf.h.
54928         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54929         HAVE_DECL_VSNPRINTF.
54930         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
54931
54932         * modules/snprintf (Files): Remove lib/snprintf.h.
54933         (Depends-on): Add stdio.
54934         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54935         (Include): Use <stdio.h> instead of snprintf.h.
54936         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54937         HAVE_DECL_SNPRINTF.
54938         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
54939         * lib/getaddrinfo.c: Likewise.
54940
54941         * modules/stdio: New file.
54942         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
54943         * lib/snprintf.h: Remove file.
54944         * lib/vsnprintf.h: Remove file.
54945         * lib/.cppi-disable: Remove snprintf.h.
54946         * m4/stdio_h.m4: New file.
54947         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
54948
54949 2007-02-20  Jim Meyering  <jim@meyering.net>
54950
54951         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
54952         used by e.g., mingw.  From Bruno Haible.
54953
54954 2007-02-19  Bruno Haible  <bruno@clisp.org>
54955
54956         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
54957         warnings.
54958         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54959
54960 2007-02-19  Bruno Haible  <bruno@clisp.org>
54961
54962         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
54963         from mingw users.
54964
54965 2007-02-19  Bruno Haible  <bruno@clisp.org>
54966
54967         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
54968         warnings.
54969         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
54970
54971 2007-02-19  Jim Meyering  <jim@meyering.net>
54972
54973         Don't use FD after a successful "fdopendir (fd)".
54974         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
54975         Reset it by calling dirfd on the just-obtained DIR*.
54976
54977         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
54978         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
54979
54980 2007-02-18  Bruno Haible  <bruno@clisp.org>
54981
54982         * lib/readlink.c: Include <unistd.h>.
54983         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
54984         HAVE_READLINK.
54985         * modules/readlink (Depends-on): Add unistd.
54986         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54987         (Include): Add <unistd.h>.
54988
54989         * lib/getlogin_r.h: Remove file.
54990         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
54991         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
54992         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
54993         HAVE_DECL_GETLOGIN_R.
54994         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
54995         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54996         (Include): Use <unistd.h> instead of getlogin_r.h.
54997
54998         * lib/getcwd.h: Remove file.
54999         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
55000         * lib/xgetcwd.c: Likewise.
55001         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
55002         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
55003         * modules/getcwd (Files): Remove lib/getcwd.h.
55004         (Depends-on): Add unistd.
55005         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55006         (Include): Use <unistd.h> instad of getcwd.h.
55007
55008         * lib/ftruncate.c: Include <unistd.h> first.
55009         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
55010         Set HAVE_FTRUNCATE.
55011         * modules/ftruncate (Depends-on): Add unistd.
55012         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55013
55014         * lib/fchdir.c: Include <unistd.h> first.
55015         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
55016         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
55017         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
55018         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55019         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
55020
55021         * lib/dup2.c: Include <unistd.h> first.
55022         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
55023         HAVE_DUP2.
55024         * modules/dup2 (Depends-on): Add unistd.
55025         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55026
55027         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
55028         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
55029         REPLACE_CHOWN. Don't define chown as a macro here.
55030         * modules/chown (Depends-on): Add unistd.
55031         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55032
55033         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
55034         Add definition for GL_LINK_WARNING.
55035         (chown, dup2): New declarations.
55036         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
55037         link warning.
55038         (ftruncate): New declaration.
55039         (getcwd): New declaration, taken from old getcwd.h.
55040         (getlogin_r): New declaration, taken from old getlogin_r.h.
55041         (readlink): New declaration.
55042         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
55043         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
55044         (gl_PREREQ_UNISTD): Remove macro.
55045         (gl_UNISTD_MODULE_INDICATOR): New macro.
55046         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
55047         many new variables. Don't set UNISTD_H.
55048         * modules/unistd (Description): Change.
55049         (Depends-on): Add link-warning.
55050         (configure.ac): Update.
55051         (Makefile.am): Create unistd.h always. Substitute many new variables
55052         into it.
55053
55054 2007-02-18  Bruno Haible  <bruno@clisp.org>
55055
55056         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
55057         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
55058         HAVE_GETSUBOPT.
55059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
55060         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
55061         * lib/getsubopt.h: Remove file.
55062         * modules/getsubopt (Files): Remove lib/getsubopt.h.
55063         (Depends-on): Add stdlib.
55064         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55065         (Includes): Use <stdlib.h> instead of getsubopt.h.
55066         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
55067         Set HAVE_GETSUBOPT.
55068         * lib/getsubopt.c: Don't include getsubopt.h.
55069
55070 2007-02-18  Bruno Haible  <bruno@clisp.org>
55071
55072         * modules/fchdir (Depends-on): Add dup2.
55073
55074 2007-02-18  Bruno Haible  <bruno@clisp.org>
55075
55076         * lib/stdlib_.h: Handle glibc's special invocation convention
55077         specially.
55078
55079 2007-02-18  Bruno Haible  <bruno@clisp.org>
55080
55081         * modules/stdlib-tests: New file.
55082         * tests/test-stdlib.c: New file.
55083
55084         * modules/mkstemp (Files): Remove lib/mkstemp.h.
55085         (Depends-on): Add stdlib.
55086         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55087         (Includes): Use <stdlib.h> instead of mkstemp.h.
55088         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55089         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
55090         * lib/mkstemp.c: Don't include mkstemp.h.
55091         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
55092         * lib/stdlib--.h: Don't include mkstemp.h.
55093
55094         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
55095         (Depends-on): Add stdlib.
55096         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55097         (Includes): Use <stdlib.h> instead of mkdtemp.h.
55098         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55099         HAVE_MKDTEMP.
55100         * lib/mkdtemp.c: Don't include mkdtemp.h.
55101         * lib/clean-temp.c: Don't include mkdtemp.h.
55102
55103         * modules/exit (Files): Remove lib/exit.h.
55104         (Depends-on): Add stdlib.
55105         (Makefile.am): Remove lib_SOURCES.
55106         (Include): Use <stdlib.h> instead of exit.h.
55107         * lib/argmatch.c: Don't include exit.h.
55108         * lib/execute.c: Likewise.
55109         * lib/pagealign_alloc.c: Likewise.
55110         * lib/pipe.c: Likewise.
55111         * lib/wait-process.c: Likewise.
55112         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
55113         * lib/exitfail.c: Likewise.
55114         * lib/savewd.c: Likewise.
55115         * lib/xsetenv.c: Likewise.
55116
55117         * modules/stdlib: New file.
55118         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
55119         and extra comments about mkstemp().
55120         * lib/exit.h: Remove file.
55121         * lib/mkdtemp.h: Remove file.
55122         * lib/mkstemp.h: Remove file.
55123         * m4/stdlib_h.m4: New file.
55124         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
55125
55126 2007-02-18  Bruno Haible  <bruno@clisp.org>
55127
55128         * modules/math-tests: New file.
55129         * tests/test-math.c: New file.
55130
55131         * modules/math: New file.
55132         * modules/mathl (Files): Remove lib/mathl.h.
55133         (Depends-on): Add math.
55134         (Makefile.am): Don't mention mathl.h.
55135         (Include): Use <math.h> instead of mathl.h.
55136         * lib/math_.h: New file.
55137         * lib/mathl.h: Remove file.
55138         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
55139         mathl.h.
55140         * lib/asinl.c: Likewise.
55141         * lib/atanl.c: Likewise.
55142         * lib/ceill.c: Likewise.
55143         * lib/cosl.c: Likewise.
55144         * lib/expl.c: Likewise.
55145         * lib/floorl.c: Likewise.
55146         * lib/frexpl.c: Likewise.
55147         * lib/ldexpl.c: Likewise.
55148         * lib/logl.c: Likewise.
55149         * lib/sincosl.c: Likewise.
55150         * lib/sinl.c: Likewise.
55151         * lib/sqrtl.c: Likewise.
55152         * lib/tanl.c: Likewise.
55153         * lib/trigl.c: Likewise.
55154         * m4/math_h.m4: New file.
55155         * MODULES.html.sh (Mathematics): Add math.
55156
55157 2007-02-17  Bruno Haible  <bruno@clisp.org>
55158
55159         * modules/wctype-tests: New file.
55160         * tests/test-wctype.c: New file.
55161
55162         * modules/wchar-tests: New file.
55163         * tests/test-wchar.c: New file.
55164
55165         * modules/unistd-tests: New file.
55166         * tests/test-unistd.c: New file.
55167
55168         * modules/time-tests: New file.
55169         * tests/test-time.c: New file.
55170
55171         * modules/sysexits-tests: New file.
55172         * tests/test-sysexits.c: New file.
55173
55174         * modules/sys_time-tests: New file.
55175         * tests/test-sys_time.c: New file.
55176
55177         * modules/sys_stat-tests: New file.
55178         * tests/test-sys_stat.c: New file.
55179
55180         * modules/sys_socket-tests: New file.
55181         * tests/test-sys_socket.c: New file.
55182
55183         * modules/sys_select-tests: New file.
55184         * tests/test-sys_select.c: New file.
55185
55186         * modules/string-tests: New file.
55187         * tests/test-string.c: New file.
55188
55189         * modules/stdbool-tests: New file.
55190         * tests/test-stdbool.c: New file.
55191
55192         * modules/netinet_in-tests: New file.
55193         * tests/test-netinet_in.c: New file.
55194
55195         * modules/inttypes-tests: New file.
55196         * tests/test-inttypes.c: New file.
55197
55198         * modules/fcntl-tests: New file.
55199         * tests/test-fcntl.c: New file.
55200
55201         * modules/byteswap-tests: New file.
55202         * tests/test-byteswap.c: New file.
55203
55204         * modules/arpa_inet-tests: New file.
55205         * tests/test-arpa_inet.c: New file.
55206
55207 2007-02-17  Bruno Haible  <bruno@clisp.org>
55208
55209         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
55210         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
55211         if the corresponding module is not enabled. Emit link warnings if
55212         the function is used nevertheless.
55213         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
55214         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
55215         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
55216         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
55217         * modules/inttypes (Depends-on): Add link-warning.
55218         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55219         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
55220         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
55221         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
55222         * modules/imaxdiv (configure.ac): Likewise.
55223         * modules/strtoimax (configure.ac): Likewise.
55224         * modules/strtoumax (configure.ac): Likewise.
55225
55226 2007-02-17  Bruno Haible  <bruno@clisp.org>
55227
55228         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
55229         gl_STRING_MODULE_INDICATOR_DEFAULTS.
55230         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
55231         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
55232
55233 2007-02-17  Bruno Haible  <bruno@clisp.org>
55234
55235         * modules/link-warning: New file.
55236         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
55237         * lib/string_.h (GL_LINK_WARNING): Remove definition.
55238         * modules/string (Depends-on): Add link-warning.
55239         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55240         string.h.
55241         * MODULES.html.sh (Support for building libraries and executables): Add
55242         link-warning.
55243
55244 2007-02-17  Bruno Haible  <bruno@clisp.org>
55245
55246         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
55247         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
55248         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
55249         long lines.
55250
55251 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
55252             Bruno Haible  <bruno@clisp.org>
55253
55254         * modules/tmpfile: New file.
55255         * lib/tmpfile.c: New file.
55256         * m4/tmpfile.m4: New file.
55257         * MODULES.html.sh (func_all_modules): New section "Input/output".
55258
55259 2007-02-15  Bruno Haible  <bruno@clisp.org>
55260
55261         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
55262         (supports_delete_on_close): New function.
55263         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
55264
55265 2007-02-14  Bruno Haible  <bruno@clisp.org>
55266
55267         * modules/mbspcasecmp-tests: New file.
55268         * tests/test-mbspcasecmp.sh: New file.
55269         * tests/test-mbspcasecmp.c: New file.
55270
55271         New module mbspcasecmp.
55272         * modules/mbspcasecmp: New file.
55273         * lib/mbspcasecmp.c: New file.
55274         * lib/string_.h (strncasecmp): Change warning message.
55275         (mbspcasecmp): New declaration.
55276         * m4/mbspcasecmp.m4: New file.
55277         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55278         GNULIB_MBSPCASECMP.
55279         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
55280         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
55281
55282 2007-02-14  Bruno Haible  <bruno@clisp.org>
55283
55284         * modules/mbsncasecmp-tests: New file.
55285         * tests/test-mbsncasecmp.sh: New file.
55286         * tests/test-mbsncasecmp.c: New file.
55287
55288         New module mbsncasecmp.
55289         * modules/mbsncasecmp: New file.
55290         * lib/mbsncasecmp.c: New file.
55291         * lib/string_.h (mbsncasecmp): New declaration.
55292         * m4/mbsncasecmp.m4: New file.
55293         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55294         GNULIB_MBSNCASECMP.
55295         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
55296         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
55297
55298 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55299
55300         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
55301         Verify that it doesn't overlap with our flags.
55302         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
55303         do not have the desired effect in multibyte locales; instead, use
55304         mbscasecmp.
55305         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
55306         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
55307         we don't require GNU fnmatch ourselves (if our users require it, they
55308         should do so explicitly).
55309
55310         Fix regex code so it doesn't rely on strcasecmp.
55311         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
55312         Otherwise, include gnulib's langinfo.h.
55313         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
55314         undesirable behavior in non-C locales.  Instead, rely on localecharset.
55315         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
55316         * modules/regex (FILES): Remove m4/codeset.m4.
55317         (Depends-on): Add localcharset.  Remove strcase.
55318
55319 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55320
55321         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
55322         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
55323
55324 2007-02-13  Bruno Haible  <bruno@clisp.org>
55325
55326         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
55327         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55328
55329 2007-02-12  Bruno Haible  <bruno@clisp.org>
55330
55331         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55332         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
55333         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
55334         time warning rather than a link error.
55335
55336 2007-02-12  Bruno Haible  <bruno@clisp.org>
55337
55338         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
55339         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55340         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55341
55342 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55343
55344         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
55345         args, not 2.
55346
55347 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55348
55349         New module 'time', so that apps can include <time.h> as per
55350         POSIX and GNU instead of separate include files like time_r.h
55351         and timegm.h.  This implementation tries out a simpler approach
55352         for replacing decls in standard include files (as compared to
55353         the string module), somewhat as an experiment.
55354
55355         * config/srclist.txt: Comment out mktime.c for now.
55356         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
55357         since it doesn't apply any more.  Use generic wording instead.
55358         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
55359         'time'.
55360         * lib/time_.h, m4/time_h.m4, modules/time: New files.
55361         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
55362         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
55363         Don't include <sys/types.h>; no longer needed since we assume C89.
55364         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
55365         * lib/strftime.c: Likewise.
55366         * lib/time_r.c: Likewise.
55367         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
55368         * lib/nanosleep.c: Include <time.h> first, to check interface.
55369         * lib/strptime.c: Likewise.
55370         * lib/time_r.c: Likewise.
55371         * lib/timegm.c: Likewise.
55372         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
55373         needed.
55374         * lib/timegm.c: Don't include timegm.h; no longer needed.
55375         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
55376         time.h now handles any problems in that area.
55377         (struct timespec, nanosleep): Remove; time.h now arranges for these.
55378         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
55379         that time.h defines struct timespec.
55380         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
55381         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
55382         handles that.
55383         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
55384         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
55385         needed.  Set REPLACE_LOCALTIME.
55386         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
55387         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
55388         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
55389         nanosleep; time_h.m4 now does that.  Don't require
55390         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
55391         module handles this now.
55392         * modules/getdate (Depends-on): Remove timespec.  Add time.
55393         * modules/nanosleep (Depends-on): Likewise.
55394         * modules/stat-time (Depends-on): Likewise.
55395         * modules/nanosleep (Include): Include time.h, not timespec.h.
55396         * modules/strptime (Files): Remove lib/strptime.h.
55397         (Depends-on): Add extensions, time.
55398         (Include): Include time.h, not strptime.h.
55399         * modules/time_r (Files): Remove lib/time_r.h.
55400         (Depends-on): Add time.
55401         (Include): Include time.h, not time_r.h.
55402         * modules/timegm: Likewise.
55403         * modules/timespec (Description): Now does timespec-related decls
55404         of our own, instead of struct timespec itself.
55405         (Depends-on): Add time; remove extensions.
55406         (Maintainer): Add self.
55407         * modules/utimecmp (Depends-on): Add time; remove timespec.
55408         * modules/utimens (Depends-on): Likewise.
55409         * modules/xnanosleep (Depends-on): Likewise.
55410
55411 2007-02-11  Bruno Haible  <bruno@clisp.org>
55412
55413         * lib/c-strstr.c: Include allocsa.h.
55414         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55415         * lib/c-strcasestr.c: Include allocsa.h.
55416         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55417         * lib/strcasestr.c: Include allocsa.h.
55418         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55419         * lib/mbsstr.c: Include allocsa.h.
55420         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55421         allocsa/freesa instead of malloc/free.
55422         * lib/mbscasestr.c: Include allocsa.h.
55423         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55424         allocsa/freesa instead of malloc/free.
55425         * modules/c-strstr (Depends-on): Add allocsa.
55426         * modules/c-strcasestr (Depends-on): Likewise.
55427         * modules/strcasestr (Depends-on): Likewise.
55428         * modules/mbsstr (Depends-on): Likewise.
55429         * modules/mbscasestr (Depends-on): Likewise.
55430
55431 2007-02-11  Bruno Haible  <bruno@clisp.org>
55432
55433         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
55434
55435         * modules/mbsspn-tests: New file.
55436         * tests/test-mbsspn.sh: New file.
55437         * tests/test-mbsspn.c: New file.
55438
55439 2007-02-11  Bruno Haible  <bruno@clisp.org>
55440
55441         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
55442
55443         * modules/mbspbrk-tests: New file.
55444         * tests/test-mbspbrk.sh: New file.
55445         * tests/test-mbspbrk.c: New file.
55446
55447 2007-02-11  Bruno Haible  <bruno@clisp.org>
55448
55449         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
55450         unneeded cast.
55451
55452         * modules/mbscspn-tests: New file.
55453         * tests/test-mbscspn.sh: New file.
55454         * tests/test-mbscspn.c: New file.
55455
55456 2007-02-11  Bruno Haible  <bruno@clisp.org>
55457
55458         * modules/mbscasecmp-tests: New file.
55459         * tests/test-mbscasecmp.sh: New file.
55460         * tests/test-mbscasecmp.c: New file.
55461
55462 2007-02-11  Bruno Haible  <bruno@clisp.org>
55463
55464         Ensure O(n) worst-case complexity of mbscasestr.
55465         * lib/mbscasestr.c: Include stdbool.h.
55466         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55467         functions.
55468         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
55469         the bookkeeping indicates that it's worth it.
55470         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
55471
55472         * modules/mbscasestr-tests: New file.
55473         * tests/test-mbscasestr1.c: New file.
55474         * tests/test-mbscasestr2.sh: New file.
55475         * tests/test-mbscasestr2.c: New file.
55476         * tests/test-mbscasestr3.sh: New file.
55477         * tests/test-mbscasestr3.c: New file.
55478         * tests/test-mbscasestr4.sh: New file.
55479         * tests/test-mbscasestr4.c: New file.
55480         * m4/locale-tr.m4: New file.
55481
55482 2007-02-11  Bruno Haible  <bruno@clisp.org>
55483
55484         Ensure O(n) worst-case complexity of mbsstr.
55485         * lib/mbsstr.c: Include stdbool.h.
55486         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55487         functions.
55488         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
55489         bookkeeping indicates that it's worth it.
55490         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
55491
55492         * modules/mbsstr-tests: New file.
55493         * tests/test-mbsstr1.c: New file.
55494         * tests/test-mbsstr2.sh: New file.
55495         * tests/test-mbsstr2.c: New file.
55496         * tests/test-mbsstr3.sh: New file.
55497         * tests/test-mbsstr3.c: New file.
55498         * m4/locale-fr.m4: New file.
55499
55500 2007-02-11  Bruno Haible  <bruno@clisp.org>
55501
55502         * lib/mbsrchr.c (mbsrchr): Fix bug.
55503
55504         * modules/mbsrchr-tests: New file.
55505         * tests/test-mbsrchr.sh: New file.
55506         * tests/test-mbsrchr.c: New file.
55507
55508 2007-02-11  Bruno Haible  <bruno@clisp.org>
55509
55510         * lib/mbschr.c (mbschr): Fix bug.
55511
55512         * modules/mbschr-tests: New file.
55513         * tests/test-mbschr.sh: New file.
55514         * tests/test-mbschr.c: New file.
55515         * m4/locale-zh.m4: New file.
55516
55517 2007-02-11  Bruno Haible  <bruno@clisp.org>
55518
55519         Support for copying multibyte string iterators.
55520         * lib/mbiter.h: Include <string.h>.
55521         (mbiter_multi_copy): New function.
55522         (mbi_copy): New macro.
55523         * lib/mbuiter.h: Include <string.h>.
55524         (mbuiter_multi_copy): New function.
55525         (mbui_copy): New macro.
55526
55527 2007-02-11  Bruno Haible  <bruno@clisp.org>
55528
55529         New module mbslen.
55530         * modules/mbslen: New file.
55531         * lib/mbslen.c: New file.
55532         * lib/string_.h (mbslen): New declaration.
55533         * m4/mbslen.m4: New file.
55534         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55535         GNULIB_MBSLEN.
55536         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
55537         * MODULES.html.sh (Internationalization functions): Add mbslen.
55538
55539 2007-02-11  Bruno Haible  <bruno@clisp.org>
55540
55541         Ensure O(n) worst-case complexity of strcasestr substitute.
55542         * lib/strcasestr.c: Include stdbool.h.
55543         (knuth_morris_pratt): New function.
55544         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55545         bookkeeping indicates that it's worth it.
55546         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
55547
55548         * modules/strcasestr-tests: New file.
55549         * tests/test-strcasestr.c: New file.
55550
55551 2007-02-11  Bruno Haible  <bruno@clisp.org>
55552
55553         Ensure O(n) worst-case complexity of c_strcasestr.
55554         * lib/c-strcasestr.c: Include stdbool.h, string.h.
55555         (knuth_morris_pratt): New function.
55556         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
55557         the bookkeeping indicates that it's worth it.
55558         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
55559
55560         * modules/c-strcasestr-tests: New file.
55561         * tests/test-c-strcasestr.c: New file.
55562
55563 2007-02-11  Bruno Haible  <bruno@clisp.org>
55564
55565         Ensure O(n) worst-case complexity of c_strstr.
55566         * lib/c-strstr.c: Include stdbool.h, string.h.
55567         (knuth_morris_pratt): New function.
55568         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55569         bookkeeping indicates that it's worth it.
55570         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
55571
55572         * lib/c-strstr.c: Complete rewrite for maintainability.
55573
55574         * modules/c-strstr-tests: New file.
55575         * tests/test-c-strstr.c: New file.
55576
55577 2007-02-11  Bruno Haible  <bruno@clisp.org>
55578
55579         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
55580         5.2.1 and earlier, whereby \055 was treated just like the range
55581         delimiter '-'.
55582         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55583
55584 2007-02-08  Bruno Haible  <bruno@clisp.org>
55585
55586         * modules/regex (Depends-on): Add stdbool.
55587         Reported by Dalibor Topic <robilad@kaffe.org>.
55588
55589 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55590
55591         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
55592         Prefer returning from main to exiting from it.
55593         Remove unnecessary parens after sizeof.
55594
55595 2007-02-05  Bruno Haible  <bruno@clisp.org>
55596
55597         New module mbssep.
55598         * modules/mbssep: New file.
55599         * lib/mbssep.c: New file.
55600         * lib/string_.h (strsep): Add a conditional link warning.
55601         (mbssep): New declaration.
55602         * m4/mbssep.m4: New file.
55603         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55604         GNULIB_MBSSEP.
55605         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
55606         * MODULES.html.sh (Internationalization functions): Add mbssep.
55607
55608 2007-02-05  Bruno Haible  <bruno@clisp.org>
55609
55610         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
55611         Optimize search in case of 1 delimiter.
55612
55613 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55614
55615         * lib/acl.h: Include sys/types.h before sys/acl.h.
55616
55617 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55618
55619         Merge upstream fix for glibc bugzilla #3957:
55620
55621         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
55622
55623         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
55624         bit for RE_HAT_LISTS_NOT_NEWLINE.
55625         (build_charclass_op): Remove bogus comment.
55626
55627 2007-02-05  Simon Josefsson  <simon@josefsson.org>
55628
55629         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
55630
55631 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55632
55633         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
55634         * lib/memmem.c [!defined _LIBC]: Include config.h.
55635
55636 2007-02-04  Bruno Haible  <bruno@clisp.org>
55637
55638         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
55639         warning message.
55640
55641 2007-02-04  Bruno Haible  <bruno@clisp.org>
55642
55643         New module mbstok_r.
55644         * modules/mbstok_r: New file.
55645         * lib/mbstok_r.c: New file.
55646         * lib/string_.h (strtok_r): Change argument names to match the
55647         comments. Add a conditional link warning.
55648         (mbstok_r): New declaration.
55649         * m4/mbstok_r.m4: New file.
55650         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55651         GNULIB_MBSTOK_R.
55652         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
55653         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
55654
55655 2007-02-04  Bruno Haible  <bruno@clisp.org>
55656
55657         New module mbsspn.
55658         * modules/mbsspn: New file.
55659         * lib/mbsspn.c: New file.
55660         * lib/string_.h (strspn): Add a conditional link warning.
55661         (mbsspn): New declaration.
55662         * m4/mbsspn.m4: New file.
55663         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55664         GNULIB_MBSSPN.
55665         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
55666         * MODULES.html.sh (Internationalization functions): Add mbsspn.
55667
55668 2007-02-04  Bruno Haible  <bruno@clisp.org>
55669
55670         New module mbspbrk.
55671         * modules/mbspbrk: New file.
55672         * lib/mbspbrk.c: New file.
55673         * lib/string_.h (strpbrk): Add a conditional link warning.
55674         (mbspbrk): New declaration.
55675         * m4/mbspbrk.m4: New file.
55676         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55677         GNULIB_MBSPBRK.
55678         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
55679         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
55680
55681 2007-02-04  Bruno Haible  <bruno@clisp.org>
55682
55683         New module mbscspn.
55684         * modules/mbscspn: New file.
55685         * lib/mbscspn.c: New file.
55686         * lib/string_.h (strcspn): Add a conditional link warning.
55687         (mbscspn): New declaration.
55688         * m4/mbscspn.m4: New file.
55689         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55690         GNULIB_MBSCSPN.
55691         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
55692         * MODULES.html.sh (Internationalization functions): Add mbscspn.
55693
55694 2007-02-04  Bruno Haible  <bruno@clisp.org>
55695
55696         New module mbscasestr, reduced goal of strcasestr.
55697         * modules/mbscasestr: New file.
55698         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
55699         (mbscasestr): Renamed from strcasestr.
55700         * lib/strcasestr.c: Don't include mbuiter.h.
55701         (strcasestr): Remove support for multibyte locales.
55702         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
55703         Change the conditional link warning.
55704         (mbscasestr): New declaration.
55705         * m4/mbscasestr.m4: New file.
55706         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
55707         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
55708         REPLACE_STRCASESTR.
55709         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
55710         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55711         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55712         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
55713         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
55714         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55715         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
55716         (Depends-on): Remove mbuiter.
55717         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
55718
55719 2007-02-04  Bruno Haible  <bruno@clisp.org>
55720
55721         Simplify handling of strncasecmp.
55722         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
55723         the conditional link warning.
55724         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55725         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
55726         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
55727         * modules/strcase (configure.ac): Don't invoke
55728         gl_STRING_MODULE_INDICATOR.
55729         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
55730
55731 2007-02-04  Bruno Haible  <bruno@clisp.org>
55732
55733         New module mbscasecmp, reduced goal of strcasecmp.
55734         * modules/mbscasecmp: New file.
55735         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
55736         (mbscasecmp): Renamed from strcasecmp.
55737         * lib/strcasecmp.c: Don't include mbuiter.h.
55738         (strcasecmp): Remove support for multibyte locales.
55739         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
55740         Change the conditional link warning.
55741         (mbscasecmp): New declaration.
55742         * m4/mbscasecmp.m4: New file.
55743         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
55744         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
55745         REPLACE_STRCASECMP.
55746         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
55747         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55748         GNULIB_MBSCASECMP.
55749         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
55750         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
55751         * modules/strcase (Files): Remove m4/mbrtowc.m4.
55752         (Depends-on): Remove mbuiter.
55753         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
55754
55755 2007-02-04  Bruno Haible  <bruno@clisp.org>
55756
55757         New module mbsstr. Remove module strstr.
55758         * modules/mbsstr: New file.
55759         * modules/strstr: Remove file.
55760         * lib/mbsstr.c: Renamed from lib/strstr.c.
55761         (mbsstr): Renamed from strstr.
55762         * lib/string_.h (strstr): Remove declaration. Change the conditional
55763         link warning.
55764         (mbsstr): New declaration.
55765         * m4/mbsstr.m4: New file.
55766         * m4/strstr.m4: Remove file.
55767         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
55768         REPLACE_STRSTR.
55769         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
55770         Don't initialize GNULIB_STRSTR.
55771         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
55772         substitute GNULIB_STRSTR and REPLACE_STRSTR.
55773         * MODULES.html.sh (Internationalization functions): Add mbsstr.
55774         (Support for systems lacking ANSI C 89): Remove strstr.
55775
55776 2007-02-04  Bruno Haible  <bruno@clisp.org>
55777
55778         New module mbsrchr.
55779         * modules/mbsrchr: New file.
55780         * lib/mbsrchr.c: New file.
55781         * lib/string_.h (strrchr): Add a conditional link warning.
55782         (mbsrchr): New declaration.
55783         * m4/mbsrchr.m4: New file.
55784         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55785         GNULIB_MBSRCHR.
55786         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
55787         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
55788
55789 2007-02-04  Bruno Haible  <bruno@clisp.org>
55790
55791         New module mbschr.
55792         * modules/mbschr: New file.
55793         * lib/mbschr.c: New file.
55794         * lib/string_.h (strchr): Add a conditional link warning.
55795         (mbschr): New declaration.
55796         * m4/mbschr.m4: New file.
55797         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55798         GNULIB_MBSCHR.
55799         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
55800         * MODULES.html.sh (Internationalization functions): Add mbschr.
55801
55802 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55803
55804         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
55805
55806         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
55807
55808 2007-02-04  Bruno Haible  <bruno@clisp.org>
55809
55810         New module description section 'configure.ac-early'.
55811         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
55812         (func_get_autoconf_early_snippet): New function.
55813         (func_import, func_create_testdir): Use it. Remove special cases for
55814         modules 'extensions' and 'lock'.
55815         * modules/extensions (configure.ac-early): Require
55816         gl_USE_SYSTEM_EXTENSIONS.
55817         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
55818
55819 2007-02-04  Bruno Haible  <bruno@clisp.org>
55820
55821         Make use of gcj-4.3's -fsource and -ftarget option.
55822         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
55823         and if so try the options -fsource and -ftarget.
55824         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
55825         source_version, ftarget_option, target_version arguments.
55826         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
55827         (is_envjavac_oldgcj_14_14_usable): Renamed from
55828         is_envjavac_gcj_14_14_usable.
55829         (is_envjavac_oldgcj_14_13_usable): Renamed from
55830         is_envjavac_gcj_14_13_usable.
55831         (is_gcj_present): Update.
55832         (is_gcj_43, is_gcj43_usable): New functions.
55833         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
55834         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
55835         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
55836         try the options -fsource and -ftarget.
55837
55838 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55839
55840         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
55841         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
55842         larger value.
55843
55844 2007-02-03  Jim Meyering  <jim@meyering.net>
55845
55846         Give tools a better chance to allocate space for very large buffers.
55847         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
55848
55849         Make pwd and readlink work also when run with an unreadable parent dir
55850         on systems with openat support.
55851         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
55852         provided getcwd function, even when we have openat support.
55853         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
55854
55855 2007-02-02  Bruno Haible  <bruno@clisp.org>
55856
55857         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55858         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
55859         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
55860         portability problems if one of these functions is only used on specific
55861         platforms.
55862         Reported by Paul Eggert.
55863
55864 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
55865
55866         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
55867         is causing more trouble than it's curing.
55868         * lib/regex_internal.h (__mempcpy): Remove.
55869         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
55870         (and make the code a tad smaller to boot).
55871         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
55872
55873 2007-02-02  Jim Meyering  <jim@meyering.net>
55874
55875         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
55876         section, not in the Makefile.am: one.
55877
55878 2007-02-02  Eric Blake  <ebb9@byu.net>
55879
55880         * lib/strchrnul.c: Always include config.h first.
55881
55882         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
55883         gnulib strstr is not necessary here.
55884
55885 2007-02-02  Simon Josefsson  <simon@josefsson.org>
55886
55887         * m4/socklen.m4: Fix typo.
55888
55889 2007-02-02  Eric Blake  <ebb9@byu.net>
55890
55891         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
55892         * modules/netinet_in (Makefile.am): Likewise.
55893
55894 2007-02-01  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/string_.h (GL_LINK_WARNING): New macro.
55897         (strcasecmp, strstr, strcasestr): If provided by the system,
55898         conditionally define as a macro that leads to a warning instead of to
55899         an error.
55900         (strncasecmp): Conditionally define as a macro that leads to a warning.
55901
55902 2007-02-01  Karl Berry  <karl@gnu.org>
55903
55904         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
55905
55906 2007-02-01  Bruno Haible  <bruno@clisp.org>
55907
55908         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
55909         renamings.
55910
55911 2007-02-01  Eric Blake  <ebb9@byu.net>
55912
55913         * modules/regex (Depends-on): Revert dependence on mempcpy.
55914         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
55915         module's definition of mempcpy.
55916         Reported by Paul Eggert.
55917
55918 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
55919
55920         * lib/string_.h: If the gnulib module XYZ is not present, undefine
55921         the symbol XYZ before redefining it.  This fixes a problem with
55922         programs that don't use XYZ, when compiled on systems that define
55923         XYZ to something else.
55924
55925 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
55926
55927         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
55928         occurs when "mkdir -m foo" creates a setgid directory that is (1)
55929         writeable to group or other and (2) is intended to have a special
55930         mode bit that is set or cleared.  In such a case, the directory
55931         should be neither group- nor other-writeable until the special
55932         mode bits are right.
55933
55934 2007-01-31  Eric Blake  <ebb9@byu.net>
55935
55936         * modules/mountlist (Depends-on): Add strstr.
55937
55938         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
55939         bug.
55940         * modules/string (Makefile.am): Remove redundant replacement.
55941         * modules/regex (Depends-on): Add mempcpy.
55942
55943 2007-01-31  Bruno Haible  <bruno@clisp.org>
55944
55945         New module description field 'Link'.
55946         * gnulib-tool (func_usage): Document --extract-link-directive.
55947         (sed_extract_prog): Recognize 'Link' directive.
55948         (func_get_link_directive): New function.
55949         (func_import): Show summary of link directives.
55950         Handle --extract-link-directive option.
55951         * modules/acl (Link): New section.
55952         * modules/clock-time (Link): New section.
55953         * modules/euidaccess (Link): New section.
55954         * modules/gettext (Link): New section.
55955         * modules/iconv (Link): New section.
55956         * modules/lock (Link): New section.
55957         * modules/nanosleep (Link): New section.
55958         * modules/readline (Link): New section.
55959
55960 2007-01-27  Bruno Haible  <bruno@clisp.org>
55961
55962         Enforce the use of gnulib modules for unportable <string.h> functions.
55963         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
55964         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
55965         (gl_HEADER_STRING_H_BODY): Require it.
55966         * lib/string_.h: If the gnulib module XYZ is not present, redefine
55967         the symbol XYZ to one that gives a link error.
55968         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
55969         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
55970         * modules/mempcpy (configure.ac): Likewise.
55971         * modules/memrchr (configure.ac): Likewise.
55972         * modules/stpcpy (configure.ac): Likewise.
55973         * modules/stpncpy (configure.ac): Likewise.
55974         * modules/strcase (configure.ac): Likewise.
55975         * modules/strcasestr (configure.ac): Likewise.
55976         * modules/strchrnul (configure.ac): Likewise.
55977         * modules/strdup (configure.ac): Likewise.
55978         * modules/strndup (configure.ac): Likewise.
55979         * modules/strnlen (configure.ac): Likewise.
55980         * modules/strpbrk (configure.ac): Likewise.
55981         * modules/strsep (configure.ac): Likewise.
55982         * modules/strstr (configure.ac): Likewise.
55983         * modules/strtok_r (configure.ac): Likewise.
55984
55985 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
55986
55987         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
55988
55989 2007-01-30  Jim Meyering  <jim@meyering.net>
55990
55991         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
55992
55993 2007-01-29  Bruno Haible  <bruno@clisp.org>
55994
55995         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
55996         * lib/execute.c: Likewise.
55997         * lib/pipe.c: Likewise.
55998         * lib/printf-args.h: Likewise.
55999         * lib/printf-args.c: Likewise.
56000         * lib/printf-parse.c: Likewise.
56001         * lib/vasnprintf.c: Likewise.
56002
56003 2007-01-29  Eric Blake  <ebb9@byu.net>
56004
56005         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
56006         declaration.
56007
56008 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56009
56010         * lib/strptime.h (strptime): Use 'restrict' for args where
56011         POSIX requires this.
56012         * lib/strptime.c (strptime): Likewise.
56013         Change license notice from LGPL to GPL, since gnulib-tool will
56014         change this as needed.
56015         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
56016         defined.
56017         Include "strptime.h" first, to check interface.
56018         Do not #undef _LIBC and _NL_CURRENT.
56019         Do not include <stdlib.h>; no longer needed.
56020         Include "time_r.h" and declare ptime_locale_status
56021         only if _LIBC is not defined.
56022         (__P): Remove unused macro.
56023         (match_string): Bring back glibc version, but use it only if _LIBC
56024         is defined.
56025         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
56026         Remove unnecessary assertion and abort() call.
56027         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
56028         * m4/strptime.m4: Fix serial number comment.
56029         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
56030         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
56031         (Depends-on): Add time_r.
56032
56033 2007-01-29  Bruno Haible  <bruno@clisp.org>
56034
56035         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56036         strptime.
56037         * modules/strptime (Depends-on): Add stdbool.
56038         * lib/strptime.h: Include <time.h> always. Add comments.
56039
56040 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56041
56042         * modules/strptime: New file.
56043         * lib/strptime.h: New file.
56044         * lib/strptime.c: New file.
56045         * m4/strptime.m4: New file.
56046
56047 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56048
56049         * MODULES.html.sh: New module mpsort.
56050         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
56051
56052         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
56053         a circularity problem with HP-UX ia64 reported by Bob Proulx in
56054         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
56055         All uses changed.
56056         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
56057         All uses changed.
56058         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
56059         to _Restrict_.
56060         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
56061         the parameter matches the prototype.
56062
56063 2007-01-28  Jim Meyering  <jim@meyering.net>
56064
56065         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
56066         sys/time.h here, reverting that part of the previous patch:
56067         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
56068
56069 2007-01-28  Bruno Haible  <bruno@clisp.org>
56070
56071         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
56072         value of $(SYS_TIME_H).
56073         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
56074         remove it conditionally, too. [added by Jim Meyering]
56075         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
56076         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56077         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
56078         GETTIMEOFDAY_REPLACEMENT to 1.
56079
56080 2007-01-28  Bruno Haible  <bruno@clisp.org>
56081
56082         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
56083         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
56084         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
56085         Set UNISTD_H instead of UNISTD_H2.
56086         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
56087
56088 2007-01-28  Bruno Haible  <bruno@clisp.org>
56089
56090         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
56091         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
56092
56093 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56094
56095         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
56096         (func_create_testdir): Ensure C locale for `grep' and `tr'
56097         character ranges.
56098         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
56099         ACLOCAL_AMFLAGS parsing state machine.
56100
56101 2007-01-27  Bruno Haible  <bruno@clisp.org>
56102
56103         * modules/unistr/base: Update.
56104
56105 2007-01-27  Bruno Haible  <bruno@clisp.org>
56106
56107         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
56108         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
56109         * modules/unistr/u32-mbtouc-unsafe: Renamed from
56110         modules/unistr/u32-mbtouc.
56111         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
56112         * lib/unistr.h: Update.
56113         * lib/linebreak.c: Update.
56114         * modules/unistr/u32-mbtouc: Renamed from
56115         modules/unistr/u32-mbtouc-safe.
56116         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
56117         * lib/unistr.h: Update.
56118         * lib/unistr/u32-to-u8.c: Update.
56119         * lib/unistr/u32-to-u16.c: Update.
56120
56121 2007-01-27  Bruno Haible  <bruno@clisp.org>
56122
56123         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
56124         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
56125         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
56126         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
56127         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
56128         * modules/unistr/u16-mbtouc-unsafe: Renamed from
56129         modules/unistr/u16-mbtouc.
56130         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
56131         * lib/unistr.h: Update.
56132         * lib/linebreak.c: Update.
56133         * modules/linebreak: Update.
56134         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
56135         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
56136         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
56137         * modules/unistr/u16-mbtouc: Renamed from
56138         modules/unistr/u16-mbtouc-safe.
56139         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
56140         * lib/unistr.h: Update.
56141         * lib/unistr/u16-to-u8.c: Update.
56142         * modules/unistr/u16-to-u8: Update.
56143         * lib/unistr/u16-to-u32.c: Update.
56144         * modules/unistr/u16-to-u32: Update.
56145
56146 2007-01-27  Bruno Haible  <bruno@clisp.org>
56147
56148         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
56149         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
56150         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
56151         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
56152         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
56153         * modules/unistr/u8-mbtouc-unsafe: Renamed from
56154         modules/unistr/u8-mbtouc.
56155         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
56156         * lib/unistr.h: Update.
56157         * lib/striconveh.c: Update.
56158         * modules/striconveh: Update.
56159         * lib/linebreak.c: Update.
56160         * modules/linebreak: Update.
56161         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
56162         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
56163         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
56164         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
56165         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
56166         * lib/unistr.h: Update.
56167         * lib/striconveh.c: Update.
56168         * modules/striconveh: Update.
56169         * lib/unistr/u8-to-u16.c: Update.
56170         * modules/unistr/u8-to-u16: Update.
56171         * lib/unistr/u8-to-u32.c: Update.
56172         * modules/unistr/u8-to-u32: Update.
56173
56174 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56175
56176         Sync from Libtool.
56177         * lib/argz.c: Do not include strings.h nor memory.h, include
56178         string.h unconditionally.  Patch by Simon Josefsson.
56179
56180 2007-01-27  Bruno Haible  <bruno@clisp.org>
56181
56182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
56183         from gl_HEADER_STRING_H_BODY.
56184         (gl_HEADER_STRING_H_BODY): Require it.
56185         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
56186         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56187         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56188         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56189         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56190         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
56191         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56192         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56193         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
56194         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56195         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56196         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
56197         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56198         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56199         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56200
56201 2007-01-27  Bruno Haible  <bruno@clisp.org>
56202
56203         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
56204         check_PROGRAMS into noinst_PROGRAMS.
56205         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
56206         check_PROGRAMS in this case.
56207         (func_import): Set for_test to false.
56208         (func_create_testdir): Set for_test to true.
56209
56210 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56211             Bruno Haible  <bruno@clisp.org>
56212
56213         * modules/strcasestr (Files): Remove lib/strcasestr.h.
56214         (Depends-on): Add string.
56215         (Includes): Use <string.h> instead of strcasestr.h.
56216         * modules/string (Makefile.am): Also substitute the value of
56217         REPLACE_STRCASESTR.
56218         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
56219         assume strcasestr is declared in <string.h> not <strings.h>. Also
56220         set REPLACE_STRCASESTR.
56221         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
56222         REPLACE_STRCASESTR.
56223         * lib/strcasestr.h: Remove file.
56224         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
56225         * lib/string_.h (strcasestr): New declaration.
56226
56227 2007-01-27  Bruno Haible  <bruno@clisp.org>
56228
56229         * lib/string_.h: Use 'extern'.
56230
56231 2007-01-27  Jim Meyering  <jim@meyering.net>
56232
56233         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
56234         of set-but-not-used local, "q".
56235
56236         * lib/mempcpy.c: Include <config.h> before <string.h>.
56237         This fixes a compilation error on HP-UX, due to the system's
56238         "restrict"-using mempcpy prototype.
56239
56240 2007-01-26  Bruno Haible  <bruno@clisp.org>
56241
56242         Small optimization.
56243         * lib/javacomp.c: Include c-strstr.h.
56244          (is_envjavac_gcj): Use c_strstr instead of strstr.
56245         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
56246
56247 2007-01-26  Bruno Haible  <bruno@clisp.org>
56248
56249         * MODULES.html.sh (Unicode string functions): Add the new modules.
56250
56251         * modules/uniconv/u32-strconv-to-locale: New file.
56252         * lib/uniconv/u32-strconv-to-locale.c: New file.
56253
56254         * modules/uniconv/u16-strconv-to-locale: New file.
56255         * lib/uniconv/u16-strconv-to-locale.c: New file.
56256
56257         * modules/uniconv/u8-strconv-to-locale: New file.
56258         * lib/uniconv/u8-strconv-to-locale.c: New file.
56259
56260         * modules/uniconv/u32-strconv-from-locale: New file.
56261         * lib/uniconv/u32-strconv-from-locale.c: New file.
56262
56263         * modules/uniconv/u16-strconv-from-locale: New file.
56264         * lib/uniconv/u16-strconv-from-locale.c: New file.
56265
56266         * modules/uniconv/u8-strconv-from-locale: New file.
56267         * lib/uniconv/u8-strconv-from-locale.c: New file.
56268
56269         * modules/uniconv/u32-strconv-to-enc: New file.
56270         * lib/uniconv/u32-strconv-to-enc.c: New file.
56271         * modules/uniconv/u32-strconv-to-enc-tests: New file.
56272         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
56273
56274         * modules/uniconv/u16-strconv-to-enc: New file.
56275         * lib/uniconv/u16-strconv-to-enc.c: New file.
56276         * lib/uniconv/u-strconv-to-enc.h: New file.
56277         * modules/uniconv/u16-strconv-to-enc-tests: New file.
56278         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
56279
56280         * modules/uniconv/u8-strconv-to-enc: New file.
56281         * lib/uniconv/u8-strconv-to-enc.c: New file.
56282         * modules/uniconv/u8-strconv-to-enc-tests: New file.
56283         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
56284
56285         * modules/uniconv/u32-strconv-from-enc: New file.
56286         * lib/uniconv/u32-strconv-from-enc.c: New file.
56287         * modules/uniconv/u32-strconv-from-enc-tests: New file.
56288         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
56289
56290         * modules/uniconv/u16-strconv-from-enc: New file.
56291         * lib/uniconv/u16-strconv-from-enc.c: New file.
56292         * modules/uniconv/u16-strconv-from-enc-tests: New file.
56293         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
56294
56295         * modules/uniconv/u8-strconv-from-enc: New file.
56296         * lib/uniconv/u8-strconv-from-enc.c: New file.
56297         * lib/uniconv/u-strconv-from-enc.h: New file.
56298         * modules/uniconv/u8-strconv-from-enc-tests: New file.
56299         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
56300
56301         * modules/uniconv/u32-conv-from-enc: New file.
56302         * lib/uniconv/u32-conv-from-enc.c: New file.
56303         * modules/uniconv/u32-conv-from-enc-tests: New file.
56304         * tests/uniconv/test-u32-conv-from-enc.c: New file.
56305
56306         * modules/uniconv/u16-conv-from-enc: New file.
56307         * lib/uniconv/u16-conv-from-enc.c: New file.
56308         * lib/uniconv/u-conv-from-enc.h: New file.
56309         * modules/uniconv/u16-conv-from-enc-tests: New file.
56310         * tests/uniconv/test-u16-conv-from-enc.c: New file.
56311
56312         * modules/uniconv/u8-conv-from-enc: New file.
56313         * lib/uniconv/u8-conv-from-enc.c: New file.
56314         * modules/uniconv/u8-conv-from-enc-tests: New file.
56315         * tests/uniconv/test-u8-conv-from-enc.c: New file.
56316
56317         * modules/uniconv/base: New file.
56318         * lib/uniconv.h: New file.
56319
56320 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
56321
56322         * doc/gnulib-tool.texi (Initial import): Update to match current
56323         behavior with strdup module.
56324         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
56325         * lib/memmem.h: Remove; all uses removed.  This is now done
56326         by <string.h>.
56327         * lib/mempcpy.h: Likewise.
56328         * lib/memrchr.h: Likewise.
56329         * lib/stpcpy.h: Likewise.
56330         * lib/stpncpy.h: Likewise.
56331         * lib/strcase.h: Likewise.
56332         * lib/strchrnul.h: Likewise.
56333         * lib/strdup.h: Likewise.
56334         * lib/strndup.h: Likewise.
56335         * lib/strnlen.h: Likewise.
56336         * lib/strpbrk.h: Likewise.
56337         * lib/strsep.h: Likewise.
56338         * lib/strstr.h: Likewise.
56339         * lib/strtok_r.h: Likewise.
56340         * lib/string_.h: New file.
56341         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
56342         Rely on <string.h> instead.
56343         * lib/canon-host.c: Likewise.
56344         * lib/chdir-long.c: Likewise.
56345         * lib/concatpath.c: Likewise.
56346         * lib/exclude.c: Likewise.
56347         * lib/fchdir.c: Likewise.
56348         * lib/getaddrinfo.c: Likewise.
56349         * lib/getcwd.c: Likewise.
56350         * lib/getsubopt.c: Likewise.
56351         * lib/glob.c: Likewise.
56352         * lib/hard-locale.c: Likewise.
56353         * lib/iconvme.c: Likewise.
56354         * lib/javacomp.c: Likewise.
56355         * lib/mempcpy.c: Likewise.
56356         * lib/memrchr.c: Likewise.
56357         * lib/regex_internal.h: Likewise.
56358         * lib/stpncpy.c: Likewise.
56359         * lib/strcasecmp.c: Likewise.
56360         * lib/strchrnul.c: Likewise.
56361         * lib/strdup.c: Likewise.
56362         * lib/striconv.c: Likewise.
56363         * lib/striconveh.c: Likewise.
56364         * lib/striconveha.c: Likewise.
56365         * lib/strncasecmp.c: Likewise.
56366         * lib/strndup.c: Likewise.
56367         * lib/strnlen.c: Likewise.
56368         * lib/strsep.c: Likewise.
56369         * lib/strstr.c: Likewise.
56370         * lib/strtok_r.c: Likewise.
56371         * lib/userspec.c: Likewise.
56372         * lib/w32spawn.h: Likewise.
56373         * lib/xstrndup.c: Likewise.
56374         * lib/mountlist.c (strstr): Remove decl.
56375         * m4/string_h.m4: New file.
56376         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
56377         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
56378         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
56379         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
56380         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
56381         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
56382         Set REPLACE_STRCASECMP if necessary.
56383         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
56384         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
56385         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
56386         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
56387         HAVE_DECL_STRDUP if necessary.
56388         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
56389         since gl_FUNC_STRNDUP does that now.
56390         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
56391         Check for decl here...
56392         (gl_PREREQ_STRNLEN): ... not here.
56393         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
56394         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
56395         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
56396         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
56397         necessary.
56398         * modules/string: New file.
56399         * modules/memmem (Files): Remove special-purpose include file.
56400         (Depends-on): Add string.
56401         (Include): Include <string.h>, not the removed file.
56402         * modules/mempcpy: Likewise.
56403         * modules/memrchr: Likewise.
56404         * modules/stpcpy: Likewise.
56405         * modules/stpncpy: Likewise.
56406         * modules/strcase: Likewise.
56407         * modules/strchrnul: Likewise.
56408         * modules/strdup: Likewise.
56409         * modules/strndup: Likewise.
56410         * modules/strnlen: Likewise.
56411         * modules/strpbrk: Likewise.
56412         * modules/strsep: Likewise.
56413         * modules/strstr: Likewise.
56414         * modules/strtok_r: Likewise.
56415         * tests/test-dirname.c: Don't include "strdup.h", since
56416         <string.h> now suffices.
56417         * tests/test-memmem.c: Don't include "memmem.h", since
56418         <string.h> now suffices.
56419
56420 2007-01-25  Bruno Haible  <bruno@clisp.org>
56421
56422         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
56423         *resultp is 0.
56424
56425         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
56426         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
56427         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
56428         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
56429
56430         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
56431         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
56432         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
56433         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
56434         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
56435         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
56436
56437 2007-01-24  Bruno Haible  <bruno@clisp.org>
56438
56439         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
56440         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
56441         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
56442         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
56443         gl_FUNC_FTS_CORE.
56444         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
56445         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
56446         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56447         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
56448         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
56449         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
56450         gl_FUNC_FCHOWNAT.
56451         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
56452         gl_FUNC_STRFTIME.
56453         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
56454         Reported by Ralf Wildenhues.
56455
56456 2007-01-24  Bruno Haible  <bruno@clisp.org>
56457
56458         Drop AC_REQUIRE calls that are redundant with the module dependencies.
56459         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
56460         gl_GETADDRINFO.
56461         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
56462         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
56463         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
56464
56465 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
56466
56467         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
56468         Don't use 'exit'; just return from 'main'.
56469         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
56470
56471         * lib/fnmatch_.h: Readjust white space and comments to match
56472         glibc, to avoid spurious diffs.
56473
56474 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56475
56476         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
56477         2004-12-01 change by Jakub Jelinek, since this code won't compile
56478         if !LIBC.  Problem reported by Bob Proulx.
56479
56480 2007-01-23  Bruno Haible  <bruno@clisp.org>
56481
56482         * lib/striconveh.c: Include c-strcaseeq.h.
56483         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
56484         * modules/striconveh (Depends-on): Add c-strcaseeq.
56485
56486 2007-01-23  Bruno Haible  <bruno@clisp.org>
56487
56488         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
56489
56490         * modules/c-strcaseeq: New file.
56491         * lib/c-strcaseeq.h: New file.
56492
56493         * modules/streq: New file.
56494         * lib/streq.h: New file.
56495
56496 2007-01-23  Bruno Haible  <bruno@clisp.org>
56497
56498         * modules/striconveha-tests: New file.
56499         * tests/test-striconveha.c: New file.
56500
56501         * lib/striconveha.h: Include <stdbool.h>.
56502         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
56503         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
56504         (mem_iconveha_notranslit): Renamed from mem_iconveha.
56505         (mem_iconveha): New function.
56506         (str_iconveha_notranslit): Renamed from str_iconveha.
56507         (str_iconveha): New function.
56508         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
56509         c-strcase.
56510
56511 2007-01-23  Bruno Haible  <bruno@clisp.org>
56512
56513         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
56514         encodings without forgiving before trying any encoding with handler.
56515         (str_iconveha): Try all encodings without forgiving before trying any
56516         encoding with handler.
56517
56518 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56519
56520         Import the following changes from libc.
56521
56522         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56523
56524         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
56525
56526         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56527
56528         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
56529         normal_bracket label.
56530
56531         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
56532
56533         [BZ #361]
56534         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
56535         to normal_bracket after fetching the next character.
56536
56537 2007-01-22  Bruno Haible  <bruno@clisp.org>
56538
56539         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
56540         argument.
56541         * lib/striconveh.c (iconv_carefully_1): New function.
56542         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
56543         argument.
56544         (str_cd_iconveh): Update.
56545         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
56546         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
56547         * tests/test-striconveh.c (MAGIC): New macro.
56548         (new_offsets): New function.
56549         (main): Test call with and without offsets.
56550
56551 2007-01-22  Bruno Haible  <bruno@clisp.org>
56552
56553         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
56554         * modules/sys_select (Makefile.am): Likewise.
56555         * modules/sys_socket (Makefile.am): Likewise.
56556         * modules/sys_time (Makefile.am): Likewise.
56557
56558 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
56559
56560         * modules/gettimeofday (License): Change from GPL to LGPL, since
56561         gettimeofday is a library function.
56562
56563 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56564
56565         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
56566
56567 2007-01-21  Bruno Haible  <bruno@clisp.org>
56568
56569         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
56570
56571 2007-01-21  Bruno Haible  <bruno@clisp.org>
56572
56573         * modules/striconveha: New file.
56574         * lib/striconveha.h: New file.
56575         * lib/striconveha.c: New file.
56576         * MODULES.html.sh (Internationalization functions): Add striconveha.
56577         * lib/striconv.c (str_iconv): Optimize the case of an empty input
56578         string.
56579         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
56580
56581 2007-01-21  Bruno Haible  <bruno@clisp.org>
56582
56583         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
56584         * lib/striconveh.c (str_iconveh): Likewise.
56585
56586 2007-01-21  Bruno Haible  <bruno@clisp.org>
56587
56588         * lib/striconveh.h (mem_iconveh): New declaration.
56589         * lib/striconveh.c (mem_iconveh): New function.
56590         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
56591
56592 2007-01-21  Bruno Haible  <bruno@clisp.org>
56593
56594         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
56595
56596         * lib/striconveh.h (mem_cd_iconveh): Change specification.
56597         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
56598         original result buffer.
56599         (str_cd_iconveh): Update.
56600         * tests/test-striconveh.c (main): Update.
56601
56602         * lib/striconv.h (mem_cd_iconv): Change specification.
56603         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
56604         result buffer.
56605         (str_cd_iconv): Update.
56606         * tests/test-striconv.c (main): Update.
56607
56608 2007-01-21  Bruno Haible  <bruno@clisp.org>
56609
56610         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
56611
56612 2007-01-20  Jim Meyering  <jim@meyering.net>
56613
56614         * lib/userspec.c (parse_with_separator): If a user or group string
56615         starts with "+", skip the corresponding name-to-ID look-up, since
56616         such a look-up must fail: user and group names may not include "+".
56617
56618 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56619
56620         * lib/poll.c: Include sys/time.h and time.h unconditionally,
56621         since we now assume the sys_time module.
56622         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
56623         check for sys/time.h; no longer needed.
56624         * modules/poll (Depends-on): Depend on sys_time.
56625
56626 2007-01-18  Bruno Haible  <bruno@clisp.org>
56627
56628         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
56629         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56630
56631         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
56632         gettimeofday.
56633
56634         * tests/test-gettimeofday.c: Include <time.h>.
56635         (dummy): Remove variable.
56636
56637         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
56638         gl_HEADER_SYS_TIME_H.
56639         (gl_HEADER_SYS_TIME_H): New macro.
56640
56641         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
56642         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56643         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
56644         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
56645         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56646         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
56647         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
56648         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56649         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
56650         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
56651         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56652
56653         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
56654         last change; it caused a compilation error when cross-compiling to
56655         Cygwin.
56656
56657 2007-01-18  Jim Meyering  <jim@meyering.net>
56658
56659         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
56660         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
56661         than the race-prone "test -d sys || mkdir sys".
56662         (configure.ac): Use AC_PROG_MKDIR_P.
56663         * modules/sys_select: Likewise.
56664         * modules/sys_socket: Likewise.
56665         * modules/sys_time: Likewise.
56666
56667 2007-01-18  Eric Blake  <ebb9@byu.net>
56668
56669         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
56670         replace gettimeofday.
56671         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
56672         name, to avoid infinite recursion.
56673
56674 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
56675
56676         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
56677         module sys_time.
56678         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
56679         assume timespec.h defines struct timeval.
56680         * lib/settime.c: Likewise.
56681         * lib/utimens.c: Likewise.
56682         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
56683         since we now assume the gettimeofday module.
56684         * lib/tempname.c (__gen_tempname): Likewise.
56685         * lib/gettimeofday.h: Remove.
56686         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
56687         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
56688         Include <time.h>, for 'time()'.
56689         (localtime_buffer_addr): Also use this workaround if
56690         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
56691         to simplify the uses.  All uses changed.
56692         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
56693         that #undef is inside {}, and 'const' follows type name consistently.
56694         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
56695         (gettimeofday): Do not use the maximum possible value for
56696         tv->tv_usec, since that might break usages other than ls.c.
56697         Instead, we'll leave ls.c alone.  This undoes today's patch
56698         by Bruno.  Add a compile-time warning for 1s-clock resolution;
56699         we've never observed the problem but might as well keep the
56700         canary.
56701         * lib/nanosleep.c: Include timespec.h first, for interface check.
56702         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
56703         now assume the sys_time module.
56704         * lib/tempname.c: Likewise.
56705         * lib/timespec.h: Likewise.
56706         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
56707         needed.
56708         * lib/strftime.c: Likewise.
56709         * lib/timespec.h: Likewise.
56710         * lib/posixtm.c: Include posixtm.h first, for interface check.
56711         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
56712         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
56713         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
56714         * lib/sys_time_.h: New file.
56715         * lib/timespec.h (struct timespec): Use long int, not long.
56716         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56717         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
56718         Remove obsolescent call to AC_HEADER_TIME.
56719         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56720         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56721         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56722         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
56723         Likewise.
56724         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
56725         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
56726         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
56727         into the sys_time module.  Check for gettimeofday just once.
56728         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
56729         for gettimeofday signature to just check the signature.  Merely
56730         compile it, since linking doesn't test signature.  Improve test for
56731         whether gettimeofday.o is actually needed.
56732         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
56733         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
56734         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
56735         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56736         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
56737         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
56738         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
56739         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
56740         than worrying about sys/time.h.
56741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56742         Don't bother worrying about TIME_WITH_SYS_TIME.
56743         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
56744         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
56745         * m4/sys_time_h.m4: New file.
56746         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
56747         Don't include sys/time.h.  Return from main rather than exiting.
56748         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
56749         all uses changed.
56750         * modules/gethrxtime (Depends-on): Add sys_time.
56751         * modules/gettime (Depends-on): Likewise.
56752         * modules/gettimeofday (Depends-on): Likewise.
56753         * modules/nanosleep (Depends-on): Likewise.
56754         * modules/settime (Depends-on): Likewise.
56755         * modules/tempname (Depends-on): Likewise.
56756         * modules/utimens (Depends-on): Likewise.
56757         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
56758         (Include): Change back to <sys/time.h>.
56759         (Maintainer): Add self.
56760         * modules/sys_time: New file.
56761         * modules/tempname (Depends-on): Add gettimeofday.
56762         * tests/test-gettimeofday.c: Include <sys/time.h>
56763         rather than gettimeofday.h.
56764
56765 2007-01-17  Bruno Haible  <bruno@clisp.org>
56766
56767         * gnulib-tool (func_get_license): Revert last patch. Instead, let
56768         the license default to GPL.
56769         (func_create_testdir): Don't complain if a module is LGPL and its
56770         tests module depends on GPLed modules.
56771
56772 2007-01-17  Bruno Haible  <bruno@clisp.org>
56773
56774         * lib/gettimeofday.c (gettimeofday): Add code for the case
56775         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
56776         maximum possible value for tv->tv_usec, rather than the minimum one.
56777
56778 2005-10-08  Martin Lambers  <marlam@marlam.de>
56779 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56780 2007-01-16  Bruno Haible  <bruno@clisp.org>
56781
56782         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
56783         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
56784         gl_FUNC_GETTIMEOFDAY.
56785         (Include): Add gettimeofday.h.
56786         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
56787         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
56788         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
56789         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
56790         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
56791         * lib/gettimeofday.h: New file.
56792         * lib/gettimeofday.c: Include <sys/timeb.h>.
56793         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
56794         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56795         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
56796         fall back on time().
56797
56798         * tests/test-gettimeofday.c: New file.
56799         * modules/gettimeofday-tests: New file.
56800
56801 2007-01-16  Eric Blake  <ebb9@byu.net>
56802
56803         * modules/fnmatch (Depends-on): Depend on wchar.
56804         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
56805         * m4/fnmatch.m4: Likewise.
56806         * modules/mbchar (Makefile.am): Assume <wchar.h>.
56807         * m4/mbchar.m4: Likewise.
56808         * modules/mbswidth (Depends-on): Depend on wchar.
56809         * lib/mbswidth.c: Assume <wchar.h>.
56810         * m4/mbswidth.m4: Likewise.
56811         * modules/quotearg (Depends-on): Depend on wchar.
56812         * lib/quotearg.c: Assume <wchar.h>.
56813         * m4/quotearg.m4: Likewise.
56814         * modules/regex (Depends-on): Depend on wchar.
56815         * lib/regex_internal.h: Assume <wchar.h>.
56816         * m4/regex.m4: Likewise.
56817         * modules/stdint (Depends-on): Depend on wchar.
56818         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
56819         * m4/stdint.m4: Likewise.
56820         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
56821         * modules/strftime (Depends-on): Depend on wchar.
56822         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
56823         * modules/strtol (Depends-on): Depend on wchar.
56824         * lib/strtol.c: Assume <wchar.h>.
56825         * modules/wcwidth (Depends-on): Depend on wchar.
56826         * lib/wcwidth.h: Assume <wchar.h>.
56827         * m4/wcwidth.m4: Likewise.
56828
56829 2007-01-16  Bruno Haible  <bruno@clisp.org>
56830
56831         * modules/csharpexec-script: New, created from...
56832         * modules/csharpexec: ... this.
56833
56834 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56835
56836         * modules/javaexec-script: New, created from...
56837         * modules/javaexec: ... this.
56838
56839 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56840
56841         * modules/poll (Dependencies): Add sys_select.
56842
56843 2007-01-15  Jim Meyering  <jim@meyering.net>
56844
56845         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
56846         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
56847         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
56848         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
56849
56850 2007-01-15  Bruno Haible  <bruno@clisp.org>
56851
56852         * modules/striconveh: New file.
56853         * lib/striconveh.h: New file.
56854         * lib/striconveh.c: New file.
56855         * MODULES.html.sh (Internationalization functions): Add striconveh.
56856
56857         * modules/striconveh-tests: New file.
56858         * tests/test-striconveh.c: New file.
56859
56860 2007-01-15  Bruno Haible  <bruno@clisp.org>
56861
56862         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
56863         not from GNU libiconv or GNU libc.
56864
56865 2007-01-15  Bruno Haible  <bruno@clisp.org>
56866
56867         * doc/gnulib-intro.texi (Copyright): Explain the different license
56868         terms for module descriptions, autoconf macros, tests, documentation.
56869
56870 2007-01-14  Bruno Haible  <bruno@clisp.org>
56871
56872         * modules/striconv-tests: New file.
56873         * tests/test-striconv.c: New file.
56874
56875 2007-01-14  Bruno Haible  <bruno@clisp.org>
56876
56877         * modules/iconv-tests: New file.
56878         * tests/test-iconv.c: New file.
56879
56880 2007-01-14  Bruno Haible  <bruno@clisp.org>
56881
56882         * gnulib-tool (func_get_license): For test modules, use the license of
56883         the main module.
56884
56885 2007-01-14  Bruno Haible  <bruno@clisp.org>
56886
56887         * modules/iconv (Include): Clarify that <iconv.h> can only be included
56888         if iconv is found to exist.
56889
56890 2007-01-14  Bruno Haible  <bruno@clisp.org>
56891
56892         * modules/c-ctype-tests: New file.
56893         * tests/test-c-ctype.c: New file.
56894
56895 2007-01-14  Bruno Haible  <bruno@clisp.org>
56896
56897         * modules/binary-io-tests: New file.
56898         * tests/test-binary-io.sh: New file.
56899         * tests/test-binary-io.c: New file.
56900
56901 2007-01-14  Bruno Haible  <bruno@clisp.org>
56902
56903         * modules/array-oset-tests: New file.
56904         * tests/test-array_oset.c: New file.
56905
56906 2007-01-14  Bruno Haible  <bruno@clisp.org>
56907
56908         * modules/array-list-tests: New file.
56909         * tests/test-array_list.c: New file.
56910
56911 2007-01-14  Bruno Haible  <bruno@clisp.org>
56912
56913         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
56914         and make.
56915         Reported by Simon Josefsson in
56916         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
56917
56918 2007-01-14  Bruno Haible  <bruno@clisp.org>
56919
56920         * modules/allocsa-tests: New file.
56921         * tests/test-allocsa.c: New file.
56922
56923 2007-01-14  Bruno Haible  <bruno@clisp.org>
56924
56925         * modules/fchdir (Depends-on): Add absolute-header.
56926         * modules/unistd (Depends-on): Likewise.
56927
56928 2006-12-30  Bruno Haible  <bruno@clisp.org>
56929
56930         * modules/fchdir: New file.
56931         * modules/unistd (Files): Add lib/unistd_.h.
56932         (Makefile.am): Generate unistd.h from unistd_.h.
56933         * lib/fchdir.c: New file.
56934         * lib/dirent_.h: New file.
56935         * lib/unistd_.h: New file.
56936         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
56937         * m4/fchdir.m4: New file.
56938         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
56939         (gl_HEADER_UNISTD): Invoke it.
56940         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
56941         function.
56942         * lib/backupfile.c (opendir, closedir): Undefine.
56943         * lib/chown.c (open, close): Undefine.
56944         * lib/clean-temp.c (open, close): Undefine.
56945         * lib/copy-file.c (open, close): Undefine.
56946         * lib/execute.c (open, close): Undefine.
56947         * lib/fsusage.c (open, close): Undefine.
56948         * lib/gc-gnulib.c (open, close): Undefine.
56949         * lib/getcwd.c (opendir, closedir): Undefine.
56950         * lib/glob.c (opendir, closedir): Undefine.
56951         * lib/javacomp.c (open, close): Undefine.
56952         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
56953         * lib/openat-proc.c (open, close): Undefine.
56954         * lib/pagealign_alloc.c (open, close): Undefine.
56955         * lib/pipe.c (open, close): Undefine.
56956         * lib/progreloc.c (open, close): Undefine.
56957         * lib/savedir.c (opendir, closedir): Undefine.
56958         * lib/utime.c (open, close): Undefine.
56959         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
56960
56961 2007-01-10  Bruno Haible  <bruno@clisp.org>
56962
56963         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
56964
56965 2007-01-12  Eric Blake  <ebb9@byu.net>
56966
56967         Provide a robust <wchar.h>.  Further simplifications are now
56968         possible in other modules, but not included here.
56969         * modules/wchar: New module.
56970         * m4/wchar.m4: New file.
56971         * lib/wchar_.h: Likewise.
56972         * modules/mbchar (Depends-on): Depend on wchar, as the first use
56973         of the new module.
56974         * MODULES.html.sh (Extended multibyte and wide character utilities):
56975         New section.
56976
56977 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
56978
56979         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
56980         to a reasonable default for memory allocation.
56981         (xreadlink): Don't allocate a huge buffer, to work around a buggy
56982         file system that reports garbage st_size values for symlinks.
56983         Problem reported by Liyang Hu.
56984
56985 2007-01-11  Simon Josefsson  <simon@josefsson.org>
56986
56987         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
56988         Emacs .#* auto-save files).
56989
56990 2007-01-11  Bruno Haible  <bruno@clisp.org>
56991
56992         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
56993         directory.
56994
56995 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56996
56997         Use @...@ consistently in lib/wctype_.h.
56998         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
56999         on it being set to 1 or 0.
57000         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
57001         go back to AC_SUBSTing it.
57002         * modules/wctype (Makefile.am): Undo previous change.
57003
57004 2007-01-10  Eric Blake  <ebb9@byu.net>
57005
57006         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
57007         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
57008         * modules/wctype (Makefile.am): Likewise.
57009         Reported by Chris McGuire.
57010
57011 2007-01-10  Jim Meyering  <jim@meyering.net>
57012
57013         fts.c: a small readability/maintainability improvement
57014         * lib/fts.c (fts_read): Make this code slightly more readable and
57015         maintainable by hoisting the "sp->fts_cur = p" assignments to
57016         immediately follow the statements that set P.  Derived from
57017         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
57018
57019 2007-01-10  Eric Blake  <ebb9@byu.net>
57020
57021         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
57022         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
57023         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57024         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57025         Reported by Chris McGuire.
57026
57027 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57028
57029         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
57030         in sed script.
57031
57032 2007-01-09  Bruno Haible  <bruno@clisp.org>
57033
57034         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
57035         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
57036         variables.
57037         (func_module): Use them.
57038
57039 2007-01-09  Bruno Haible  <bruno@clisp.org>
57040
57041         * modules/unistr/base: New file.
57042         * lib/unistr.h: New file.
57043
57044         * modules/unistr/u8-to-u16: New file.
57045         * lib/unistr/u8-to-u16.c: New file.
57046
57047         * modules/unistr/u8-to-u32: New file.
57048         * lib/unistr/u8-to-u32.c: New file.
57049
57050         * modules/unistr/u16-to-u8: New file.
57051         * lib/unistr/u16-to-u8.c: New file.
57052
57053         * modules/unistr/u16-to-u32: New file.
57054         * lib/unistr/u16-to-u32.c: New file.
57055
57056         * modules/unistr/u32-to-u8: New file.
57057         * lib/unistr/u32-to-u8.c: New file.
57058
57059         * modules/unistr/u32-to-u16: New file.
57060         * lib/unistr/u32-to-u16.c: New file.
57061
57062         * modules/unistr/u8-check: New file.
57063         * modules/unistr/u16-check: New file.
57064         * modules/unistr/u32-check: New file.
57065         * lib/unistr/u8-check.c: New file.
57066         * lib/unistr/u16-check.c: New file.
57067         * lib/unistr/u32-check.c: New file.
57068
57069         * modules/unistr/u8-chr: New file.
57070         * modules/unistr/u16-chr: New file.
57071         * modules/unistr/u32-chr: New file.
57072         * lib/unistr/u8-chr.c: New file.
57073         * lib/unistr/u16-chr.c: New file.
57074         * lib/unistr/u32-chr.c: New file.
57075
57076         * modules/unistr/u8-cmp: New file.
57077         * modules/unistr/u16-cmp: New file.
57078         * modules/unistr/u32-cmp: New file.
57079         * lib/unistr/u8-cmp.c: New file.
57080         * lib/unistr/u16-cmp.c: New file.
57081         * lib/unistr/u32-cmp.c: New file.
57082
57083         * modules/unistr/u8-cpy: New file.
57084         * modules/unistr/u16-cpy: New file.
57085         * modules/unistr/u32-cpy: New file.
57086         * lib/unistr/u8-cpy.c: New file.
57087         * lib/unistr/u16-cpy.c: New file.
57088         * lib/unistr/u32-cpy.c: New file.
57089         * lib/unistr/u-cpy.h: New file.
57090
57091         * modules/unistr/u8-cpy-alloc: New file.
57092         * modules/unistr/u16-cpy-alloc: New file.
57093         * modules/unistr/u32-cpy-alloc: New file.
57094         * lib/unistr/u8-cpy-alloc.c: New file.
57095         * lib/unistr/u16-cpy-alloc.c: New file.
57096         * lib/unistr/u32-cpy-alloc.c: New file.
57097         * lib/unistr/u-cpy-alloc.h: New file.
57098
57099         * modules/unistr/u8-endswith: New file.
57100         * modules/unistr/u16-endswith: New file.
57101         * modules/unistr/u32-endswith: New file.
57102         * lib/unistr/u8-endswith.c: New file.
57103         * lib/unistr/u16-endswith.c: New file.
57104         * lib/unistr/u32-endswith.c: New file.
57105         * lib/unistr/u-endswith.h: New file.
57106
57107         * modules/unistr/u8-mblen: New file.
57108         * modules/unistr/u16-mblen: New file.
57109         * modules/unistr/u32-mblen: New file.
57110         * lib/unistr/u8-mblen.c: New file.
57111         * lib/unistr/u16-mblen.c: New file.
57112         * lib/unistr/u32-mblen.c: New file.
57113
57114         * modules/unistr/u8-mbtouc: New file.
57115         * modules/unistr/u16-mbtouc: New file.
57116         * modules/unistr/u32-mbtouc: New file.
57117         * lib/unistr/u8-mbtouc.c: New file.
57118         * lib/unistr/u16-mbtouc.c: New file.
57119         * lib/unistr/u32-mbtouc.c: New file.
57120
57121         * modules/unistr/u8-mbtouc-safe: New file.
57122         * modules/unistr/u16-mbtouc-safe: New file.
57123         * modules/unistr/u32-mbtouc-safe: New file.
57124         * lib/unistr/u8-mbtouc-safe.c: New file.
57125         * lib/unistr/u16-mbtouc-safe.c: New file.
57126         * lib/unistr/u32-mbtouc-safe.c: New file.
57127
57128         * modules/unistr/u8-move: New file.
57129         * modules/unistr/u16-move: New file.
57130         * modules/unistr/u32-move: New file.
57131         * lib/unistr/u8-move.c: New file.
57132         * lib/unistr/u16-move.c: New file.
57133         * lib/unistr/u32-move.c: New file.
57134         * lib/unistr/u-move.h: New file.
57135
57136         * modules/unistr/u8-next: New file.
57137         * modules/unistr/u16-next: New file.
57138         * modules/unistr/u32-next: New file.
57139         * lib/unistr/u8-next.c: New file.
57140         * lib/unistr/u16-next.c: New file.
57141         * lib/unistr/u32-next.c: New file.
57142
57143         * modules/unistr/u8-prev: New file.
57144         * modules/unistr/u16-prev: New file.
57145         * modules/unistr/u32-prev: New file.
57146         * lib/unistr/u8-prev.c: New file.
57147         * lib/unistr/u16-prev.c: New file.
57148         * lib/unistr/u32-prev.c: New file.
57149
57150         * modules/unistr/u8-set: New file.
57151         * modules/unistr/u16-set: New file.
57152         * modules/unistr/u32-set: New file.
57153         * lib/unistr/u8-set.c: New file.
57154         * lib/unistr/u16-set.c: New file.
57155         * lib/unistr/u32-set.c: New file.
57156         * lib/unistr/u-set.h: New file.
57157
57158         * modules/unistr/u8-startswith: New file.
57159         * modules/unistr/u16-startswith: New file.
57160         * modules/unistr/u32-startswith: New file.
57161         * lib/unistr/u8-startswith.c: New file.
57162         * lib/unistr/u16-startswith.c: New file.
57163         * lib/unistr/u32-startswith.c: New file.
57164         * lib/unistr/u-startswith.h: New file.
57165
57166         * modules/unistr/u8-stpcpy: New file.
57167         * modules/unistr/u16-stpcpy: New file.
57168         * modules/unistr/u32-stpcpy: New file.
57169         * lib/unistr/u8-stpcpy.c: New file.
57170         * lib/unistr/u16-stpcpy.c: New file.
57171         * lib/unistr/u32-stpcpy.c: New file.
57172         * lib/unistr/u-stpcpy.h: New file.
57173
57174         * modules/unistr/u8-stpncpy: New file.
57175         * modules/unistr/u16-stpncpy: New file.
57176         * modules/unistr/u32-stpncpy: New file.
57177         * lib/unistr/u8-stpncpy.c: New file.
57178         * lib/unistr/u16-stpncpy.c: New file.
57179         * lib/unistr/u32-stpncpy.c: New file.
57180         * lib/unistr/u-stpncpy.h: New file.
57181
57182         * modules/unistr/u8-strcat: New file.
57183         * modules/unistr/u16-strcat: New file.
57184         * modules/unistr/u32-strcat: New file.
57185         * lib/unistr/u8-strcat.c: New file.
57186         * lib/unistr/u16-strcat.c: New file.
57187         * lib/unistr/u32-strcat.c: New file.
57188         * lib/unistr/u-strcat.h: New file.
57189
57190         * modules/unistr/u8-strchr: New file.
57191         * modules/unistr/u16-strchr: New file.
57192         * modules/unistr/u32-strchr: New file.
57193         * lib/unistr/u8-strchr.c: New file.
57194         * lib/unistr/u16-strchr.c: New file.
57195         * lib/unistr/u32-strchr.c: New file.
57196
57197         * modules/unistr/u8-strcmp: New file.
57198         * modules/unistr/u16-strcmp: New file.
57199         * modules/unistr/u32-strcmp: New file.
57200         * lib/unistr/u8-strcmp.c: New file.
57201         * lib/unistr/u16-strcmp.c: New file.
57202         * lib/unistr/u32-strcmp.c: New file.
57203
57204         * modules/unistr/u8-strcpy: New file.
57205         * modules/unistr/u16-strcpy: New file.
57206         * modules/unistr/u32-strcpy: New file.
57207         * lib/unistr/u8-strcpy.c: New file.
57208         * lib/unistr/u16-strcpy.c: New file.
57209         * lib/unistr/u32-strcpy.c: New file.
57210         * lib/unistr/u-strcpy.h: New file.
57211
57212         * modules/unistr/u8-strcspn: New file.
57213         * modules/unistr/u16-strcspn: New file.
57214         * modules/unistr/u32-strcspn: New file.
57215         * lib/unistr/u8-strcspn.c: New file.
57216         * lib/unistr/u16-strcspn.c: New file.
57217         * lib/unistr/u32-strcspn.c: New file.
57218         * lib/unistr/u-strcspn.h: New file.
57219
57220         * modules/unistr/u8-strdup: New file.
57221         * modules/unistr/u16-strdup: New file.
57222         * modules/unistr/u32-strdup: New file.
57223         * lib/unistr/u8-strdup.c: New file.
57224         * lib/unistr/u16-strdup.c: New file.
57225         * lib/unistr/u32-strdup.c: New file.
57226         * lib/unistr/u-strdup.h: New file.
57227
57228         * modules/unistr/u8-strlen: New file.
57229         * modules/unistr/u16-strlen: New file.
57230         * modules/unistr/u32-strlen: New file.
57231         * lib/unistr/u8-strlen.c: New file.
57232         * lib/unistr/u16-strlen.c: New file.
57233         * lib/unistr/u32-strlen.c: New file.
57234         * lib/unistr/u-strlen.h: New file.
57235
57236         * modules/unistr/u8-strmblen: New file.
57237         * modules/unistr/u16-strmblen: New file.
57238         * modules/unistr/u32-strmblen: New file.
57239         * lib/unistr/u8-strmblen.c: New file.
57240         * lib/unistr/u16-strmblen.c: New file.
57241         * lib/unistr/u32-strmblen.c: New file.
57242
57243         * modules/unistr/u8-strmbtouc: New file.
57244         * modules/unistr/u16-strmbtouc: New file.
57245         * modules/unistr/u32-strmbtouc: New file.
57246         * lib/unistr/u8-strmbtouc.c: New file.
57247         * lib/unistr/u16-strmbtouc.c: New file.
57248         * lib/unistr/u32-strmbtouc.c: New file.
57249
57250         * modules/unistr/u8-strncat: New file.
57251         * modules/unistr/u16-strncat: New file.
57252         * modules/unistr/u32-strncat: New file.
57253         * lib/unistr/u8-strncat.c: New file.
57254         * lib/unistr/u16-strncat.c: New file.
57255         * lib/unistr/u32-strncat.c: New file.
57256         * lib/unistr/u-strncat.h: New file.
57257
57258         * modules/unistr/u8-strncmp: New file.
57259         * modules/unistr/u16-strncmp: New file.
57260         * modules/unistr/u32-strncmp: New file.
57261         * lib/unistr/u8-strncmp.c: New file.
57262         * lib/unistr/u16-strncmp.c: New file.
57263         * lib/unistr/u32-strncmp.c: New file.
57264
57265         * modules/unistr/u8-strncpy: New file.
57266         * modules/unistr/u16-strncpy: New file.
57267         * modules/unistr/u32-strncpy: New file.
57268         * lib/unistr/u8-strncpy.c: New file.
57269         * lib/unistr/u16-strncpy.c: New file.
57270         * lib/unistr/u32-strncpy.c: New file.
57271         * lib/unistr/u-strncpy.h: New file.
57272
57273         * modules/unistr/u8-strnlen: New file.
57274         * modules/unistr/u16-strnlen: New file.
57275         * modules/unistr/u32-strnlen: New file.
57276         * lib/unistr/u8-strnlen.c: New file.
57277         * lib/unistr/u16-strnlen.c: New file.
57278         * lib/unistr/u32-strnlen.c: New file.
57279         * lib/unistr/u-strnlen.h: New file.
57280
57281         * modules/unistr/u8-strpbrk: New file.
57282         * modules/unistr/u16-strpbrk: New file.
57283         * modules/unistr/u32-strpbrk: New file.
57284         * lib/unistr/u8-strpbrk.c: New file.
57285         * lib/unistr/u16-strpbrk.c: New file.
57286         * lib/unistr/u32-strpbrk.c: New file.
57287         * lib/unistr/u-strpbrk.h: New file.
57288
57289         * modules/unistr/u8-strrchr: New file.
57290         * modules/unistr/u16-strrchr: New file.
57291         * modules/unistr/u32-strrchr: New file.
57292         * lib/unistr/u8-strrchr.c: New file.
57293         * lib/unistr/u16-strrchr.c: New file.
57294         * lib/unistr/u32-strrchr.c: New file.
57295
57296         * modules/unistr/u8-strspn: New file.
57297         * modules/unistr/u16-strspn: New file.
57298         * modules/unistr/u32-strspn: New file.
57299         * lib/unistr/u8-strspn.c: New file.
57300         * lib/unistr/u16-strspn.c: New file.
57301         * lib/unistr/u32-strspn.c: New file.
57302         * lib/unistr/u-strspn.h: New file.
57303
57304         * modules/unistr/u8-strstr: New file.
57305         * modules/unistr/u16-strstr: New file.
57306         * modules/unistr/u32-strstr: New file.
57307         * lib/unistr/u8-strstr.c: New file.
57308         * lib/unistr/u16-strstr.c: New file.
57309         * lib/unistr/u32-strstr.c: New file.
57310         * lib/unistr/u-strstr.h: New file.
57311
57312         * modules/unistr/u8-strtok: New file.
57313         * modules/unistr/u16-strtok: New file.
57314         * modules/unistr/u32-strtok: New file.
57315         * lib/unistr/u8-strtok.c: New file.
57316         * lib/unistr/u16-strtok.c: New file.
57317         * lib/unistr/u32-strtok.c: New file.
57318         * lib/unistr/u-strtok.h: New file.
57319
57320         * modules/unistr/u8-uctomb: New file.
57321         * modules/unistr/u16-uctomb: New file.
57322         * modules/unistr/u32-uctomb: New file.
57323         * lib/unistr/u8-uctomb.c: New file.
57324         * lib/unistr/u16-uctomb.c: New file.
57325         * lib/unistr/u32-uctomb.c: New file.
57326
57327         * MODULES.html.sh (Unicode string functions): Add the new modules.
57328
57329 2007-01-08  Bruno Haible  <bruno@clisp.org>
57330
57331         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
57332         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
57333         subdirectories.
57334
57335 2007-01-08  Karl Berry  <karl@gnu.org>
57336
57337         * doc/error.texi: mention that main() fns must set program_name
57338         when progname is used.
57339
57340 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
57341
57342         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
57343         WCTYPE_H is empty, for the benefit of builds from non-distclean
57344         directories.  Problem reported by Eric Blake in
57345         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
57346
57347 2007-01-08  Bruno Haible  <bruno@clisp.org>
57348
57349         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
57350         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
57351         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
57352         PROVIDE_CANONICALIZE_FILENAME_MODE.
57353         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
57354
57355 2007-01-08  Bruno Haible  <bruno@clisp.org>
57356
57357         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
57358         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
57359         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
57360         * lib/fts.c: Likewise.
57361         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
57362
57363 2006-12-25  Bruno Haible  <bruno@clisp.org>
57364
57365         * modules/utf8-ucs4-safe: New file.
57366         * lib/utf8-ucs4-safe.h: New file.
57367         * lib/unistr/utf8-ucs4-safe.c: New file.
57368
57369         * modules/utf16-ucs4-safe: New file.
57370         * lib/utf16-ucs4-safe.h: New file.
57371         * lib/unistr/utf16-ucs4-safe.c: New file.
57372
57373         * MODULES.html.sh (Unicode string functions): Add the new modules.
57374
57375 2007-01-08  Bruno Haible  <bruno@clisp.org>
57376
57377         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
57378         (Depends-on): Add unitypes.
57379         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57380         (u8_mbtouc_aux): Move out to separate file.
57381         (u8_mbtouc): Use ucs4_t, uint8_t types.
57382         * lib/unistr/utf8-ucs4.c: New file.
57383
57384         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
57385         (Depends-on): Add unitypes.
57386         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57387         (u16_mbtouc_aux): Move out to separate file.
57388         (u16_mbtouc): Use ucs4_t, uint16_t types.
57389         * lib/unistr/utf16-ucs4.c: New file.
57390
57391         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
57392         (Depends-on): Add unitypes.
57393         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
57394         (u8_uctomb_aux): Move out to separate file.
57395         (u8_uctomb): Use ucs4_t, uint8_t types.
57396         * lib/unistr/ucs4-utf8.c: New file.
57397
57398         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
57399         (Depends-on): Add unitypes.
57400         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
57401         (u16_uctomb_aux): Move out to separate file.
57402         (u16_uctomb): Use ucs4_t, uint16_t types.
57403         * lib/unistr/ucs4-utf16.c: New file.
57404
57405 2006-12-25  Bruno Haible  <bruno@clisp.org>
57406
57407         * modules/unitypes: New file.
57408         * lib/unitypes.h: New file.
57409         * MODULES.html.sh (func_all_modules): New section "Unicode string
57410         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
57411         this section. Add unitypes.
57412
57413 2007-01-08  Bruno Haible  <bruno@clisp.org>
57414
57415         Avoid variable names that conflict with those from libtool.
57416         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
57417         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
57418         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
57419         library_names_spec to acl_library_names_spec, hardcode_* to
57420         acl_hardcode_*.
57421         Reported by Ralf Wildenhues.
57422
57423 2007-01-08  Bruno Haible  <bruno@clisp.org>
57424
57425         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
57426         definition.
57427         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
57428         definition.
57429         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
57430         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
57431         definition.
57432         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
57433         definition.
57434         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
57435         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
57436         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
57437         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
57438         definition.
57439         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
57440         definition.
57441         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
57442         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
57443         GC_USE_<algorithm>.
57444         * lib/gc-libgcrypt.c: Likewise.
57445         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
57446         * modules/gc-arctwo (configure.ac): Likewise.
57447         * modules/gc-des (configure.ac): Likewise.
57448         * modules/gc-hmac-md5 (configure.ac): Likewise.
57449         * modules/gc-hmac-sha1 (configure.ac): Likewise.
57450         * modules/gc-md2 (configure.ac): Likewise.
57451         * modules/gc-md4 (configure.ac): Likewise.
57452         * modules/gc-md5 (configure.ac): Likewise.
57453         * modules/gc-random (configure.ac): Likewise.
57454         * modules/gc-rijndael (configure.ac): Likewise.
57455         * modules/gc-sha1 (configure.ac): Likewise.
57456
57457 2007-01-08  Bruno Haible  <bruno@clisp.org>
57458
57459         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
57460         macro definition.
57461         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
57462         definition.
57463         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
57464         definition.
57465         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
57466         * modules/fcntl-safer (configure.ac): Likewise.
57467         * modules/fopen-safer (configure.ac): Likewise.
57468         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
57469         GNULIB_FWRITEERROR macro definition.
57470
57471 2007-01-08  Bruno Haible  <bruno@clisp.org>
57472
57473         * m4/gnulib-common.m4: New file.
57474         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
57475         (func_get_filelist): Add m4/gnulib-common.m4.
57476
57477 2007-01-08  Bruno Haible  <bruno@clisp.org>
57478
57479         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
57480         command.
57481
57482 2007-01-08  Jim Meyering  <jim@meyering.net>
57483
57484         Use a more robust test for a "can't happen" condition.
57485         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
57486         narrowed the st_size value.  Presuming the "can't happen" condition
57487         is true, that narrowing could conceivably convert an invalid st_size
57488         value into a valid one.  Instead, use a change based on Matthew
57489         Woehlke's original patch.
57490
57491         Slight readability improvement: use an assert-like macro
57492         in place of literal "abort ()" uses.
57493         * lib/fts.c (fts_assert): Define.
57494         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
57495         Use this macro instead of a bare 'abort'.
57496
57497 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
57498
57499         Don't worry about using IRIX 5.3's wctype.h broken definitions;
57500         simply work around them.
57501         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
57502         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
57503         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
57504         declaring.
57505         Don't bother to define as macros, since the standard doesn't require it.
57506         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
57507         longer worry about IRIX 5.3.
57508         (HAVE_WCTYPE_CTMP_BUG): Remove.
57509
57510 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57511
57512         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
57513         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
57514         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57515         Problems reported by Georg Schwarz for IRIX 5.3.
57516
57517         * gnulib-tool (autoconf_minversion): Take the maximum version number
57518         found, not the minimum.  Problem reported by James Youngman.
57519
57520 2007-01-03  Karl Berry  <karl@gnu.org>
57521
57522         * doc/error.texi: new file, explaining interaction with progname.
57523         * doc/gnulib.texi: include it.  Update copyright.
57524
57525 2007-01-03  Simon Josefsson  <simon@josefsson.org>
57526
57527         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
57528         AC_CANONICAL_HOST, to improve autobuild outputs.
57529
57530 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
57531             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57532
57533         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
57534         sockets, server sockets, and other file descriptors.  Count errors
57535         to compute the return value.  Reorder the code a bit to be easier
57536         to follow.  Don't set event bits that were not requested (except
57537         POLLERR and POLLHUP).
57538
57539 2007-01-01  Bruno Haible  <bruno@clisp.org>
57540
57541         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
57542
57543 2007-01-03  Jim Meyering  <jim@meyering.net>
57544
57545         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
57546
57547 2007-01-02  Bruno Haible  <bruno@clisp.org>
57548
57549         * modules/settime (Include): Require timespec.h.
57550         * modules/nanosleep (Include): Likewise.
57551
57552 2007-01-01  Bruno Haible  <bruno@clisp.org>
57553
57554         * gnulib-tool (func_emit_copyright_notice): Bump year.
57555         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
57556
57557 2007-01-01  Bruno Haible  <bruno@clisp.org>
57558
57559         Improve support for OpenBSD.
57560         * build-aux/config.rpath (libname_spec): Export.
57561         (library_names_spec): New variable. Export.
57562         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
57563         library_names_spec from the config.rpath output. Locate shared library
57564         through the name pattern in library_names_spec.
57565
57566 2007-01-01  Eric Blake  <ebb9@byu.net>
57567
57568         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
57569
57570 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
57571
57572         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
57573         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
57574         assume the C locale, and avoid an "eval" that could cause trouble.
57575         Problem with SORT reported by Bob Proulx.
57576
57577         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
57578         Define.  Trivial patch from Henning Nielsen Lund, originally
57579         sent to bug-grep@gnu.org today.
57580
57581 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57582
57583         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
57584         struct stat.  Problem reported by Henning Nielsen Lund.
57585         * lib/acl.c: Include acl.h first, to check interface.  Don't
57586         bother to include sys/types.h and sys/stat.h again.
57587
57588 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57589
57590         Import the following change from libc; problem reported by
57591         Sven Verdoolaege.
57592
57593         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
57594
57595         [BZ #1373]
57596         * lib/argp.h: Remove __NTH for __argp_usage inline function.
57597
57598 2006-12-28  Jim Meyering  <jim@meyering.net>
57599
57600         * build-aux/announce-gen: Do not assume that the package
57601         builds any of tar.gz, tar.bz2, and .xdelta files.
57602         Suggestion from Simon Josefsson.
57603
57604 2006-12-28  Simon Josefsson  <simon@josefsson.org>
57605
57606         * modules/announce-gen: New file.
57607
57608 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57609
57610         * lib/mbchar.h: Just include <wctype.h>; the wctype module
57611         handles its gotchas now.
57612         * lib/mbswidth.c: Likewise.
57613         * lib/wcwidth.h: Likewise.
57614         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
57615         and iswcntrl; the wctype module does this stuff now.
57616         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57617         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57618         * modules/mbchar (Depends-on): Add wctype.
57619         * modules/mbswidth (Depends-on): Likewise.
57620         * modules/wcwidth (Depends-on): Likewise.
57621
57622 2006-12-27  Eric Blake  <ebb9@byu.net>
57623
57624         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
57625         module uses more than what <wctype.h> is required to provide.
57626
57627 2006-12-26  Eric Blake  <ebb9@byu.net>
57628
57629         * gnulib-tool (sed_extract_prog): Avoid space-tab.
57630
57631 2006-12-26  Eric Blake  <ebb9@byu.net>
57632
57633         * modules/absolute-header: New module.
57634         * modules/fcntl (Depends-on): Depend on it.
57635         * modules/inttypes (Depends-on): Likewise.
57636         * modules/stdint (Depends-on): Likewise.
57637         * modules/sys_stat (Depends-on): Likewise.
57638         * modules/wctype (Depends-on): Likewise.
57639         * MODULES.html.sh (Support for building libraries and
57640         executables): Document it.
57641
57642 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57643
57644         * gnulib-tool (SED): Remove, undoing previous change.
57645         The problem was that it broke coreutils on Solaris, because
57646         "sed --posix" leaked into a makefile.
57647         (sed): New alias, if 'alias' and GNU sed.
57648
57649 2006-12-24  Jim Meyering  <jim@meyering.net>
57650
57651         Work around an fchownat bug in glibc-2.4:
57652         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
57653         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
57654         in spite of the -P option.
57655         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
57656         New macros.
57657         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
57658         * modules/openat (Files): Add lib/fchownat.c.
57659         * lib/openat.c (fchownat): Don't define here.  Move to...
57660         * lib/fchownat.c: ...this new file.
57661
57662 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57663
57664         Fix bug reported by Bruno Haible in
57665         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
57666         where quotearg.c didn't compile on Mac OS X 10.2 because it
57667         lacks <wchar.h> and wint_t.
57668         * lib/wctype_.h (__wctype_wint_t): New type.
57669         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
57670         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
57671         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
57672         Arg is now of type __wctype_wint_t, not wint_t.
57673         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
57674         substitute HAVE_WINT_T.
57675         * modules/wctype (Files): Add m4/wint_t.m4.
57676         (wctype.h): Substitute HAVE_WINT_T.
57677
57678 2006-12-23  Bruno Haible  <bruno@clisp.org>
57679
57680         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
57681
57682 2006-12-23  Bruno Haible  <bruno@clisp.org>
57683
57684         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
57685         S_ISLNK.
57686         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
57687         mingw.
57688
57689 2006-12-22  Bruno Haible  <bruno@clisp.org>
57690
57691         * lib/copy-file.c: Include acl.h.
57692         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
57693         Close the file descriptors only after being done with copy_acl.
57694         * modules/copy-file (Depends-on): Add acl.
57695
57696 2006-12-22  Bruno Haible  <bruno@clisp.org>
57697
57698         * gnulib-tool (SED): New variable.
57699         Use $SED instead of sed everywhere.
57700
57701 2006-12-22  Bruno Haible  <bruno@clisp.org>
57702
57703         * modules/no-c++: New file.
57704         * m4/no-c++.m4: New file.
57705         * MODULES.html.sh (Support for building libraries and executables):
57706         Add no-c++.
57707
57708 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
57709
57710         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57711         Include <limits.h>, and use its INT_MAX to rewrite the
57712         j loop so that it does not overflow 'int'.  Problem reported by
57713         Ralf Wildenhues in
57714         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
57715         Play it safe by shifting left by 1 rather than multiplying by 2,
57716         as GCC is less likely to optimize this away when the value
57717         is signed (when it assumes overflow leads to undefined behavior).
57718         Also, don't assume time_t uses two's complement.
57719
57720 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
57721
57722         * MODULES.html.sh: New module wctype.
57723         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
57724         * lib/fnmatch.c: Don't bother to include <wchar.h> before
57725         <wctype.h>, since the new wctype module should fix this.
57726         * lib/quotearg.c: Include <wctype.h> unconditionally, since
57727         the wctype module should arrange for it.
57728         * lib/regex_internal.h: Likewise.
57729         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
57730         since the wctype module should handle this now.
57731         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
57732         * modules/fnmatch (Depends-on): Add wctype.
57733         * modules/quotearg (Depends-on): Likewise.
57734         * modules/regex (Depends-on): Likewise.
57735
57736 2006-12-19  Bruno Haible  <bruno@clisp.org>
57737
57738         * lib/strdup.h [C++]: Wrap definitions in extern "C".
57739         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
57740
57741 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57742
57743         * modules/savewd (Depends-on): Fix dependency on fcntl.
57744
57745 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57746
57747         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
57748         conforms to C99, rather than relying on the user's environment
57749         setting of STDINT_H.
57750
57751 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57752         and Eric Blake  <ebb9@byu.net>
57753
57754         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
57755         This is more consistent with the other defines here.
57756         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
57757         Port to z/OS.  Problem reported by Paul Gilmartin.
57758         Change local vars to use gl_ prefix rather than ac_.
57759         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
57760         with other defines.
57761         * modules/double-slash-root: New module.
57762         * modules/dirname (Files): Remove m4/double-slash-root.m4.
57763         (Depends-on): Add double-slash-root.
57764         * MODULES.html.sh (File system functions): Mention new module.
57765
57766 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
57767
57768         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
57769         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
57770         This is for the benefit of gzip, which doesn't do i18n.
57771
57772 2006-12-12  Jim Meyering  <jim@meyering.net>
57773
57774         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
57775         Reported by Andreas Schwab <schwab@suse.de>.
57776
57777 2006-12-12  Bruno Haible  <bruno@clisp.org>
57778
57779         Merge these changes.
57780         2006-09-05  Bruno Haible  <bruno@clisp.org>
57781         * lib/iconvme.c (iconv_string): No need to save and restore errno when
57782         iconv_alloc succeeded.
57783         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
57784         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
57785         test for " && dest " at the end - dest is always != NULL there. Call
57786         iconv with 4xNULL arguments initially, to reset the state. Call iconv
57787         with 2xNULL arguments, also to flush the state storage. Handle the
57788         IRIX iconv behaviour. Realloc the final result, to throw away unused
57789         memory.
57790
57791 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
57792
57793         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
57794         and fchmodat unconditionally, since glibc 2.4 has them.
57795         Problem reported by Arkadiusz Miskiewicz.
57796
57797 2006-12-10  Bruno Haible  <bruno@clisp.org>
57798
57799         * gnulib-tool (func_import): Show the include files only for those
57800         modules that are copied and specified.
57801         Reported by Karl Berry.
57802
57803 2006-12-08  Jim Meyering  <jim@meyering.net>
57804
57805         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
57806         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
57807
57808         * build-aux/announce-gen: Add two new options, both optional:
57809         --bootstrap-tools=TOOL_LIST
57810               a comma-separated list of tools, e.g.,
57811               autoconf,automake,bison,gnulib
57812         --gnulib-snapshot-date=DATE
57813               if gnulib is in the bootstrap tool list,
57814               then report this as the snapshot date.
57815               If not specified, use the current date/time.
57816               If you specify a date here, be sure it's UTC.
57817
57818 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57819
57820         * tests/test-argp-2.sh: Fix test to match actual output.
57821         (func_compare): Fix sed script to be portable.
57822
57823 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
57824
57825         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
57826         workaround for this case.  It is not autoconfigured now; offhand
57827         it's hard to see how to autoconfigure it.
57828
57829 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57830
57831         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
57832         a directory that is about to be chowned.  Such a directory's
57833         initial file permissions should permit the owner only and this
57834         should not be changed until after the chown, since the group and
57835         other bits would be incorrect if they granted permission before
57836         the chown.
57837
57838         Fix porting problem for iswctype reported by Georg Schwarz in:
57839         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
57840         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
57841         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
57842         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
57843         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57844
57845 2006-12-03  Jim Meyering  <jim@meyering.net>
57846
57847         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
57848         p->fts_statp may not yet be defined.
57849         (fts_read): Instead, set it in the caller, once p->fts_statp is
57850         sure to be defined, and corresponds to a top-level directory.
57851         This bug made du -x fail.  Here's the coreutils test case:
57852         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
57853         Reported by Mike Frysinger.
57854
57855 2006-12-01  Jim Meyering  <jim@meyering.net>
57856
57857         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
57858         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
57859         Reported by Simon Josefsson.
57860
57861 2006-11-30  Jim Meyering  <jim@meyering.net>
57862
57863         * m4/warning.m4: Use the all-permissive copyright notice
57864         recommended by RMS (rather than LGPL).
57865         * m4/vararrays.m4: Likewise.
57866         * m4/flexmember.m4: Likewise.
57867
57868 2006-11-29  Bruno Haible  <bruno@clisp.org>
57869
57870         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57871         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
57872         using +=.
57873         Reported by Simon Josefsson <simon@josefsson.org>.
57874
57875 2006-11-28  James Youngman <jay@gnu.org>
57876
57877         * README: Advise users that they might find the bug-gnulib@gnu.org
57878         and autotools-announce@gnu.org mailing lists useful.
57879
57880 2006-11-28  Bruno Haible  <bruno@clisp.org>
57881
57882         * m4/ptrdiff_max.m4: Remove file.
57883
57884 2006-11-21  Bruno Haible  <bruno@clisp.org>
57885
57886         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
57887         _AC_COMPUTE_INT.
57888         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57889         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
57890         _AC_COMPUTE_INT.
57891         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57892         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
57893         _AC_COMPUTE_INT.
57894         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57895
57896 2006-11-28  Jim Meyering  <jim@meyering.net>
57897
57898         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
57899         warning from "gcc -Wshadow" about shadowing the builtin.
57900
57901 2006-11-27  Bruno Haible  <bruno@clisp.org>
57902
57903         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
57904         _AC_COMPUTE_INT.
57905         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57906
57907 2006-11-27  Bruno Haible  <bruno@clisp.org>
57908             Paul Eggert  <eggert@cs.ucla.edu>
57909
57910         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
57911
57912 2006-11-26  Bruno Haible  <bruno@clisp.org>
57913
57914         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57915         noinst_LTLIBRARIES.
57916
57917 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57918             Bruno Haible  <bruno@clisp.org>
57919
57920         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
57921         if compiling with "gcc -ansi".
57922
57923 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57924
57925         Fix some incompatibilities with gcc -ansi -pedantic.
57926         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
57927         if compiling pedantically with GCC, unless it's C99 or later.
57928         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
57929         it mishandles gcc -ansi -pedantic as well.
57930         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
57931         if gcc -pedantic.
57932         * lib/regexec.c (check_node_accept_bytes): Don't use auto
57933         initializers for struct if -pedantic, unless it's C99 or later.
57934
57935 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
57936
57937         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
57938         Don't close an fd more than once. Identical atimes indicate
57939         success, not failure.
57940
57941 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
57942
57943         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
57944
57945 2006-11-23  Jim Meyering  <jim@meyering.net>
57946
57947         * build-aux/announce-gen: New file.  From coreutils.
57948
57949 2006-11-22  Jim Meyering  <jim@meyering.net>
57950
57951         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
57952         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
57953         (fts_read): Use a temporary to narrow the overused st_size member
57954         before using it in a switch statement.  Reported by Matthew Woehlke.
57955
57956         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
57957         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57958
57959 2006-11-20  Bruno Haible  <bruno@clisp.org>
57960
57961         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
57962         changequote instead of pairs of brackets.
57963         Reported by Andreas Schwab <schwab@suse.de>.
57964
57965 2006-11-21  Jim Meyering  <jim@meyering.net>
57966
57967         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
57968         so as to remain compatible with older compilers.
57969         Patch from Michael Deutschmann.
57970
57971 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57972
57973         * MODULES.html.sh (File system functions): Add openat.
57974
57975         * lib/openat.h (rpl_fstatat): New macro, if
57976         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
57977         (fstatat): Define to rpl_fstatat under the same conditions,
57978         unless COMPILING_FSTATAT.
57979         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
57980         seems to have the bug.
57981         * lib/fstatat.c: New file.
57982         * modules/openat (Files): Add it.
57983
57984 2006-11-20  Bruno Haible  <bruno@clisp.org>
57985
57986         * Makefile: New file.
57987
57988 2006-11-20  Jim Meyering  <jim@meyering.net>
57989
57990         The beginnings of syntax-related checks for gnulib.
57991         * lib/Makefile: New file.
57992         * lib/t-idcache: New script.  Ensure that the two halves of
57993         idcache.c stay in sync.
57994
57995         * lib/idcache.c: Adjust comments in user- and group- portions to
57996         be more accurate, and to be consistent with one another.
57997
57998 2006-11-20  Jim Meyering  <jim@meyering.net>
57999
58000         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
58001         continue using the flexible array member (thus, this module performs
58002         half as many malloc calls), with the addition that...
58003         (getgroup, getuser): Consistently record a non-match via an empty
58004         "name" string, and map an empty string match to a NULL return value.
58005         * modules/idcache (Depends-on): Re-add flexmember.
58006
58007         * lib/idcache.c (getuser): Remove all uses of the register keyword.
58008         (getuidbyname, getgroup, getgidbyname): Likewise.
58009
58010         Use cleaner syntax: NULL rather than 0.
58011         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
58012
58013 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58014
58015         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
58016         It mishandled the case where the group was missing.
58017         Problem reported by Greg Schafer.
58018         * modules/idcache: Likewise.
58019
58020 2006-11-18  Jim Meyering  <jim@meyering.net>
58021
58022         * check-module (%exempt_header): Add exception for some
58023         conditionally-included headers.
58024
58025         * modules/i-ring (Depends-on): Add verify.
58026         (License): Change to LGPL.
58027
58028 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58029
58030         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
58031         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
58032         and inttostr.h.  Use snprintf rather than uinttostr, so that
58033         LGPLed code doesn't depend on GPLed.
58034
58035 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58036
58037         * modules/inline (License): Change from GPL to LGPL.
58038
58039 2006-11-17  Jim Meyering  <jim@meyering.net>
58040
58041         * modules/d-type (License): Switch to LGPL.
58042
58043 2006-11-15  Bruno Haible  <bruno@clisp.org>
58044
58045         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
58046
58047 2006-11-15  Eric Blake  <ebb9@byu.net>
58048
58049         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
58050         the module dependency.
58051
58052 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58053             Bruno Haible  <bruno@clisp.org>
58054
58055         * gnulib-tool (func_create_testdir): Add license consistency check.
58056
58057 2006-11-15  Eric Blake  <ebb9@byu.net>
58058
58059         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
58060         random "(cached)" in configure output.
58061
58062 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58063
58064         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
58065         test for conforming inttypes.h is both announced and cached.
58066
58067         * MODULES.html.sh (seen_modules, seen_files): New variables.
58068         (func_module): Rewrite to use a few less gnulib-tool and sed
58069         invocations.  Avoid a couple of quadratic algorithms for ...
58070         (missed_modules, missed_files): ... these, with ...
58071         (func_append, func_tmpdir): ... these new functions, from
58072         gnulib-tool.  Analogously, install traps for cleanup.
58073
58074         * tests/test-gc.c (main): Remove unused variables.
58075         * tests/test-read-file.c: Include stdlib.h, for 'free'.
58076
58077 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
58078
58079         * modules/inttostr (License): Change to LGPL.
58080
58081 2006-11-14  Eric Blake  <ebb9@byu.net>
58082
58083         * modules/tempname (License): Change to LGPL.
58084
58085 2006-11-14  Eric Blake  <ebb9@byu.net>
58086
58087         * doc/functions.texi (Function Portability): *printf functions on
58088         Cygwin now understand all POSIX size specifiers.
58089
58090 2006-11-14  Bruno Haible  <bruno@clisp.org>
58091
58092         * modules/c-ctype (License): Change to LGPL.
58093
58094 2006-11-12  Bruno Haible  <bruno@clisp.org>
58095
58096         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58097         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
58098         for GNOME libraries, for which the include files are installed in
58099         subdirectories of $prefix/include.
58100
58101 2006-11-12  Bruno Haible  <bruno@clisp.org>
58102
58103         * m4/lib-link.m4: Require at least autoconf-2.54.
58104         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
58105         name to underscores for the --with option.
58106
58107 2006-11-13  Bruno Haible  <bruno@clisp.org>
58108
58109         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
58110         the tests directory.
58111         Reported by Ralf Wildenhues.
58112
58113 2006-11-13  Bruno Haible  <bruno@clisp.org>
58114
58115         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
58116         (func_emit_initmacro_end): Undo the override here.
58117         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
58118         Works around the famous automake error in coreutils.
58119
58120 2006-11-13  Eric Blake  <ebb9@byu.net>
58121
58122         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
58123         element, not its node.
58124
58125 2006-11-12  Bruno Haible  <bruno@clisp.org>
58126
58127         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
58128         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
58129
58130 2006-11-12  Bruno Haible  <bruno@clisp.org>
58131
58132         * gnulib-tool: New option --local-symlink.
58133         (func_usage): Document it.
58134         (lsymbolic): New variable.
58135         (func_import, func_create_testdir): If --symlink was not specified,
58136         test whether --local-symlink was specified and the file comes from
58137         the local_gnulib_dir.
58138
58139 2006-11-12  Bruno Haible  <bruno@clisp.org>
58140
58141         * gnulib-tool (func_ln): New function.
58142         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
58143
58144 2006-11-12  Bruno Haible  <bruno@clisp.org>
58145
58146         Finish support for source files in subdirectories.
58147         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
58148         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
58149         AUTOMAKE_OPTIONS.
58150         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
58151
58152 2006-11-12  Bruno Haible  <bruno@clisp.org>
58153
58154         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58155         EXTRA_lib_SOURCES augmentation.
58156         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
58157
58158 2006-11-12  Jim Meyering  <jim@meyering.net>
58159
58160         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
58161         file descriptors.  This also averts a failure on systems with
58162         native openat support when a traversed directory lacks "x" access.
58163         * lib/fts_.h: Include "i-ring.h"
58164         (struct FTS) [fts_fd_ring]: New member.
58165         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
58166         (FCHDIR): Add parentheses.
58167         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
58168         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
58169         When descending, rather than simply closing the previous
58170         fts_cwd_fd value, push that file descriptor onto the ring.
58171         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
58172         (fts_open): Initialize the new fd_ring member.
58173         (fts_close): Clear the ring.
58174         (fts_safe_changedir): When possible, use our new fd_ring to skip
58175         the diropen and fstat and dev/ino comparison that would normally
58176         accompany a virtual `chdir ("..")'.
58177
58178         * modules/fts (Depends-on): Add i-ring.
58179         * modules/i-ring: New module.
58180         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
58181         * m4/i-ring.m4: New file.
58182
58183 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58184
58185         * gnulib-tool (func_create_testdir): Fix replacement of
58186         `build-aux' in configure.ac.  Run autotools in gltests
58187         subdirectory.
58188         (func_create_testdir, func_create_megatestdir, test): There is
58189         no need for '--force' in most autotool invocations in a new
58190         tree.  Actually fail the whole test if any of the tools, or the
58191         configure or make stages fail.
58192
58193         Sync from Automake.
58194         * build-aux/gnupload: Revert last change.  Add pointer to upload
58195         instructions of the GNU Maintenance Instructions.
58196         Suggestion by Karl Berry.
58197
58198 2006-11-10  Jim Meyering  <jim@meyering.net>
58199
58200         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
58201
58202 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58203
58204         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
58205         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
58206         (bind_textdomain_codeset) [! ENABLE_NLS]:
58207         Evaluate all the arguments.  That way, callers get compatible behavior
58208         if the arguments have side effects.  Also, it avoids some GCC
58209         diagnostics in some cases; Joel E. Denny reported problems when Bison
58210         was configured with --enable-gcc-warnigs.
58211
58212 2006-11-10  Jim Meyering  <jim@meyering.net>
58213
58214         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
58215         relevant options in CFLAGS (like -O, -fno-inline) are taken into
58216         account.
58217
58218 2006-11-10  Jim Meyering  <jim@meyering.net>
58219
58220         * modules/inline: New file/module.
58221         * modules/xalloc (Files): Remove m4/inline.m4.
58222         (Depends-on): Add inline, instead.
58223         * modules/oset: Likewise.
58224         * modules/list: Likewise.
58225
58226 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58227
58228         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
58229         Problem reported by Matthew Woehlke.
58230
58231 2006-11-09  Bruno Haible  <bruno@clisp.org>
58232
58233         * lib/tempname.c (gen_tempname): Remove variant that invokes
58234         __gen_tempname.
58235         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
58236         __gen_tempname.
58237
58238 2006-11-08  Bruno Haible  <bruno@clisp.org>
58239
58240         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
58241         to 'yes' instead of 'cross-compiling'.
58242
58243 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
58244
58245         * lib/quotearg.h (quotearg_free): New decl.
58246         * lib/quotearg.c (quotearg_free): New function.
58247         (slot0, nslots, slotvec0, slotvec):
58248         Now file-scope so that quotearg_free can get at them.
58249
58250 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58251
58252         Sync from Automake.
58253         * build-aux/gnupload: Add missing 'gnu' to example URL.
58254         Report by Karl Berry.
58255
58256 2006-11-08  Bruno Haible  <bruno@clisp.org>
58257
58258         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
58259         Suggested by Paul Eggert.
58260
58261 2006-11-08  Jim Meyering  <jim@meyering.net>
58262
58263         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
58264         It's already included if !_LIBC.
58265         (fts_safe_changedir): Add a comment.
58266
58267 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58268
58269         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
58270         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
58271         Matthew Woehlke.
58272
58273         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
58274         definitions up, to avoid colliding with change below.
58275         (static_inline) [HAVE_INLINE]: New macro.
58276         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
58277         Provide extern decls when !HAVE_INLINE.  Do not define unless
58278         static_inline is defined, either by us or by xmalloc.c.  Use
58279         static_inline rather than static inline.
58280         (XCALLOC): Optimize sizeof(T) = 1 case.
58281         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
58282
58283 2006-11-07  Bruno Haible  <bruno@clisp.org>
58284
58285         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
58286         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
58287         AC_C_INLINE.
58288         * modules/xalloc (Files): Add m4/inline.m4.
58289
58290 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58291
58292         * README: Fix typo.
58293         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
58294         (Miscellanous Notes): ...from this.
58295
58296 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58297
58298         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
58299         Mention that offsetof should be used instead of sizeof.
58300         From Bruno Haible.
58301
58302 2006-11-07  Bruno Haible  <bruno@clisp.org>
58303
58304         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
58305
58306 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58307
58308         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58309         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
58310         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58311         (gl_tree_add_before, gl_tree_add_after):
58312         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
58313         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
58314         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58315         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
58316         (gl_linked_add_after, gl_linked_add_at): Likewise.
58317         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
58318         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58319         (gl_tree_add_before, gl_tree_add_after): Likewise.
58320         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
58321         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
58322         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58323
58324 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58325
58326         * lib/gl_oset.h: Use C comment style, not C++ comment style.
58327
58328 2006-11-06  Bruno Haible  <bruno@clisp.org>
58329
58330         * m4/inline.m4: New file.
58331         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
58332         * modules/list (Files): Add m4/inline.m4.
58333         * modules/oset (Files): Likewise.
58334
58335 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58336
58337         * lib/idcache.c: Include <stddef.h>, for offsetof.
58338         (struct userid.name): Change from char * to a flexible array member.
58339         All uses changed.
58340         * modules/idcache (Depends-on): Add flexmember.
58341
58342         * MODULES.html.sh (Core language properties): New module flexmember.
58343         * modules/flexmember, m4/flexmember.m4: New files.
58344
58345         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
58346         inline functions that are identical with the old xnmalloc_inline,
58347         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
58348         that we can avoid some unnecessary integer multiplications and
58349         divisions in the common case where the element size is known at
58350         compile time.
58351         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
58352         needed.
58353         (xnboundedmalloc): Remove.
58354         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
58355         arguments, for consistency with rest of this header.
58356         (xcharalloc): Rewrite using XNMALLOC.
58357         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
58358         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
58359         versions have been moved to lib/xalloc.h and renamed to be the
58360         non-*_inline versions.
58361         (xmalloc, xrealloc): Implement without reference to the xnmalloc
58362         and xnrealloc functions, since those functions are now inline and
58363         now call us.
58364         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
58365         renaming described above.
58366         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
58367         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
58368         captures the dependency in AC_C_INLINE.
58369
58370         New module canonicalize-lgpl, proposed by Charles Wilson in
58371         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
58372         with a few small changes afterwards.
58373         * MODULES.html.sh (File system functions): New module
58374         canonicalize-lgpl.
58375         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
58376         and canonicalize_file_name.
58377         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
58378         * modules/canonicalize-lgpl: New files.
58379
58380 2006-11-05  Bruno Haible  <bruno@clisp.org>
58381
58382         * gnulib-tool (func_import, func_create_testdir): Create directories
58383         also for files in subdirectories of lib/.
58384
58385 2006-11-05  Bruno Haible  <bruno@clisp.org>
58386
58387         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
58388         ANSI C compliant.
58389
58390 2006-11-03  Bruno Haible  <bruno@clisp.org>
58391
58392         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58393         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
58394         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
58395         (xnboundedmalloc): New inline function.
58396         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
58397         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
58398         xmalloc.
58399         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
58400         xmalloc.
58401         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
58402         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
58403         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
58404         xmalloc.
58405         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58406         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
58407         xmalloc.
58408         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
58409         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58410         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
58411         xmalloc.
58412         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58413         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
58414         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58415         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
58416         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
58417         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
58418         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
58419
58420 2006-11-03  Bruno Haible  <bruno@clisp.org>
58421
58422         * lib/c-ctype.h [C++]: Define functions without name mangling.
58423         * lib/fwriteerror.h [C++]: Likewise.
58424         * lib/gcd.h [C++]: Likewise.
58425         * lib/linebreak.h [C++]: Likewise.
58426
58427 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58428
58429         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
58430         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
58431         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
58432         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58433         Check for functions and headers just once.
58434         Check for declaration of canonicalize_file_name.
58435         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
58436
58437 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58438
58439         * gnulib-tool (func_import): Fix typo in actioncmd.
58440
58441 2006-11-02  Bruno Haible  <bruno@clisp.org>
58442
58443         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
58444         newline sequence in the Makefile.am snippet as a space, like "make"
58445         does.
58446         Reported by Roger Persson <perrog@gmail.com>.
58447
58448 2006-11-01  Bruno Haible  <bruno@clisp.org>
58449
58450         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
58451         already declared in <string.h>.
58452         * lib/strcase.h (strncasecmp): Don't declare it if yes.
58453
58454 2006-11-01  Bruno Haible  <bruno@clisp.org>
58455
58456         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
58457         * lib/strcase.h: Include <string.h>.
58458         (strcasecmp): Define to rpl_strcasecmp here.
58459
58460 2006-11-01  Bruno Haible  <bruno@clisp.org>
58461
58462         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
58463
58464 2006-11-01  Eric Blake  <ebb9@byu.net>
58465
58466         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
58467
58468         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
58469
58470 2006-10-29  Bruno Haible  <bruno@clisp.org>
58471
58472         Make it compile in C++ mode.
58473         * lib/full-write.c (full_rw): Add a cast.
58474
58475 2006-11-01  Bruno Haible  <bruno@clisp.org>
58476
58477         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
58478         be POSIX compliant.
58479         Reported by Roger Persson <perrog@gmail.com>.
58480
58481 2006-11-01  Eric Blake  <ebb9@byu.net>
58482
58483         * lib/getopt_.h: Fix comments.
58484
58485 2006-10-31  Eric Blake  <ebb9@byu.net>
58486
58487         * modules/tmpdir (Depends-on): Add sys_stat.
58488         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
58489         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
58490         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
58491         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
58492         tempname.
58493
58494 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
58495
58496         Avoid some C++ diagnostics reported by Bruno Haible.
58497         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
58498         xmalloc.
58499         (quotearg_alloc): Use xcharalloc rather than xmalloc.
58500         (struct slotvec): Move to top level.
58501         (quotearg_n_options): Rewrite to avoid xmalloc.
58502         * lib/xalloc.h (xcharalloc): New function.
58503         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
58504         [defined __cplusplus]: Add function template that provides result
58505         type propagation.  This part of the change is from Bruno Haible.
58506
58507 2006-10-29  Bruno Haible  <bruno@clisp.org>
58508
58509         Make it compile in C++ mode.
58510         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
58511         * lib/strnlen1.c (strnlen1): Cast memchr result.
58512         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
58513         * lib/clean-temp.c (string_equals, string_hash): Add casts.
58514         (create_temp_dir): Rename local variable 'template'.
58515         (compile_csharp_using_sscli): Add cast.
58516         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
58517         * lib/findprog.c (find_in_path): Likewise.
58518         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
58519         * lib/wait-process.c (register_slave_subprocess): Likewise.
58520
58521 2006-10-22  Bruno Haible  <bruno@clisp.org>
58522
58523         * modules/tsearch: New file.
58524         * lib/tsearch.h: New file.
58525         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
58526         * m4/tsearch.m4: New file.
58527         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
58528
58529 2006-10-29  Eric Blake  <ebb9@byu.net>
58530
58531         * lib/arcfour.c: Assume config.h.
58532         * lib/arctwo.c: Likewise.
58533         * lib/base64.c: Likewise.
58534         * lib/check-version.c: Likewise.
58535         * lib/crc.c: Likewise.
58536         * lib/des.c: Likewise.
58537         * lib/gc-gnulib.c: Likewise.
58538         * lib/gc-libgcrypt.c: Likewise.
58539         * lib/gc-pbkdf2-sha1.c: Likewise.
58540         * lib/getaddrinfo.c: Likewise.
58541         * lib/getdelim.c: Likewise.
58542         * lib/getline.c: Likewise.
58543         * lib/hmac-md5.c: Likewise.
58544         * lib/hmac-sha1.c: Likewise.
58545         * lib/iconvme.c: Likewise.
58546         * lib/md2.c: Likewise.
58547         * lib/md4.c: Likewise.
58548         * lib/memxor.c: Likewise.
58549         * lib/read-file.c: Likewise.
58550         * lib/readline.c: Likewise.
58551         * lib/rijndael-alg-fst.c: Likewise.
58552         * lib/rijndael-api-fst.c: Likewise.
58553         * lib/xgetdomainname.c: Likewise.
58554
58555 2006-10-28  Eric Blake  <ebb9@byu.net>
58556
58557         * lib/xstrndup.c: Assume config.h.
58558
58559 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58560
58561         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
58562         stat-macros.h is now for our own macros, whereas stat_h is for
58563         macros in the <sys/stat.h> name space.
58564         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
58565         (STAT_MACROS_H): Remove.
58566         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
58567         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
58568         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
58569         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
58570         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
58571         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
58572         Move these macros to ...
58573         * lib/stat_.h: here.  Don't include stat-macros.h.
58574         * lib/canonicalize.c: Don't include stat-macros.h.
58575         * lib/chown.c: Likewise.
58576         * lib/euidaccess.c: Likewise.
58577         * lib/file-type.c: Likewise.
58578         * lib/filemode.c: Likewise.
58579         * lib/glob.c: Likewise.
58580         * lib/isapipe.c: Likewise.
58581         * lib/lchown.c: Likewise.
58582         * lib/lstat.c: Likewise.
58583         * lib/mkdir-p.c: Likewise.
58584         * lib/rmdir.c: Likewise.
58585         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
58586         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
58587         unless mkdir isn't declared, to speed up 'configure'.
58588         Always create sys/stat.h, since it's unlikely any real sys/stat.h
58589         would define all the S_* symbols.
58590         * modules/canonicalize (Depends-on):
58591         Depend on sys_stat, not stat-macros.
58592         * modules/chown: Likewise.
58593         * modules/euidaccess: Likewise.
58594         * modules/filemode: Likewise.
58595         * modules/file-type: Likewise.
58596         * modules/glob: Likewise.
58597         * modules/isapipe: Likewise.
58598         * modules/lchown: Likewise.
58599         * modules/lstat: Likewise.
58600         * modules/mkancesdirs: Likewise.
58601         * modules/rmdir: Likewise.
58602         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
58603         * modules/modechange: Likewise.
58604         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
58605         (configure.ac): Remove gl_STAT_MACROS.
58606         * modules/sys_stat (Depends-on): Remove stat-macros.
58607
58608 2006-10-27  Bruno Haible  <bruno@clisp.org>
58609
58610         * m4/signed.m4: Remove file.
58611         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
58612         invocation.
58613         * modules/vasnprintf (Files): Remove m4/signed.m4.
58614
58615 2006-10-27  Bruno Haible  <bruno@clisp.org>
58616
58617         Update to GNU gettext 0.16.
58618         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
58619         m4/inttypes-h.m4, m4/signed.m4.
58620         * m4/gettext.m4: Update to GNU gettext 0.16.
58621         * m4/intl.m4: New file, from GNU gettext.
58622         * m4/intldir.m4: New file, from GNU gettext.
58623         * config/srclist.txt: Update
58624
58625 2006-10-27  Eric Blake  <ebb9@byu.net>
58626
58627         * MODULES.html.sh: Document tempname.
58628         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
58629         dependencies.
58630         (Files): Move lib/tempname.c...
58631         * modules/tempname: ...to this new module.
58632         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
58633         (gl_PREREQ_TEMPNAME): Move...
58634         * m4/tempname.m4: ...to this new file.
58635         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
58636         * modules/sys_stat (Depends-on): Add stat-macros.
58637         * lib/stat_.h (includes): Pick up stat macros.
58638         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
58639         if stat macros are broken.
58640         * lib/tempname.c (includes): No need to include "stat-macros.h".
58641         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
58642         (direxists, __path_search) [!_LIBC]: Don't compile these in
58643         gnulib; the tmpdir module covers that.
58644         * lib/tempname.h: New file.
58645
58646 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
58647
58648         * COPYING: Explain how gnulib-tool converts licence headers.
58649         Almost all wording by Eric Blake.
58650
58651 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
58652
58653         * lib/mbchar.h (is_basic_table): Make read-only.
58654         * lib/mbchar.c (is_basic_table): Likewise.
58655         Reported by John Darrington.
58656
58657 2006-10-25  Bruno Haible  <bruno@clisp.org>
58658
58659         * lib/progname.h (set_program_name): Undefine before defining.
58660
58661 2006-10-25  Bruno Haible  <bruno@clisp.org>
58662
58663         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
58664         false for non-gcc C++ compilers.
58665         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58666
58667 2006-10-24  Bruno Haible  <bruno@clisp.org>
58668
58669         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
58670         iconv implementations like Irix iconv.
58671
58672 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58673
58674         * modules/vararrays: New file.
58675         * m4/vararrays.m4: New file, taken from diffutils.
58676         * MODULES.html.sh: New module vararrays.
58677
58678 2006-10-24  Karl Berry  <karl@gnu.org>
58679
58680         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
58681         Don't call GNU Unix.
58682
58683 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58684
58685         * users.txt: Add Libtool.
58686
58687         Sync from Libtool:
58688
58689         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58690
58691         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
58692         to gnulib's policy of including config.h unconditionally.
58693
58694 2006-10-24  Bruno Haible  <bruno@clisp.org>
58695
58696         * modules/wcwidth (Files): Add m4/wint_t.m4.
58697         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
58698         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
58699
58700 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58701
58702         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
58703         to pacify GCC with some -W flags enabled.  Problem reported by
58704         Bruno Haible.
58705
58706 2006-10-24  Jim Meyering  <jim@meyering.net>
58707
58708         * MODULES.html.sh: Remove uinttostr.  It's not a module.
58709         Reported by Karl Berry.
58710
58711 2006-10-23  Bruno Haible  <bruno@clisp.org>
58712
58713         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
58714
58715 2006-10-24  Bruno Haible  <bruno@clisp.org>
58716
58717         * lib/gl_list.h: Use C comment style, not C++ comment style.
58718
58719 2006-10-23  Eric Blake  <ebb9@byu.net>
58720
58721         * lib/getaddrinfo.c (includes): Add missing include.
58722
58723 2006-10-23  Bruno Haible  <bruno@clisp.org>
58724             Paul Eggert  <eggert@cs.ucla.edu>
58725
58726         Ability to rename obstack_free.
58727         * lib/obstack.h (__obstack_free): New macro. Declare instead of
58728         obstack_free.
58729         (obstack_free): Invoke the __obstack_free macro.
58730         * lib/obstack.c (obstack_free): Use __obstack_free macro.
58731
58732 2006-10-23  Bruno Haible  <bruno@clisp.org>
58733             Paul Eggert  <eggert@cs.ucla.edu>
58734
58735         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
58736         __argc, __argv from the declaration. (They are defined as macros on
58737         mingw.)
58738
58739 2006-10-22  Bruno Haible  <bruno@clisp.org>
58740
58741         * doc/gnulib-intro.texi: New file.
58742         * doc/gnulib.texi: Include it.
58743
58744 2006-10-21  Bruno Haible  <bruno@clisp.org>
58745
58746         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
58747         "Introduction", "Miscellanous Notes", "Particular Modules".
58748
58749 2006-10-21  Bruno Haible  <bruno@clisp.org>
58750
58751         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58752         Change mostlyclean-local rule to avoid sh syntax error from bash
58753         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
58754
58755 2006-10-23  Jim Meyering  <jim@meyering.net>
58756
58757         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
58758         in place of snprintf.
58759
58760         * modules/inttostr (Files): Add lib/uinttostr.c.
58761         * lib/uinttostr.c (inttostr): New file/function.
58762         * lib/inttostr.h (uinttostr): Declare.
58763         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
58764         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58765         Add uinttostr.
58766         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
58767
58768 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58769
58770         * lib/canonicalize.c (ELOOP): Define if not already defined.
58771         Problem reported by Bruno Haible in
58772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
58773
58774 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58775
58776         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
58777         Problem reported by Perry Smith and Ville Laurikari.
58778
58779         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
58780         uses.
58781
58782 2006-10-19  Bruno Haible  <bruno@clisp.org>
58783
58784         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
58785         for mingw.
58786
58787 2006-10-19  Bruno Haible  <bruno@clisp.org>
58788
58789         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
58790         Needed for mingw.
58791
58792 2006-10-19  Bruno Haible  <bruno@clisp.org>
58793
58794         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
58795
58796 2006-10-19  Bruno Haible  <bruno@clisp.org>
58797
58798         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
58799         it.
58800
58801 2006-10-19  Bruno Haible  <bruno@clisp.org>
58802
58803         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
58804         invocation.
58805
58806 2006-10-19  Bruno Haible  <bruno@clisp.org>
58807
58808         * gnulib-tool (func_create_testdir): Don't include ftruncate and
58809         mountlist by default.
58810
58811 2006-10-16  Bruno Haible  <bruno@clisp.org>
58812
58813         * lib/c-strstr.c: Include c-strstr.h.
58814
58815 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58816
58817         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
58818         in a slash.
58819
58820 2006-10-18  Bruno Haible  <bruno@clisp.org>
58821
58822         * lib/lock.h [C++]: Wrap definitions in extern "C".
58823
58824 2006-10-18  Bruno Haible  <bruno@clisp.org>
58825
58826         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
58827         gl_LIBOBJS list.
58828
58829 2006-10-18  Bruno Haible  <bruno@clisp.org>
58830
58831         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
58832
58833 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
58834
58835         * lib/xstrtol.h: Include gettext.h.
58836         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
58837         Problem reported by Eric Blake.
58838         * modules/xstrtol (Depends-on): Add gettext-h.
58839
58840 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
58841
58842         * lib/strftime.c (advance): New macro.
58843         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
58844         incomplete type, so you can't add 0 to it.  Problem and patch
58845         reported by Eelco Dolstra for dietlibc.
58846
58847 2006-10-18  Jim Meyering  <jim@meyering.net>
58848
58849         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
58850         type for a local, and rename it: s/up/user_proc/.
58851
58852 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58853
58854         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
58855         READ_UTMP_USER_PROCESS.
58856         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
58857
58858 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58859
58860         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
58861         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
58862
58863 2006-10-17  Eric Blake  <ebb9@byu.net>
58864
58865         * lib/sigprocmask.c (sigprocmask): Fix typo.
58866
58867         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
58868
58869         * modules/clean-temp (Makefile.am): Don't add to make output...
58870         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
58871         config.h.
58872
58873 2006-10-17  Bruno Haible  <bruno@clisp.org>
58874
58875         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
58876         differently if DEFAULT_TEXT_DOMAIN is set.
58877
58878 2006-10-16  Bruno Haible  <bruno@clisp.org>
58879
58880         * lib/clean-temp.c: Include fwriteerror.h.
58881
58882 2006-10-16  Bruno Haible  <bruno@clisp.org>
58883
58884         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
58885
58886 2006-10-16  Bruno Haible  <bruno@clisp.org>
58887
58888         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
58889         * lib/sigprocmask.h: Include <sys/types.h>.
58890         (sigset_t): Use the system's definition if present.
58891
58892 2006-10-17  Eric Blake  <ebb9@byu.net>
58893
58894         * lib/xvasprintf.c (includes): Assume config.h.
58895         * lib/xasprintf.c (includes): Likewise.
58896
58897 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58898
58899         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
58900         at least as wide as intmax_t.
58901
58902 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
58903
58904         (Imported from Automake.)
58905         * build-aux/gnupload: Update to version 1.1 of directive file.
58906
58907 2006-10-16  Eric Blake  <ebb9@byu.net>
58908
58909         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
58910         match Automake 1.10a.
58911
58912 2006-10-14  Bruno Haible  <bruno@clisp.org>
58913
58914         * modules/sigprocmask: New file.
58915         * lib/sigprocmask.h: New file.
58916         * lib/sigprocmask.c: New file.
58917         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
58918         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
58919         request sigprocmask.o.
58920         (gl_PREREQ_SIGPROCMASK): New macro.
58921         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
58922         (Depends-on): Add sigprocmask.
58923         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
58924         gt_SIGNALBLOCKING. Test for 'raise' only once.
58925         * lib/fatal-signal.c: Include sigprocmask.h.
58926         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
58927         unblock_fatal_signals): Define always.
58928         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58929         sigprocmask.
58930
58931 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58932
58933         Sync from Automake.
58934         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
58935         which incorrectly sets the mode of an existing destination
58936         directory.  In some cases the unpatched install-sh could do the
58937         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
58938         system.  We hope this is rare in practice, but it's clearly worth
58939         fixing.  Problem reported by Alex Unleashed in
58940         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
58941         Also, don't bother to check for -m bugs unless we're using -m;
58942         suggested by Stepan Kasal.
58943
58944 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58945
58946         Sync from Automake.
58947         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
58948         `-c' flag, so they appear at the same position as in %FASTDEP%
58949         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
58950         which ignores unknown options only after the first non-option.
58951         Bug report against M4 by Nelson H. F. Beebe.
58952
58953 2006-10-13  Jim Meyering  <jim@meyering.net>
58954
58955         Fix a bug in yesterday's change.
58956         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
58957         p->fts_statp->st_dev would be used uninitialized.
58958         Ensures that we always call fts_stat on the very first entry.
58959         Miklos Szeredi reported that find -xdev stopped working.
58960
58961 2006-10-12  Bruno Haible  <bruno@clisp.org>
58962
58963         * gnulib-tool (func_get_automake_snippet): Append an automatically
58964         computed EXTRA_DIST augmentation.
58965         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
58966         * modules/alloca-opt (Makefile.am): Likewise.
58967         * modules/allocsa (Makefile.am): Likewise.
58968         * modules/arcfour (Makefile.am): Likewise.
58969         * modules/arctwo (Makefile.am): Likewise.
58970         * modules/argmatch (Makefile.am): Likewise.
58971         * modules/argz (Makefile.am): Likewise.
58972         * modules/atexit (Makefile.am): Likewise.
58973         * modules/backupfile (Makefile.am): Likewise.
58974         * modules/byteswap (Makefile.am): Likewise.
58975         * modules/c-strtod (Makefile.am): Likewise.
58976         * modules/c-strtold (Makefile.am): Likewise.
58977         * modules/calloc (Makefile.am): Likewise.
58978         * modules/canon-host (Makefile.am): Likewise.
58979         * modules/canonicalize (Makefile.am): Likewise.
58980         * modules/chdir-long (Makefile.am): Likewise.
58981         * modules/chdir-safer (Makefile.am): Likewise.
58982         * modules/check-version (Makefile.am): Likewise.
58983         * modules/chown (Makefile.am): Likewise.
58984         * modules/cloexec (Makefile.am): Likewise.
58985         * modules/close-stream (Makefile.am): Likewise.
58986         * modules/closeout (Makefile.am): Likewise.
58987         * modules/crc (Makefile.am): Likewise.
58988         * modules/csharpexec (Makefile.am): Likewise.
58989         * modules/cycle-check (Makefile.am): Likewise.
58990         * modules/des (Makefile.am): Likewise.
58991         * modules/dev-ino (Makefile.am): Likewise.
58992         * modules/dirfd (Makefile.am): Likewise.
58993         * modules/dirname (Makefile.am): Likewise.
58994         * modules/dup2 (Makefile.am): Likewise.
58995         * modules/eealloc (Makefile.am): Likewise.
58996         * modules/error (Makefile.am): Likewise.
58997         * modules/euidaccess (Makefile.am): Likewise.
58998         * modules/exclude (Makefile.am): Likewise.
58999         * modules/exitfail (Makefile.am): Likewise.
59000         * modules/fcntl-safer (Makefile.am): Likewise.
59001         * modules/fcntl (Makefile.am): Likewise.
59002         * modules/file-type (Makefile.am): Likewise.
59003         * modules/fileblocks (Makefile.am): Likewise.
59004         * modules/filemode (Makefile.am): Likewise.
59005         * modules/filenamecat (Makefile.am): Likewise.
59006         * modules/fnmatch (Makefile.am): Likewise.
59007         * modules/fopen-safer (Makefile.am): Likewise.
59008         * modules/fpending (Makefile.am): Likewise.
59009         * modules/fprintftime (Makefile.am): Likewise.
59010         * modules/free (Makefile.am): Likewise.
59011         * modules/fsusage (Makefile.am): Likewise.
59012         * modules/ftruncate (Makefile.am): Likewise.
59013         * modules/fts (Makefile.am): Likewise.
59014         * modules/gc-arcfour (Makefile.am): Likewise.
59015         * modules/gc-des (Makefile.am): Likewise.
59016         * modules/gc-hmac-md5 (Makefile.am): Likewise.
59017         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
59018         * modules/gc-md4 (Makefile.am): Likewise.
59019         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59020         * modules/gc-sha1 (Makefile.am): Likewise.
59021         * modules/gc (Makefile.am): Likewise.
59022         * modules/getaddrinfo (Makefile.am): Likewise.
59023         * modules/getcwd (Makefile.am): Likewise.
59024         * modules/getdelim (Makefile.am): Likewise.
59025         * modules/getdomainname (Makefile.am): Likewise.
59026         * modules/getgroups (Makefile.am): Likewise.
59027         * modules/gethostname (Makefile.am): Likewise.
59028         * modules/gethrxtime (Makefile.am): Likewise.
59029         * modules/getline (Makefile.am): Likewise.
59030         * modules/getloadavg (Makefile.am): Likewise.
59031         * modules/getlogin_r (Makefile.am): Likewise.
59032         * modules/getndelim2 (Makefile.am): Likewise.
59033         * modules/getopt (Makefile.am): Likewise.
59034         * modules/getpagesize (Makefile.am): Likewise.
59035         * modules/getpass-gnu (Makefile.am): Likewise.
59036         * modules/getpass (Makefile.am): Likewise.
59037         * modules/getsubopt (Makefile.am): Likewise.
59038         * modules/gettime (Makefile.am): Likewise.
59039         * modules/gettimeofday (Makefile.am): Likewise.
59040         * modules/getugroups (Makefile.am): Likewise.
59041         * modules/getusershell (Makefile.am): Likewise.
59042         * modules/glob (Makefile.am): Likewise.
59043         * modules/group-member (Makefile.am): Likewise.
59044         * modules/hard-locale (Makefile.am): Likewise.
59045         * modules/hash (Makefile.am): Likewise.
59046         * modules/hmac-md5 (Makefile.am): Likewise.
59047         * modules/hmac-sha1 (Makefile.am): Likewise.
59048         * modules/human (Makefile.am): Likewise.
59049         * modules/idcache (Makefile.am): Likewise.
59050         * modules/imaxabs (Makefile.am): Likewise.
59051         * modules/imaxdiv (Makefile.am): Likewise.
59052         * modules/inet_ntop (Makefile.am): Likewise.
59053         * modules/inet_pton (Makefile.am): Likewise.
59054         * modules/intprops (Makefile.am): Likewise.
59055         * modules/inttostr (Makefile.am): Likewise.
59056         * modules/inttypes (Makefile.am): Likewise.
59057         * modules/isapipe (Makefile.am): Likewise.
59058         * modules/javaversion (Makefile.am): Likewise.
59059         * modules/lchmod (Makefile.am): Likewise.
59060         * modules/lchown (Makefile.am): Likewise.
59061         * modules/localcharset (Makefile.am): Likewise.
59062         * modules/long-options (Makefile.am): Likewise.
59063         * modules/lstat (Makefile.am): Likewise.
59064         * modules/malloc (Makefile.am): Likewise.
59065         * modules/mathl (Makefile.am): Likewise.
59066         * modules/mbchar (Makefile.am): Likewise.
59067         * modules/md2 (Makefile.am): Likewise.
59068         * modules/md4 (Makefile.am): Likewise.
59069         * modules/md5 (Makefile.am): Likewise.
59070         * modules/memcasecmp (Makefile.am): Likewise.
59071         * modules/memchr (Makefile.am): Likewise.
59072         * modules/memcmp (Makefile.am): Likewise.
59073         * modules/memcoll (Makefile.am): Likewise.
59074         * modules/memcpy (Makefile.am): Likewise.
59075         * modules/memmem (Makefile.am): Likewise.
59076         * modules/memmove (Makefile.am): Likewise.
59077         * modules/mempcpy (Makefile.am): Likewise.
59078         * modules/memrchr (Makefile.am): Likewise.
59079         * modules/memset (Makefile.am): Likewise.
59080         * modules/memxor (Makefile.am): Likewise.
59081         * modules/mkancesdirs (Makefile.am): Likewise.
59082         * modules/mkdir-p (Makefile.am): Likewise.
59083         * modules/mkdir (Makefile.am): Likewise.
59084         * modules/mkdtemp (Makefile.am): Likewise.
59085         * modules/mkstemp (Makefile.am): Likewise.
59086         * modules/mktime (Makefile.am): Likewise.
59087         * modules/modechange (Makefile.am): Likewise.
59088         * modules/mountlist (Makefile.am): Likewise.
59089         * modules/nanosleep (Makefile.am): Likewise.
59090         * modules/obstack (Makefile.am): Likewise.
59091         * modules/openat (Makefile.am): Likewise.
59092         * modules/pagealign_alloc (Makefile.am): Likewise.
59093         * modules/pathmax (Makefile.am): Likewise.
59094         * modules/physmem (Makefile.am): Likewise.
59095         * modules/poll (Makefile.am): Likewise.
59096         * modules/posixtm (Makefile.am): Likewise.
59097         * modules/posixver (Makefile.am): Likewise.
59098         * modules/putenv (Makefile.am): Likewise.
59099         * modules/quote (Makefile.am): Likewise.
59100         * modules/quotearg (Makefile.am): Likewise.
59101         * modules/raise (Makefile.am): Likewise.
59102         * modules/read-file (Makefile.am): Likewise.
59103         * modules/readline (Makefile.am): Likewise.
59104         * modules/readlink (Makefile.am): Likewise.
59105         * modules/readtokens (Makefile.am): Likewise.
59106         * modules/readutmp (Makefile.am): Likewise.
59107         * modules/realloc (Makefile.am): Likewise.
59108         * modules/regex (Makefile.am): Likewise.
59109         * modules/rename-dest-slash (Makefile.am): Likewise.
59110         * modules/rename (Makefile.am): Likewise.
59111         * modules/rijndael (Makefile.am): Likewise.
59112         * modules/rmdir (Makefile.am): Likewise.
59113         * modules/rpmatch (Makefile.am): Likewise.
59114         * modules/safe-read (Makefile.am): Likewise.
59115         * modules/safe-write (Makefile.am): Likewise.
59116         * modules/same-inode (Makefile.am): Likewise.
59117         * modules/same (Makefile.am): Likewise.
59118         * modules/save-cwd (Makefile.am): Likewise.
59119         * modules/savedir (Makefile.am): Likewise.
59120         * modules/setenv (Makefile.am): Likewise.
59121         * modules/settime (Makefile.am): Likewise.
59122         * modules/sha1 (Makefile.am): Likewise.
59123         * modules/sig2str (Makefile.am): Likewise.
59124         * modules/snprintf (Makefile.am): Likewise.
59125         * modules/stat-macros (Makefile.am): Likewise.
59126         * modules/stat-time (Makefile.am): Likewise.
59127         * modules/stdbool (Makefile.am): Likewise.
59128         * modules/stdint (Makefile.am): Likewise.
59129         * modules/stdlib-safer (Makefile.am): Likewise.
59130         * modules/stpcpy (Makefile.am): Likewise.
59131         * modules/stpncpy (Makefile.am): Likewise.
59132         * modules/strcase (Makefile.am): Likewise.
59133         * modules/strcasestr (Makefile.am): Likewise.
59134         * modules/strchrnul (Makefile.am): Likewise.
59135         * modules/strcspn (Makefile.am): Likewise.
59136         * modules/strdup (Makefile.am): Likewise.
59137         * modules/strerror (Makefile.am): Likewise.
59138         * modules/strftime (Makefile.am): Likewise.
59139         * modules/strndup (Makefile.am): Likewise.
59140         * modules/strnlen (Makefile.am): Likewise.
59141         * modules/strpbrk (Makefile.am): Likewise.
59142         * modules/strsep (Makefile.am): Likewise.
59143         * modules/strstr (Makefile.am): Likewise.
59144         * modules/strtod (Makefile.am): Likewise.
59145         * modules/strtoimax (Makefile.am): Likewise.
59146         * modules/strtok_r (Makefile.am): Likewise.
59147         * modules/strtol (Makefile.am): Likewise.
59148         * modules/strtoll (Makefile.am): Likewise.
59149         * modules/strtoul (Makefile.am): Likewise.
59150         * modules/strtoull (Makefile.am): Likewise.
59151         * modules/strtoumax (Makefile.am): Likewise.
59152         * modules/strverscmp (Makefile.am): Likewise.
59153         * modules/sys_socket (Makefile.am): Likewise.
59154         * modules/sys_stat (Makefile.am): Likewise.
59155         * modules/sysexits (Makefile.am): Likewise.
59156         * modules/time_r (Makefile.am): Likewise.
59157         * modules/timegm (Makefile.am): Likewise.
59158         * modules/timespec (Makefile.am): Likewise.
59159         * modules/tmpfile-safer (Makefile.am): Likewise.
59160         * modules/trim (Makefile.am): Likewise.
59161         * modules/unistd-safer (Makefile.am): Likewise.
59162         * modules/unlinkdir (Makefile.am): Likewise.
59163         * modules/unlocked-io (Makefile.am): Likewise.
59164         * modules/userspec (Makefile.am): Likewise.
59165         * modules/utime (Makefile.am): Likewise.
59166         * modules/utimecmp (Makefile.am): Likewise.
59167         * modules/utimens (Makefile.am): Likewise.
59168         * modules/vasnprintf (Makefile.am): Likewise.
59169         * modules/vasprintf (Makefile.am): Likewise.
59170         * modules/vsnprintf (Makefile.am): Likewise.
59171         * modules/xalloc (Makefile.am): Likewise.
59172         * modules/xgetcwd (Makefile.am): Likewise.
59173         * modules/xnanosleep (Makefile.am): Likewise.
59174         * modules/xreadlink (Makefile.am): Likewise.
59175         * modules/xstrtod (Makefile.am): Likewise.
59176         * modules/xstrtol (Makefile.am): Likewise.
59177         * modules/xstrtold (Makefile.am): Likewise.
59178         * modules/yesno (Makefile.am): Likewise.
59179         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
59180
59181 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59182
59183         * modules/error (Makefile.am): Distribute files through
59184         EXTRA_DIST, not lib_SOURCES.
59185
59186 2006-10-12  Eric Blake  <ebb9@byu.net>
59187
59188         * modules/error (Makefile.am): Distribute files in /lib.
59189         * modules/obstack (Makefile.am): Likewise.
59190
59191 2006-10-12  Bruno Haible  <bruno@clisp.org>
59192
59193         * modules/acl (Makefile.am): Distribute all files in lib/ through
59194         EXTRA_DIST.
59195         * modules/arcfour (Makefile.am): Likewise.
59196         * modules/arctwo (Makefile.am): Likewise.
59197         * modules/argmatch (Makefile.am): Likewise.
59198         * modules/argz (Makefile.am): Likewise.
59199         * modules/atexit (Makefile.am): Likewise.
59200         * modules/backupfile (Makefile.am): Likewise.
59201         * modules/c-strtod (Makefile.am): Likewise.
59202         * modules/c-strtold (Makefile.am): Likewise.
59203         * modules/calloc (Makefile.am): Likewise.
59204         * modules/canon-host (Makefile.am): Likewise.
59205         * modules/canonicalize (Makefile.am): Likewise.
59206         * modules/chdir-long (Makefile.am): Likewise.
59207         * modules/chdir-safer (Makefile.am): Likewise.
59208         * modules/check-version (Makefile.am): Likewise.
59209         * modules/chown (Makefile.am): Likewise.
59210         * modules/cloexec (Makefile.am): Likewise.
59211         * modules/close-stream (Makefile.am): Likewise.
59212         * modules/closeout (Makefile.am): Likewise.
59213         * modules/crc (Makefile.am): Likewise.
59214         * modules/cycle-check (Makefile.am): Likewise.
59215         * modules/des (Makefile.am): Likewise.
59216         * modules/dirfd (Makefile.am): Likewise.
59217         * modules/dirname (Makefile.am): Likewise.
59218         * modules/dup2 (Makefile.am): Likewise.
59219         * modules/euidaccess (Makefile.am): Likewise.
59220         * modules/exclude (Makefile.am): Likewise.
59221         * modules/exitfail (Makefile.am): Likewise.
59222         * modules/fcntl-safer (Makefile.am): Likewise.
59223         * modules/file-type (Makefile.am): Likewise.
59224         * modules/fileblocks (Makefile.am): Likewise.
59225         * modules/filemode (Makefile.am): Likewise.
59226         * modules/filenamecat (Makefile.am): Likewise.
59227         * modules/fnmatch (Makefile.am): Likewise.
59228         * modules/fopen-safer (Makefile.am): Likewise.
59229         * modules/fpending (Makefile.am): Likewise.
59230         * modules/fprintftime (Makefile.am): Likewise.
59231         * modules/free (Makefile.am): Likewise.
59232         * modules/fsusage (Makefile.am): Likewise.
59233         * modules/ftruncate (Makefile.am): Likewise.
59234         * modules/fts (Makefile.am): Likewise.
59235         * modules/gc (Makefile.am): Likewise.
59236         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59237         * modules/getaddrinfo (Makefile.am): Likewise.
59238         * modules/getcwd (Makefile.am): Likewise.
59239         * modules/getdelim (Makefile.am): Likewise.
59240         * modules/getdomainname (Makefile.am): Likewise.
59241         * modules/getgroups (Makefile.am): Likewise.
59242         * modules/gethostname (Makefile.am): Likewise.
59243         * modules/gethrxtime (Makefile.am): Likewise.
59244         * modules/getline (Makefile.am): Likewise.
59245         * modules/getloadavg (Makefile.am): Likewise.
59246         * modules/getlogin_r (Makefile.am): Likewise.
59247         * modules/getopt (Makefile.am): Likewise.
59248         * modules/getpass (Makefile.am): Likewise.
59249         * modules/getpass-gnu (Makefile.am): Likewise.
59250         * modules/getsubopt (Makefile.am): Likewise.
59251         * modules/gettime (Makefile.am): Likewise.
59252         * modules/gettimeofday (Makefile.am): Likewise.
59253         * modules/getugroups (Makefile.am): Likewise.
59254         * modules/getusershell (Makefile.am): Likewise.
59255         * modules/glob (Makefile.am): Likewise.
59256         * modules/group-member (Makefile.am): Likewise.
59257         * modules/hard-locale (Makefile.am): Likewise.
59258         * modules/hash (Makefile.am): Likewise.
59259         * modules/hmac-md5 (Makefile.am): Likewise.
59260         * modules/hmac-sha1 (Makefile.am): Likewise.
59261         * modules/human (Makefile.am): Likewise.
59262         * modules/idcache (Makefile.am): Likewise.
59263         * modules/imaxabs (Makefile.am): Likewise.
59264         * modules/imaxdiv (Makefile.am): Likewise.
59265         * modules/inet_ntop (Makefile.am): Likewise.
59266         * modules/inet_pton (Makefile.am): Likewise.
59267         * modules/inttostr (Makefile.am): Likewise.
59268         * modules/isapipe (Makefile.am): Likewise.
59269         * modules/lchown (Makefile.am): Likewise.
59270         * modules/long-options (Makefile.am): Likewise.
59271         * modules/lstat (Makefile.am): Likewise.
59272         * modules/malloc (Makefile.am): Likewise.
59273         * modules/mathl (Makefile.am): Likewise.
59274         * modules/mbchar (Makefile.am): Likewise.
59275         * modules/md2 (Makefile.am): Likewise.
59276         * modules/md4 (Makefile.am): Likewise.
59277         * modules/md5 (Makefile.am): Likewise.
59278         * modules/memcasecmp (Makefile.am): Likewise.
59279         * modules/memchr (Makefile.am): Likewise.
59280         * modules/memcmp (Makefile.am): Likewise.
59281         * modules/memcoll (Makefile.am): Likewise.
59282         * modules/memcpy (Makefile.am): Likewise.
59283         * modules/memmem (Makefile.am): Likewise.
59284         * modules/memmove (Makefile.am): Likewise.
59285         * modules/mempcpy (Makefile.am): Likewise.
59286         * modules/memrchr (Makefile.am): Likewise.
59287         * modules/memset (Makefile.am): Likewise.
59288         * modules/memxor (Makefile.am): Likewise.
59289         * modules/mkancesdirs (Makefile.am): Likewise.
59290         * modules/mkdir (Makefile.am): Likewise.
59291         * modules/mkdir-p (Makefile.am): Likewise.
59292         * modules/mkdtemp (Makefile.am): Likewise.
59293         * modules/mkstemp (Makefile.am): Likewise.
59294         * modules/mktime (Makefile.am): Likewise.
59295         * modules/modechange (Makefile.am): Likewise.
59296         * modules/mountlist (Makefile.am): Likewise.
59297         * modules/nanosleep (Makefile.am): Likewise.
59298         * modules/openat (Makefile.am): Likewise.
59299         * modules/pagealign_alloc (Makefile.am): Likewise.
59300         * modules/physmem (Makefile.am): Likewise.
59301         * modules/poll (Makefile.am): Likewise.
59302         * modules/posixtm (Makefile.am): Likewise.
59303         * modules/posixver (Makefile.am): Likewise.
59304         * modules/putenv (Makefile.am): Likewise.
59305         * modules/quote (Makefile.am): Likewise.
59306         * modules/quotearg (Makefile.am): Likewise.
59307         * modules/raise (Makefile.am): Likewise.
59308         * modules/read-file (Makefile.am): Likewise.
59309         * modules/readline (Makefile.am): Likewise.
59310         * modules/readlink (Makefile.am): Likewise.
59311         * modules/readtokens (Makefile.am): Likewise.
59312         * modules/readutmp (Makefile.am): Likewise.
59313         * modules/realloc (Makefile.am): Likewise.
59314         * modules/regex (Makefile.am): Likewise.
59315         * modules/rename (Makefile.am): Likewise.
59316         * modules/rename-dest-slash (Makefile.am): Likewise.
59317         * modules/rijndael (Makefile.am): Likewise.
59318         * modules/rmdir (Makefile.am): Likewise.
59319         * modules/rpmatch (Makefile.am): Likewise.
59320         * modules/safe-read (Makefile.am): Likewise.
59321         * modules/safe-write (Makefile.am): Likewise.
59322         * modules/same (Makefile.am): Likewise.
59323         * modules/save-cwd (Makefile.am): Likewise.
59324         * modules/savedir (Makefile.am): Likewise.
59325         * modules/setenv (Makefile.am): Likewise.
59326         * modules/settime (Makefile.am): Likewise.
59327         * modules/sha1 (Makefile.am): Likewise.
59328         * modules/sig2str (Makefile.am): Likewise.
59329         * modules/snprintf (Makefile.am): Likewise.
59330         * modules/stdlib-safer (Makefile.am): Likewise.
59331         * modules/stpcpy (Makefile.am): Likewise.
59332         * modules/stpncpy (Makefile.am): Likewise.
59333         * modules/strcase (Makefile.am): Likewise.
59334         * modules/strcasestr (Makefile.am): Likewise.
59335         * modules/strchrnul (Makefile.am): Likewise.
59336         * modules/strcspn (Makefile.am): Likewise.
59337         * modules/strdup (Makefile.am): Likewise.
59338         * modules/strerror (Makefile.am): Likewise.
59339         * modules/strftime (Makefile.am): Likewise.
59340         * modules/strndup (Makefile.am): Likewise.
59341         * modules/strnlen (Makefile.am): Likewise.
59342         * modules/strpbrk (Makefile.am): Likewise.
59343         * modules/strsep (Makefile.am): Likewise.
59344         * modules/strstr (Makefile.am): Likewise.
59345         * modules/strtod (Makefile.am): Likewise.
59346         * modules/strtoimax (Makefile.am): Likewise.
59347         * modules/strtok_r (Makefile.am): Likewise.
59348         * modules/strtol (Makefile.am): Likewise.
59349         * modules/strtoll (Makefile.am): Likewise.
59350         * modules/strtoul (Makefile.am): Likewise.
59351         * modules/strtoull (Makefile.am): Likewise.
59352         * modules/strtoumax (Makefile.am): Likewise.
59353         * modules/strverscmp (Makefile.am): Likewise.
59354         * modules/time_r (Makefile.am): Likewise.
59355         * modules/timegm (Makefile.am): Likewise.
59356         * modules/tmpfile-safer (Makefile.am): Likewise.
59357         * modules/unistd-safer (Makefile.am): Likewise.
59358         * modules/unlinkdir (Makefile.am): Likewise.
59359         * modules/userspec (Makefile.am): Likewise.
59360         * modules/utime (Makefile.am): Likewise.
59361         * modules/utimecmp (Makefile.am): Likewise.
59362         * modules/utimens (Makefile.am): Likewise.
59363         * modules/vasnprintf (Makefile.am): Likewise.
59364         * modules/vasprintf (Makefile.am): Likewise.
59365         * modules/vsnprintf (Makefile.am): Likewise.
59366         * modules/xalloc (Makefile.am): Likewise.
59367         * modules/xgetcwd (Makefile.am): Likewise.
59368         * modules/xnanosleep (Makefile.am): Likewise.
59369         * modules/xreadlink (Makefile.am): Likewise.
59370         * modules/xstrtod (Makefile.am): Likewise.
59371         * modules/xstrtol (Makefile.am): Likewise.
59372         * modules/xstrtold (Makefile.am): Likewise.
59373         * modules/yesno (Makefile.am): Likewise.
59374
59375 2006-10-12  Jim Meyering  <jim@meyering.net>
59376
59377         * m4/getloadavg.m4: Revert the change below.
59378
59379         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
59380         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
59381         fail with a symlink, which is what coreutils' ./bootstrap now
59382         creates by default.
59383
59384 2006-10-12  Bruno Haible  <bruno@clisp.org>
59385
59386         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
59387         mingw.
59388         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
59389         MSVC and mingw explicitly.
59390
59391 2006-10-11  Simon Josefsson  <jas@extundo.com>
59392             Bruno Haible  <bruno@clisp.org>
59393
59394         Add support for multiple gnulib-tool invocations in the scope of a
59395         single configure.ac file.
59396         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
59397         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
59398         with the same contents as the _LIBADD variable.
59399         (func_emit_initmacro_start, func_emit_initmacro_end,
59400         func_emit_initmacro_done): New functions.
59401         (func_import, func_create_testdir): Invoke them. Allow the identifiers
59402         gl_LIBOBJS and gl_LTLIBOBJS.
59403
59404 2006-10-11  Bruno Haible  <bruno@clisp.org>
59405
59406         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
59407         (func_create_testdir): Don't create po/Makefile.am, don't invoke
59408         autoreconf. Instead, invoke autopoint explicitly but move back the
59409         *.m4 files from gnulib.
59410
59411 2006-10-11  Bruno Haible  <bruno@clisp.org>
59412
59413         * gnulib-tool (func_usage): Make module names after --create-testdir
59414         optional.
59415         (func_create_testdir): If no module was specified, use nearly all
59416         modules.
59417
59418 2006-10-12  Jim Meyering  <jim@meyering.net>
59419
59420         Big performance improvement for fts-based tools that use FTS_NOSTAT.
59421         Avoid spurious inode-mismatch problems on non-POSIX file systems.
59422         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
59423         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
59424         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
59425         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
59426         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
59427         (fts_set_stat_required): New function.
59428         (fts_open): Defer the calls to fts_stat, if possible or requested.
59429         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
59430         into fts_stat itself.
59431         (fts_read): Perform any required (deferred) fts_stat call.
59432         (fts_build): Likewise, for the directory we're about to open and read.
59433         In the readdir loop, carefully decide whether each entry will require
59434         an eventual call to fts_stat, using dirent.d_type info if available.
59435         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
59436         a command line argument into this function.  Update all callers.
59437         Map a return value of FTS_DOT to FTS_D for a command line argument.
59438         * modules/fts (Depends-on): Add d-type.  Alphabetize.
59439         Thanks to Miklos Szeredi for his tenacity and for the initial
59440         bug report about "find" failing on a FUSE-based file system.
59441
59442         * lib/fts.c (fts_open): Use consistent indentation.
59443
59444 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59445
59446         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
59447         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
59448         reported by Jim Meyering.  All uses of cache variables renamed
59449         to match Autoconf's.
59450         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
59451         the other one.
59452
59453         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
59454         Fix misspelling in diagnostic.
59455
59456 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59457
59458         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
59459         defined.  Problem reported by Matthew Woehlke.
59460
59461         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
59462         Add support for Tandem NonStop R series.
59463         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
59464         Use new macro.
59465
59466         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
59467         (has_trailing_slash): Omit size arg; all callers changed.
59468         Omit 'inline', since it doesn't help performance and we'd
59469         need to configure it.
59470         Don't count //, ///, etc. as having a trailing slash.
59471         As a side effect, this removes a C99ism reported by Matthew Woehlke.
59472         (rpl_rename_dest_slash): On failure, use rename's errno rather
59473         than (in some cases) an incorrect or junk errno.
59474         Simplify code by removing need to compute length; this does
59475         cause it to make two passes instead of one over the file name,
59476         but it's worth it.
59477
59478         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
59479         change, since Autoconf's version may no longer be appropriate now
59480         that we are using CVS Autoconf's version.  Add support for Tandem.
59481
59482 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59483             Bruno Haible  <bruno@clisp.org>
59484
59485         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
59486         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
59487         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
59488         gl_AC_TYPE_LONG_LONG.
59489
59490         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
59491         instead of HAVE_LONG_LONG.
59492         * lib/printf-args.c (printf_fetchargs): Likewise.
59493         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59494         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59495         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
59496         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
59497         gl_AC_TYPE_LONG_LONG.
59498
59499 2006-10-11  Bruno Haible  <bruno@clisp.org>
59500
59501         * m4/longlong.m4: Add comments.
59502         * m4/ulonglong.m4: Likewise.
59503
59504 2006-10-10  Bruno Haible  <bruno@clisp.org>
59505
59506         Make it possible to #define stpcpy, strdup to aliases.
59507         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
59508         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
59509
59510 2006-10-10  Bruno Haible  <bruno@clisp.org>
59511
59512         Make it possible to #define gcd to an alias.
59513         * lib/gcd.c: Include config.h.
59514
59515 2006-10-10  Bruno Haible  <bruno@clisp.org>
59516
59517         Make it possible to #define c_isascii to an alias.
59518         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
59519         defined. Undefine the macros before defining them, to avoid gcc
59520         warnings.
59521         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
59522         define NO_C_CTYPE_MACROS early.
59523
59524 2006-10-10  Bruno Haible  <bruno@clisp.org>
59525
59526         Make it possible to #define set_program_name to an alias.
59527         * lib/progname.c: Don't undefine set_program_name; instead, undefine
59528         ENABLE_RELOCATABLE early.
59529
59530 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59531
59532         Port to Tandem NSK OSS, which has 64-bit signed int but at most
59533         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
59534         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
59535         More generally, don't assume that 64-bit signed int is available
59536         if unsigned int is, and vice versa.
59537         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
59538         unsigned symbols, not on their signed counterparts.
59539         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
59540         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
59541         (UINT64_C, UINTMAX_C):
59542         Likewise.
59543         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
59544         unsigned counterparts.
59545         (Have_long_long, Unsigned): New macros.
59546         (Int): Renamed from INT.
59547         (strtoimax): Use the new macros.
59548         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
59549         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
59550         * modules/inttypes (inttypes.h): Substitute
59551         HAVE_UNSIGNED_LONG_LONG_INT.
59552         * modules/stdint (stdint.h): Likewise.
59553         (Files): Add m4/ulonglong.m4.
59554
59555 2006-10-10  Bruno Haible  <bruno@clisp.org>
59556
59557         Fix a gcc -Wshadow warning.
59558         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
59559         to 'bucket'.
59560         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
59561         gl_linked_indexof_from_to): Likewise.
59562         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
59563         Likewise.
59564         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
59565         Likewise.
59566         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
59567         Reported by Eric Blake.
59568
59569 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
59570
59571         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
59572         for NetBSD.  Problem reported by Bruno Haible.
59573
59574 2006-10-09  Jim Meyering  <jim@meyering.net>
59575
59576         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
59577         Patch from Bruno Haible.
59578
59579 2006-10-09  Jim Meyering  <jim@meyering.net>
59580
59581         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
59582         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
59583         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
59584
59585 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59586
59587         Don't include <config.h> twice; this doesn't work in some cases,
59588         e.g., when config.h has "#define intmax_t long long int" and
59589         we include <config.h>, <inttypes.h>, <config.h> in that order.
59590         Problem reported by Matthew Woehlke in:
59591         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
59592         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
59593         * lib/fts-cycle.c: Don't include config.h.
59594         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
59595         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
59596         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
59597         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
59598         inttypes.h.
59599         * lib/xstrtoumax.c: Likewise.
59600         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
59601         __strtol and the like, so that this module is more like its siblings.
59602         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
59603         Remove; no longer needed now that we assume gnulib inttypes.h.
59604
59605 2006-10-08  Bruno Haible  <bruno@clisp.org>
59606
59607         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
59608         option.
59609
59610 2006-10-07  Jim Meyering  <jim@meyering.net>
59611
59612         * modules/inttypes (inttypes.h): Revert what seems to have been
59613         an inadvertent part of today's change: use "|", not "/" in the
59614         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
59615
59616 2006-10-07  Bruno Haible  <bruno@clisp.org>
59617
59618         * modules/sublist: New file.
59619
59620 2006-10-07  Bruno Haible  <bruno@clisp.org>
59621
59622         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
59623         * modules/argz (argz.h): Likewise.
59624         * modules/arpa_inet (arpa/inet.h): Likewise.
59625         * modules/byteswap (byteswap.h): Likewise.
59626         * modules/configmake (configmake.h): Likewise.
59627         * modules/fcntl (fcntl.h): Likewise.
59628         * modules/fnmatch (fnmatch.h): Likewise.
59629         * modules/getopt (getopt.h): Likewise.
59630         * modules/glob (glob.h): Likewise.
59631         * modules/inttypes (inttypes.h): Likewise.
59632         * modules/netinet_in (netinet/in.h): Likewise.
59633         * modules/poll (poll.h): Likewise.
59634         * modules/stdbool (stdbool.h): Likewise.
59635         * modules/stdint (stdint.h): Likewise.
59636         * modules/sys_select (sys/select.h): Likewise.
59637         * modules/sys_socket (sys/socket.h): Likewise.
59638         * modules/sys_stat (sys/stat.h): Likewise.
59639         * modules/sysexits (sysexits.h): Likewise.
59640         * modules/unistd (unistd.h): Likewise.
59641         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59642         Add a "DO NOT EDIT" comment to the generated file.
59643         (func_import): Likewise for gnulib-comp.m4.
59644
59645 2006-10-07  Bruno Haible  <bruno@clisp.org>
59646
59647         * lib/gl_sublist.h: New file.
59648         * lib/gl_sublist.c: New file.
59649
59650 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59651
59652         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
59653         name (relative to the original working directory) and the file
59654         name component (relative to the temporary working directory).  All
59655         callers changed.
59656         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
59657         * lib/mkdir-p.c (make_dir_parents): Likewise.
59658         * lib/mkdir-p.h (make_dir_parents): Likewise.
59659
59660 2006-10-06  Eric Blake  <ebb9@byu.net>
59661
59662         Define several macros for use by the clean-temp module.
59663         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
59664         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
59665         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
59666
59667         * lib/clean-temp.h (close_stream_temp): New declaration.
59668         * lib/clean-temp.c (includes): Pull in headers according to what
59669         other modules are in use.
59670         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
59671
59672 2006-10-06  Bruno Haible  <bruno@clisp.org>
59673
59674         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
59675         instead of fopen, fwriteerror.
59676
59677 2006-10-06  Bruno Haible  <bruno@clisp.org>
59678
59679         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
59680         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
59681         int.
59682         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
59683         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
59684         Return an error indicator.
59685         Suggested by Eric Blake.
59686
59687 2006-10-06  Bruno Haible  <bruno@clisp.org>
59688
59689         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
59690         Reported by Eric Blake.
59691
59692 2006-10-06  Bruno Haible  <bruno@clisp.org>
59693
59694         * modules/closeout (Description): Mention stderr too.
59695
59696 2006-10-06  Bruno Haible  <bruno@clisp.org>
59697         and Paul Eggert  <eggert@cs.ucla.edu>
59698
59699         * lib/closeout.c (close_stdout): Also close stderr.
59700         * lib/closeout.h: Update comment.
59701
59702 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59703
59704         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
59705         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
59706         * lib/dirchownmod.c: Include lchown.h.
59707         * lib/lchown.c: Don't include files that lchown.h now includes.
59708         Don't declare chown, since lchown.h now does that.
59709         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
59710         (lchown): Define to rpl_chown if lchown is declared but
59711         does not exist.  Declare using a prototype if lchown is not
59712         declared.  Add a copyright notice.
59713         * lib/mkstemp.h: Include <unistd.h>.
59714         * lib/openat.c: Include lchown.h.
59715
59716         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
59717         we now test for that separately.
59718         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
59719         rather than O_NOFOLLOW, when testing whether it's possible to
59720         avoid a race condition reliably.
59721         * lib/savewd.c (savewd_chdir): Likewise.
59722
59723         Remove macros that are no longer needed now that stdint.h is
59724         reliable.
59725         * lib/fsusage.c (UINTMAX_MAX): Remove.
59726         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
59727         * lib/utimecmp.c (SIZE_MAX): Remove.
59728
59729         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
59730
59731         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
59732         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
59733         O_NOATIME works.
59734
59735 2006-10-05  Bruno Haible  <bruno@clisp.org>
59736
59737         * lib/gl_list.h (gl_sortedlist_search_from_to,
59738         gl_sortedlist_indexof_from_to): New declarations.
59739         (gl_list_implementation): New fields sortedlist_search_from_to,
59740         sortedlist_indexof_from_to.
59741         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
59742         inline functions.
59743         * lib/gl_list.c (gl_sortedlist_search_from_to,
59744         gl_sortedlist_indexof_from_to): New functions.
59745         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
59746         function.
59747         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
59748         (gl_array_sortedlist_search_from_to): New function.
59749         (gl_array_list_implementation): Update.
59750         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
59751         function.
59752         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
59753         (gl_carray_sortedlist_search_from_to): New function.
59754         (gl_carray_list_implementation): Update.
59755         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
59756         gl_linked_sortedlist_indexof_from_to): New functions.
59757         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59758         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59759         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
59760         gl_tree_sortedlist_indexof_from_to): New functions.
59761         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59762         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59763         Update.
59764         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59765         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
59766         Update.
59767
59768 2006-10-05  Bruno Haible  <bruno@clisp.org>
59769
59770         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
59771         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
59772         (struct gl_list_implementation): Add fields search_from_to,
59773         indexof_from_to. Remove fields search, indexof.
59774         (gl_list_search): Use the search_from_to method.
59775         (gl_list_search_from, gl_list_search_from_to): New functions.
59776         (gl_list_indexof): Use the indexof_from_to method.
59777         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59778         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
59779         (gl_list_search_from, gl_list_search_from_to): New functions.
59780         (gl_list_indexof): Use the indexof_from_to method.
59781         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59782         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
59783         gl_array_indexof. Add start_index, end_index arguments.
59784         (gl_array_search_from_to): Renamed from gl_array_search. Add
59785         start_index, end_index arguments.
59786         (gl_array_remove, gl_array_list_implementation): Update.
59787         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
59788         gl_carray_indexof. Add start_index, end_index arguments.
59789         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
59790         start_index, end_index arguments.
59791         (gl_carray_remove, gl_carray_list_implementation): Update.
59792         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
59793         gl_linked_search. Add start_index, end_index arguments.
59794         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
59795         start_index, end_index arguments.
59796         (gl_linked_remove): Update.
59797         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59798         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59799         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
59800         field to 'size_t'.
59801         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
59802         gl_tree_search. Add start_index, end_index arguments.
59803         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59804         start_index, end_index arguments.
59805         (gl_tree_remove): Update.
59806         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59807         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59808         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
59809         function.
59810         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
59811         gl_tree_search. Add start_index, end_index arguments.
59812         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59813         start_index, end_index arguments.
59814         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59815         Update.
59816         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59817
59818 2006-10-05  Bruno Haible  <bruno@clisp.org>
59819
59820         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
59821
59822         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
59823         fwriteerror_temp): New declarations.
59824         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
59825         (descriptors): New variable.
59826         (cleanup): First, close the descriptors.
59827         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
59828         fclose_temp, fwriteerror_temp): New functions.
59829
59830 2006-10-04  Jim Meyering  <jim@meyering.net>
59831
59832         * lib/fts.c (fts_open): Tiny comment change.
59833
59834 2006-10-04  Bruno Haible  <bruno@clisp.org>
59835
59836         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
59837         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
59838         gl_LOCK_BODY.
59839         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
59840         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
59841         gl_LOCK_EARLY_BODY.
59842         (gl_LOCK): Require gl_LOCK_BODY.
59843
59844 2006-10-04  Bruno Haible  <bruno@clisp.org>
59845
59846         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
59847         (gl_oset_search_atleast): New declaration.
59848         (struct gl_oset_implementation): Add field 'search_atleast'.
59849         (gl_oset_search_atleast): New inline function.
59850         * lib/gl_oset.c (gl_oset_search_atleast): New function.
59851         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
59852         (gl_array_oset_implementation): Update.
59853         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
59854         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
59855         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
59856
59857 2006-10-04  Bruno Haible  <bruno@clisp.org>
59858
59859         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
59860
59861 2006-10-03  Bruno Haible  <bruno@clisp.org>
59862
59863         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
59864         from gl_avltreehash_list_implementation.
59865
59866 2006-10-03  Bruno Haible  <bruno@clisp.org>
59867
59868         * lib/gl_oset.c (gl_oset_add): Fix return type.
59869
59870 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
59871
59872         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
59873
59874 2006-10-02  Eric Blake  <ebb9@byu.net>
59875
59876         * modules/strnlen (Depends-on): Add extensions.
59877
59878 2006-10-02  Eric Blake  <ebb9@byu.net>
59879
59880         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
59881         definition in 2.60+.
59882
59883 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
59884
59885         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
59886         checks.
59887
59888 2006-10-02  Bruno Haible  <bruno@clisp.org>
59889
59890         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
59891         to the AUTOMAKE_OPTIONS.
59892         Reported by Jim Meyering.
59893
59894 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59895
59896         Work around bug in Solaris 10 /proc file system:
59897         /proc/self/fd/NNN/.. isn't the parent directory of
59898         the directory whose file descriptor is NNN.  This needs to
59899         be worked around at run time, not compile time, since a
59900         program might be built on Solaris 8, where things work, and
59901         run on Solaris 10.
59902         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
59903         to use the following interface instead:
59904         (OPENAT_BUFFER_SIZE): New macro.
59905         (openat_proc_name): New function.
59906         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
59907         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
59908         Likewise.
59909         * lib/openat-proc.c: New file.
59910         * modules/openat (Files): Add lib/openat-proc.c.
59911         (Depends-on): Add same-inode, stdbool.
59912         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
59913
59914 2006-09-29  Bruno Haible  <bruno@clisp.org>
59915
59916         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
59917         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
59918         argument. Set stdout_closed before testing for ferror, not after.
59919         (fwriteerror, fwriteerror_no_ebadf): New functions.
59920
59921 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59922
59923         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
59924
59925 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
59926
59927         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
59928         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
59929
59930 2006-09-28  Jim Meyering  <jim@meyering.net>
59931
59932         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
59933         Include <unistd.h>.
59934
59935 2006-09-28  Bruno Haible  <bruno@clisp.org>
59936
59937         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
59938         * modules/linkedhash-list (Depends-on): Likewise.
59939         * modules/rbtreehash-list (Depends-on): Likewise.
59940
59941 2006-09-28  Bruno Haible  <bruno@clisp.org>
59942
59943         * lib/strndup.h: Simplify the redefinition of strndup.
59944         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
59945         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
59946
59947 2006-09-28  Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
59950         * lib/gl_linkedhash_list.c: Likewise.
59951         * lib/gl_rbtreehash_list.c: Likewise.
59952
59953 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59954
59955         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
59956         getaddrinfo.
59957
59958         * lib/__fpending.h: Don't include <stdio_ext.h> unless
59959         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
59960         it causes <stdio_ext.h> to cause a compile-time error.
59961         Problem reported by Nelson H. F. Beebe.
59962         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
59963         of HAVE_DECL___PENDING.
59964
59965         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
59966         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
59967         declaration.
59968
59969 2006-09-27  Jim Meyering  <jim@meyering.net>
59970
59971         This file could end up with a definition for a function
59972         named __strndup, rather than rpl_strndup on a system with
59973         incomplete weak_alias support.
59974         * lib/strndup.c (strndup): Rename from __strndup.
59975         Remove #defines that used to map __strndup to strndup.
59976         Don't use K&R prototypes.
59977         Remove LIBC-related code, since this file is not sync'd with glibc.
59978         * lib/strndup.h: Revamp, accordingly.
59979         * m4/strndup.m4: Modernize.
59980
59981 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59982
59983         * modules/savewd (Depends-on): Add 'raise'.
59984         * lib/savewd.c: Include <signal.h>, for 'raise'.
59985
59986 2006-09-26  Jim Meyering  <jim@meyering.net>
59987
59988         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
59989         when we detect Darwin 8.7.0's acl_get_file bug.
59990         Rearrange to perform the new (below) run-test while $LIBS
59991         contains any acl-related library.  Set USE_ACL at the end.
59992         (gl_ACL_GET_FILE): New function.
59993
59994 2006-09-26  Eric Blake  <ebb9@byu.net>
59995
59996         * lib/verror.c: Include <config.h> unconditionally.
59997
59998 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
59999
60000         * modules/clock-time (Maintainer): Add self.
60001         * modules/getlogin_r (Depends-on): Add extensions.
60002
60003 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60004
60005         * modules/clock-time: New module.
60006         * modules/nanosleep (Depends-on): Add clock-time.
60007         * modules/gethrxtime (Depends-on): Likewise.
60008         * modules/gettime (Depends-on): Likewise.
60009         * modules/settime (Depends-on): Likewise.
60010
60011         * modules/fts-lgpl: Depend on openat.
60012         * modules/mkancesdirs: Depend on savewd.
60013         * modules/mkdir-p: Likewise.
60014
60015 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60016
60017         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
60018
60019         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
60020         `gl_have_arbitrary_file_name_length_limit' to
60021         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
60022         actually works between configure runs.
60023
60024 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60025             Bruno Haible  <bruno@clisp.org>
60026
60027         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
60028
60029 2006-09-25  Jim Meyering  <jim@meyering.net>
60030
60031         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
60032         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
60033
60034 2006-09-25  Eric Blake  <ebb9@byu.net>
60035
60036         * gnulib-tool (func_import, func_create_testdir): Fix typos in
60037         exec's in 2006-09-18 patch when shuffling fds.
60038
60039 2006-09-25  Bruno Haible  <bruno@clisp.org>
60040
60041         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
60042         Reported by Jim Meyering.
60043
60044 2006-09-24  Jim Meyering  <jim@meyering.net>
60045
60046         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
60047         compare a pointer against a literal "0".  That caused failures with
60048         at least HP-UX's hpcc.
60049
60050 2006-09-22  Simon Josefsson  <jas@extundo.com>
60051
60052         * modules/gc-sha1:
60053         * modules/gc-md4:
60054         * modules/gc-hmac-sha1:
60055         * modules/gc-hmac-md5:
60056         * modules/gc-des:
60057         * modules/gc-arcfour: Distribute more files.
60058
60059 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60060
60061         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
60062         (gl_linked_iterator_from_to): Initialize struct completely.
60063         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
60064         (gl_tree_iterator_from_to): Likewise
60065         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
60066         * lib/gl_array_list.c [lint] (gl_array_iterator)
60067         (gl_array_iterator_from_to): Likewise.
60068         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
60069         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
60070         (gl_carray_iterator_from_to): Likewise.
60071
60072         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
60073         * lib/md4.c (md4_process_block): Remove unused variable.
60074         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
60075         parentheses for clarity.
60076
60077 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60078
60079         * modules/bison-i18n (Depends-on): Add gettext.
60080
60081 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60082
60083         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
60084         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60085         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
60086         also add missing comma that caused broken test.
60087         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
60088         stdlib.h, for `abort'.
60089         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
60090         variables.
60091         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
60092         include unistd.h if present, for `rmdir'.
60093         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
60094         variables.
60095         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
60096         in the process include standard headers for prototypes.
60097         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
60098         gets declared on GNU/Linux.
60099         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
60100         unistd.h, for `rmdir'.
60101         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
60102
60103         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
60104         always true.
60105         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
60106
60107         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
60108
60109 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60110
60111         * gnulib-tool (func_version): Create output all at once.  This
60112         may help avoid triggering unnecessary SIGPIPEs, and at any
60113         rate it doesn't hurt.
60114
60115 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60116             Bruno Haible  <bruno@clisp.org>
60117
60118         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
60119         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60120         * m4/signed.m4 (bh_C_SIGNED): Likewise.
60121
60122         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
60123         (gl_FUNC_VASPRINTF): Invoke it.
60124
60125 2006-09-22  Bruno Haible  <bruno@clisp.org>
60126
60127         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
60128         getloadavg.c as first argument.
60129
60130 2006-09-22  Bruno Haible  <bruno@clisp.org>
60131
60132         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
60133         at the beginning of the gl_INIT macro.
60134         * modules/getloadavg (configure.ac): Pass $gl_source_base to
60135         gl_GETLOADAVG.
60136
60137 2006-09-22  Bruno Haible  <bruno@clisp.org>
60138
60139         * gnulib-tool (func_create_megatestdir): Don't include the config-h
60140         module.
60141         Suggested by Ralf Wildenhues.
60142
60143 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60144
60145         Import this patch from libc:
60146
60147         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
60148
60149         * lib/regex_internal.c (re_string_reconstruct): Handle
60150         offset < pstr->valid_raw_len && pstr->offsets_needed case.
60151         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
60152         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
60153         re_string_context_at.
60154
60155         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
60156         now requires it.
60157         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
60158         gl_REGEX now does it for us.
60159         (gl_REGEX): Add test taken from
60160         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
60161
60162         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
60163         Check that large offsets work.  Modernize Autoconf usages.
60164         Prefer "yes" to mean a good thing rather than a bad.
60165         Don't put "#define mkstemp" in config.h, as this might interfere
60166         with standard system headers that "#define mkstemp mkstemp64".
60167
60168         * modules/mkstemp (Depends-on): Add extensions, so that
60169         mkstemp is visible on some platforms.
60170         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
60171         (Include): Change to "mkstemp.h" from <stdlib.h>.
60172         (Files): Add mkstemp.h.
60173
60174         * lib/mkstemp.h: New file, since some standard headers
60175         #define mkstemp.
60176         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
60177         Include "mkstemp.h".
60178         Make the _LIBC code resemble glibc original more,
60179         e.g., use K&R style.
60180         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
60181         (mkstemp): Remove, since mkstemp.h does this for us.
60182         * lib/stdlib--.h: Include mkstemp.h.
60183
60184         Import this patch from libc:
60185
60186         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60187
60188         * lib/tempname.c (__gen_tempname): Change attempts_min
60189         into a macro.  Use preprocessor to decide how to initialize
60190         attempts [Coverity CID 67].
60191
60192 2006-09-20  Bruno Haible  <bruno@clisp.org>
60193
60194         * lib/mkdtemp.c: Import from libc.
60195         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60196                 * sysdeps/posix/tempname.c (__gen_tempname): Change
60197                 attempts_min into a macro.  Use preprocessor to decide how to
60198                 initialize attempts [Coverity CID 67].
60199         2001-11-27  Paul Eggert  <eggert@twinsun.com>
60200                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
60201                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
60202
60203 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60204
60205         * gnulib-tool (func_exit): New function, to allow to pass the
60206         exit status portably through the trap.  Use everywhere.
60207         (--help, --version): Signal a write error.
60208         (trap): catch SIGPIPE, for write errors.
60209         Exit at the end of the trap, with the correct exit status.
60210
60211 2006-09-19  Karl Berry  <karl@gnu.org>
60212
60213         * doc/gnulib.texi: note about the license texinfo files.
60214
60215 2006-09-19  Eric Blake  <ebb9@byu.net>
60216
60217         * gnulib-tool: Avoid space-tab.
60218
60219 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60220
60221         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
60222         that prevented coreutils 6.1 from building.  Problem reported
60223         by Petter Reinholdtsen.
60224
60225 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60226
60227         * gnulib-tool (avoidlist): Fix typo that broke options like
60228         --avoid=lock that are used by coreutils bootstrap.
60229
60230 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
60231
60232         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
60233         more systematically.
60234
60235 2006-09-18  Jim Meyering  <jim@meyering.net>
60236
60237         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
60238
60239 2006-09-18  Bruno Haible  <bruno@clisp.org>
60240
60241         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
60242
60243 2006-09-18  Bruno Haible  <bruno@clisp.org>
60244
60245         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
60246         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
60247         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
60248         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
60249         * m4/gettext.m4: Require autoconf >= 2.52.
60250         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
60251         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
60252         of gl_cv_header_inttypes_h.
60253
60254 2006-09-18  Bruno Haible  <bruno@clisp.org>
60255
60256         * lib/javaversion.c: Include configmake.h.
60257
60258 2006-09-18  Bruno Haible  <bruno@clisp.org>
60259
60260         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
60261         avoid that the while loops be executed in a subshell.
60262
60263 2006-09-18  Bruno Haible  <bruno@clisp.org>
60264
60265         * MODULES.html.sh (func_module): Break long lines.
60266         Suggested by Bruce Korb <bkorb@gnu.org>.
60267
60268 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60269
60270         Speed up by a factor of 1.12.
60271         * gnulib-tool (nl): New variable.
60272         (func_import): Rewrite include directive extraction to only read each
60273         directive once.
60274
60275 2006-09-17  Bruno Haible  <bruno@clisp.org>
60276
60277         * modules/javaversion (Makefile.am): Remove DEFS setting.
60278         (Depends-on): Add configmake, for PKGDATADIR definition.
60279
60280 2006-09-17  Bruno Haible  <bruno@clisp.org>
60281
60282         * gnulib-tool (func_create_testdir): Rewrite all files at once.
60283
60284 2006-09-17  Bruno Haible  <bruno@clisp.org>
60285
60286         * gnulib-tool (func_append): New function, stolen from libtool.m4.
60287         (func_modules_transitive_closure, func_modules_add_dummy,
60288         func_modules_to_filelist, func_import, func_create_testdir,
60289         func_create_megatestdir, ...): Use it wherever possible.
60290         Suggested by Ralf Wildenhues.
60291
60292 2006-09-16  Karl Berry  <karl@gnu.org>
60293
60294         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
60295         to avoid sectioning errors.
60296         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
60297         [ifinfo]: blank line after @center-ed titles.
60298         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
60299         Spell FSF address consistently with others.
60300         (These changes approved by rms.)
60301
60302 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60303
60304         Speed up by a factor of 1.61.
60305         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
60306         already checked module names again.
60307
60308 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60309
60310         Speed up by a factor of 1.13.
60311         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
60312         for new_files, and the input to func_add_or_update.
60313
60314 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60315
60316         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
60317         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
60318
60319 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60320
60321         * modules/mkancesdirs (Depends-on): Add fcntl.
60322         * modules/savewd: New file.
60323         * MODULES.html.sh (File system functions): Add savewd.
60324
60325         * modules/configmake (Makefile.am): Add support for the
60326         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
60327
60328 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60329
60330         * m4/savewd.m4: New file.
60331
60332 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60333
60334         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
60335         (dirchownmod): New arg FD.  All callers changed.
60336         Use FD rather than opening the directory ourself, as opening is
60337         now the caller's responsibility.
60338         * lib/dirchownmod.h: Likewise.
60339         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
60340         hosts that require <sys/types.h> before <sys/stat.h>.  Include
60341         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
60342         (test_dir): Remove.
60343         (mkancesdirs): Return length of prefix of FILE that has already
60344         been made, or -2 if there is a child doing the work.  Redo
60345         algorithm so that it is O(N) rather than O(N**2).  Optimize away
60346         ".", and treat ".." specially since it might stray back into
60347         already-created areas.  Use a subprocess if necessary.  New arg
60348         WD; all users changed.  MAKE_DIR function should now return 1
60349         if it creates a directory that is not readable.  Return -2 if
60350         a child process is spun off.
60351         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
60352         Adjust signature to match code.
60353         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
60354         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
60355         all users changed.
60356         * lib/savewd.c, lib/savewd.h: New files.
60357
60358 2006-09-15  Jim Meyering  <jim@meyering.net>
60359
60360         * modules/rename-dest-slash: New module.
60361         * MODULES.html.sh (posix_compat): Add it here.
60362
60363         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
60364
60365 2006-09-15  Jim Meyering  <jim@meyering.net>
60366
60367         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
60368         file.
60369
60370         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
60371
60372 2006-09-15  Jim Meyering  <jim@meyering.net>
60373
60374         * lib/rename-dest-slash.c (has_trailing_slash): Use
60375         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
60376         (rpl_rename_dest_slash): Perform the cheaper trailing slash
60377         test before testing whether SRC is a directory.
60378         Suggestions from Bruno Haible.
60379
60380         Avoid a warning about an unused variable.
60381         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
60382         into the #ifdef block where it's used.
60383
60384         * lib/rename-dest-slash.c: New file.
60385
60386 2006-09-14  Bruno Haible  <bruno@clisp.org>
60387
60388         * lib/allocsa.c: Include <config.h> unconditionally.
60389         * lib/asnprintf.c: Likewise.
60390         * lib/asprintf.c: Likewise.
60391         * lib/c-strcasecmp.c: Likewise.
60392         * lib/c-strcasestr.c: Likewise.
60393         * lib/c-strncasecmp.c: Likewise.
60394         * lib/c-strstr.c: Likewise.
60395         * lib/classpath.c: Likewise.
60396         * lib/clean-temp.c: Likewise.
60397         * lib/concatpath.c: Likewise.
60398         * lib/copy-file.c: Likewise.
60399         * lib/csharpcomp.c: Likewise.
60400         * lib/csharpexec.c: Likewise.
60401         * lib/execute.c: Likewise.
60402         * lib/fatal-signal.c: Likewise.
60403         * lib/findprog.c: Likewise.
60404         * lib/fwriteerror.c: Likewise.
60405         * lib/gl_array_list.c: Likewise.
60406         * lib/gl_array_oset.c: Likewise.
60407         * lib/gl_avltree_list.c: Likewise.
60408         * lib/gl_avltree_oset.c: Likewise.
60409         * lib/gl_avltreehash_list.c: Likewise.
60410         * lib/gl_carray_list.c: Likewise.
60411         * lib/gl_linked_list.c: Likewise.
60412         * lib/gl_linkedhash_list.c: Likewise.
60413         * lib/gl_list.c: Likewise.
60414         * lib/gl_oset.c: Likewise.
60415         * lib/gl_rbtree_list.c: Likewise.
60416         * lib/gl_rbtree_oset.c: Likewise.
60417         * lib/gl_rbtreehash_list.c: Likewise.
60418         * lib/imaxabs.c: Likewise.
60419         * lib/imaxdiv.c: Likewise.
60420         * lib/javacomp.c: Likewise.
60421         * lib/javaexec.c: Likewise.
60422         * lib/javaversion.c: Likewise.
60423         * lib/linebreak.c: Likewise.
60424         * lib/localcharset.c: Likewise.
60425         * lib/lock.c: Likewise.
60426         * lib/mbchar.c: Likewise.
60427         * lib/mbswidth.c: Likewise.
60428         * lib/mkdtemp.c: Likewise.
60429         * lib/pipe.c: Likewise.
60430         * lib/printf-args.c: Likewise.
60431         * lib/printf-parse.c: Likewise.
60432         * lib/progname.c: Likewise.
60433         * lib/progreloc.c: Likewise.
60434         * lib/readlink.c: Likewise.
60435         * lib/sh-quote.c: Likewise.
60436         * lib/stpcpy.c: Likewise.
60437         * lib/stpncpy.c: Likewise.
60438         * lib/strcasecmp.c: Likewise.
60439         * lib/strcasestr.c: Likewise.
60440         * lib/strcspn.c: Likewise.
60441         * lib/striconv.c: Likewise.
60442         * lib/strncasecmp.c: Likewise.
60443         * lib/strnlen1.c: Likewise.
60444         * lib/strstr.c: Likewise.
60445         * lib/strtok_r.c: Likewise.
60446         * lib/tls.c: Likewise.
60447         * lib/tmpdir.c: Likewise.
60448         * lib/unicodeio.c: Likewise.
60449         * lib/unsetenv.c: Likewise.
60450         * lib/vasnprintf.c: Likewise.
60451         * lib/vasprintf.c: Likewise.
60452         * lib/wait-process.c: Likewise.
60453         * lib/xallocsa.c: Likewise.
60454         * lib/xsetenv.c: Likewise.
60455         * lib/xstriconv.c: Likewise.
60456
60457 2006-09-13  Simon Josefsson  <jas@extundo.com>
60458
60459         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
60460         that internally, suggested by Ralf Wildenhues
60461         <Ralf.Wildenhues@gmx.de>.
60462
60463 2006-09-13  Simon Josefsson  <jas@extundo.com>
60464
60465         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
60466         @LIBOBJS@.
60467         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60468
60469 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60470
60471         * lib/_fpending.c: Include <config.h> unconditionally, since we no
60472         longer worry about uses that don't define HAVE_CONFIG_H.
60473         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
60474         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
60475         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
60476         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
60477         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
60478         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
60479         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
60480         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
60481         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
60482         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
60483         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
60484         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
60485         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
60486         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
60487         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
60488         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
60489         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
60490         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
60491         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
60492         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
60493         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
60494         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
60495         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
60496         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
60497         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
60498         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
60499         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
60500         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
60501         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
60502         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
60503         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
60504         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
60505         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
60506         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
60507         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
60508         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
60509         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
60510         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
60511         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
60512         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
60513         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
60514         Likewise.
60515
60516 2006-09-13  Eric Blake  <ebb9@byu.net>
60517
60518         * lib/getopt.c: Fix typo in last commit.
60519
60520 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60521
60522         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
60523         dgettext.
60524
60525 2006-09-12  Jim Meyering  <jim@meyering.net>
60526
60527         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
60528         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
60529         Reported by Nelson H. F. Beebe.
60530
60531 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60532
60533         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
60534         program_invocation_name and program_invocation_short_name are
60535         initialized.
60536         * lib/argp-namefrob.h: Move declarations of program_invocation_name
60537         and program_invocation_short_name to argp.h, so they are visible
60538         to user programs.
60539         * lib/argp.h: Likewise
60540
60541 2006-09-10  Bruno Haible  <bruno@clisp.org>
60542
60543         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60544         m4/inttypes_h.m4, m4/uintmax_t.m4.
60545
60546 2006-09-10  Bruno Haible  <bruno@clisp.org>
60547
60548         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
60549         gl_AC_TYPE_UINTMAX_T.
60550
60551 2006-09-10  Bruno Haible  <bruno@clisp.org>
60552
60553         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
60554
60555 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60556
60557         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
60558         convention.  Text proposed by Bruno Haible.
60559         (struct argp_option): Document the use of N_() wrappers.
60560
60561         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
60562         '\v', and translate the two parts separately, instead of feeding
60563         the whole string to gettext.  This allows to exclude
60564         '\v' from the strings visible to the translator by writing doc
60565         strings as N_("..") "\v" N_("..").
60566
60567 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
60568
60569         * config/srclist.txt: Undo latest change; the bug was fixed.
60570
60571 2006-09-09  Bruno Haible  <bruno@clisp.org>
60572
60573         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
60574         assignments if building a library without libtool.
60575         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
60576         in func_emit_lib_Makefile_am.
60577         (func_import): When building a static library libfoo.a, arrange to
60578         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
60579         (func_create_testdir): Likewise.
60580         * modules/gc (configure.ac, Makefile.am): If building statically,
60581         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
60582         * modules/iconvme (configure.ac, Makefile.am): Likewise.
60583         * modules/striconv (configure.ac, Makefile.am): Likewise.
60584         Based on a suggestion by Ralf Wildenhues.
60585
60586 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60587
60588         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60589         Check for unistd.h too, since Autoconf doesn't assume POSIX.
60590         Also:
60591
60592         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60593         Add year_2050_test to catch glibc bug 2821
60594         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60595
60596         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60597         Prefer #ifdef to #if.
60598
60599         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
60600         Return from 'main' instead of calling 'exit'.
60601
60602 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60603
60604         * lib/mktime.c (guess_time_tm): Fix bug where mktime
60605         returned the maximum time_t value rather than (time_t) -1.
60606         Problem originally reported by William Bardwell
60607         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60608
60609         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60610         Moved to here ...
60611         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60612         ... from here.
60613
60614 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60615
60616         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
60617         2821 is fixed.
60618
60619 2006-09-08  Jim Meyering  <jim@meyering.net>
60620
60621         Don't make generated files read-only.  That would bother too many
60622         people.  However, do retain the ability to work when targets are
60623         read-only: remove the destination and temporary files before writing
60624         them (when generated via sed or echo), or by using the -f option for
60625         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
60626         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60627         * modules/byteswap, modules/configmake, modules/fcntl:
60628         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60629         * modules/localcharset, modules/netinet_in, modules/poll:
60630         * modules/stdbool, modules/stdint, modules/sys_select:
60631         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60632
60633 2006-09-08  Jim Meyering  <jim@meyering.net>
60634
60635         Avoid new build failure on FreeBSD 6.0.
60636         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
60637         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
60638         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
60639
60640 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60641
60642         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
60643
60644 2006-09-07  Jim Meyering  <jim@meyering.net>
60645
60646         Fix global typo in last change: use chmod u-w, not chmod u-x.
60647         Spotted by Paul Eggert and Bruce Korb.
60648         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60649         * modules/byteswap, modules/configmake, modules/fcntl:
60650         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60651         * modules/localcharset, modules/netinet_in, modules/poll:
60652         * modules/stdbool, modules/stdint, modules/sys_select:
60653         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60654
60655 2006-09-06  Jim Meyering  <jim@meyering.net>
60656
60657         Make generated files be read-only.
60658         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
60659         Ensure that each generated file is now read-only.
60660         * modules/argz: Likewise.
60661         * modules/arpa_inet: Likewise.
60662         * modules/byteswap: Likewise.
60663         * modules/configmake: Likewise.
60664         * modules/fcntl: Likewise.
60665         * modules/fnmatch: Likewise.
60666         * modules/getopt: Likewise.
60667         * modules/glob: Likewise.
60668         * modules/inttypes: Likewise.
60669         * modules/netinet_in: Likewise.
60670         * modules/poll: Likewise.
60671         * modules/stdbool: Likewise.
60672         * modules/stdint: Likewise.
60673         * modules/sys_select: Likewise.
60674         * modules/sys_socket: Likewise.
60675         * modules/sys_stat: Likewise.
60676         * modules/sysexits: Likewise.
60677         * modules/localcharset: Same as above, but continue using temporary
60678         file named "t-$@" (why different?) rather than the "$@-t" used
60679         everywhere else.
60680
60681         * modules/sysexits (Makefile.am): Replace literal occurrences
60682         of "sysexit.h" more readable, and more consistent, "$@".
60683
60684 2006-09-06  Bruno Haible  <bruno@clisp.org>
60685
60686         * modules/striconv: New file.
60687         * modules/xstriconv: New file.
60688         * MODULES.html.sh (Internationalization functions): Add striconv,
60689         xstriconv.
60690
60691 2006-09-06  Bruno Haible  <bruno@clisp.org>
60692
60693         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
60694         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
60695         not using libtool correctly.
60696
60697 2006-09-06  Bruno Haible  <bruno@clisp.org>
60698
60699         * lib/striconv.h: New file.
60700         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
60701         iconvstring.c.
60702         * lib/xstriconv.h: New file.
60703         * lib/xstriconv.c: New file.
60704
60705 2006-09-06  Bruno Haible  <bruno@clisp.org>
60706
60707         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60708         lib_..._LDFLAGS.
60709
60710 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60711
60712         * lib/argz_.h: Sync from Libtool.
60713
60714         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
60715                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60716
60717         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
60718
60719 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60720
60721         * modules/trim: New file.
60722
60723 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60724
60725         * lib/trim.h: New file.
60726         * lib/trim.c: New file.
60727
60728 2006-09-05  Bruno Haible  <bruno@clisp.org>
60729
60730         * MODULES.html.sh (String handling): Add trim.
60731
60732 2006-09-04  Karl Berry  <karl@gnu.org>
60733
60734         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
60735         until next release.
60736
60737 2006-09-03  Bruno Haible  <bruno@clisp.org>
60738
60739         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
60740         correctly.
60741
60742 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60743
60744         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
60745         not gl_GETLOADAVG.  Omit unneeded semicolons.
60746         Problems reported by Ralf Wildenhues in
60747         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60748         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
60749         at the end, which is the usual gnulib style.
60750
60751         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
60752         of doing all the work ourselves.
60753         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
60754         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
60755
60756 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60757
60758         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
60759         Problem reported by Ralf Wildenhues in
60760         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60761
60762         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
60763         HAVE_STRUCT_STATFS_F_FSTYPENAME.
60764
60765 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60766
60767         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
60768         yesterday's patch by changing test -n to test -z.
60769
60770 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60771
60772         * modules/getloadavg (Files): Add m4/getloadavg.m4.
60773         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
60774         the former is now obsolescent.
60775
60776         * modules/chdir-long (Depends-on): Add fcntl.
60777
60778 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60779
60780         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
60781         obsolescent, and programs should use gnulib instead.
60782         * m4/getloadavg.m4: New file, with contents taken from Autoconf
60783         but with prefixes changed.
60784
60785 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60786
60787         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
60788         or stdbool.h, because they might not exist while configuring.
60789
60790         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
60791         Don't include unistd.h or limits.h; not needed, since chdir-long.h
60792         does that for us.
60793         (O_DIRECTORY): Remove.
60794
60795 2006-08-31  Eric Blake  <ebb9@byu.net>
60796
60797         * gnulib-tool: Don't let emacs change spaces to TAB.
60798
60799 2006-08-31  Bruno Haible  <bruno@clisp.org>
60800
60801         * gnulib-tool: When calling func_import more than once, do it in a
60802         subshell.
60803         Reported by Eric Blake <ebb9@byu.net>.
60804
60805 2006-08-31  Bruno Haible  <bruno@clisp.org>
60806
60807         * gnulib-tool (nl): Remove variable.
60808         (sed_transform_lib_file): Use more robust test for config-h module.
60809         (func_import): Fix typo in 2006-08-25 patch.
60810
60811 2006-08-31  Bruno Haible  <bruno@clisp.org>
60812
60813         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
60814         specified, augment Makefile.am variables instead of assigning them.
60815
60816 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60817
60818         Work around a bug in both the Linux and SunOS 64-bit kernels:
60819         nanosleep mishandles sleeps for longer than 2**31 seconds.
60820         Problem reported by Frank v Waveren in
60821         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60822         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
60823         Check for nanosleep bug.
60824         (LIB_NANOSLEEP): Append clock_gettime library if needed.
60825
60826 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60827
60828         Work around a bug in both the Linux and SunOS 64-bit kernels:
60829         nanosleep mishandles sleeps for longer than 2**31 seconds.
60830         Problem reported by Frank v Waveren in
60831         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60832         * lib/nanosleep.c (BILLION): New constant.
60833         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
60834         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
60835         implementation.
60836
60837 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60838
60839         * modules/nanosleep (Depends-on): Add gettime.
60840
60841 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60842         and Simon Josefsson  <jas@extundo.com>
60843         and Oskar Liljeblad  <oskar@osk.mine.nu>
60844
60845         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
60846         * gnulib-tool (func_import): New license type 'unmodifiable license
60847         text'.
60848         * modules/fdl: Use it.  Longer description.
60849         * module/gpl, module/lgpl: New files.
60850
60851 2006-08-30  Jim Meyering  <jim@meyering.net>
60852
60853         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
60854         shadowing the parameter.
60855
60856 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60857
60858         Sync from Libtool:
60859
60860         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60861
60862         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
60863         sharing with gnulib.  Report by Eric Blake.
60864
60865 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60866
60867         * modules/isapipe: New file.
60868         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
60869
60870 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60871
60872         * modules/configmake (Makefile.am): Add a comment, and omit
60873         the CONFIGMAKE_ prefix from generated macro names.  Suggested
60874         by Bruno Haible.
60875
60876 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60877
60878         * m4/isapipe.m4: New file.
60879
60880 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60881
60882         * lib/isapipe.c, lib/isapipe.h: New files.
60883
60884 2006-08-29  Jim Meyering  <jim@meyering.net>
60885
60886         * modules/configmake (Makefile.am): Make configmake.h depend on
60887         Makefile.  Otherwise, a stale configmake.h could hang around.
60888
60889 2006-08-29  Eric Blake  <ebb9@byu.net>
60890
60891         * lib/error.c (error_at_line, print_errno_message): Match libc, after
60892         resolution of upstream bug 3044.
60893
60894 2006-08-29  Bruno Haible  <bruno@clisp.org>
60895
60896         * modules/localcharset (Depends-on): Add configmake.
60897         (Makefile.am): Remove setting of LIBDIR through DEFS.
60898
60899 2006-08-29  Bruno Haible  <bruno@clisp.org>
60900
60901         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
60902         defined.
60903
60904 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60905
60906         * modules/fcntl: New file.
60907         * modules/chdir-safer (Depends-on): Add fcntl.
60908         * modules/fts: Likewise.
60909         * modules/mkdir-p: Likewise.
60910
60911         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
60912         This undoes the most recent change, since we're now addressing the
60913         problem in a different way.
60914
60915         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
60916         into output, since the output might be called Makefile.am even
60917         if $makefile_name is something different.
60918         (func_import): Use $makefile_am rather than
60919         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
60920         empty.
60921
60922         * modules/inttypes (Files): Add m4/inttypes-h.m4.
60923
60924 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60925
60926         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
60927         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
60928         recent change to stdint.m4, since we're now addressing the problem in a
60929         different way.
60930
60931 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60932
60933         * m4/fcntl_h.m4: New file.
60934
60935 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60936
60937         * lib/fcntl_.h: New file.
60938         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
60939         the fcntl module.
60940         * lib/dirchownmod.c: Likewise.
60941         * lib/fts.c: Likewise.
60942
60943         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
60944         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
60945         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
60946         just before including <inttypes.h>, to avoid circular inclusion.
60947
60948 2006-08-28  Jim Meyering  <jim@meyering.net>
60949
60950         * doc/visibility.texi: Actually read and correct the grammar of the
60951         sentence affected by yesterday's change.
60952
60953 2006-08-28  Eric Blake  <ebb9@byu.net>
60954
60955         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
60956         needs wrapper.
60957
60958 2006-08-28  Eric Blake  <ebb9@byu.net>
60959
60960         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
60961
60962 2006-08-28  Eric Blake  <ebb9@byu.net>
60963
60964         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
60965
60966 2006-08-28  Bruno Haible  <bruno@clisp.org>
60967
60968         * modules/c-strstr: New file, from GNU gettext.
60969         * MODULES.html.sh (String handling): Add c-strstr.
60970
60971 2006-08-28  Bruno Haible  <bruno@clisp.org>
60972
60973         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
60974         macros.
60975         Reported by Eric Blake.
60976
60977 2006-08-28  Bruno Haible  <bruno@clisp.org>
60978
60979         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
60980         (VASNPRINTF): Return a string of length > INT_MAX without failing.
60981         * lib/vasprintf.c: Include errno.h, limits.h.
60982         (EOVERFLOW): New fallback definition.
60983         (vasprintf): Test here whether the string length is > INT_MAX.
60984         * lib/vsnprintf.c: Include errno.h, limits.h.
60985         (EOVERFLOW): New fallback definition.
60986         (vsnprintf): Fix bug when generated string was too long for the buffer.
60987         Test here whether the string length is > INT_MAX.
60988
60989 2006-08-28  Bruno Haible  <bruno@clisp.org>
60990
60991         * lib/inttypes_.h (SCNX*): Remove definitions.
60992         Reported by Eric Blake.
60993
60994 2006-08-28  Bruno Haible  <bruno@clisp.org>
60995
60996         * lib/c-strstr.h: New file, from GNU gettext.
60997         * lib/c-strstr.c: New file, from GNU gettext.
60998
60999 2006-08-28  Bruno Haible  <bruno@clisp.org>
61000
61001         * gnulib-tool: Reorder some statements.
61002
61003 2006-08-28  Bruno Haible  <bruno@clisp.org>
61004
61005         * gnulib-tool: New option --makefile-name.
61006         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
61007         $makefile_name.
61008         (func_import): Write $makefile_name to the cache file, and read it from
61009         there unless explicitly specified. Use $makefile_name as file name
61010         instead of Makefile.am. Adjust the recommendations accordingly.
61011
61012 2006-08-28  Bruno Haible  <bruno@clisp.org>
61013
61014         * gnulib-tool (func_verify_module): Check against misapplying patch.
61015
61016 2006-08-28  Bruno Haible  <bruno@clisp.org>
61017
61018         * gnulib-tool (func_relativize, func_relconcat): New functions.
61019         Give an error if --local-dir is given with --update.
61020         Remove trailing slashes from $local_gnulib_dir.
61021         (func_import): Store the relativized $local_gnulib_dir in
61022         gnulib-cache.m4, and read it from there if not specified explicitly.
61023
61024 2006-08-28  Bruno Haible  <bruno@clisp.org>
61025
61026         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
61027         is the current directory. Respect also $local_gnulib_dir.
61028
61029 2006-08-28  Bruno Haible  <bruno@clisp.org>
61030             Simon Josefsson  <jas@extundo.com>
61031
61032         BeOS portability.
61033         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
61034
61035 2006-08-27  Jim Meyering  <jim@meyering.net>
61036
61037         * doc/visibility.texi: Remove duplicate word: "pointer".
61038
61039 2006-08-26  Bruno Haible  <bruno@clisp.org>
61040
61041         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
61042         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
61043         (Makefile.am): Create inttypes.h from inttypes_.h.
61044         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
61045
61046         * modules/imaxabs: New file.
61047
61048         * modules/imaxdiv: New file.
61049
61050 2006-08-26  Bruno Haible  <bruno@clisp.org>
61051
61052         * m4/inttypes.m4: New file.
61053         * m4/_inttypes_h.m4: Remove file.
61054         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
61055         PRI_MACROS_BROKEN.
61056         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
61057
61058         * m4/imaxabs.m4: New file.
61059
61060         * m4/imaxdiv.m4: New file.
61061
61062 2006-08-26  Bruno Haible  <bruno@clisp.org>
61063
61064         * lib/inttypes_.h: New file.
61065         * lib/inttypes.h: Remove file.
61066         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
61067
61068         * lib/imaxabs.c: New file.
61069
61070         * lib/imaxdiv.c: New file.
61071
61072 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61073
61074         New config-h module, so that "make" output needn't be cluttered
61075         by -DHAVE_CONFIG_H.
61076         * MODULES.html.sh (Support for building libraries and executables):
61077         Add config-h.
61078         * modules/config-h: New file.
61079         * gnulib-tool (nl, sed_transform_lib_file): New vars.
61080         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
61081         the config-h module is used.
61082
61083         New configmake module, so that "make" output needn't be cluttered
61084         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
61085         * MODULES.html.sh (Support for building libraries and executables):
61086         Add configmake.
61087         * modules/configmake: New file.
61088
61089 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61090
61091         * m4/config-h.m4: New file.
61092
61093 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61094
61095         * config/srclist.txt: Add elisp-comp.
61096
61097 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61098
61099         * MODULES.html.sh (Support for building libraries and executables):
61100         Add elisp-comp.
61101         * build-aux/elisp-comp: New file.
61102         * modules/elisp-comp: New file.
61103
61104 2006-08-24  Bruno Haible  <bruno@clisp.org>
61105
61106         * gnulib-tool (func_create_testdir): Use non-default values of
61107         sourcebase and m4base.
61108
61109 2006-08-24  Bruno Haible  <bruno@clisp.org>
61110
61111         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
61112         HTML structure.
61113
61114 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61115
61116         * modules/openat (Depends-on): Add lchown.
61117
61118 2006-08-23  Bruno Haible  <bruno@clisp.org>
61119
61120         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
61121         of gl_LOCK_EARLY instead of gl_LOCK.
61122
61123 2006-08-23  Bruno Haible  <bruno@clisp.org>
61124
61125         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
61126         on OSF/1 to no.
61127         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
61128
61129 2006-08-23  Bruno Haible  <bruno@clisp.org>
61130
61131         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
61132         as unusable.
61133
61134         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
61135         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
61136         (gl_LOCK): New macro.
61137
61138 2006-08-22  Simon Josefsson  <jas@extundo.com>
61139
61140         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
61141         to md5 module.
61142
61143 2006-08-22  Simon Josefsson  <jas@extundo.com>
61144
61145         * MODULES.html.sh: Add "Support for maintaining and release
61146         projects".
61147
61148         * build-aux/gnupload: New file, from coreutils.
61149
61150 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61151
61152         Avoid the need for AC_LIBSOURCES in m4 macros.
61153         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
61154         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
61155         * modules/check-version (EXTRA_DIST): Add check-version.h.
61156         * modules/crc (EXTRA_DIST): Add crc.h.
61157         * modules/des (EXTRA_DIST): Add des.h.
61158         * modules/gc (EXTRA_DIST): Add gc.h.
61159         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
61160         * modules/getline (EXTRA_DIST): Add getline.h.
61161         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
61162         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
61163         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
61164         * modules/md2 (EXTRA_DIST): Add md2.h.
61165         * modules/md4 (EXTRA_DIST): Add md4.h.
61166         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
61167         * modules/read-file (EXTRA_DIST): Add read-file.h.
61168         * modules/readline (EXTRA_DIST): Add readline.h.
61169         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
61170         rijndael-api-fst.h.
61171
61172 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61173
61174         * m4/rijndael.m4 (gl_ARCFOUR):
61175         * m4/arctwo.m4 (gl_ARCTWO):
61176         * m4/check-version.m4 (gl_CHECK_VERSION):
61177         * m4/crc.m4 (gl_CRC):
61178         * m4/des.m4 (gl_DES):
61179         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
61180         * m4/gc.m4 (gl_GC):
61181         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
61182         * m4/getline.m4 (gl_FUNC_GETLINE):
61183         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
61184         * m4/hmac-md5.m4 (gl_HMAC_MD5):
61185         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
61186         * m4/md2.m4 (gl_MD2):
61187         * m4/md4.m4 (gl_MD4):
61188         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
61189         * m4/read-file.m4 (gl_FUNC_READ_FILE):
61190         * m4/readline.m4 (gl_FUNC_READLINE):
61191         * m4/rijndael.m4 (gl_RIJNDAEL):
61192         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61193         to get the necessary .h files and whatnot.
61194
61195 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61196
61197         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
61198         gnulib rather than the other way around.
61199         * config/srclistvars.sh (COREUTILS): Remove.
61200
61201 2006-08-22  Jim Meyering  <jim@meyering.net>
61202
61203         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
61204
61205         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
61206
61207 2006-08-22  Eric Blake  <ebb9@byu.net>
61208
61209         * modules/regexprops-generic: New file.
61210         * MODULES.html.sh (Support for building documentation): List it.
61211
61212 2006-08-22  Eric Blake  <ebb9@byu.net>
61213
61214         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
61215         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61216         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
61217         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61218
61219 2006-08-22  Bruno Haible  <bruno@clisp.org>
61220
61221         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
61222         and lib_LTLIBRARIES like the other lib_* variables.
61223
61224 2006-08-22  Bruno Haible  <bruno@clisp.org>
61225
61226         * build-aux/x-to-1.in: New file, from GNU gettext.
61227
61228 2006-08-22  Bruno Haible  <bruno@clisp.org>
61229
61230         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
61231         <utmpx.h> exists.
61232
61233 2006-08-22  Bruno Haible  <bruno@clisp.org>
61234
61235         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
61236         <utmpx.h> exists.
61237
61238 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61239
61240         BeOS portability.
61241         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
61242         exist.
61243         Problem reported by Bruno Haible.
61244
61245 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61246
61247         Avoid the need for AC_LIBSOURCES in m4 macros.
61248         * modules/acl (EXTRA_DIST): Add acl.h.
61249         * modules/argmatch (Files): Add m4/argmatch.m4.
61250         (configure.ac): Add gl_ARGMATCH.
61251         (EXTRA_DIST): Renamed from lib_SOURCES, for
61252         consistency with the other modules.  Remove argmatch.c.
61253         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
61254         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
61255         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
61256         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
61257         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
61258         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
61259         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
61260         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
61261         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
61262         * modules/closeout (EXTRA_DIST): Add closeout.h.
61263         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
61264         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
61265         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
61266         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
61267         dirname.h; remove basename.c and stripslash.c.
61268         * modules/exclude (EXTRA_DIST): Add exclude.h.
61269         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
61270         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
61271         * modules/file-type (EXTRA_DIST): Add file-type.h.
61272         * modules/filemode (EXTRA_DIST): Add filemode.h.
61273         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
61274         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61275         * modules/fpending (EXTRA_DIST): Add __fpending.h.
61276         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
61277         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
61278         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
61279         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
61280         * modules/getdate (EXTRA_DIST): Add getdate.c.
61281         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
61282         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
61283         * modules/getpass (EXTRA_DIST): Add getpass.h.
61284         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
61285         * modules/group-member (EXTRA_DIST): Add group-member.h.
61286         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
61287         * modules/hash (EXTRA_DIST): Add hash.h.
61288         * modules/human (EXTRA_DIST): Add human.h.
61289         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
61290         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
61291         * modules/lchown (EXTRA_DIST): Add lchown.h.
61292         * modules/long-options (EXTRA_DIST): Add long-options.h.
61293         * modules/lstat (EXTRA_DIST): Add lstat.h.
61294         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
61295         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
61296         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
61297         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
61298         * modules/memxor (EXTRA_DIST): Add memxor.h.
61299         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
61300         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
61301         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
61302         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
61303         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
61304         * modules/physmem (EXTRA_DIST): Add physmem.h.
61305         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
61306         * modules/posixver (EXTRA_DIST): Add posixver.h.
61307         * modules/quote (EXTRA_DIST): Add quote.h.
61308         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
61309         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
61310         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
61311         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
61312         regex_internal.h regexec.c.
61313         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
61314         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
61315         * modules/same (EXTRA_DIST): Add same.h.
61316         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
61317         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
61318         * modules/savedir (EXTRA_DIST): Add savedir.h.
61319         * modules/sha1 (EXTRA_DIST): Add sha1.h.
61320         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
61321         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
61322         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
61323         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
61324         * modules/strdup (EXTRA_DIST): Add strdup.h.
61325         * modules/strftime (EXTRA_DIST): Add strftime.h.
61326         * modules/strndup (EXTRA_DIST): Add strndup.h.
61327         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
61328         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
61329         * modules/time_r (EXTRA_DIST): Add time_r.h.
61330         * modules/timespec (EXTRA_DIST): Add timespec.h.
61331         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61332         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
61333         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
61334         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
61335         * modules/userspec (EXTRA_DIST): Add userspec.h.
61336         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
61337         * modules/utimens (EXTRA_DIST): Add utimens.h.
61338         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
61339         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
61340         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
61341         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
61342         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
61343         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
61344         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
61345         * modules/yesno (EXTRA_DIST): Add yesno.h.
61346
61347 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61348
61349         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
61350
61351         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
61352         * m4/dev-ino.m4, same-inode.m4: Remove.
61353
61354         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
61355         * m4/acl.m4 (AC_FUNC_ACL):
61356         * m4/backupfile.m4 (gl_BACKUPFILE):
61357         * m4/c-strtod.m4 (gl_C99_STRTOLD):
61358         * m4/canon-host.m4 (gl_CANON_HOST):
61359         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61360         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
61361         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
61362         * m4/cloexec.m4 (gl_CLOEXEC):
61363         * m4/close-stream.m4 (gl_CLOSE_STREAM):
61364         * m4/closeout.m4 (gl_CLOSEOUT):
61365         * m4/dirfd.m4 (gl_FUNC_DIRFD):
61366         * m4/dirname.m4 (gl_DIRNAME):
61367         * m4/exclude.m4 (gl_EXCLUDE):
61368         * m4/exitfail.m4 (gl_EXITFAIL):
61369         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
61370         * m4/file-type.m4 (gl_FILE_TYPE):
61371         * m4/filemode.m4 (gl_FILEMODE):
61372         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
61373         * m4/fpending.m4 (gl_FUNC_FPENDING):
61374         * m4/fprintftime.m4 (gl_FPRINTFTIME):
61375         * m4/fts.m4 (gl_FUNC_FTS):
61376         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
61377         * m4/getdate.m4 (gl_GETDATE):
61378         * m4/gethrxtime.m4 (gl_GETHRXTIME):
61379         * m4/getpagesize.m4 (gl_GETPAGESIZE):
61380         * m4/getpass.m4 (gl_FUNC_GETPASS):
61381         * m4/gettime.m4 (gl_GETTIME):
61382         * m4/getugroups.m4 (gl_GETUGROUPS):
61383         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
61384         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
61385         * m4/hard-locale.m4 (gl_HARD_LOCALE):
61386         * m4/hash.m4 (gl_HASH):
61387         * m4/idcache.m4 (gl_IDCACHE):
61388         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
61389         * m4/lchown.m4 (gl_FUNC_LCHOWN):
61390         * m4/long-options.m4 (gl_LONG_OPTIONS):
61391         * m4/lstat.m4 (gl_FUNC_LSTAT):
61392         * m4/md5.m4 (gl_MD5):
61393         * m4/memcasecmp.m4 (gl_MEMCASECMP):
61394         * m4/memcoll.m4 (gl_MEMCOLL):
61395         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
61396         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
61397         * m4/memxor.m4 (gl_MEMXOR):
61398         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
61399         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
61400         * m4/modechange.m4 (gl_MODECHANGE):
61401         * m4/mountlist.m4 (gl_MOUNTLIST):
61402         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61403         * m4/openat.m4 (gl_FUNC_OPENAT):
61404         * m4/pathmax.m4 (gl_PATHMAX):
61405         * m4/physmem.m4 (gl_PHYSMEM):
61406         * m4/posixtm.m4 (gl_POSIXTM):
61407         * m4/posixver.m4 (gl_POSIXVER):
61408         * m4/quote.m4 (gl_QUOTE):
61409         * m4/quotearg.m4 (gl_QUOTEARG):
61410         * m4/readtokens.m4 (gl_READTOKENS):
61411         * m4/readutmp.m4 (gl_READUTMP):
61412         * m4/regex.m4 (gl_REGEX):
61413         * m4/safe-read.m4 (gl_SAFE_READ):
61414         * m4/safe-write.m4 (gl_SAFE_WRITE):
61415         * m4/same.m4 (gl_SAME):
61416         * m4/save-cwd.m4 (gl_SAVE_CWD):
61417         * m4/savedir.m4 (gl_SAVEDIR):
61418         * m4/settime.m4 (gl_SETTIME):
61419         * m4/sha1.m4 (gl_SHA1):
61420         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
61421         * m4/stat-macros.m4 (gl_STAT_MACROS):
61422         * m4/stat-time.m4 (gl_STAT_TIME):
61423         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
61424         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
61425         * m4/strdup.m4 (gl_FUNC_STRDUP):
61426         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
61427         * m4/strndup.m4 (gl_FUNC_STRNDUP):
61428         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
61429         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
61430         * m4/time_r.m4 (gl_TIME_R):
61431         * m4/timespec.m4 (gl_TIMESPEC):
61432         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
61433         * m4/unlinkdir.m4 (gl_UNLINKDIR):
61434         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
61435         * m4/userspec.m4 (gl_USERSPEC):
61436         * m4/utimecmp.m4 (gl_UTIMECMP):
61437         * m4/utimens.m4 (gl_UTIMENS):
61438         * m4/xalloc.m4 (gl_XALLOC):
61439         * m4/xgetcwd.m4 (gl_XGETCWD):
61440         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
61441         * m4/xreadlink.m4 (gl_XREADLINK):
61442         * m4/xstrtod.m4 (gl_XSTRTOD):
61443         * m4/yesno.m4 (gl_YESNO):
61444         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61445         to get the necessary .h files and whatnot.
61446
61447 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
61448             Bruno Haible  <bruno@clisp.org>
61449
61450         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
61451         /bin/sh understanding of '!' conditional negation.
61452
61453 2006-08-21  Jim Meyering  <jim@meyering.net>
61454
61455         * modules/openat (Depends-on): Really alphabetize.
61456
61457         * modules/acl (Depends-on): Add error and quote.
61458
61459         * check-module (find_included_lib_files): Add at-func.c to the
61460         ok-to-include-more-than-once white list.
61461
61462         * modules/openat (Depends-on): Add lstat.  Alphabetize.
61463
61464 2006-08-21  Bruno Haible  <bruno@clisp.org>
61465
61466         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61467         Emit a pkgdata_DATA variable only if some snippets add contents to it.
61468         Reported by Martin Lambers <marlam@marlam.de>.
61469
61470 2006-08-21  Bruno Haible  <bruno@clisp.org>
61471
61472         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
61473         specify an installation location, don't emit a noinst_LIBRARIES or
61474         noinst_LTLIBRARIES assignment.
61475
61476 2006-08-21  Bruno Haible  <bruno@clisp.org>
61477
61478         BeOS portability.
61479         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
61480         BeOS has mbrtowc() but no <wctype.h>.
61481
61482 2006-08-21  Bruno Haible  <bruno@clisp.org>
61483
61484         BeOS portability.
61485         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
61486         exist.
61487
61488 2006-08-21  Bruno Haible  <bruno@clisp.org>
61489
61490         BeOS portability.
61491         * lib/mbchar.h: Include <wctype.h> only if it exists.
61492
61493 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61494
61495         Remove files that are no longer needed by their respective modules.
61496         * m4/obstack.m4: Remove.
61497         * m4/strerror_r.m4: Remove.
61498         * m4/uint32_t.m4: Remove.
61499         * m4/uintptr_t.m4: Remove.
61500         * m4/ullong_max.m4: Remove.
61501         * m4/xstrtoimax.m4: Remove.
61502         * m4/xstrtoumax.m4: Remove.
61503
61504         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
61505         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
61506         dependencies now capture this.
61507
61508         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
61509         Do not use AC_LIBSOURCES, since gnulib modules now do this.
61510         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
61511         * m4/human.m4 (gl_HUMAN): Likewise.
61512         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
61513         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
61514
61515         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
61516
61517         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
61518         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
61519         stdint.
61520         * m4/human.m4 (gl_HUMAN): Likewise.
61521         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
61522         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
61523         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61524         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61525         * m4/xstrtol (gl_XSTRTOL): Likewise.
61526
61527         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
61528         AC_TYPE_LONG_LONG_INT.
61529         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61530         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
61531         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
61532         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61533
61534         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
61535         on stdbool.
61536
61537         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
61538         (gl_PREREQ_XSTRTOUL): Remove.
61539
61540         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
61541
61542         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
61543         mode.
61544
61545 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61546
61547         Add and change modules to make it easier for coreutils to use
61548         gnulib-tool.
61549         * modules/backupfile (Files): Remove m4/d-ino.m4.
61550         (Depends-on): Add d-ino.
61551         * modules/cycle-check (Depends-on): Add stdint.
61552         (lib_SOURCES): Add cycle-check.h.
61553         * modules/d-ino: New module.
61554         * modules/d-type: New module.
61555         * modules/error (Files): Remove m4/strerror_r.m4.
61556         * modules/filemode (Files): Add m4/st_dm_mode.m4.
61557         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61558         m4/inttypes_h.m4, m4/uintmax_t.m4.
61559         (Depends-on): Add stdint.
61560         (lib_SOURCES): Add fsusage.h.
61561         * modules/getcwd (Files): Remove d-ino.m4.
61562         (Depends-on): Add d-ino.
61563         * modules/getndelim2 (Depends-on): Add stdint.
61564         * modules/glob (Files): Remove m4/d-type.m4.
61565         (Depends-on): Add d-type.
61566         * modules/host-os: New module.
61567         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
61568         m4/inttypes_h.m4, m4/uintmax_t.m4.
61569         * Depends-on: Add stdint.
61570         (lib_SOURCES): Add human.h.
61571         * modules/inttostr (Files): Remove m4/intmax_t.m4,
61572         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
61573         m4/uintmax_t.m4, m4/ulonglong.m4.
61574         (Depends-on): Add stdint.
61575         (EXTRA_DIST): Add inttostr.h.
61576         * modules/lchmod: New module.
61577         * modules/link-follow: New module.
61578         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
61579         (Depends-on): Add lchmod.
61580         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
61581         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
61582         (Depends-on): Add stdint.
61583         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
61584         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
61585         (Depends-on): Add stdint.
61586         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
61587         * modules/perl: New module.
61588         * modules/regex (Depends-on): Add stdint.
61589         * modules/rmdir-errno: New module.
61590         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61591         m4/intmax_t.m4.
61592         (Depends-on): Add stdint.
61593         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61594         m4/uintmax_t.m4.
61595         (Depends-on): Add stdint.
61596         * modules/unlink-busy: New module.
61597         * modules/utimecmp (Depends-on): Add stdint.
61598         * modules/uptime: New module.
61599         * modules/winsz-ioctl: New module.
61600         * modules/winsz-termios: New module.
61601         * modules/xnanosleep (Depends-on): Add nanosleep.
61602         * modules/ullong_max: Remove.
61603         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
61604         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
61605         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
61606         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
61607         (Depends-on): Add inttypes.
61608         (lib_SOURCES): Add xstrtol.h.
61609         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
61610         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
61611         * MODULES.html.sh: Move 'assert' into the assert section.
61612         Move 'dummy' into the linking section.
61613         Remove ullong_max.
61614         Add section for compatibility checks for POSIX:2001 functions,
61615         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
61616         winsz-ioctl, and winsz-termios into it.
61617         Add lchmod.
61618         Add top-level Misc section and put host-os, perl, and uptime
61619         into it.
61620
61621 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61622
61623         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
61624         now assume the stdint module.  Do not include inttypes.h.
61625         * lib/fsusage.h: Likewise.
61626         * lib/getndelim2.c: Likewise.
61627         * lib/human.h: Likewise.
61628         * lib/inttostr.h: Likewise.
61629         * lib/obstack.c: Likewise.
61630         * lib/regex_internal.h: Likewise.
61631         * lib/tempname.c: Likewise.
61632         * lib/utimecmp.c: Likewise.
61633         * lib/xstrtol.h: Likewise.
61634
61635         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
61636
61637         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
61638         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
61639         * lib/xtime.h: Likewise.
61640
61641 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61642
61643         * modules/openat (Files): Add lib/fchmodat.c.
61644         Fixes problem reported by Jay Youngman.
61645
61646 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61647
61648         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
61649         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
61650
61651 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
61652             Bruno Haible  <bruno@clisp.org>
61653
61654         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
61655         and is a script that invokes bison. Tighten the code. Add comments.
61656
61657 2006-08-18  Jim Meyering  <jim@meyering.net>
61658
61659         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
61660         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
61661         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
61662         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
61663
61664 2006-08-18  Bruno Haible  <bruno@clisp.org>
61665
61666         * modules/bison-i18n: New file.
61667         * MODULES.html.sh (Internationalization functions): Add it.
61668
61669 2006-08-18  Bruno Haible  <bruno@clisp.org>
61670
61671         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
61672         sys/statvfs.h. When getmntinfo was found, check its declaration and
61673         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
61674
61675 2006-08-18  Bruno Haible  <bruno@clisp.org>
61676
61677         * m4/bison-i18n.m4: New file, from bison.
61678
61679 2006-08-18  Bruno Haible  <bruno@clisp.org>
61680
61681         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
61682         (ME_DUMMY): Treat "kernfs" as a dummy.
61683         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
61684
61685 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61686
61687         Update from coreutils.
61688
61689         2006-08-15  Jim Meyering  <jim@meyering.net>
61690
61691         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
61692
61693         2006-01-17  Jim Meyering  <jim@meyering.net>
61694
61695         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
61696
61697         2006-01-11  Jim Meyering  <jim@meyering.net>
61698
61699         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
61700         Check for the lchmod function.
61701
61702 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61703
61704         Update from coreutils.
61705
61706         * lib/__fpending.h: Add copyright notice.
61707         * lib/fprintftime.h: Likewise.
61708         * lib/savedir.c: Use (C) in copyright notice.
61709         * lib/savedir.h: Likewise.
61710
61711         2006-08-15  Jim Meyering  <jim@meyering.net>
61712
61713         * lib/at-func.c: New file, with the logic of all emulated at-functions.
61714         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
61715         in support of the EXPECTED_ERRNO macro.
61716         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
61717         definitions.  Instead, define the appropriate symbols and include
61718         "at-func.c".
61719         * lib/mkdirat.c (mkdirat): Likewise.
61720         * lib/fchmodat.c (fchmodat): Likewise.
61721         (ENOSYS): Remove definition.
61722         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
61723         it.  Don't include "unistd--.h" -- it wasn't ever used.
61724
61725         2006-01-17  Jim Meyering  <jim@meyering.net>
61726
61727         Rewrite fts.c not to change the current working directory,
61728         by using openat, fstatat, fdopendir, etc..
61729
61730         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
61731         (HAVE_OPENAT_SUPPORT): Define.
61732         [_LIBC] (fchdir): Don't undef or define; no longer used.
61733         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
61734         Now, this `function' always succeeds, and consumes its file descriptor
61735         parameter -- so callers must not close such FDs.  Update callers.
61736         (diropen_fd, opendirat, cwd_advance_fd): New functions.
61737         (diropen): Add parameter, SP.  Adjust all callers.
61738         Implement using diropen_fd, rather than open.
61739         (fts_open): Initialize new member, fts_cwd_fd.
61740         Remove fts_rft-setting code.
61741         (fts_close): Close fts_cwd_fd, if necessary.
61742         (__opendir2): Define in terms of opendir or opendirat,
61743         depending on whether the FST_NOCHDIR flag is set.
61744         (fts_build): Since fts_safe_changedir consumes its FD, and since
61745         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
61746         and close the dup'd file descriptor upon failure.
61747         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
61748         (fts_safe_changedir): Tweak semantics to reflect that this function
61749         now calls cwd_advance_fd and hence consumes its FD argument.
61750         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
61751         [struct FTS] (fts_rft): Remove now-unused member.
61752         [struct FTS] (fts_cycle.state): Improve comment.
61753
61754         * lib/openat.c (openat_needs_fchdir): New function.
61755         * lib/openat.h (openat_needs_fchdir): Declare it.
61756
61757 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61758
61759         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
61760         Problem and fix reported by Pádraig Brady in
61761         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
61762
61763 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61764
61765         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
61766
61767 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61768
61769         * lib/memcoll.c (memcoll): Optimize for the common case where the
61770         arguments are bytewise equal.
61771
61772 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61773
61774         * doc/regexprops-generic.texi: Add a copyright notice.
61775
61776 2006-08-15  Bruno Haible  <bruno@clisp.org>
61777
61778         * modules/tmpdir (License): Change to LGPL.
61779
61780 2006-08-15  Bruno Haible  <bruno@clisp.org>
61781
61782         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
61783         module.
61784
61785 2006-08-14  Simon Josefsson  <jas@extundo.com>
61786
61787         * config/srclist.txt: Add gnupload.
61788
61789 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61790
61791         Change copyright notice from LGPL 2 to GPL 2, since that's the
61792         standard form used in the gnulib repository.
61793         * tests/test-lock.c: Likewise.
61794         * tests/test-stdint.c: Likewise.
61795         * tests/test-tls.c: Likewise.
61796
61797         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
61798         prelude-manager.  User shorter URLs for GNU projects, without '?'.
61799         Add copyright notice.
61800
61801         * check-module: Add copyright notice.  Output a copyright
61802         notice if "--version" is specified.
61803         * modules/COPYING: New file.
61804         * tests/test-getaddrinfo.c: Add copyright notice.
61805         * tests/test-verify.c: Likewise.
61806
61807 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61808
61809         Change copyright notice from LGPL 2 to GPL 2, since that's the
61810         standard form used in the gnulib repository.
61811         * lib/lock.c: LGPL -> GPL.
61812         * lib/lock.h: Likewise.
61813         * lib/strnlen1.c: Likewise.
61814         * lib/strnlen1.h: Likewise.
61815         * lib/tls.c: Likewise.
61816         * lib/tls.h: Likewise.
61817         * lib/tmpdir.c: Likewise.
61818
61819         * lib/TODO: Remove; this belongs only in coreutils.
61820
61821 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61822
61823         Add copyright notices to long-enough files that lack them, since
61824         otherwise the files aren't clearly free.  Use the same notice that
61825         getdate.texi already uses.
61826         * doc/alloca-opt.texi: Add copyright notice.
61827         * doc/alloca.texi: Likewise.
61828         * doc/ctime.texi: Likewise.
61829         * doc/functions.texi: Likewise.
61830         * doc/gcd.texi: Likewise.
61831         * doc/gnulib-tool.texi: Likewise.
61832         * doc/inet_ntoa.texi: Likewise.
61833         * doc/visibility.texi: Likewise.
61834
61835         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
61836         * doc/quote.texi: Add copyright notice.
61837
61838         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
61839         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
61840         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
61841         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
61842         is now obsolete, and give a pointer to the Sun list.
61843         Add copyright notice.
61844
61845 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61846
61847         * config/srclistvars.sh: Add copyright notice.
61848
61849 2006-08-14  Eric Blake  <ebb9@byu.net>
61850
61851         Import the following change from libc:
61852
61853         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
61854
61855         Upstream bug 2997.
61856         * lib/misc/error.c: Add space between program name and message if file
61857         name is missing.
61858
61859 2006-08-12  Karl Berry  <karl@gnu.org>
61860
61861         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
61862         remove, these originate in gnulib now.
61863
61864 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61865
61866         * doc/Makefile (standards.info standards.html standards.dvi):
61867         Also depend on make-stds.texi.
61868
61869 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61870
61871         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
61872         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
61873
61874         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
61875         in wchar_t.  Problem reported by Eric Blake.
61876
61877         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
61878         LEN is smaller than SIZE.  Suggested by Bruno Haible.
61879         Also, help the compiler to keep LEN in a register.
61880
61881 2006-08-11  Eric Blake  <ebb9@byu.net>
61882
61883         * users.txt: Sort.  Add tar.
61884
61885 2006-08-11  Bruno Haible  <bruno@clisp.org>
61886
61887         * users.txt: New file.
61888
61889 2006-08-11  Bruno Haible  <bruno@clisp.org>
61890
61891         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
61892         before <wchar.h>. Needed for OSF/1 and BSD/OS.
61893
61894 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61895
61896         * modules/snprintf (Depends-on): Remove minmax.
61897         (Maintainer): Add self and Bruno.
61898
61899 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61900
61901         * lib/.cppi-disable: Add snprintf.h, socket_.h.
61902         * lib/snprintf.c: Include <errno.h> and <limits.h>.
61903         (EOVERFLOW): Define if the system does not.
61904         Do not include "minmax.h"; it wasn't used.
61905         (snprintf): Don't assume size_t promotes to an unsigned type.
61906         Fix bug when generated string was too long for the buffer: the
61907         buffer's contents are supposed to be the initial prefix of the
61908         output.  Don't assume vasnprintf returns EOVERFLOW if the size
61909         exceeds INT_MAX; do the check ourselves.
61910
61911         Import the following changes from libc:
61912
61913         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
61914
61915         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
61916         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
61917         set wc to the byte which couldn't be converted.
61918         (re_string_reconstruct): Don't clear valid_raw_len before calling
61919         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
61920         tip_context using re_string_context_at.
61921
61922         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
61923
61924         * lib/posix/regex.h: g++ still cannot handled [restrict].
61925
61926         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
61927
61928         * lib/posix/regex.h: Remove special handling for VMS.
61929
61930 2006-08-10  Jim Meyering  <jim@meyering.net>
61931
61932         * modules/same-inode: New module.
61933         * modules/dev-ino: New module.
61934         * modules/cycle-check: Depend on these modules, rather than simply
61935         including their .h files.
61936         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
61937         required via m4/cycle-check.m4.
61938         * modules/same: Depend on new same-inode module, rather than
61939         including same-inode.h.
61940         * modules/chdir-safer: New file.
61941
61942         * modules/chown (Depends-on): Add stat-macros.
61943
61944 2006-08-10  Jim Meyering  <jim@meyering.net>
61945
61946         * m4/cycle-check.m4: New file.
61947         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
61948         * m4/dev-ino.m4, m4/same-inode.m4: New files.
61949
61950 2006-08-10  Eric Blake  <ebb9@byu.net>
61951
61952         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
61953         in from original proposal.
61954
61955 2006-08-10  Eric Blake  <ebb9@byu.net>
61956         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61957
61958         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
61959         namespace.
61960
61961 2006-08-10  Bruno Haible  <bruno@clisp.org>
61962
61963         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
61964         as well.
61965
61966 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61967
61968         Sync from coreutils.
61969
61970         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
61971
61972         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
61973         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
61974
61975 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61976
61977         * modules/restrict: Remove; no longer needed now that we assume
61978         Autoconf 2.59 or later.
61979         * MODULES.html.sh: Remove 'restrict'.
61980         * modules/argp (Depends-on): Remove 'restrict'.
61981         * modules/base64 (Depends-on): Likewise.
61982         * modules/gc (Depends-on): Likewise.
61983         * modules/getaddrinfo (Depends-on): Likewise.
61984         * modules/glob (Depends-on): Likewise.
61985         * modules/inet_ntop (Depends-on): Likewise.
61986         * modules/inet_pton (Depends-on): Likewise.
61987         * modules/memxor (Depends-on): Likewise.
61988         * modules/regex (Depends-on): Likewise.
61989         * modules/strtok_r (Depends-on): Likewise.
61990         * modules/time_r (Depends-on): Likewise.
61991
61992 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61993
61994         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
61995         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
61996         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61997         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
61998         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61999         * m4/memxor.m4 (gl_MEMXOR): Likewise.
62000         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
62001         gl_C_RESTRICT replaced by AC_C_RESTRICT.
62002
62003         Merge from coreutils.
62004         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
62005         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
62006         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62007         * m4/time_r.m4 (gl_TIME_R): Likewise.
62008
62009 2006-08-09  Karl Berry  <karl@gnu.org>
62010
62011         * config/srclist.txt: no more gettext-tools, per Bruno.
62012
62013 2006-08-08  Eric Blake  <ebb9@byu.net>
62014
62015         * modules/verror: New module.
62016         * MODULES.html.sh: Document it.
62017
62018 2006-08-08  Eric Blake  <ebb9@byu.net>
62019
62020         * lib/verror.h, lib/verror.c: New files.
62021
62022 2006-08-08  Eric Blake  <ebb9@byu.net>
62023
62024         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
62025         verror_at_line output complies with GNU Coding Standards even when
62026         file is NULL.
62027
62028 2006-08-07  Bruno Haible  <bruno@clisp.org>
62029
62030         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
62031         versions of AIX.
62032         Reported by Ralf Wildenhues.
62033
62034 2006-08-07  Bruno Haible  <bruno@clisp.org>
62035
62036         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
62037         in an AC_DEFUN. Needed so that the autoconf snippets can use
62038         AC_REQUIRE.
62039
62040 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62041
62042         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62043         Initialize pkgdata_DATA.
62044         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
62045         overriding it.
62046
62047 2006-08-06  Eric Blake  <ebb9@byu.net>
62048
62049         * lib/error.h: Fold in some upstream changes from glibc.
62050         * lib/error.c: Likewise.
62051
62052 2006-08-04  Bruno Haible  <bruno@clisp.org>
62053
62054         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62055         Make the mostlyclean-local rule depend on mostlyclean-generic.
62056         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
62057
62058 2006-07-31  Bruno Haible  <bruno@clisp.org>
62059
62060         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
62061         <stdlib.h>, <string.h>.
62062
62063 2006-07-30  Bruno Haible  <bruno@clisp.org>
62064
62065         * modules/readlink (License): Change to LGPL.
62066
62067 2006-07-30  Bruno Haible  <bruno@clisp.org>
62068
62069         * modules/javaversion (Makefile.am): Distribute javaversion.java and
62070         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
62071         set PKGDATADIR to point to it.
62072
62073 2006-07-30  Bruno Haible  <bruno@clisp.org>
62074
62075         * modules/csharpexec (configure.ac): Comment out macro invocation.
62076         * modules/javaexec (configure.ac): Likewise.
62077         * modules/javacomp-script (configure.ac): Likewise.
62078
62079         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
62080
62081 2006-07-30  Bruno Haible  <bruno@clisp.org>
62082
62083         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
62084         linked-list.
62085
62086 2006-07-30  Bruno Haible  <bruno@clisp.org>
62087
62088         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
62089
62090 2006-07-30  Bruno Haible  <bruno@clisp.org>
62091
62092         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62093         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
62094         get removed.
62095
62096 2006-07-29  Bruno Haible  <bruno@clisp.org>
62097
62098         Make it possible for gnulib-tool to work with locally modified or
62099         augmented gnulib repositories.
62100         * gnulib-tool (func_usage): Document --local-dir option.
62101         (local_gnulib_dir): New variable.
62102         Handle --local-dir option.
62103         (func_lookup_file): New function.
62104         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
62105         (func_get_description, func_get_filelist, func_get_description,
62106         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
62107         func_get_automake_snippet, func_get_include_directive,
62108         func_get_license, func_get_maintainer): Use func_lookup_file.
62109         (func_import, func_create_testdir): Use func_lookup_file.
62110
62111 2006-07-29  Bruno Haible  <bruno@clisp.org>
62112
62113         * modules/setenv (Depends-on): Add unistd.
62114
62115 2006-07-29  Bruno Haible  <bruno@clisp.org>
62116
62117         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
62118
62119 2006-07-29  Bruno Haible  <bruno@clisp.org>
62120
62121         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
62122
62123 2006-07-29  Bruno Haible  <bruno@clisp.org>
62124
62125         * gnulib-tool (import, update): If there is no Makefile.am, look at
62126         aclocal.m4, instead of bailing out.
62127
62128 2006-07-29  Bruno Haible  <bruno@clisp.org>
62129
62130         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
62131         Categorize the options by when they are useful.
62132
62133 2006-07-29  Bruno Haible  <bruno@clisp.org>
62134
62135         * gnulib-tool (func_usage): Document option --no-libtool.
62136         Handle option --no-libtool.
62137         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
62138         for changed semantics of $libtool variable.
62139         (func_import): Likewise. If libtool is not used, show this through
62140         an option --no-libtool.
62141         (func_create_testdir): Update.
62142
62143 2006-07-29  Bruno Haible  <bruno@clisp.org>
62144
62145         * gnulib-tool (func_import): Extend error message about missing
62146         --doc-base.
62147
62148 2006-07-29  Bruno Haible  <bruno@clisp.org>
62149
62150         * gnulib-tool (func_import): Don't create the $docbase directory if
62151         there is no file to store there.
62152
62153 2006-07-29  Bruno Haible  <bruno@clisp.org>
62154
62155         * gnulib-tool (autoconf_minversion): If a --dir option is given and
62156         relevant, look for configure.ac there, not in the current directory.
62157         Also use a simple search for AC_PREREQ, not "autoconf --trace".
62158
62159 2006-07-29  Bruno Haible  <bruno@clisp.org>
62160
62161         * gnulib-tool (SORT): New variable.
62162         (func_usage): Undocument --assume-autoconf option.
62163         Remove --assume-autoconf option handling.
62164         (autoconf_minversion): Determine from the contents of configure.ac.
62165         (func_import): Remove autoconf_minversion handling.
62166         Suggested by Eric Blake.
62167
62168 2006-07-29  Bruno Haible  <bruno@clisp.org>
62169
62170         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
62171
62172 2006-07-29  Bruno Haible  <bruno@clisp.org>
62173
62174         * config/srclist.txt (*setenv.[ch]): Remove rules.
62175
62176 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62177
62178         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
62179
62180 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62181
62182         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
62183         arpa/inet.h.
62184
62185 2006-07-28  Simon Josefsson  <jas@extundo.com>
62186
62187         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
62188         * modules/inet_pton (Depends-on): Likewise.
62189
62190 2006-07-28  Simon Josefsson  <jas@extundo.com>
62191
62192         * m4/netinet_in_h.m4: New file.
62193
62194 2006-07-28  Simon Josefsson  <jas@extundo.com>
62195
62196         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
62197         #include's.
62198
62199 2006-07-28  Simon Josefsson  <jas@extundo.com>
62200
62201         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
62202         #include's.
62203
62204 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
62205
62206         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
62207         setgid on directories only if they set these bits.
62208         * lib/modechange.h: Remove obsolete comment about masks.
62209
62210 2006-07-28  Eric Blake  <ebb9@byu.net>
62211
62212         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
62213         macro expansion.
62214
62215 2006-07-28  Bruno Haible  <bruno@clisp.org>
62216
62217         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
62218
62219 2006-07-28  Bruno Haible  <bruno@clisp.org>
62220
62221         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
62222
62223 2006-07-28  Bruno Haible  <bruno@clisp.org>
62224
62225         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
62226         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
62227         Define fallbacks.
62228         Avoids link error on FreeBSD 4.x.
62229         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62230
62231         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
62232         encoding.
62233         * lib/mbswidth.c (iswcntrl): Likewise.
62234
62235 2006-07-27  Bruno Haible  <bruno@clisp.org>
62236
62237         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
62238         test.
62239
62240 2006-07-27  Bruno Haible  <bruno@clisp.org>
62241
62242         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
62243         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
62244         defined.
62245
62246 2006-07-26  Eric Blake  <ebb9@byu.net>
62247
62248         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
62249
62250 2006-07-26  Eric Blake  <ebb9@byu.net>
62251
62252         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
62253         like mingw that lack mkstemp.
62254         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
62255         avoid compilation warning on mingw.
62256
62257 2006-07-26  Bruno Haible  <bruno@clisp.org>
62258
62259         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
62260         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
62261         INT_FAST*_MIN, INTPTR_MIN.
62262
62263 2006-07-25  Bruno Haible  <bruno@clisp.org>
62264
62265         * modules/version-etc (Depends-on): Add stdarg.
62266
62267 2006-07-25  Bruno Haible  <bruno@clisp.org>
62268
62269         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
62270         complex commands.
62271
62272 2006-07-25  Bruno Haible  <bruno@clisp.org>
62273
62274         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
62275         defined in <stdarg.h> or config.h.
62276
62277 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62278
62279         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
62280         (gl_STDIO_SAFER): Remove.
62281
62282 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62283
62284         * MODULES.html.sh (File stream based Input/Output):
62285         Add fopen-safer, tmpfile-safer; remove stdio-safer.
62286         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
62287         * modules/fopen-safer, modules/tmpfile-safer: New files.
62288         * modules/stdio-safer: Remove.
62289
62290 2006-07-24  Bruno Haible  <bruno@clisp.org>
62291
62292         * modules/tmpdir: New file.
62293         * MODULES.html.sh (File system functions): Add it.
62294
62295 2006-07-24  Bruno Haible  <bruno@clisp.org>
62296
62297         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
62298         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
62299
62300 2006-07-24  Bruno Haible  <bruno@clisp.org>
62301
62302         * modules/clean-temp: New file.
62303
62304 2006-07-24  Bruno Haible  <bruno@clisp.org>
62305
62306         * m4/tmpdir.m4: New file, from GNU gettext.
62307
62308 2006-07-24  Bruno Haible  <bruno@clisp.org>
62309
62310         * lib/tmpdir.h: New file, from GNU gettext.
62311         * lib/tmpdir.c: New file, from GNU gettext.
62312
62313 2006-07-24  Bruno Haible  <bruno@clisp.org>
62314
62315         * lib/clean-temp.h: New file, from GNU gettext.
62316         * lib/clean-temp.c: New file, from GNU gettext.
62317
62318 2006-07-23  Eric Blake  <ebb9@byu.net>
62319
62320         * modules/stdio-safer (Files): Add tmpfile-safer.c.
62321         (Depends-on): Add binary-io.
62322
62323 2006-07-23  Eric Blake  <ebb9@byu.net>
62324
62325         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
62326
62327 2006-07-23  Eric Blake  <ebb9@byu.net>
62328
62329         * lib/tmpfile-safer.c: New file.
62330         * lib/stdio-safer.h (fopen_safer): Add prototype.
62331         * lib/stdio--.h (tmpfile): Make safer.
62332
62333 2006-07-23  Bruno Haible  <bruno@clisp.org>
62334
62335         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
62336         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
62337         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
62338         gl_linked_remove_at): Use it.
62339
62340 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62341         and Simon Josefsson <jas@extundo.com>
62342
62343         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
62344
62345         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
62346
62347 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62348
62349         * modules/close-stream: New file.
62350         * modules/closeout (Description): Make it clear that it exits
62351         with a diagnostic on error.
62352         (Depends-on): Add close-stream.  Remove fpending, stdbool.
62353         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
62354
62355 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62356
62357         * m4/close-stream.m4: New file.
62358
62359 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62360
62361         * lib/close-stream.c, lib/close-stream.h: New files.
62362
62363 2006-07-22  Bruno Haible  <bruno@clisp.org>
62364
62365         Merge from GNU gettext 0.15.
62366
62367         2006-05-01  Bruno Haible  <bruno@clisp.org>
62368
62369                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
62370
62371         2006-07-22  Bruno Haible  <bruno@clisp.org>
62372
62373                 * modules/javaversion: New file.
62374                 * MODULES.html.sh (Java): Add javaversion.
62375
62376         2006-03-12  Bruno Haible  <bruno@clisp.org>
62377
62378                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
62379
62380         2005-12-04  Bruno Haible  <bruno@clisp.org>
62381
62382                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
62383                 (untested).
62384
62385         2006-06-21  Bruno Haible  <bruno@clisp.org>
62386
62387                 Avoid warnings from recent versions of mcs.
62388                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
62389                 -o, -L, -r any more. Use options documented since mcs-1.0
62390                 instead. Similarly for -g.
62391
62392         2005-12-04  Bruno Haible  <bruno@clisp.org>
62393
62394                 * build-aux/csharpcomp.sh.in: Suffix for resources is
62395                 .resources, not .resource.
62396
62397         2005-07-09  Bruno Haible  <bruno@clisp.org>
62398
62399                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
62400                 add a .dll suffix.
62401                 Reported by Mark Junker <mjscod@gmx.de>.
62402
62403         2006-07-22  Bruno Haible  <bruno@clisp.org>
62404
62405                 * modules/gettext: Upgrade to gettext-0.15.
62406                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
62407                 m4/visibility.m4.
62408                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
62409
62410 2006-07-22  Bruno Haible  <bruno@clisp.org>
62411
62412         Merge from GNU gettext 0.15.
62413
62414         2006-03-25  Bruno Haible  <bruno@clisp.org>
62415
62416                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
62417
62418         2006-07-21  Bruno Haible  <bruno@clisp.org>
62419
62420                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
62421                 "1.1".
62422
62423         2006-05-09  Bruno Haible  <bruno@clisp.org>
62424
62425                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
62426                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
62427                 for the conftestver execution.
62428
62429         2006-05-01  Bruno Haible  <bruno@clisp.org>
62430
62431                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
62432                 optional target-version argument. Verify that the compiler
62433                 groks source of the specified source-version, or add -source
62434                 option as necessary. Verify that the compiler produces
62435                 bytecode in the specified target-version, or add -target and
62436                 -source options as necessary. Make the result of the test
62437                 available as variable CONF_JAVAC. Also log error output in
62438                 config.log.
62439
62440         2006-03-11  Bruno Haible  <bruno@clisp.org>
62441
62442                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
62443
62444         2006-05-09  Bruno Haible  <bruno@clisp.org>
62445
62446                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
62447                 CLASSPATH_SEPARATOR to a semicolon.
62448
62449         2006-03-12  Bruno Haible  <bruno@clisp.org>
62450
62451                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
62452                 available as variable CONF_JAVA, for subsequent autoconf
62453                 tests. Also log error output in config.log.
62454
62455         2006-07-19  Bruno Haible  <bruno@clisp.org>
62456
62457                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
62458                 that getline works on glibc2 systems. Needed to avoid trouble
62459                 in relocatable.c.
62460                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
62461
62462         2005-12-04  Bruno Haible  <bruno@clisp.org>
62463
62464                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
62465                 launcher (untested).
62466
62467         2005-12-04  Bruno Haible  <bruno@clisp.org>
62468
62469                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
62470
62471         2006-07-22  Bruno Haible  <bruno@clisp.org>
62472
62473                 * gettext.m4: Update from GNU gettext-0.15.
62474                 * nls.m4: Likewise.
62475                 * po.m4: Likewise.
62476                 * inttypes-pri.m4: Likewise.
62477                 * inttypes-h.m4: Renamed from inttypes.m4.
62478                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
62479
62480 2006-07-22  Bruno Haible  <bruno@clisp.org>
62481
62482         Merge from GNU gettext 0.15.
62483
62484         2005-07-05  Bruno Haible  <bruno@clisp.org>
62485
62486                 * printf-args.c (printf_fetchargs): Work around broken
62487                 definition of wint_t on mingw.
62488
62489         2005-02-12  Bruno Haible  <bruno@clisp.org>
62490
62491                 * xallocsa.h: Add extern "C" for C++.
62492
62493         2006-05-17  Bruno Haible  <bruno@clisp.org>
62494
62495                 Cygwin portability.
62496                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
62497
62498         2006-04-30  Bruno Haible  <bruno@clisp.org>
62499
62500                 * progreloc.c: Include <mach-o/dyld.h> if available.
62501                 (find_executable): Use _NSGetExecutablePath when possible.
62502
62503         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62504
62505                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
62506                 function.
62507
62508         2005-12-29  Bruno Haible  <bruno@clisp.org>
62509
62510                 * progreloc.c (set_program_name_and_installdir): Fix
62511                 compilation error.
62512
62513         2005-12-04  Bruno Haible  <bruno@clisp.org>
62514
62515                 Cygwin portability.
62516                 * progreloc.c: Include <windows.h> also on Cygwin.
62517                 (find_executable): Add support for Cygwin.
62518                 (set_program_name_and_installdir): Handle also platforms with
62519                 nonempty EXEEXT.
62520
62521         2006-07-11  Bruno Haible  <bruno@clisp.org>
62522
62523                 * javacomp.c: Fix a comment.
62524                 Reported by Jim Meyering.
62525
62526         2006-04-30  Bruno Haible  <bruno@clisp.org>
62527
62528                 * javacomp.h (compile_java_class): Add source_version,
62529                 target_version arguments.
62530                 * javacomp.c: Rewritten to choose only a compiler that
62531                 respects the specified source_version and target_version.
62532
62533         2006-06-27  Bruno Haible  <bruno@clisp.org>
62534
62535                 Assume correct S_ISDIR macro.
62536                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
62537
62538         2006-07-22  Bruno Haible  <bruno@clisp.org>
62539
62540                 * javaversion.h: New file, from GNU gettext.
62541                 * javaversion.c: New file, from GNU gettext.
62542                 * javaversion.java: New file, from GNU gettext.
62543                 * javaversion.class: New file, from GNU gettext.
62544
62545         2006-05-17  Bruno Haible  <bruno@clisp.org>
62546
62547                 Cygwin portability.
62548                 * javaexec.c (execute_java_class): Test for jview program
62549                 also on Cygwin.
62550
62551         2006-04-09  Bruno Haible  <bruno@clisp.org>
62552
62553                 * fatal-signal.c: Don't include string.h.
62554                 (at_fatal_signal): Use a copying loop instead of memcpy.
62555
62556         2005-12-04  Bruno Haible  <bruno@clisp.org>
62557
62558                 * csharpexec.c: Add support for 'clix' launcher (untested).
62559                 (execute_csharp_using_sscli): New function.
62560                 (execute_csharp_program): Call it.
62561
62562         2006-06-21  Bruno Haible  <bruno@clisp.org>
62563
62564                 Avoid warnings from recent versions of mcs.
62565                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
62566                 -o, -L, -r any more. Use options documented since mcs-1.0
62567                 instead. Similarly for -g.
62568
62569         2005-07-09  Bruno Haible  <bruno@clisp.org>
62570
62571                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
62572                 add a .dll suffix.
62573                 Reported by Mark Junker <mjscod@gmx.de>.
62574
62575         2006-06-17  Bruno Haible  <bruno@clisp.org>
62576
62577                 * config.charset: Update for NetBSD 3.0.
62578
62579         2006-05-17  Bruno Haible  <bruno@clisp.org>
62580
62581                 Cygwin portability.
62582                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
62583
62584         2006-05-16  Bruno Haible  <bruno@clisp.org>
62585
62586                 * localcharset.c [CYGWIN]: Include <windows.h>.
62587                 (get_charset_aliases): For Cygwin, return the same CPxxx
62588                 aliases list as under WIN32.
62589                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
62590                 the environment variables. Fall back to GetACP().
62591
62592         2006-04-05  Bruno Haible  <bruno@clisp.org>
62593
62594                 * config.charset: Update Juan Manuel Guerrero's address.
62595
62596         2005-02-12  Bruno Haible  <bruno@clisp.org>
62597
62598                 * allocsa.h: Add extern "C" for C++.
62599
62600         2005-02-10  Bruno Haible  <bruno@clisp.org>
62601
62602                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
62603                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
62604
62605         2006-07-22  Bruno Haible  <bruno@clisp.org>
62606
62607                 * gettext.h: Update to GNU gettext-0.15.
62608
62609 2006-07-22  Bruno Haible  <bruno@clisp.org>
62610
62611         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
62612         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
62613         lib-prefix.m4, longdouble.m4, ssize_t.m4.
62614
62615 2006-07-21  Eric Blake  <ebb9@byu.net>
62616
62617         * modules/stdlib-safer: New file.
62618         * MODULES.html.sh (File stream based Input/Output): Add
62619         stdlib-safer.
62620
62621 2006-07-21  Eric Blake  <ebb9@byu.net>
62622
62623         * lib/stdlib-safer.h: New file from coreutils, required by
62624         stdlib--.h.
62625
62626 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
62627
62628         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
62629
62630 2006-07-20  Bruno Haible  <bruno@clisp.org>
62631
62632         * gnulib-tool: Recognize new option --assume-autoconf.
62633         (autoconf_minversion): New variable.
62634         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
62635
62636 2006-07-20  Bruno Haible  <bruno@clisp.org>
62637
62638         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
62639
62640 2006-07-19  Derek R. Price  <derek@ximbiot.com>
62641
62642         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
62643         Reindent and repaginate.
62644
62645 2006-07-19  Derek Price  <derek@ximbiot.com>
62646
62647         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
62648         Correct grammar.
62649
62650 2006-07-17  Bruno Haible  <bruno@clisp.org>
62651
62652         * modules/list: New file.
62653         * modules/array-list: New file.
62654         * modules/carray-list, modules/carray-list-tests: New files.
62655         * modules/linked-list, modules/linked-list-tests: New files.
62656         * modules/avltree-list, modules/avltree-list-tests: New files.
62657         * modules/rbtree-list, modules/rbtree-list-tests: New files.
62658         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
62659         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
62660         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
62661         * modules/oset: New file.
62662         * modules/array-oset: New file.
62663         * modules/avltree-oset, modules/avltree-oset-tests: New files.
62664         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
62665         * tests/test-carray_list.c: New file.
62666         * tests/test-linked_list.c: New file.
62667         * tests/test-avltree_list.c: New file.
62668         * tests/test-rbtree_list.c: New file.
62669         * tests/test-linkedhash_list.c: New file.
62670         * tests/test-avltreehash_list.c: New file.
62671         * tests/test-rbtreehash_list.c: New file.
62672         * tests/test-avltree_oset.c: New file.
62673         * tests/test-rbtree_oset.c: New file.
62674         * MODULES.html.sh (Container data structures): New section.
62675
62676 2006-07-17  Bruno Haible  <bruno@clisp.org>
62677
62678         * m4/gl_list.m4: New file.
62679
62680 2006-07-17  Bruno Haible  <bruno@clisp.org>
62681
62682         * lib/gl_list.h: New file.
62683         * lib/gl_list.c: New file.
62684         * lib/gl_array_list.h: New file.
62685         * lib/gl_array_list.c: New file.
62686         * lib/gl_carray_list.h: New file.
62687         * lib/gl_carray_list.c: New file.
62688         * lib/gl_linked_list.h: New file.
62689         * lib/gl_linked_list.c: New file.
62690         * lib/gl_anylinked_list1.h: New file.
62691         * lib/gl_anylinked_list2.h: New file.
62692         * lib/gl_avltree_list.h: New file.
62693         * lib/gl_avltree_list.c: New file.
62694         * lib/gl_anyavltree_list1.h: New file.
62695         * lib/gl_anyavltree_list2.h: New file.
62696         * lib/gl_rbtree_list.h: New file.
62697         * lib/gl_rbtree_list.c: New file.
62698         * lib/gl_anyrbtree_list1.h: New file.
62699         * lib/gl_anyrbtree_list2.h: New file.
62700         * lib/gl_anytree_list1.h: New file.
62701         * lib/gl_anytree_list2.h: New file.
62702         * lib/gl_linkedhash_list.h: New file.
62703         * lib/gl_linkedhash_list.c: New file.
62704         * lib/gl_anyhash_list1.h: New file.
62705         * lib/gl_anyhash_list2.h: New file.
62706         * lib/gl_avltreehash_list.h: New file.
62707         * lib/gl_avltreehash_list.c: New file.
62708         * lib/gl_rbtreehash_list.h: New file.
62709         * lib/gl_rbtreehash_list.c: New file.
62710         * lib/gl_anytreehash_list1.h: New file.
62711         * lib/gl_anytreehash_list2.h: New file.
62712
62713         * lib/gl_oset.h: New file.
62714         * lib/gl_oset.c: New file.
62715         * lib/gl_array_oset.h: New file.
62716         * lib/gl_array_oset.c: New file.
62717         * lib/gl_avltree_oset.h: New file.
62718         * lib/gl_avltree_oset.c: New file.
62719         * lib/gl_rbtree_oset.h: New file.
62720         * lib/gl_rbtree_oset.c: New file.
62721         * lib/gl_anytree_oset.h: New file.
62722
62723 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62724
62725         * m4/mkancesdirs.m4: New file.
62726         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
62727         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
62728         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
62729         it.
62730
62731 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62732
62733         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
62734         * lib/mkancesdirs.h: New files.
62735         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
62736         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
62737         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
62738         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
62739         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
62740         callers changed.  Revamp internals significantly, by not
62741         attempting to create directories that are temporarily more
62742         permissive than the final results.  Do not attempt to use
62743         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
62744         This removes some race conditions, fixes some bugs, and simplifies
62745         things.  Use new dirchownmod function to do owner and mode changes.
62746         * lib/mkdir-p.h: Likewise.
62747         * lib/modechange.c (octal_to_mode): New function.
62748         (struct mode_change): New member mentioned.
62749         (make_node_op_equals): New arg mentioned.  All callers changed.
62750         (mode_compile): Keep track of which mode bits the user has explicitly
62751         mentioned.
62752         (mode_adjust): New arg DIR, so that we implement the X op correctly.
62753         New arg PMODE_BITS, to keep track of which mode bits the user
62754         mentioned; it treats S_ISUID and S_ISGID speciall.
62755         All callers changed.
62756         * lib/modechange.h: Likewise.
62757
62758 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62759
62760         * MODULES.html.sh: Add mkancestors.
62761         * modules/mkancesdirs: New module.
62762         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
62763         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
62764         The chdir-safer and afs files are now orphans; I'll remove them
62765         unless someone speaks up.
62766         Add lib/dirchownmod.c, lib/dirchownmod.h.
62767         (Depends-on): Remove alloca, chown, save-cwd, dirname.
62768         Add lchown, mkancesdirs.
62769         (Maintainer): Add self.
62770
62771 2006-07-15  Karl Berry  <karl@gnu.org>
62772
62773         * gnulib-tool: help message wording/arrangement.
62774
62775 2006-07-14  Simon Josefsson  <jas@extundo.com>
62776
62777         * doc/gnulib.texi (Libtool and Windows): New section.
62778
62779 2006-07-12  Simon Josefsson  <jas@extundo.com>
62780
62781         * modules/gendocs (License): Fix license, approved by Karl.
62782
62783 2006-07-12  Eric Blake  <ebb9@byu.net>
62784
62785         * MODULES.html.sh: Add gendocs.
62786
62787 2006-07-11  Eric Blake  <ebb9@byu.net>
62788
62789         * modules/fdl: New module, to install doc/fdl.texi.
62790         * MODULES.html.sh: Add new section for documentation modules.
62791         * gnulib-tool: Avoid space-tab.
62792         (--doc-base): New option, to manage files from doc.
62793
62794 2006-07-11  Eric Blake  <ebb9@byu.net>
62795
62796         * m4/absolute-header.m4: Fix comments to match recent change.
62797
62798 2006-07-11  Eric Blake  <ebb9@byu.net>
62799
62800         * gnulib-tool: List --doc-base before --tests-base.
62801
62802 2006-07-11  Derek R. Price  <derek@ximbiot.com>
62803
62804         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
62805
62806 2006-07-11  Bruno Haible  <bruno@clisp.org>
62807
62808         * README: Mention where to put documentation.
62809
62810 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62811
62812         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
62813
62814 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62815
62816         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
62817         to stdint.m4.
62818
62819 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62820
62821         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
62822         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
62823         "no/such/file/stdint.h" when there is no such file, so that
62824         the resulting C code can be parsed by dodgy compilers.
62825         Problems reported by Bob Proulx.
62826
62827 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62828
62829         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
62830         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62831         macros into the GNU _D_EXACT_NAMLEN.
62832         * lib/savedir.c:  Likewise.
62833         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
62834
62835 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62836         and Paul Eggert  <eggert@cs.ucla.edu>
62837
62838         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
62839         * m4/savedir.m4:
62840         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62841         macros into the GNU _D_EXACT_NAMLEN.
62842
62843 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
62846         around the absolute name, to work around a problem with the HP-UX
62847         11.23 native C compiler, reported by Bob Proulx.
62848
62849 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62850
62851         * doc/maintain.texi, make-stds.texi: Sync from
62852         <http://savannah.gnu.org/projects/gnustandards>.
62853
62854 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62855
62856         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
62857
62858 2006-07-09  Jim Meyering  <jim@meyering.net>
62859
62860         * m4/glob.m4: Remove a doubled word in a comment.
62861
62862 2006-07-09  Jim Meyering  <jim@meyering.net>
62863
62864         * lib/argp-pv.c: Remove a doubled word in a comment.
62865         * lib/check-version.c (check_version): Likewise.
62866         * lib/javacomp.c (compile_java_class): Likewise.
62867
62868 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62869
62870         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
62871         for the benefit of people using Autoconf 2.60.  If you want to
62872         support older Autoconf versions you can copy m4/onceonly_2_57.m4
62873         (or m4/onceonly.m4, if pre-2.57) manually.
62874
62875 2006-07-08  Jim Meyering  <jim@meyering.net>
62876
62877         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
62878         comment.
62879         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
62880         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
62881         comment.
62882
62883 2006-07-08  Jim Meyering  <jim@meyering.net>
62884
62885         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
62886
62887 2006-07-07  Simon Josefsson  <jas@extundo.com>
62888
62889         * tests/test-crc.c: Change expected crc value, the test vector
62890         were probably computed using the old broken crc.c?
62891
62892 2006-07-06  Simon Josefsson  <jas@extundo.com>
62893
62894         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
62895         now the canonical place for the M4 file).
62896
62897         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
62898         from the sys_socket dependency now.
62899
62900         * modules/inet_pton (Files): Ditto.
62901
62902         * modules/inet_ntop (Files): Ditto.
62903
62904 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62905
62906         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
62907         not gl_PREREQ_GETUSERSHELL.
62908
62909 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62910
62911         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
62912         with only one argument, for Autoconf 2.60.
62913         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
62914         expand to nothing, so add a shell command to avoid syntax error.
62915         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62916
62917 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62918
62919         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
62920
62921 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62922
62923         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
62924         no longer needed.  Check for isblank decl.
62925         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
62926         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
62927         of existence.
62928
62929 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62930
62931         * lib/getloadavg.c: Use __VMS, not VMS.
62932         * lib/getopt.c: Likewise.
62933         * lib/getpagesize.h: Likewise.
62934         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
62935         and probably does not work.
62936
62937 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62938
62939         * lib/.cppi-disable: Add wcwidth.
62940         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
62941         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
62942         (ISGRAPH): Remove.  All uses changed to isgraph.
62943         (FOLD) [!defined _LIBC]: Remove special case.
62944         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
62945         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
62946         HAVE_ISBLANK.
62947         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
62948         case.
62949
62950 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62951
62952         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
62953         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
62954         brackets.  Other minor changes to suppress some compiler
62955         warnings.
62956
62957 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62958         and Paul Eggert  <eggert@cs.ucla.edu>
62959
62960         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
62961         of invoking obsolescent AC_HEADER_DIRENT macro.
62962         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62963         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
62964         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62965         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
62966         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
62967         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62968         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
62969         * m4/readdir.m4: Remove; no longer needed.
62970
62971 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62972         and Paul Eggert  <eggert@cs.ucla.edu>
62973
62974         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
62975         Don't worry about this obsolete case any more.
62976         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
62977         directories.
62978         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
62979         worry about this obsolete case any more.
62980         * lib/fts.c: Likewise.
62981         * lib/getcwd.c: Likewise.
62982         * lib/glob.h: Likewise.
62983         * lib/savedir.c: Likewise.
62984
62985 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62986
62987         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
62988         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
62989         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
62990         needed.
62991         All uses removed.
62992         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62993         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62994         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
62995         needed.
62996         * m4/getdate.m4 (gl_GETDATE): Likewise.
62997         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62998         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62999         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63000         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63001         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63002         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63003         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
63004         needed.
63005
63006 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63007
63008         * lib/memcasecmp.c: Include <limits.h>.
63009         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
63010         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
63011         Don't assume isdigit succeeds only on '0' through '9'.
63012
63013 2006-07-05  Eric Blake  <ebb9@byu.net>
63014
63015         * modules/getaddrinfo (Depends-on): Add snprintf.
63016
63017 2006-07-05  Eric Blake  <ebb9@byu.net>
63018
63019         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
63020         to avoid 'header present but could not be compiled' on cygwin.
63021
63022 2006-07-05  Eric Blake  <ebb9@byu.net>
63023
63024         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
63025         missing from netdb.h.
63026         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
63027
63028 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63029
63030         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
63031         no longer needed.
63032         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
63033         * m4/getdate.m4 (gl_GETDATE): Likewise.
63034         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63035         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63036         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63037         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63038         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63039
63040 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63041
63042         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
63043         All uses of is_space replaced by isspace.
63044         * lib/exit.h: Don't talk about STDC_HEADERS.
63045         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
63046         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
63047         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
63048         replaced by isprint etc.
63049         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
63050         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63051         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
63052         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
63053         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
63054         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63055
63056 2006-07-05  Bruno Haible  <bruno@clisp.org>
63057
63058         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
63059         the function exists, before testing against AIX.
63060         Reported by Martin Lambers <marlam@marlam.de>.
63061
63062 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63063
63064         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
63065         From Mark D. Baushke.
63066
63067 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63068
63069         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
63070         to the absolute name, not just one, to bypass Sun C 5.8's
63071         "warning: #include of /usr/include/... may be non-portable".
63072
63073 2006-07-04  Eric Blake  <ebb9@byu.net>
63074
63075         * modules/dirname-tests: New test module.
63076         * tests/test-dirname.c: New file, replacing dirname.c
63077         TEST_DIRNAME section that was recently deleted.
63078
63079 2006-07-04  Bruno Haible  <bruno@clisp.org>
63080
63081         Assume ANSI C header files and <ctype.h> functions.
63082         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
63083         (mbsnwidth): Use isprint, iscntrl instead.
63084
63085 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63086
63087         Merge from coreutils.
63088         * MODULES.html.sh: Add xstrtold.
63089         * modules/xstrtold: New file.
63090         * modules/cycle-check (Files): Add lib/same-inode.h.
63091         * modules/dirname (Files): Add m4/double-slash-root.m4.
63092         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
63093         * modules/mkdir-p (Files): Add lib/same-inode.h.
63094         * modules/same (Files): Add lib/same-inode.h.
63095
63096 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63097
63098         * m4/absolute-header.m4: Renamed from full-header-path.m4.
63099         This is to keep the terminology clean; POSIX talks about
63100         "absolute pathnames", not "full pathnames", but the GNU
63101         Coding Standards say to use "path" for something else;
63102         so use "absolute" to keep both sides happy.
63103         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
63104         Set gl_absolute_header, not gl_full_header_path.
63105         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
63106         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
63107         All uses changed.
63108
63109         Merge from coreutils.
63110
63111         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63112
63113         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
63114         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
63115         want to require the building of c-strtod.o.
63116         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
63117         needs -lm directly.
63118         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
63119
63120         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63121
63122         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
63123         --as-needed option if available.  Problem reported by Albert Chin in
63124         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
63125         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
63126         cc merely issues a bunch of annoying warnings for --as-needed
63127         (this problem was reported by Bob Proulx).  Also, try linking with
63128         -lm to detect a bug in binutils 2.16 (this problem was reported
63129         by Ralf Wildenhues).
63130
63131         2006-06-18  Jim Meyering  <jim@meyering.net>
63132
63133         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
63134         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
63135         macro.
63136         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
63137         also check for glibc-2.4's abort-inducing bug.
63138
63139         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
63140         Low-probability clean-up should be to use rmdir to get rid of
63141         the just-created directory, not unlink.
63142
63143         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
63144         configure fail, and request a bug report to inform us about it.
63145         Add a comment that, barring reports to the contrary, in 2007 we'll
63146         assume ftruncate is universally available.
63147
63148         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63149
63150         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
63151
63152         2006-03-12  Jim Meyering  <jim@meyering.net>
63153
63154         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
63155         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
63156         * m4/same.m4 (gl_SAME): Likewise.
63157         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
63158
63159         2006-03-11  Eric Blake  <ebb9@byu.net>
63160
63161         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
63162         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
63163         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
63164         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
63165
63166 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63167
63168         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
63169         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
63170         reported by Mark D. Baushke, one in
63171         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
63172
63173         Merge from coreutils.
63174
63175         * lib/.cppi-disable: Add stdint_.h.
63176         * lib/.cvsignore: Add stdint.h.
63177
63178         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63179
63180         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
63181         both double and long double versions.
63182         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
63183         * lib/xstrtold.c: New file.
63184         * lib/xstrtod.h (xstrtold): New decl.
63185
63186         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63187
63188         * lib/filemode.c (setst): Remove.
63189         (strmode): Rewrite to avoid setst.  This makes the code shorter,
63190         (arguably) clearer, and the generated code is a bit smaller on my
63191         Debian GNU/Linux stable x86 host.
63192
63193         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63194
63195         * lib/filemode.c: Include "filemode.h" first, to test the interface.
63196         Assume that filemode.h includes sys/types.h and sys/stat.h.
63197         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
63198         (ftypelet): Reorder to put common cases first, for efficiency.
63199         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
63200         to do 'M'.
63201         (strmode): Renamed from mode_string, and now stores 12 bytes instead
63202         of 10, for compatibility with FreeBSD.  All callers changed.
63203         (filemodestring): Now stores 12 bytes instead of 10, and sets file
63204         types that can't be deduced solely from st_mode.  First arg is now a
63205         const pointer.
63206         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
63207         (strmode): Renamed from mode_string.
63208         (filemodestring): New decl.
63209         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
63210         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
63211         needed.
63212         (S_ISPORT, S_ISWHT): New macros, if not already defined.
63213
63214         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63215
63216         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
63217         fsusage.h now does that.  Include fsusage.h first, to test interface.
63218         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
63219         at most one method (the old code could have generated decls that
63220         didn't conform to C89, not that this was ever exercised).
63221         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
63222
63223         2006-03-19  Jim Meyering  <jim@meyering.net>
63224
63225         Work even in a chroot where d_ino values for entries in "/"
63226         don't match the stat.st_ino values for the same names.
63227         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
63228         number, iterate through all entries again, using lstat instead.
63229         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
63230         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
63231
63232         * lib/getcwd.c (__getcwd): Clarify a comment.
63233         Use memcpy in place of a call to strcpy.
63234
63235         2006-03-12  Jim Meyering  <jim@meyering.net>
63236
63237         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
63238         matches that of the current directory (which we're about to chdir ".."
63239         out of), then save the dev-ino of the parent, instead.
63240
63241         * lib/same-inode.h (SAME_INODE): New file/macro.
63242         * lib/chdir-safer.c (SAME_INODE): Remove definition.
63243         Include "same-inode.h", instead.
63244         * lib/same.c: Likewise.
63245         * lib/cycle-check.h: Include "same-inode.h".
63246         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
63247         * lib/cycle-check.c (SAME_INODE): Remove definition.
63248         * lib/root-dev-ino.h: Include "same-inode.h".
63249
63250         2006-03-11  Eric Blake  <ebb9@byu.net>
63251
63252         * lib/same.c (same_name): s/base_name/last_component/
63253         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
63254         * lib/filenamecat.c (file_name_concat): Likewise.
63255
63256         2006-03-11  Eric Blake  <ebb9@byu.net>,
63257                     Paul Eggert  <eggert@cs.ucla.edu>
63258
63259         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
63260         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
63261         drive prefix.
63262         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
63263         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
63264         (last_component): New method.
63265         * lib/dirname.c (dir_len): Determine when drive letters need a
63266         subsequent slash.  Preserve // when it is special.
63267         (dir_name): Don't append dot when drive letter is absolute.
63268         [TEST_DIRNAME]: Move into a full-blown gnulib test.
63269         * lib/basename.c (base_name): New semantics - malloc the result.
63270         Preserve // when it is special.  Preserve relative files that look
63271         like drive letters.
63272         (base_len): Preserve // when it is special.
63273         (last_component): New method, similar to old base_name semantics.
63274         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
63275         base_name.  Strip redundant slashes from ///.
63276
63277 2006-07-03  Jim Meyering  <jim@meyering.net>
63278
63279         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
63280         macro is used before the first cycle_check call.
63281
63282 2006-07-03  Eric Blake  <ebb9@byu.net>
63283
63284         * modules/dirname (Depends-on): Add xstrndup.
63285
63286 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63287
63288         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
63289         test cases, so that config.log is a bit easier to follow.
63290
63291 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63292
63293         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
63294         both are 64 bits, since this seems to be the tradition, and this
63295         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
63296         we ever run into a host that prefers long long to long in this
63297         case, we'll need another configure-time test.  Problem reported by
63298         Jim Meyering.
63299
63300 2006-07-02  Eric Blake  <ebb9@byu.net>
63301
63302         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
63303
63304 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63305
63306         * modules/inttypes (Depends-on): No longer depends on stdint.
63307         * modules/stdint (Description): Say more about assumptions.
63308         Say that the fast types might differ.  Say macros are used.
63309         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
63310         (Makefile.am): Revise list of substituted symbols to match
63311         new stdint.m4.
63312         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
63313         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
63314         * tests/test-stdint.c (verify_same_types)
63315         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
63316         the code conforms to C99/C89.
63317         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
63318         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
63319
63320 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63321
63322         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
63323         but fix a bug, by requiring at least 64 bits.
63324         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63325         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
63326         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
63327         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
63328
63329         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
63330         changes.  Make 2.59 a prerequisite.  Check and substitute for
63331         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
63332         inttypes.h.  Do not use special include files; just use the
63333         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
63334         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
63335         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
63336         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
63337         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
63338         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
63339         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
63340         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
63341         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
63342         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
63343         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
63344         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
63345         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
63346         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
63347         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
63348         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
63349         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
63350         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
63351         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
63352         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
63353         WINT_MAX.  Check for C99 conformance more strictly, by detecting
63354         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
63355         not check for things that C99 does not require, e.g., int8_t.  If
63356         a test isn't needed unless <stdint.h> isn't working, and is
63357         unlikely to be needed for any other reason, then don't do it
63358         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
63359         size_t, since we assume C89 freestanding at least.  Do not check
63360         for sig_atomic_t, wchar_t, or wint_t, since the code now does
63361         the right thing even if the types are not defined.  Instead use:
63362         (gl_STDINT_TYPE_PROPERTIES): New macro.
63363         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
63364         testing whether <sys/types.h> clashes, as Autoconf does this for
63365         us now.  All uses removed.
63366         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
63367         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
63368         (gl_CHECK_TYPE_SAME):
63369         Remove; no longer needed.
63370         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
63371         exists, since we'll return 0 anyway in that case.
63372         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
63373
63374 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63375
63376         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
63377         possible collision with system files.
63378         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
63379         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
63380         WCHAR_MIN and WCHAR_MAX in this case.
63381         (<stddef.h>): Do not include; no longer needed.
63382         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
63383         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
63384         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
63385         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
63386         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
63387         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
63388         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
63389         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
63390         !defined(__c99))]: Include in this case too, since it's harmless
63391         now.
63392         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
63393         dangerous to do so.
63394         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
63395         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
63396         (_STDINT_MIN, _STDINT_MAX): New macros.
63397         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
63398         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
63399         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
63400         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
63401         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
63402         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
63403         macros, not typedefs; this simplifies things quite a bit.
63404         Use long int for all types narrower than int64_t.
63405         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
63406         Define in terms of long long int or int64_t or long int,
63407         not int64_t or int32_t.  This saves some compile-time testing.
63408         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
63409         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
63410         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
63411         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
63412         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
63413         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
63414         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
63415         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
63416         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
63417         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
63418         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63419         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63420         undef any previous version and define our own version, for
63421         simplicity and consistency with the new macros for types.
63422         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63423         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63424         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
63425         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
63426         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
63427         @WINT_T_SUFFIX@ to keep things simple here.
63428         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
63429         Simplify by assuming typical 8/16/32/64 host, since we're
63430         already doing that elsewhere anyway.
63431         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
63432         and assume long long int is 64 bits if available.  This
63433         speeds up 'configure'.
63434
63435 2006-07-01  Eric Blake  <ebb9@byu.net>
63436
63437         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
63438         Reported by Andreas Buening.
63439
63440 2006-07-01  Eric Blake  <ebb9@byu.net>
63441
63442         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
63443
63444 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63445
63446         * lib/getaddrinfo.c: fixed typo
63447
63448 2006-06-29  Jim Meyering  <jim@meyering.net>
63449
63450         * modules/strftime (Maintainer): Add my name, since with the
63451         FPRINTFTIME changes strftime.c has forked from glibc.
63452
63453 2006-06-29  Eric Blake  <ebb9@byu.net>
63454
63455         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
63456
63457 2006-06-29  Eric Blake  <ebb9@byu.net>
63458
63459         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
63460
63461 2006-06-29  Eric Blake  <ebb9@byu.net>
63462
63463         * lib/stat_.h: New file.
63464
63465 2006-06-29  Eric Blake  <ebb9@byu.net>
63466
63467         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
63468         unused static function.
63469
63470 2006-06-29  Eric Blake  <ebb9@byu.net>
63471
63472         * doc/functions.texi (Function Portability): Document missing lstat
63473         on mingw.
63474
63475 2006-06-29  Eric Blake  <ebb9@byu.net>
63476
63477         * MODULES.html.sh: Add sys_stat.
63478         * modules/sys_stat: New module.
63479         * modules/mkstemp (Depends-on): Add sys_stat.
63480
63481 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63482
63483         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
63484
63485 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63486
63487         * m4/c-bs-a.m4: Removed.
63488
63489 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63490
63491         * lib/strftime.c: Assume strftime() exists.
63492
63493 2006-06-29  Derek Price  <derek@ximbiot.com>
63494
63495         * modules/c-bs-a: Removed - \a is C89.
63496         * MODULES.html.sh: Remove c-bs-a.
63497
63498 2006-06-29  Bruno Haible  <bruno@clisp.org>
63499
63500         * modules/wcwidth (License): Change to LGPL.
63501
63502 2006-06-28  Simon Josefsson  <jas@extundo.com>
63503
63504         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
63505         on _WIN32.
63506
63507         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
63508         getnameinfo.
63509
63510 2006-06-28  Simon Josefsson  <jas@extundo.com>
63511
63512         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
63513
63514 2006-06-28  Simon Josefsson  <jas@extundo.com>
63515
63516         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
63517         functions there.  It will succeed on Windows XP, but on Windows
63518         2000 and (presumably) earlier, it will fail, and use the internal
63519         re-implementation.
63520         (use_win32_p): New function.
63521         (getaddrinfo): Use strtoul on servname, to support numeric ports.
63522         Support AI_NUMERICSERV to disable getservbyname.
63523         (getnameinfo): New function, only supports
63524         NI_NUMERICHOST|NI_NUMERICSERV for now.
63525
63526         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
63527         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
63528         getnameinfo.
63529
63530 2006-06-28  Eric Blake  <ebb9@byu.net>
63531
63532         * modules/wcwidth: New file.
63533         * modules/mbchar (Depends-on): Add wcwidth.
63534         * modules/mbswidth (Depends-on): Add wcwidth.
63535         * MODULES.html.sh: Add wcwidth.
63536
63537 2006-06-28  Eric Blake  <ebb9@byu.net>
63538
63539         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
63540         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
63541
63542 2006-06-28  Eric Blake  <ebb9@byu.net>
63543
63544         * lib/xvasprintf.h: Fix comments.
63545
63546 2006-06-28  Eric Blake  <ebb9@byu.net>
63547
63548         * lib/mbchar.h (wcwidth): Include wcwidth.h.
63549         * lib/mbswidth.c (wcwidth): Move from here...
63550         * lib/wcwidth.h: ...to this new file.
63551
63552 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63553
63554         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
63555
63556         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
63557         it's obsolete.
63558         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
63559
63560 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63561
63562         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
63563         Autoconf 2.60 says this stuff was obsolete.
63564
63565 2006-06-28  Bruno Haible  <bruno@clisp.org>
63566
63567         * modules/wcwidth (Files): Add m4/wchar_t.m4.
63568
63569 2006-06-28  Bruno Haible  <bruno@clisp.org>
63570
63571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
63572         gt_TYPE_WCHAR_T.
63573
63574 2006-06-28  Bruno Haible  <bruno@clisp.org>
63575
63576         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
63577         declaration for wcwidth.
63578         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
63579
63580 2006-06-28  Bruno Haible  <bruno@clisp.org>
63581
63582         * lib/mkdtemp.c [MINGW]: Include <io.h>.
63583         (mkdir): Define using _mkdir.
63584
63585 2006-06-28  Bruno Haible  <bruno@clisp.org>
63586
63587         * lib/getaddrinfo.h: Fix POSIX URL.
63588         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
63589         _WIN32.
63590         (use_win32_p): Make static.
63591         (getaddrinfo): Reject service name if it is empty or does not consist
63592         solely of decimal digits, or if its value is > 65535.
63593         (getnameinfo): Remove useless casts.
63594
63595 2006-06-27  Simon Josefsson  <jas@extundo.com>
63596
63597         * modules/sys_select: New file, suggested by Bruno Haible, Paul
63598         Eggert and Martin Lambers.
63599
63600 2006-06-27  Simon Josefsson  <jas@extundo.com>
63601
63602         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
63603         Eggert and Martin Lambers.
63604
63605 2006-06-27  Bruno Haible  <bruno@clisp.org>
63606
63607         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
63608         result to 0, not to empty.
63609         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
63610
63611 2006-06-27  Bruno Haible  <bruno@clisp.org>
63612
63613         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
63614
63615 2006-06-26  Simon Josefsson  <jas@extundo.com>
63616
63617         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
63618         present.
63619
63620 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
63621
63622         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
63623         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
63624         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
63625
63626 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
63627
63628         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
63629
63630 2006-06-26  Bruno Haible  <bruno@clisp.org>
63631
63632         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
63633
63634 2006-06-26  Bruno Haible  <bruno@clisp.org>
63635
63636         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
63637
63638 2006-06-26  Bruno Haible  <bruno@clisp.org>
63639
63640         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
63641         SGI C compiler in pre-C99 mode.
63642         Suggested by Mark D. Baushke and Larry Jones.
63643
63644 2006-06-26  Bruno Haible  <bruno@clisp.org>
63645
63646         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
63647         WCHAR_MAX.
63648         Reported by Mark D. Baushke and Larry Jones.
63649
63650 2006-06-26  Bruno Haible  <bruno@clisp.org>
63651
63652         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
63653         in pre-C99 mode.
63654         Suggested by Mark D. Baushke and Larry Jones.
63655
63656 2006-06-23  Simon Josefsson  <jas@extundo.com>
63657             Bruno Haible  <bruno@clisp.org>
63658
63659         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
63660         Emit mostlyclean-local rule.
63661         (func_emit_tests_Makefile_am): Likewise.
63662         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
63663
63664 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
63665
63666         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
63667
63668 2006-06-23  Bruno Haible  <bruno@clisp.org>
63669
63670         * tests/test-stdint.c: Update to match ISO C 99 Technical
63671         Corrigendum 1.
63672
63673 2006-06-23  Bruno Haible  <bruno@clisp.org>
63674
63675         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
63676
63677 2006-06-23  Bruno Haible  <bruno@clisp.org>
63678
63679         * lib/stdint_.h: Treat IRIX like OpenBSD.
63680
63681 2006-06-23  Bruno Haible  <bruno@clisp.org>
63682
63683         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
63684         ISO C 99 Technical Corrigendum 1.
63685
63686 2006-06-22  Simon Josefsson  <jas@extundo.com>
63687
63688         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
63689         MinGW.
63690
63691 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63692
63693         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
63694         needed.  Some compiler complained about some of them.  Problem reported
63695         by Larry Jones in
63696         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
63697
63698 2006-06-21  Simon Josefsson  <jas@extundo.com>
63699
63700         * tests/test-getaddrinfo.c: New file.
63701
63702         * modules/getaddrinfo-tests: New file.
63703
63704         * MODULES.html.sh: Add inet_pton.
63705
63706         * modules/inet_pton: New file.
63707
63708 2006-06-21  Simon Josefsson  <jas@extundo.com>
63709
63710         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
63711         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
63712         of using the (limited) gnulib implementation on Windows XP.
63713
63714         * m4/inet_pton.m4: New file.
63715
63716 2006-06-21  Simon Josefsson  <jas@extundo.com>
63717
63718         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
63719         variable.
63720
63721         * lib/socket_.h: Don't define WINVER.
63722
63723         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
63724         slightly modified to work in gnulib.
63725
63726 2006-06-21  Simon Josefsson  <jas@extundo.com>
63727
63728         * doc/gnulib.texi (Windows sockets): Add.
63729
63730 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63731
63732         * lib/read-file.c (fread_file): Start with buffer allocation of
63733         0 bytes rather than 1 byte; this simplifies the code.
63734         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
63735         code to free buffer and save/restore errno.
63736         (internal_read_file): Remove unused local.
63737
63738 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63739
63740         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
63741         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
63742         Problem reported by Denis Excoffier in
63743         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
63744
63745 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63746
63747         * modules/sys_socket, modules/socklen: Include sys/types since
63748         FreeBSD 4.x's sys/socket.h needs it.
63749
63750 2006-06-19  Simon Josefsson  <jas@extundo.com>
63751
63752         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
63753
63754 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63755
63756         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
63757
63758 2006-06-19  Bruno Haible  <bruno@clisp.org>
63759
63760         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
63761         and FULL_PATH_INTTYPES_H in angle brackets.
63762         Reported by Mark D. Baushke <mdb@gnu.org>.
63763
63764 2006-06-17  Eric Blake  <ebb9@byu.net>
63765
63766         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
63767         errno.
63768
63769 2006-06-17  Bruno Haible  <bruno@clisp.org>
63770
63771         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
63772         <sys/inttypes.h>.
63773
63774 2006-06-17  Bruno Haible  <bruno@clisp.org>
63775
63776         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
63777         whether errno is declared. Assume <errno.h> declares errno.
63778
63779 2006-06-17  Bruno Haible  <bruno@clisp.org>
63780
63781         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
63782
63783 2006-06-17  Bruno Haible  <bruno@clisp.org>
63784
63785         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
63786         problem on Solaris 2.5.1.
63787
63788 2006-06-16  Eric Blake  <ebb9@byu.net>
63789
63790         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
63791         * lib/unicodeio.c [!defined errno]: Likewise.
63792         * lib/strtol.c [!defined errno]: Likewise.
63793         * lib/strtod.c [!defined errno]: Likewise.
63794
63795 2006-06-15  Eric Blake  <ebb9@byu.net>
63796
63797         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
63798
63799 2006-06-15  Eric Blake  <ebb9@byu.net>
63800
63801         * config/srclist.txt (ssize_t.m4): Lose sync.
63802
63803 2006-06-15  Bruno Haible  <bruno@clisp.org>
63804
63805         * modules/stdint (Files): Include m4/full-header-path.m4,
63806         m4/size_max.m4, m4/wchar_t.m4.
63807         (Makefile.am): Many more substitutions.
63808         * modules/stdint-tests: New file.
63809         * tests/test-stdint.c: New file.
63810
63811 2006-06-15  Bruno Haible  <bruno@clisp.org>
63812
63813         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
63814         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
63815         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
63816         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
63817         gl_CHECK_TYPE_SAME): New macros.
63818
63819 2006-06-15  Bruno Haible  <bruno@clisp.org>
63820
63821         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
63822
63823 2006-06-15  Bruno Haible  <bruno@clisp.org>
63824
63825         * lib/stdint_.h: Rewritten to be fully auto-configured.
63826         Fixes bug on HP-UX/IA64.
63827
63828 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
63829
63830         * lib/getdate.y (__attribute__): Don't define if already defined.
63831         Problem reported by Larry Jones.
63832         * lib/utimens.c (__attribute__): Likewise.
63833
63834 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
63835
63836         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
63837         reported by Andreas Schwab.
63838
63839 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63840             Bruno Haible  <bruno@clisp.org>
63841
63842         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
63843         check for the declaration of strnlen and a run test that exposes the
63844         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
63845         rpl_strndup.
63846
63847 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63848             Bruno Haible  <bruno@clisp.org>
63849
63850         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
63851
63852 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63853
63854         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
63855         compile test, for Tru64 4.0D.
63856
63857 2006-05-28  Karl Berry  <karl@gnu.org>
63858
63859         * config/srclist.txt (printf-args.c): lose sync.
63860
63861 2006-05-26  Martin Lambers  <marlam@marlam.de>
63862
63863         * lib/getpass.c: Updates the test for the native W32 API, and adds
63864         missing includes, thus fixing compilation warnings.
63865
63866 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63867
63868         * lib/exclude.c (exclude_fnmatch): New function.
63869         (excluded_file_name): Call exclude_fnmatch.
63870         * lib/exclude.h (excluded_file_name): New prototype
63871
63872 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
63873
63874         * lib/tempname.c (small_open, large_open): New macros.
63875         (__open, __open64) [!_LIBC]: Remove.
63876         (__gen_tempname): Use small_open and large_open instead of __open
63877         and __open64.  This fixes a portability bug on HP-UX 11.11i
63878         reported by Simon Wing-Tang in
63879         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
63880
63881 2006-05-24  Bruno Haible  <bruno@clisp.org>
63882
63883         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
63884         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
63885         Reported by Thorsten Maerz <torte@netztorte.de> via
63886         Aaron Stone <aaron@serendipity.cx>.
63887
63888 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63889
63890         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
63891         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
63892         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
63893         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
63894         not really conditional on the cache.
63895         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
63896
63897 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63898
63899         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
63900         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
63901         (my_usleep): Don't mishandle maximum value.
63902
63903 2006-05-19  Jim Meyering  <jim@meyering.net>
63904
63905         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
63906
63907 2006-05-17  Bruno Haible  <bruno@clisp.org>
63908
63909         Cygwin portability.
63910         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
63911
63912 2006-05-17  Bruno Haible  <bruno@clisp.org>
63913
63914         * lib/stdint_.h: Fix recognition of Cygwin.
63915
63916 2006-05-15  Bruno Haible  <bruno@clisp.org>
63917
63918         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
63919         on libtool patch by Ralf Wildenhues.
63920
63921 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63922
63923         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
63924         test for C99 conformance; (bool) 0.5 is an integer constant
63925         expression, but (bool) -0.5 is not.  Problem reported by Fedor
63926         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
63927
63928 2006-05-11  Simon Josefsson  <jas@extundo.com>
63929
63930         * m4/xvasprintf.m4: Fix obvious typo.
63931
63932 2006-05-11  Jim Meyering  <jim@meyering.net>
63933
63934         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
63935         James Lemley.
63936
63937 2006-05-10  Simon Josefsson  <jas@extundo.com>
63938
63939         * lib/md4.c: Typo fix, update copyright years.
63940         (K1, K2): Don't use L because it turn computations into 64-bit on
63941         64-bit platforms.
63942
63943 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63944
63945         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
63946         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
63947         unwanted sign propagation, e.g., on hosts with 64-bit int.
63948         There still are some problems with reeelly weird theoretical hosts
63949         (e.g., 33-bit int) but it's not worth worrying about now.
63950         * lib/sha1.c (rol): Likewise.
63951         (K1, K2, K3, K4): Remove unnecessary L suffix.
63952
63953 2006-05-10  Bruno Haible  <bruno@clisp.org>
63954
63955         * lib/des.c: Cast to avoid warnings.
63956
63957 2006-05-09  Bruno Haible  <bruno@clisp.org>
63958
63959         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
63960         (Depends-on): Depend also on xsize, stdarg.
63961         (configure.ac): Add gl_XVASPRINTF.
63962
63963 2006-05-09  Bruno Haible  <bruno@clisp.org>
63964
63965         * m4/xvasprintf.m4: New file.
63966
63967 2006-05-09  Bruno Haible  <bruno@clisp.org>
63968
63969         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
63970         (EOVERFLOW): Define fallback value.
63971         (xstrcat): New function.
63972         (xvasprintf): Recognize the special case of a string concatenation.
63973
63974 2006-05-08  Eric Blake  <ebb9@byu.net>
63975
63976         * gnulib-tool (func_version): Base copyright year on CVS date.
63977         (func_emit_copyright_notice): New function.
63978         (func_emit_lib_Makefile_am): Use it.
63979         (func_emit_tests_Makefile_am): Likewise.
63980         (func_import): Likewise.
63981
63982 2006-05-08  Bruno Haible  <bruno@clisp.org>
63983
63984         * modules/stdarg: New file.
63985         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
63986
63987 2006-05-08  Bruno Haible  <bruno@clisp.org>
63988
63989         * m4/stdarg.m4: New file, from GNU gettext.
63990
63991 2006-05-08  Bruno Haible  <bruno@clisp.org>
63992
63993         * config/srclist.txt (build-aux/config.rpath): different from latest
63994         release.
63995
63996 2006-05-08  Bruno Haible  <bruno@clisp.org>
63997
63998         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
63999
64000 2006-05-05  Jim Meyering  <jim@meyering.net>
64001
64002         * m4/warning.m4: New file, derived from bison's file by the same name.
64003
64004 2006-05-03  Bruno Haible  <bruno@clisp.org>
64005
64006         * lib/stdint_.h: Shorter URL.
64007         * lib/inttypes.h: Likewise.
64008
64009 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64010
64011         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
64012
64013 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64014
64015         * lib/verify.h: Document the internals better.  Most of this change
64016         was written by Bruno Haible.
64017
64018 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64019
64020         * doc/verify.texi: New file, partly based on a proposal by
64021         Bruno Haible.
64022
64023 2006-05-02  Bruno Haible  <bruno@clisp.org>
64024
64025         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
64026         test from here...
64027         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
64028
64029 2006-04-29  Bruno Haible  <bruno@clisp.org>
64030
64031         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
64032         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
64033
64034 2006-04-29  Bruno Haible  <bruno@clisp.org>
64035
64036         * gnulib-tool: Make --update option actually work.
64037
64038 2006-04-29  Bruno Haible  <bruno@clisp.org>
64039
64040         * doc/gcd.texi: New file.
64041         * doc/gnulib.texi: Include it.
64042
64043 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
64044
64045         * lib/getdate.y (get_date): When adding relative date, start with the
64046         initial time, not with the result of the first mktime call.
64047
64048 2006-04-25  Bruno Haible  <bruno@clisp.org>
64049
64050         * gnulib-tool (func_import): Output the include directives in three
64051         blocks, sorted separately.
64052         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64053
64054 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64055
64056         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
64057         to define main with arguments, for C++.  Reported by Eric Blake.
64058         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
64059         Prefer 'int main ()' to 'int main (void)', for C++.
64060         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
64061         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
64062         for 'main', for C99 and C++.
64063
64064 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64065
64066         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
64067         Don't assume that exit status -1 is valid.
64068         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64069         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
64070         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64071         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
64072         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
64073         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
64074         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
64075         functions can be used without declaring them, or that you can
64076         exit with status -1.
64077         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64078
64079 2006-04-24  Karl Berry  <karl@gnu.org>
64080
64081         * config/srclist.txt (longdouble.m4): sync lost.
64082
64083 2006-04-24  Eric Blake  <ebb9@byu.net>
64084
64085         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
64086
64087 2006-04-24  Bruno Haible  <bruno@clisp.org>
64088
64089         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
64090         poll() implementation in AIX.
64091         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64092
64093 2006-04-24  Bruno Haible  <bruno@clisp.org>
64094
64095         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
64096         assigned exactly once.
64097
64098 2006-04-23  Claudio Fontana  <claudio@gnu.org>
64099             Bruno Haible  <bruno@clisp.org>
64100
64101         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
64102         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
64103         for AM_CPPFLAGS.
64104
64105 2006-04-23  Bruno Haible  <bruno@clisp.org>
64106
64107         * modules/copy-file: Depend on unistd.
64108         * modules/execute: Likewise.
64109         * modules/fatal-signal: Likewise.
64110         * modules/findprog: Likewise.
64111         * modules/mkdtemp : Likewise.
64112         * modules/pipe: Likewise.
64113         * modules/wait-process: Likewise.
64114
64115 2006-04-23  Bruno Haible  <bruno@clisp.org>
64116
64117         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
64118         condition was already detected.
64119         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64120
64121 2006-04-23  Bruno Haible  <bruno@clisp.org>
64122
64123         * lib/copy-file.c: Include <unistd.h> unconditionally.
64124         * lib/execute.c: Likewise.
64125         * lib/fatal-signal.c: Likewise.
64126         * lib/findprog.c: Likewise.
64127         * lib/mkdtemp.c: Likewise.
64128         * lib/pipe.h: Likewise.
64129         * lib/pipe.c: Likewise.
64130         * lib/wait-process.h: Likewise.
64131
64132 2006-04-23  Bruno Haible  <bruno@clisp.org>
64133
64134         * gnulib-tool (func_usage): Fix --import description. Document
64135         --update.
64136         (func_import): Create temporary file in a temporary directory, if
64137         --dry-run is specified. Silence errors from 'grep' when there are no
64138         m4 files in $m4dir.
64139         (func_create_testdir): Silence errors from 'grep' when there are no
64140         m4 files in $m4dir.
64141         Reported by Karl Berry <karl@freefriends.org>.
64142
64143 2006-04-20  Bruno Haible  <bruno@clisp.org>
64144
64145         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
64146         one argument, so that the code will be portable to Autoconf 2.60.
64147         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
64148         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64149         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
64150
64151 2006-04-19  Derek Price  <derek@ximbiot.com>
64152             Eric Blake  <ebb9@byu.net>
64153
64154         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
64155         rather than "/full/path.h".  Update comment to match.  Shorten &
64156         generalize m4_translit call via AS_TR_CPP.
64157
64158 2006-04-19  Derek Price  <derek@ximbiot.com>
64159             Eric Blake  <ebb9@byu.net>
64160
64161         * lib/inttypes.h: Correct grammar in comment.
64162
64163 2006-04-18  Derek Price  <derek@ximbiot.com>
64164             Paul Eggert  <eggert@cs.ucla.edu>
64165
64166         * modules/inttypes: New file.
64167         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
64168
64169 2006-04-18  Derek Price  <derek@ximbiot.com>
64170             Paul Eggert  <eggert@cs.ucla.edu>
64171
64172         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
64173         New files.
64174
64175 2006-04-18  Derek Price  <derek@ximbiot.com>
64176             Paul Eggert  <eggert@cs.ucla.edu>
64177
64178         * lib/inttypes.h: New file.
64179         * lib/strtoimax.c: Assume <inttypes.h>.
64180
64181 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
64182
64183         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
64184         isn't mounted.  Problem reported by Kir Kolyshkin.
64185
64186 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64187
64188         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
64189         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
64190         Derek R. Price.
64191         * lib/regex.h (RE_DUP_MAX): Update comment to match current
64192         implementation.
64193
64194 2006-04-12  Eric Blake  <ebb9@byu.net>
64195
64196         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
64197         is now done automatically by the corresponding Autoconf macro.
64198
64199 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
64200
64201         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
64202         time_r.h.
64203
64204 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64205
64206         Merge regex changes from libc, removing some of our
64207         POSIX-conformance changes that were rejected and redoing them in a
64208         less-intrusive way.
64209
64210         * lib/regcomp.c (re_compile_internal, init_dfa):
64211         Length arg is now size_t, not Idx.  All uses changed.
64212         (peek_token): Forward decl now says internal_function.
64213         (__re_error_msgid, __re_error_msgid_idx):
64214         Now static rather than extern with attribute_hidden.
64215         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
64216         For some reason libc prefers K&R style defns for external functions.
64217         (regerror) [!defined _LIBC]: Likewise.
64218         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
64219         (seek_collating_symbol_entry, lookup_collation_sequence_value):
64220         (build_range_exp, build_collating_symbol):
64221         Use K&R-style defn.
64222         (re_compile_fastmap): Use '\0' to memset, not 0.
64223         (utf8_sb_map): Make the calculations more obvious.
64224         (init_dfa, parse_bracket_exp, build_charclass_op):
64225         Call calloc and cast result, as glibc does.
64226         (init_word_char, fetch_token, peek_token, peek_token_bracket):
64227         (build_range_exp, build_collating_symbol):
64228         Now internal functions.
64229
64230         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
64231
64232         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
64233         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
64234         Don't depend on VMS; depend on __VMS instead, for POSIX
64235         namespace cleanness.
64236         (regoff_t): Define to ssize_t, not long int.
64237
64238         Remove the REG_ macros named below.  Instead, make the old names
64239         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
64240         __USE_GNU_REGEX.
64241         (REG_BACKSLASH_ESCAPE_IN_LISTS):
64242         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
64243         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
64244         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
64245         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
64246         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
64247         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
64248         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
64249         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
64250         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
64251         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
64252         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
64253         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
64254         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
64255         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
64256         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
64257         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
64258         (REG_NREGS):
64259         Remove.  All uses replaced by the old RE_* names.
64260         (RE_BACKSLASH_ESCAPE_IN_LISTS):
64261         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
64262         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
64263         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
64264         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
64265         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
64266         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
64267         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
64268         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
64269         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
64270         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
64271         Don't bother having these macros be independent of each others'
64272         values, since they no longer exist in the POSIX name space.
64273
64274         Rename the following member names back to their old names,
64275         unless !__USE_GNU_REGEX.  All uses changed back.
64276         (buffer): Renamed from re_buffer.
64277         (allocated): Renamed from re_allocated.
64278         (used): Renamed from re_used.
64279         (syntax): Renamed from re_syntax.
64280         (fastmap): Renamed from re_fastmap.
64281         (translate): Renamed from re_translate.
64282         (can_be_null): Renamed from re_can_be_null.
64283         (regs_allocated): Renamed from re_regs_allocated.
64284         (fastmap_accurate): Renamed from re_fastmap_accurate.
64285         (no_sub): Renamed from re_no_sub.
64286         (not_bol): Renamed from re_not_bol.
64287         (not_eol): Renamed from re_not_eol.
64288         (newline_anchor): Renamed from re_newline_anchor.
64289         (num_regs): Renamed from rm_num_regs.
64290         (start): Renamed from rm_start.
64291         (end): Renamed from rm_end.
64292
64293         (free_state): Move up a bit.
64294
64295         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
64296         #define to be empty.
64297         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
64298         when that is what is intended.
64299         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
64300         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
64301         (MAX): New macro.
64302         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
64303         All uses changed back to re_malloc, etc.  It's now the caller's
64304         responsibility to check for overflow; all callers changed.
64305         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
64306         (re_x2nrealloc): Remove.
64307         (free_state): Remove decl.
64308
64309         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
64310         (re_set_registers, re_exec):
64311         Use K&R-style defn.
64312
64313         2006-01-31  Roland McGrath  <roland@redhat.com>
64314
64315         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
64316         Reported by Mike Frysinger <vapier@gentoo.org>.
64317
64318         2006-01-15  Andreas Jaeger  <aj@suse.de>
64319
64320         [BZ #1950]
64321         * lib/regex_internal.c (re_string_reconstruct): Adjust for
64322         build_wcs_upper_buffer change.
64323         (build_wcs_upper_buffer): Change return type.
64324
64325         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
64326
64327         * lib/regex_internal.h: Include <stdint.h> if available.
64328
64329         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
64330
64331         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
64332
64333         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64334
64335         * lib/regcomp.c: Adjust for changed secondary hash function.
64336
64337         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
64338
64339         * lib/regex.h: Pretty printing.
64340         Clean up namespace a bit.
64341
64342         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
64343
64344         * lib/regexec.c (update_cur_sifted_state, check_arrival,
64345         check_arrival_add_next_nodes): Avoid using uninitialized variable.
64346
64347         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64348                     Ulrich Drepper  <drepper@redhat.com>
64349
64350         [BZ #1302]
64351         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
64352         changed.
64353         (bitset_word_t): Renamed from bitset_word.  All uses changed.
64354
64355         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
64356
64357         [BZ #281]
64358         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
64359         * lib/regcomp.c: Remove unnecessary uses of
64360         unsigned RE_TRANSLATE_TYPE.
64361         * lib/regex_internal.h: Likewise.
64362         * lib/regex_internal.c: Likewise.
64363         * lib/regexec.c: Likewise.
64364         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
64365
64366         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
64367
64368         * lib/regexec.c (find_recover_state): Remove unnecessary
64369         initialization.
64370         (transit_state_bkref): Make DFA a const pointer.
64371         (get_subexp): Likewise.
64372         (check_arrival): Likewise.
64373         (update_cur_sifted_state): Likewise.
64374         (re_search_internal): Likewise.
64375         (prune_impossible_nodes): Likewise.
64376         (acquire_init_state_context): Likewise.
64377         (proceed_next_node): Likewise.
64378         (set_regs): Likewise.
64379         (free_fail_stack_return): Likewise.
64380         (check_arrival_expand_ecl): Mark DFA parameter as const.
64381         (check_arrival_expand_ecl_sub): Likewise.
64382         (check_subexp_limits): Likewise.
64383         (sub_epsilon_src_nodes):  Likewise.
64384         (add_epsilon_src_nodes):  Likewise.
64385         (merge_state_array): Likewise.
64386         (update_regs): Likewise.
64387         (build_trtable): Likewise.
64388         (sift_states_backward): Mark MCTX parameter as const.
64389         (build_sifted_states): Likewise.
64390         (update_cur_sifted_state): Likewise.
64391         (sift_states_mkref): Likewise.
64392         (check_arrival_expand_ecl): Mark eclosure as const.
64393         (check_dst_limits_calc_pos_1): Likewise.
64394         * lib/regex_internal.h (re_match_context_t): Make dfa a const
64395         pointer.
64396
64397         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
64398
64399         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
64400         (transit_state_sb): Likewise.
64401         (transit_state_mb): Likewise.
64402         (sift_states_iter_mb): Likewise.
64403         (check_arrival_add_next_nodes): Likewise.
64404         (check_node_accept_bytes): Change first parameter to pointer-to-const.
64405         [_LIBC] (re_search_2_stub): Use mempcpy.
64406
64407         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
64408         mbrtowc for very simple UTF-8 case.
64409
64410         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
64411         a pointer-to-const.
64412         (re_acquire_state_context): Likewise.
64413         * lib/regex_internal.h: Adjust prototypes.
64414
64415         * lib/regex.c: Prevent using C++ compilers.
64416
64417         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
64418         (re_acquire_state_context): Likewise.
64419
64420 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64421
64422         * modules/regex (Depends-on): Add ssize_t.
64423
64424 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64425
64426         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
64427         translation table.
64428
64429 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64430
64431         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
64432
64433 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
64434             Bruno Haible  <bruno@clisp.org>
64435
64436         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
64437         <sys/types.h> and <inttypes.h>.
64438
64439 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64440
64441         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
64442         `__error_t_defined', so argp.h will not typedef the former.
64443
64444 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
64445
64446         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
64447         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
64448         glibc names.  Even if glibc is changed to conform to POSIX, the
64449         traditional names will be available anyway, since regex depends on
64450         the extensions module.  Also, fix a longstanding typo in the
64451         implementation of Spencer ERE test #75 from grep 2.3.  Problems
64452         reported by Emanuele Giaquinta.  Also, change sense of cached
64453         variable, so that the message makes sense.
64454
64455 2006-03-24  Simon Josefsson  <jas@extundo.com>
64456
64457         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
64458         including some doc fixes.
64459         (base64_encode_alloc): Fix +1 bug on allocation failures.
64460
64461 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64462
64463         * lib/base64.c (base64_encode): Do not read past end of array with
64464         unsanitized input on systems with CHAR_BIT > 8.
64465
64466 2006-03-24  Eric Blake  <ebb9@byu.net>
64467
64468         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
64469
64470 2006-03-22  Karl Berry  <karl@gnu.org>
64471
64472         * config/srclist.txt (*setenv.[ch]): get from coreutils.
64473         * config/srclistvars.sh (COREUTILS): new var.
64474
64475 2006-03-17  Jim Meyering  <jim@meyering.net>
64476
64477         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
64478         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
64479
64480 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64481
64482         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
64483         no longer needs it.  Instead, check that regoff_t is as least
64484         as wide as ptrdiff_t.
64485
64486         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
64487         so that our regex.h stays compatible with the installed regex.
64488         This is helpful for installers who configure --without-included-regex.
64489         Problem reported by Emanuele Giaquinta.
64490
64491 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64492
64493         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
64494         Typedef to long int, not to off_, as POSIX will likely change
64495         in that direction.
64496
64497 2006-03-15  Eric Blake  <ebb9@byu.net>
64498
64499         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
64500
64501 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64502
64503         * lib/argp-help.c (validate_uparams): Fix typo
64504         * lib/argp-parse.c (argp_default_options): Consistently begin help
64505         messages with a lowercase letter.
64506
64507 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
64508
64509         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
64510         overrun buffers and shouldn't be used (much as gets shouldn't be
64511         used).
64512         * lib/time_r.c (asctime_r, ctime_r): Likewise.
64513
64514 2006-03-08  Simon Josefsson  <jas@extundo.com>
64515
64516         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
64517         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64518
64519 2006-03-08  Simon Josefsson  <jas@extundo.com>
64520
64521         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
64522         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64523
64524 2006-03-08  Simon Josefsson  <jas@extundo.com>
64525
64526         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
64527         signal that configure disabled the device.
64528
64529 2006-03-08  Simon Josefsson  <jas@extundo.com>
64530
64531         * build-aux/maint.mk: Fix refresh-po, to handle no translated
64532         languages.
64533
64534 2006-03-07  Simon Josefsson  <jas@extundo.com>
64535
64536         * modules/getopt (Depends-on): Add unistd.
64537
64538         * modules/unistd: New file.
64539
64540 2006-03-07  Simon Josefsson  <jas@extundo.com>
64541
64542         * modules/gc-random: New file.
64543
64544 2006-03-07  Simon Josefsson  <jas@extundo.com>
64545
64546         * m4/unistd_h.m4: New file.
64547
64548 2006-03-07  Simon Josefsson  <jas@extundo.com>
64549
64550         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
64551         test to be side-effect free by storing the result in the cache
64552         variable gl_cv_lib_readline, and moving the assignment of
64553         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
64554         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64555
64556 2006-03-07  Simon Josefsson  <jas@extundo.com>
64557
64558         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
64559         error on missing devices (the functions will return an error).
64560
64561         * m4/gc.m4: Move random stuff to gc-random.m4
64562
64563 2006-03-07  Simon Josefsson  <jas@extundo.com>
64564
64565         * lib/unistd_.h: New file.
64566
64567 2006-03-07  Simon Josefsson  <jas@extundo.com>
64568
64569         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
64570
64571 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64572
64573         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
64574         Problem reported by Juan Manuel Guerrero.
64575
64576 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64577
64578         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
64579         the unistd module.
64580         * lib/getlogin_r.c: Likewise.
64581         * lib/getlogin_r.h: Likewise.
64582         * lib/glob.c: Likewise.
64583         * lib/pagealign_alloc.c: Likewise.
64584         * lib/unistd_.h: Remove; no longer needed.
64585
64586 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64587
64588         * MODULES.html.sh (Support for systems lacking POSIX:2001):
64589         Add unistd.
64590         * modules/c-stack (Depends-on): Add unistd.
64591         * modules/getlogin_r: Likewise.
64592         * modules/glob: Likewise.
64593         * modules/pagealign_alloc: Likewise.
64594         * modules/unistd (Files): Remove lib/unistd_.h.
64595         (EXTRA_DIST): Remove.
64596         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
64597         need unistd_.h.
64598         (MOSTLYCLEANFILES): Remove unistd.h-t.
64599
64600 2006-03-03  Simon Josefsson  <jas@extundo.com>
64601
64602         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
64603
64604 2006-03-03  Simon Josefsson  <jas@extundo.com>
64605
64606         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
64607         libidn and bison.
64608
64609 2006-03-03  Simon Josefsson  <jas@extundo.com>
64610
64611         * build-aux/maint.mk: Add indent target.
64612
64613 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
64614
64615         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
64616         our replacement poll.h in any case, to avoid a differing
64617         declaration from a system header.  Seen on AIX.
64618
64619 2006-03-01  Simon Josefsson  <jas@extundo.com>
64620
64621         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
64622         <kasal@ucw.cz>.
64623
64624 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64625
64626         * modules/gettime (Depends-on): Add extensions module.
64627         * modules/nanosleep (Depends-on): Likewise.
64628         * modules/settime (Depends-on): Likewise.
64629
64630 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64631
64632         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
64633         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
64634         pedantically.
64635         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64636         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
64637
64638         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
64639         not "==".  Reported by Ralf Wildenhues.
64640
64641 2006-03-01  Karl Berry  <karl@gnu.org>
64642
64643         * doc/Copyright/request-*: new files, synced from gnuorg.
64644
64645 2006-03-01  Karl Berry  <karl@gnu.org>
64646
64647         * config/srclist.txt (Copyright/*): new entries.
64648
64649 2006-02-28  Simon Josefsson  <jas@extundo.com>
64650
64651         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
64652
64653 2006-02-27  Simon Josefsson  <jas@extundo.com>
64654
64655         * lib/base64.h: Indent #define's.  From Jim Meyering
64656         <jim@meyering.net>.
64657
64658 2006-02-27  Jim Meyering  <jim@meyering.net>
64659
64660         Revert the change of 2006-02-24, so these files can continue
64661         to be sync'd from gettext.
64662         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
64663         of `config.h'.
64664
64665 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64666
64667         * modules/intprops: New file.
64668         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64669         Add intprops.
64670         * modules/getloadavg (Files): Remove lib/intprops.h.
64671         (Depends-on): Add intprops.
64672         * modules/human: Likewise.
64673         * modules/inttostr: Likewise.
64674         * modules/openat: Likewise.
64675         * modules/sig2str: Likewise.
64676         * modules/userspec: Likewise.
64677         * modules/utimecmp: Likewise.
64678         * modules/xnanosleep: Likewise.
64679         * modules/xstrtol: Likewise.
64680
64681 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
64682
64683         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
64684         * modules/lock-tests (TESTS): Use $(EXEEXT).
64685         * modules/tls-tests: Likewise.
64686         * modules/argp-tests: Likewise.
64687         (check_PROGRAMS): New var, replacing...
64688         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
64689
64690 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64691
64692         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
64693         `config.h'.
64694
64695 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64696
64697         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
64698
64699 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64700
64701         Sync from coreutils.
64702         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
64703         gl_CHDIR_SAFER.
64704
64705 2006-02-22  Jim Meyering  <jim@meyering.net>
64706
64707         Sync from coreutils.
64708         * m4/chdir-safer.m4: New file.
64709
64710 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64711
64712         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
64713         AT_FDCWD exceeds INT_MAX.
64714         * lib/openat.h (AT_FDCWD): Likewise.
64715
64716 2006-02-17  Eric Blake  <address@hidden>
64717
64718         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
64719
64720 2006-02-16  Simon Josefsson  <jas@extundo.com>
64721
64722         * modules/getaddrinfo (Depends-on): Add sys_socket.
64723
64724 2006-02-15  Simon Josefsson  <jas@extundo.com>
64725
64726         * build-aux/maint.mk: Add dsyntax-check rule.
64727
64728 2006-02-15  Eric Blake  <ebb9@byu.net>
64729
64730         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
64731         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
64732         'present but cannot compile' warnings on cygwin.
64733         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
64734         use ws2tcpip.h if sys/socket.h works.
64735         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
64736         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
64737
64738 2006-02-14  Simon Josefsson  <jas@extundo.com>
64739
64740         * modules/maintainer-makefile (Files): Rename.
64741
64742         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
64743         and (the local) Makefile.cfg to maint-cfg.mk.
64744
64745         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
64746         to the latter.
64747
64748         * modules/maintainer-makefile: New module.
64749
64750         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
64751         severaly stripped to make it possible to build it up from scratch
64752         with reliable tests.
64753
64754         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
64755         fixes to permit overriding the default actions when configure and
64756         makefile are not available.
64757
64758 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64759
64760         Sync from coreutils.
64761         * modules/lstat (Depends-on): Don't depend on xalloc.
64762         (License): Change from GPL to LGPL, since this is now simply a
64763         replacement for a libc function.
64764
64765 2006-02-14  Jim Meyering  <jim@meyering.net>
64766
64767         Sync from coreutils.
64768
64769         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
64770         failure on deficient systems, and simplify gnulib lgpl dependencies.
64771         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
64772         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
64773
64774         * lib/xalloc-die.c: Remove unused definition of N_.
64775
64776 2006-02-14  Jim Meyering  <jim@meyering.net>
64777
64778         Sync from coreutils.
64779         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
64780         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
64781         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
64782         double-quote uses of that variable, to accommodate the rare case in
64783         which getmntent is available in none of the libraries checked.  This
64784         happens at least on FreeBSD 5.0.
64785
64786 2006-02-13  Simon Josefsson  <jas@extundo.com>
64787
64788         * gnulib-tool (Usage): Fix --import, from
64789         karl@freefriends.org (Karl Berry).
64790
64791 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64792
64793         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
64794
64795 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
64796
64797         * lib/argp-namefrob.h: Restore changes accidentally lost during the
64798         "autoupdate" on 2005-12-12.
64799
64800 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64801
64802         * modules/closeout (Depends-on): Remove atexit.
64803
64804 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64805
64806         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
64807         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
64808
64809 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64810
64811         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
64812         __EXTENSIONS__ if this causes compilation to fail.  Problem
64813         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
64814         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
64815
64816 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
64817
64818         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
64819         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
64820         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
64821         All uses changed.
64822
64823 2006-01-26  Simon Josefsson  <jas@extundo.com>
64824
64825         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
64826         prototype is visible on mingw32.
64827
64828         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
64829         for mingw32.
64830
64831         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
64832         mingw32).
64833
64834 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64835
64836         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
64837         attempt to open for write; this always fails, at least on POSIX
64838         hosts.  This reinstates the 2006-01-09 change, which was
64839         inadvertently removed.
64840
64841 2006-01-26  Bruno Haible  <bruno@clisp.org>
64842
64843         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
64844         Reported by Paul Eggert.
64845
64846 2006-01-26  Bruno Haible  <bruno@clisp.org>
64847             Paul Eggert  <eggert@cs.ucla.edu>
64848
64849         * lib/stdbool_.h (_Bool)
64850         [(! (defined __cplusplus || defined __BEOS__)
64851           && !defined __GNUC__
64852           && !(defined __HP_cc || defined __xlc__
64853                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
64854                || defined __sgi))]:
64855         #define to signed char in these cases too; this simplifies
64856         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
64857         etc., separately) and makes it more conservative.
64858
64859 2006-01-25  Simon Josefsson  <jas@extundo.com>
64860
64861         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
64862         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
64863         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
64864
64865 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64866
64867         * lib/argp-namefrob.h: Bugfix. Remove stray #
64868
64869 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
64870
64871         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
64872         so that we test the test.
64873         Check for yet another HP-UX cc bug involving *bool |= bool.
64874
64875 2006-01-25  Karl Berry  <karl@gnu.org>
64876
64877         * config/srclist.txt (vasnprintf.c): sync lost.
64878
64879 2006-01-25  Jim Meyering  <jim@meyering.net>
64880
64881         Sync from the stable (b5) branch of coreutils:
64882
64883         * lib/fts.c (fts_children): Don't let close() clobber errno from
64884         failed fchdir().
64885
64886         * lib/fts.c (fts_stat): When following a symlink-to-directory,
64887         don't necessarily interpret stat-fails+lstat-succeeds as indicating
64888         a dangling symlink.  That can also happen at least for ELOOP.
64889         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
64890         FYI, this bug predates the inclusion of fts.c in coreutils.
64891
64892         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
64893         in their own block, so pre-c99 compilers don't object.
64894
64895         Avoid the double-free (first in fts_read, second in fts_close) that
64896         would occur when an `active' directory is made inaccessible (e.g.,
64897         via chmod a-x) during a traversal.
64898         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64899         before returning.  Reproduce this failure by
64900         mkdir -p a/b; cd a; chmod a-x . b
64901         Reported by Stavros Passas.
64902
64903 2006-01-25  Jim Meyering  <jim@meyering.net>
64904
64905         * lib/fileblocks.c: Remove more useless parentheses.
64906         * lib/readutmp.h: Likewise.
64907
64908 2006-01-25  Bruno Haible  <bruno@clisp.org>
64909
64910         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
64911         warnings.
64912         Reported by Paul Eggert.
64913
64914 2006-01-25  Bruno Haible  <bruno@clisp.org>
64915
64916         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
64917         rid of a trap command. For Solaris sh.
64918         Reported by Mark D. Baushke <mdb@gnu.org>.
64919
64920 2006-01-24  Simon Josefsson  <jas@extundo.com>
64921
64922         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
64923         Bruno.
64924
64925 2006-01-24  Karl Berry  <karl@gnu.org>
64926
64927         * config/srclist.txt (argp-namefrob.h): sync lost.
64928
64929 2006-01-24  Jim Meyering  <jim@meyering.net>
64930
64931         * modules/openat (Files): Add lib/intprops.h.
64932         From Mark D. Baushke.
64933
64934 2006-01-24  Jim Meyering  <jim@meyering.net>
64935
64936         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
64937         Reported by Mark D. Baushke.
64938
64939 2006-01-24  Jim Meyering  <jim@meyering.net>
64940
64941         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
64942
64943 2006-01-24  Bruno Haible  <bruno@clisp.org>
64944
64945         * modules/strnlen (Maintainer): Change from glibc to all.
64946
64947 2006-01-24  Bruno Haible  <bruno@clisp.org>
64948
64949         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
64950         Patch by Paul Eggert.
64951
64952 2006-01-24  Bruno Haible  <bruno@clisp.org>
64953
64954         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
64955         already has it.
64956         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
64957         2005-11-26.
64958
64959         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
64960         'signed char' to avoid problems with the built-in _Bool type.
64961         Reported by Paul Eggert on 2005-11-26.
64962
64963 2006-01-24  Bruno Haible  <bruno@clisp.org>
64964
64965         * gnulib-tool (func_import): Avoid constructing complicated sed
64966         expressions inside backquote.
64967         Report and solution by Mark D. Baushke <mdb@gnu.org>.
64968
64969 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
64970
64971         These changes imported from libc.
64972         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
64973         test and two separate function calls.
64974         * lib/strndup.c (__strndup): Add libc_hidden_def.
64975
64976 2006-01-23  Simon Josefsson  <jas@extundo.com>
64977
64978         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
64979         Remove the test_*_SOURCES variable: automake infers it by default.
64980         * modules/tls-tests: Likewise.
64981
64982 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64983
64984         Work around porting bugs reported by Dieter in
64985         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
64986         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
64987         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
64988         Include "getopt.h" first, to check interface.
64989         (getenv): Declare only if defined HAVE_DECL_GETENV &&
64990         !HAVE_DECL_GETENV.
64991         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
64992         (__strndup): Revert to K&R-style function dfns, the glibc style.
64993         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
64994         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
64995         Include strnlen.h first, to get prototype properly.
64996         (strnlen): Renamed from __strnlen.
64997         Remove weak alias.
64998
64999 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65000
65001         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
65002
65003 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65004
65005         * config/srclist.txt: Adjust to reflect glibc reorganization.
65006         This affects only comments.
65007
65008 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65009
65010          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
65011          Reported by Bruce Korb <bkorb@gnu.org>.
65012
65013 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65014
65015         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
65016         to pacify gcc -Wswitch-default.
65017
65018 2006-01-22  Bruno Haible  <bruno@clisp.org>
65019
65020         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
65021         temporary buffer for sprintf, take into account the precision also
65022         for 'd', 'i', 'u', 'o', 'x', 'X'.
65023
65024 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65025
65026         * modules/argp-tests: New module
65027         * tests/test-argp.c: New file
65028         * tests/test-argp-2.sh: New file
65029
65030 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65031
65032         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
65033         (__argp_base_name): Removed
65034         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
65035         typo.
65036         (__argp_base_name): Provide macro definition or extern declaration
65037         depending on the configuration
65038
65039 2006-01-20  Simon Josefsson  <jas@extundo.com>
65040
65041         * modules/inet_ntop (Depends-on): Depend on sys_socket.
65042
65043 2006-01-20  Simon Josefsson  <jas@extundo.com>
65044
65045         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
65046
65047 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65048
65049         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
65050         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
65051         Suggested by Bruno Haible.
65052
65053 2006-01-20  Karl Berry  <karl@gnu.org>
65054
65055         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
65056         until changes propagate, I guess.
65057
65058 2006-01-19  Simon Josefsson  <jas@extundo.com>
65059
65060         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
65061
65062 2006-01-19  Simon Josefsson  <jas@extundo.com>
65063
65064         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
65065
65066 2006-01-19  Simon Josefsson  <jas@extundo.com>
65067
65068         * gnulib-tool: Set check_PROGRAMS.
65069
65070         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65071         modules/des-tests, modules/gc-arcfour-tests,
65072         modules/gc-arctwo-tests, modules/gc-des-tests,
65073         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65074         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65075         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65076         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65077         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65078         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
65079         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
65080         test_*_SOURCES.
65081
65082 2006-01-18  Simon Josefsson  <jas@extundo.com>
65083
65084         * modules/socklen (Depends-on): Depend on sys_socket.
65085
65086 2006-01-18  Simon Josefsson  <jas@extundo.com>
65087
65088         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65089         modules/des-tests, modules/gc-arcfour-tests,
65090         modules/gc-arctwo-tests, modules/gc-des-tests,
65091         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65092         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65093         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65094         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65095         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65096         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
65097         $(EXEEXT) to automake TESTS variable, for mingw32.
65098
65099 2006-01-17  Simon Josefsson  <jas@extundo.com>
65100
65101         * modules/socklen (Include): Need sys/socket.h.
65102
65103 2006-01-17  Bruno Haible  <bruno@clisp.org>
65104
65105         * modules/ssize_t (Include): Add <sys/types.h>.
65106
65107 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
65108
65109         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
65110         it's not portable and it doesn't work with cross-compiles.
65111         Problem reported by Bruno Haible.  Fix missing-$ typo in
65112         'test "gl_cv_ignore_unused_libraries" ...' that prevented
65113         -zignore from being used with Sun's C compiler.
65114
65115 2006-01-12  Simon Josefsson  <jas@extundo.com>
65116
65117         * lib/base64.c: Fix warning, reported by Bruno Haible
65118         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
65119
65120 2006-01-12  Bruno Haible  <bruno@clisp.org>
65121
65122         * modules/ldd: New file.
65123         * build-aux/ldd.sh.in: New file.
65124         * MODULES.html.sh (Support for building libraries and executables): Add
65125         ldd.
65126
65127 2006-01-12  Bruno Haible  <bruno@clisp.org>
65128
65129         * m4/ldd.m4: New file.
65130
65131 2006-01-12  Bruno Haible  <bruno@clisp.org>
65132
65133         * gnulib-tool (func_import, func_create_testdir): Don't go into an
65134         endless loop while replacing $auxdir with build-aux.
65135
65136 2006-01-11  Simon Josefsson  <jas@extundo.com>
65137
65138         * lib/stdint_.h (SIZE_MAX): Add missing (.
65139
65140 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
65141
65142         Sync from coreutils.
65143         * lib/md5.c: Fix commentary typos.
65144         (alignof, UNALIGNED_P): No need for a GCC-specific version.
65145         * lib/md5.h (__attribute__): Remove; unused.
65146         * lib/sha1.c: Fix commentary to match md5 better.
65147         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
65148         so that we don't need to worry about alignment.  All uses changed.
65149         This merges the 2005-10-28 md5 change into sha1.
65150
65151 2006-01-11  Jim Meyering  <jim@meyering.net>
65152
65153         Sync from coreutils.
65154         * lib/md5.c (OP): Fix spacing.
65155
65156 2006-01-11  Bruno Haible  <bruno@clisp.org>
65157
65158         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65159         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
65160         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
65161
65162 2006-01-11  Bruno Haible  <bruno@clisp.org>
65163
65164         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65165         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
65166         the "early" section as well.
65167
65168 2006-01-11  Bruno Haible  <bruno@clisp.org>
65169
65170         Avoid "ar: no archive members specified" error on MacOS X.
65171         * gnulib-tool (func_modules_add_dummy): New function.
65172         (func_import, func_create_testdir): Invoke it.
65173
65174 2006-01-11  Bruno Haible  <bruno@clisp.org>
65175
65176         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
65177         with $auxdir in AC_CONFIG_FILES statements.
65178
65179 2006-01-11  Bruno Haible  <bruno@clisp.org>
65180
65181         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65182         Initialize also noinst_HEADERS to empty.
65183
65184 2006-01-11  Bruno Haible  <bruno@clisp.org>
65185
65186         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
65187         variables.
65188         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
65189         autoreconf.
65190
65191 2006-01-11  Bruno Haible  <bruno@clisp.org>
65192
65193         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
65194         overridable by the user.
65195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65196
65197 2006-01-10  Simon Josefsson  <jas@extundo.com>
65198
65199         * modules/sys_socket: New file.
65200
65201 2006-01-10  Simon Josefsson  <jas@extundo.com>
65202
65203         * m4/sys_socket_h.m4: New file.
65204
65205 2006-01-10  Simon Josefsson  <jas@extundo.com>
65206
65207         * lib/socket_.h: New file.
65208
65209 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65210
65211         * modules/readutmp (Maintainer): Add myself.
65212
65213 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65214
65215         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
65216         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
65217         People who are still concerned with buggy memcmp implementations
65218         can invoke gl_FUNC_MEMCMP themselves.
65219
65220 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65221
65222         * lib/regex_internal.h (BITSET_WORD_BITS):
65223         Work around a bug in 64-bit PGC (before version 6.1-2), where the
65224         preprocessor mishandles large unsigned values as if they were signed.
65225         Problem reported by Claudio Fontana in
65226         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
65227
65228 2006-01-10  Jim Meyering  <jim@meyering.net>
65229
65230         Avoid the double-free (first in fts_read, second in fts_close) that
65231         would occur when an `active' directory is made inaccessible (e.g.,
65232         via chmod a-x) during a traversal.
65233         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65234         before returning.  Reproduce this failure by
65235         mkdir -p a/b; cd a; chmod a-x . b
65236         Reported by Stavros Passas.
65237
65238         Sync from coreutils.
65239         * lib/sha1.c: Tweak grammar in a comment.
65240
65241 2006-01-10  Jim Meyering  <jim@meyering.net>
65242
65243         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
65244         Patch by Joerg Sonnenberger.
65245
65246 2006-01-10  Bruno Haible  <bruno@clisp.org>
65247
65248         * modules/readutmp: Depend on module free.
65249         * modules/strtok_r: Depend on module restrict.
65250
65251 2006-01-10  Bruno Haible  <bruno@clisp.org>
65252
65253         * modules/gettext (configure.ac): Add an invocation of
65254         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
65255
65256 2006-01-10  Bruno Haible  <bruno@clisp.org>
65257
65258         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
65259         Reported by Werner Lemberg <wl@gnu.org>.
65260
65261 2006-01-10  Bruno Haible  <bruno@clisp.org>
65262
65263         * lib/localcharset.c: Update from GNU gettext.
65264
65265 2006-01-10  Bruno Haible  <bruno@clisp.org>
65266
65267         * lib/argp.h (__const): Remove macro. Use const instead.
65268         * lib/argp-fmtstream.h (__const): Likewise.
65269         * lib/glob_.h (__const): Remove macro.
65270         * lib/glob-libc.h: Use const instead of __const.
65271
65272 2006-01-10  Bruno Haible  <bruno@clisp.org>
65273
65274         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
65275         variable.
65276         Needed to avoid an automake error regarding the 'gettext' module.
65277
65278 2006-01-09  Simon Josefsson  <jas@extundo.com>
65279
65280         * modules/inet_ntop (Depends-on): Add restrict.
65281
65282 2006-01-09  Simon Josefsson  <jas@extundo.com>
65283
65284         * modules/gc-rijndael-tests (License): Put under LGPL.
65285
65286         * modules/gc-des-tests (License): Likewise.
65287
65288         * modules/gc-arcfour-tests (License): Likewise.
65289
65290         * modules/gc-arctwo-tests (License): Likewise.
65291
65292         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
65293
65294         * modules/gc-hmac-sha1-tests (Files): Likewise.
65295
65296         * modules/gc-hmac-md5-tests (License): Likewise.
65297
65298         * modules/gc-sha1-tests (License): Likewise.
65299
65300         * modules/gc-md5-tests (License): Likewise.
65301
65302         * modules/gc-md4-tests (License): Likewise.
65303
65304         * modules/gc-md2-tests (License): Likewise.
65305
65306         * modules/gc-tests (License): Likewise.
65307
65308         * modules/des-tests (License): Likewise.
65309
65310         * modules/md4-tests (License): Likewise.
65311
65312         * modules/md2-tests (License): Likewise.
65313
65314 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65315
65316         Sync from coreutils:
65317
65318         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
65319         * modules/lib-ignore: New file.
65320         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
65321         chdir-safer.m4, lchmod.m4.
65322         * modules/openat: Add mkdirat.c, openat-priv.h.
65323
65324 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65325
65326         Sync from coreutils.
65327         * m4/lib-ignore.m4: New file.
65328         * m4/lchmod.m4: New file.
65329
65330 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65331
65332         Sync from coreutils.
65333         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
65334         for write access: POSIX says that must fail.
65335         * lib/fts.c (diropen): Likewise.
65336         * lib/save-cwd.c (save_cwd): Likewise.
65337         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
65338         well, for minor improvements on hosts that lack O_DIRECTORY.
65339         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
65340         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
65341         Fall back on chown if open failed with EACCES.
65342
65343         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
65344         Report an error at compile-time if only a 1-second nominal clock
65345         resolution is found.
65346
65347         * lib/lchmod.h: New file.
65348         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
65349         (make_dir_parents): Use lchown rather than chown, and
65350         lchmod rather than chmod.
65351
65352         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
65353         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
65354         "proc" reported by n0dalus.
65355
65356         * lib/mountlist.c: Include <limits.h>.
65357         (dev_from_mount_options)
65358         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
65359         New function.  It no longer assumes "dev=" has the System V meaning
65360         on Linux (since it doesn't).  It also parses "dev=" more carefully.
65361         (read_file_system_list)
65362         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
65363         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
65364         dev= in that case.
65365
65366         * lib/posixtm.h (PDS_PRE_2000): New macro.
65367         * lib/posixtm.c (year): Arg is now syntax_bits rather than
65368         allow_century.  All usages changed.  Reject dates outside the range
65369         1969-1999 if PDS_PRE_2000 is used.
65370
65371 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65372
65373         Sync from coreutils.
65374         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
65375         (Time of day items): Mention the possibility of leap seconds.
65376         Problem reported by Dr. David Alan Gilbert.
65377
65378 2006-01-09  Jim Meyering  <jim@meyering.net>
65379
65380         Sync from coreutils.
65381
65382         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
65383
65384         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
65385
65386         * lib/modechange.c (mode_compile): Reject an invalid mode string
65387         that starts with an octal digit.  From Andreas Gruenbacher.
65388
65389         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
65390         and dup to open_safer and dup_safer, respectively.
65391         (openat_permissive): Fix typo in comment.
65392
65393         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
65394         "gettext.h"; either no longer needed or are guaranteed by openat.h.
65395         (_): Remove; no longer needed.
65396         (openat): Renamed from rpl_openat; no need for rpl_openat
65397         since openat.h renames openat for us.
65398         Replace most of the body with a call to openat_permissive,
65399         to avoid duplicate code.
65400         Port to (probably hypothetical) environments were mode_t is
65401         wider than int.
65402         (openat_permissive): Require mode arg, so that we can check
65403         types better.  Put it just after flags.  Change cwd failure
65404         indicator from pointer-to-bool to pointer-to-errno-value.
65405         All callers changed.
65406         Invoke openat_save_fail and/or openat_restore_fail if
65407         cwd_errno is null, so that openat can call us.
65408         (openat_permissive, fdopendir, fstatat, unlinkat):
65409         Simplify errno handling to avoid some duplicate code,
65410         as it's OK to set errno on success.
65411         * lib/openat.h: Revamp code so that function macros depend on
65412         __OPENAT_PREFIX only, not also on AT_FDCWD.
65413         (openat_ro): Remove.  Caller changed to use openat_permissive.
65414         (openat_permissive): Now a macro, if not a function.
65415         (openat_restore_fail, openat_save_fail): Now always functions,
65416         since mkdirat needs them even if __OPENAT_PREFIX is defined.
65417
65418         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
65419         and openat.c.
65420         * lib/mkdirat.c: Include openat-priv.h.
65421         Remove definitions of macros defined therein.
65422         * lib/openat.c: Likewise.
65423
65424         * lib/mkdirat.c (mkdirat): New file and function.
65425         * lib/openat.h (mkdirat): Declare.
65426
65427         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
65428
65429         * lib/openat.h (openat_permissive): Declare.
65430         (openat_ro): Define.
65431
65432         * lib/openat.c (EXPECTED_ERRNO): New macro.
65433         (openat_permissive): New function -- used in remove.c rewrite.
65434         (all functions): Set errno just before returning, only if there
65435         was an actual failure.
65436         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
65437
65438         Emulate openat-family functions using Linux's procfs, if possible.
65439         Idea and some code based on Ulrich Drepper's glibc changes.
65440
65441         * lib/openat.c: (BUILD_PROC_NAME): New macro.
65442         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
65443         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
65444         before falling back on save_cwd and restore_cwd.
65445         (fdopendir, fstatat, unlinkat): Likewise.
65446
65447         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
65448         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
65449
65450         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
65451         as second argument to va_arg.  Otherwise, some versions of gcc
65452         warn that `if this code is reached, the program will abort'.
65453
65454 2006-01-09  Jim Meyering  <jim@meyering.net>
65455
65456         Sync from coreutils.
65457         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
65458         Require openat-priv.h.
65459
65460 2006-01-09  Bruno Haible  <bruno@clisp.org>
65461
65462         * modules/strnlen (Include): Use strnlen.h.
65463
65464 2006-01-09  Bruno Haible  <bruno@clisp.org>
65465
65466         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
65467
65468 2006-01-09  Bruno Haible  <bruno@clisp.org>
65469
65470         * lib/sysexit_.h (EX_OK): New macro.
65471         Suggested by Martin Lambers <marlam@marlam.de>.
65472
65473 2006-01-09  Bruno Haible  <bruno@clisp.org>
65474
65475         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
65476         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
65477
65478 2006-01-09  Bruno Haible  <bruno@clisp.org>
65479
65480         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
65481         numbers.
65482
65483 2006-01-09  Bruno Haible  <bruno@clisp.org>
65484
65485         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
65486         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
65487         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
65488         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
65489
65490 2006-01-09  Bruno Haible  <bruno@clisp.org>
65491
65492         * build-aux/javacomp.sh.in: New file, moved from lib/.
65493         * modules/javacomp-script (Files): Update.
65494         (configure.ac): Add AC_CONFIG_FILES invocation.
65495         (EXTRA_DIST): Remove variable.
65496
65497         * build-aux/javaexec.sh.in: New file, moved from lib/.
65498         * modules/javaexec (Files): Update.
65499         (configure.ac): Add AC_CONFIG_FILES invocation.
65500         (EXTRA_DIST): Remove javaexec.sh.in.
65501
65502         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
65503         * modules/csharpcomp-script (Files): Update.
65504         (configure.ac): Add AC_CONFIG_FILES invocation.
65505         (EXTRA_DIST): Remove variable.
65506
65507         * build-aux/csharpexec.sh.in: New file, moved from lib/.
65508         * modules/csharpexec (Files): Update.
65509         (configure.ac): Add AC_CONFIG_FILES invocation.
65510         (EXTRA_DIST): Remove csharpexec.sh.in.
65511
65512 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65513
65514         Sync from coreutils.
65515
65516         Add POSIX ACL support
65517         * lib/acl.h (copy_acl, set_acl): Add declarations.
65518         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
65519         systems other than Linux.
65520         (chmod_or_fchmod): New function: use fchmod when possible,
65521         and chmod otherwise.
65522         (file_has_acl): Add a POSIX ACL implementation, with a
65523         Linux-specific subcase.
65524         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
65525         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
65526         acls are unsupported.
65527         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
65528         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
65529         are unsupported.
65530
65531 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65532
65533         Sync from coreutils.
65534         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
65535
65536 2006-01-07  Bruno Haible  <bruno@clisp.org>
65537
65538         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
65539         gl_EARLY.
65540
65541 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65542
65543         * lib/strftime.c (tzname): Don't declare if it is already #defined.
65544         Problem reported for Mingw by Mark Junker.
65545
65546 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65547
65548         * README: Gnulib normally doesn't generate a tarball.
65549
65550 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
65551
65552         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
65553         long int, not int, for nanosecond counts, so that people who are
65554         used to POSIX struct timespec won't be surprised.  Reported by Jim
65555         Meyering.
65556
65557 2005-12-28  Bruno Haible  <bruno@clisp.org>
65558
65559         * build-aux/config.rpath: Update from GNU gettext.
65560
65561 2005-12-16  Jim Meyering  <jim@meyering.net>
65562
65563         * modules/fprintftime: New module.
65564         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
65565
65566 2005-12-16  Jim Meyering  <jim@meyering.net>
65567
65568         * m4/fprintftime.m4: New file.
65569
65570 2005-12-16  Jim Meyering  <jim@meyering.net>
65571
65572         * lib/fprintftime.c, lib/fprintftime.h: New files.
65573
65574 2005-12-15  Simon Josefsson  <jas@extundo.com>
65575
65576         * modules/socklen (configure.ac): Fix M4 macro name, to align with
65577         new m4/socklen.m4.
65578
65579 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65580
65581         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
65582         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
65583
65584 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65585
65586         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
65587         * lib/argp-help.c (fill_in_uparams): Check if the constructed
65588         struct uparams is valid. Fall back to the default values if it is
65589         not.
65590
65591 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65592
65593         * modules/argp (Files): Add argp-pin.c
65594         (Depends-on): dirname
65595         (lib_SOURCES): Add argp-pin.c
65596
65597 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65598
65599         * m4/argp.m4:  Check if program_invocation_name and
65600         program_invocation_short_name are declared and define appropriate
65601         macros if they are not.
65602
65603 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65604
65605         * lib/argp-help.c (__argp_base_name): New function
65606         (__argp_short_program_name): Rewrite using __argp_base_name
65607         * lib/argp-namefrob.h: Define program_invocation_name and
65608         program_invocation_short_name if requested
65609         (__argp_base_name): Add prototype
65610         * lib/argp-parse.c (argp_def): Use gettext wrappers
65611         (argp_default_parser): Use __argp_base_name
65612         * lib/argp-pin.c: New file. Defines program_invocation_name and
65613         program_invocation_short_name on systems that lack them.
65614
65615 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65616
65617         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
65618         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65619         porting problem reported by Georg Schwarz in
65620         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65621
65622 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65623
65624         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
65625         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65626         porting problem reported by Georg Schwarz in
65627         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65628
65629 2005-12-05  Bruno Haible  <bruno@clisp.org>
65630
65631         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
65632         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
65633         Reported by Mark Junker <mjscod@gmx.de>.
65634
65635 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
65636
65637         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
65638         Use implementation from Albert Chin, with some
65639         comments/corrections by Stepan Kasal and myself.
65640
65641 2005-12-02  Bruno Haible  <bruno@clisp.org>
65642
65643         * gnulib-tool (func_import): Accept GPLed build tool modules when
65644         --lgpl is given.
65645         * modules/csharpcomp-script: New file.
65646         * modules/csharpcomp: Depend on it.
65647         * modules/javacomp-script: New file.
65648         * modules/javacomp: Depend on it.
65649         Suggested by Simon Josefsson.
65650
65651 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
65652
65653         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
65654         statement, to work around an HP-UX 10.20 compiler bug reported by
65655         Peter O'Gorman.
65656
65657 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65658
65659         * modules/savedir (Depends-on): Add openat.
65660
65661 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65662
65663         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
65664         (uintmax_t) [defined uintmax_t]: Do not declare.
65665         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
65666         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
65667         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
65668         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
65669         sake of portability to weird hosts that C allows (though we don't
65670         know of any practical examples).
65671
65672         * lib/savedir.h (fdsavedir): New decl.
65673         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
65674         contains most of the former guts of savedir.
65675         (savedir): Use savedirstream.
65676         Include "openat.h".
65677
65678 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65679
65680         * modules/obstack (Files): Add m4/ulonglong.m4.
65681         Problem reported by Davide Angelocola.
65682
65683 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
65684
65685         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
65686         coreutils no longer futzes with rounding modes.
65687
65688 2005-11-14  Jim Meyering  <jim@meyering.net>
65689
65690         * lib/mkstemp-safer.c: Include <config.h>, required for possible
65691         replacement of mkstemp.
65692
65693 2005-11-10  Simon Josefsson  <jas@extundo.com>
65694
65695         * lib/readline.c: Remove EOL.
65696
65697 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65698
65699         * modules/gethrxtime (Depends-on): Add gettime.
65700
65701 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65702
65703         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
65704         or gettimeofday; no longer needed.
65705
65706 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65707
65708         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
65709         time business.
65710         (gethrxtime) [! (HAVE_NANOUPTIME
65711         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
65712         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
65713         our own approximation.
65714
65715 2005-11-08  Eric Blake  <ebb9@byu.net>
65716
65717         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65718
65719 2005-11-08  Eric Blake  <ebb9@byu.net>
65720
65721         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65722
65723 2005-11-04  Bruno Haible  <bruno@clisp.org>
65724
65725         * gnulib-tool: Implement --update mode.
65726
65727 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65728
65729         Fix porting problem reported by Theodoros V. Kalamatianos.
65730         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
65731         Don't assume that futimes failing means we must fail.
65732
65733 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65734
65735         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
65736         variables to suggest the intended function of the PATH_MAX check.
65737
65738 2005-10-30  Kean Johnston  <jkj@sco.com>
65739
65740         Trivial changes to support SCO systems.
65741         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
65742         as PATH_MAX.
65743         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
65744         where __ptr is null when no I/O is pending.
65745
65746 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65747
65748         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
65749         leave errno alone.  Problem reported by Dmitry V. Levin.
65750
65751 2005-10-28  Simon Josefsson  <jas@extundo.com>
65752
65753         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
65754         Test more.
65755
65756         * tests/test-gc-md2.c, tests/test-md2.c: New files.
65757
65758         * modules/md2, modules/md2-tests: New files.
65759
65760 2005-10-28  Simon Josefsson  <jas@extundo.com>
65761
65762         * m4/inet_ntop.m4: More tests.
65763
65764         * m4/gc-md2.m4, md2.m4: New file.
65765
65766 2005-10-28  Simon Josefsson  <jas@extundo.com>
65767
65768         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
65769         "restrict" keywords, as per POSIX.  Protect the function
65770         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
65771         Don't use K&R prototypes.  Check the sprintf return values.
65772         Re-define EAFNOSUPPORT if not present.  Indent.
65773
65774         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
65775         suggested by Bruno Haible <bruno@clisp.org>.
65776
65777         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
65778
65779         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
65780
65781         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
65782         libgcrypt).
65783
65784         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
65785
65786         * lib/md2.h, lib/md2.c: New files.
65787
65788 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
65789
65790         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
65791         errno alone.  Problem reported by Frederic Jolliton.
65792
65793 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65794
65795         * modules/verify (License): Change from GPL to LGPL.  This is a
65796         tiny module and there are apparently near-equivalents that are
65797         under the BSD license.
65798
65799 2005-10-24  Simon Josefsson  <jas@extundo.com>
65800
65801         * modules/sha1: Relicense to LGPL.
65802
65803 2005-10-24  Simon Josefsson  <jas@extundo.com>
65804
65805         * lib/md4.h: Shrink buffer size, now that we changed the type.
65806
65807 2005-10-23  Simon Josefsson  <jas@extundo.com>
65808
65809         * gnulib-tool (func_import): Fix --tests-base.
65810
65811 2005-10-22  Simon Josefsson  <jas@extundo.com>
65812
65813         * modules/arcfour (Depends-on): Need stdint.
65814
65815 2005-10-22  Simon Josefsson  <jas@extundo.com>
65816
65817         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
65818         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
65819
65820 2005-10-22  Simon Josefsson  <jas@extundo.com>
65821
65822         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
65823         suggested by Bruno Haible <bruno@clisp.org>.
65824
65825 2005-10-22  Simon Josefsson  <jas@extundo.com>
65826
65827         * lib/crc.h: Include stddef.h, for size_t.
65828
65829 2005-10-22  Simon Josefsson  <jas@extundo.com>
65830
65831         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
65832         arcfour_context struct (simplify test vector testing in GNU
65833         Shishi).
65834
65835 2005-10-21  Simon Josefsson  <jas@extundo.com>
65836
65837         * modules/des, modules/des-tests: New files.
65838
65839         * modules/gc-des, modules/gc-des-tests: New files.
65840
65841         * tests/test-des.c, tests/test-gc-des.c: New file.
65842
65843 2005-10-21  Simon Josefsson  <jas@extundo.com>
65844
65845         * modules/arctwo, modules/arctwo-tests: New files.
65846
65847         * tests/test-arctwo.c: New file.
65848
65849         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
65850
65851         * tests/test-gc-arctwo.c: New file.
65852
65853 2005-10-21  Simon Josefsson  <jas@extundo.com>
65854
65855         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
65856         Bruno Haible <bruno@clisp.org>.
65857
65858         * m4/gc-des.m4: New file.
65859
65860 2005-10-21  Simon Josefsson  <jas@extundo.com>
65861
65862         * m4/arctwo.m4: New file.
65863
65864         * m4/gc-arctwo.m4: New file.
65865
65866 2005-10-21  Simon Josefsson  <jas@extundo.com>
65867
65868         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
65869         block.
65870
65871 2005-10-21  Simon Josefsson  <jas@extundo.com>
65872
65873         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
65874         <bruno@clisp.org>.
65875
65876         * lib/hmac-sha1.c (hmac_sha1): Likewise.
65877
65878         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
65879         Bruno Haible <bruno@clisp.org>.
65880
65881         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
65882         <bruno@clisp.org>.
65883
65884 2005-10-21  Simon Josefsson  <jas@extundo.com>
65885
65886         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
65887
65888 2005-10-21  Simon Josefsson  <jas@extundo.com>
65889
65890         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
65891
65892 2005-10-21  Simon Josefsson  <jas@extundo.com>
65893
65894         * lib/des.h, lib/des.c: New files.
65895
65896         * lib/gc-gnulib.c: Support DES.c
65897
65898 2005-10-21  Simon Josefsson  <jas@extundo.com>
65899
65900         * lib/arctwo.h, lib/arctwo.c: New files.
65901
65902         * lib/gc-gnulib.c: Support ARCTWO.
65903
65904 2005-10-21  Simon Josefsson  <jas@extundo.com>
65905
65906         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
65907         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65908
65909 2005-10-21  Simon Josefsson  <jas@extundo.com>
65910
65911         * gnulib-tool (func_import, func_create_testdir): Define automake
65912         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
65913         Makefile.am snippet),
65914         suggested by Bruno Haible <bruno@clisp.org>.
65915
65916         * modules/gc (Makefile.am): Use it.
65917
65918 2005-10-21  Bruno Haible  <bruno@clisp.org>
65919
65920         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
65921         patch.
65922
65923 2005-10-19  Simon Josefsson  <jas@extundo.com>
65924
65925         * tests/test-gc-rijndael.c: New file.
65926
65927         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
65928
65929 2005-10-19  Simon Josefsson  <jas@extundo.com>
65930
65931         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
65932         interface too.
65933
65934 2005-10-19  Simon Josefsson  <jas@extundo.com>
65935
65936         * tests/test-gc-arcfour.c: New file.
65937
65938         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
65939
65940 2005-10-19  Simon Josefsson  <jas@extundo.com>
65941
65942         * modules/gc-md4, modules/gc-md4-tests: New file.
65943
65944         * tests/test-gc-md4.c: New file.
65945
65946 2005-10-19  Simon Josefsson  <jas@extundo.com>
65947
65948         * m4/gc-md4.m4: New file.
65949
65950 2005-10-19  Simon Josefsson  <jas@extundo.com>
65951
65952         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
65953         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
65954         <kasal@ucw.cz>.
65955
65956 2005-10-19  Simon Josefsson  <jas@extundo.com>
65957
65958         * m4/gc-arcfour.m4: New file.
65959
65960         * m4/gc-rijndael.m4: New file.
65961
65962 2005-10-19  Simon Josefsson  <jas@extundo.com>
65963
65964         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
65965
65966 2005-10-19  Simon Josefsson  <jas@extundo.com>
65967
65968         * lib/gc-gnulib.c: Support ARCFOUR.
65969
65970 2005-10-19  Simon Josefsson  <jas@extundo.com>
65971
65972         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
65973         support.
65974
65975         * lib/gc.h: Add ECB enum type.
65976
65977         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
65978
65979 2005-10-18  Simon Josefsson  <jas@extundo.com>
65980
65981         * tests/test-md5.c: New file.
65982
65983         * modules/md5-tests: New file.
65984
65985 2005-10-18  Simon Josefsson  <jas@extundo.com>
65986
65987         * tests/test-md4.c: New file.
65988
65989         * modules/md4, modules/md4-tests: New files.
65990
65991 2005-10-18  Simon Josefsson  <jas@extundo.com>
65992
65993         * m4/md4.m4: New file.
65994
65995 2005-10-18  Simon Josefsson  <jas@extundo.com>
65996
65997         * lib/md4.h, lib/md4.c: New files, based on md5.?.
65998
65999 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
66000
66001         * gnulib-tool (func_create_testdir): Omit the second check whether
66002         BUILT_SOURCES in nonempty.
66003
66004 2005-10-17  Simon Josefsson  <jas@extundo.com>
66005
66006         * tests/test-rijndael.c: New file.
66007
66008 2005-10-17  Simon Josefsson  <jas@extundo.com>
66009
66010         * modules/sha1: Depend on stdint instead of md5.
66011
66012         * modules/md5: Depend on stdint, remove uint32_t.
66013
66014 2005-10-17  Simon Josefsson  <jas@extundo.com>
66015
66016         * modules/gc-sha1-tests: New file.
66017
66018         * tests/test-gc-sha1.c: New file.
66019
66020 2005-10-17  Simon Josefsson  <jas@extundo.com>
66021
66022         * m4/md5.m4: Remove call to uint32_t.m4.
66023
66024 2005-10-17  Simon Josefsson  <jas@extundo.com>
66025
66026         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
66027
66028         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
66029         md5.h.
66030
66031         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
66032
66033         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
66034
66035 2005-10-17  Simon Josefsson  <jas@extundo.com>
66036
66037         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
66038
66039 2005-10-17  Simon Josefsson  <jas@extundo.com>
66040
66041         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
66042
66043 2005-10-17  Simon Josefsson  <jas@extundo.com>
66044
66045         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
66046
66047         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
66048
66049 2005-10-17  Bruno Haible  <bruno@clisp.org>
66050
66051         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
66052         that it can also be used in a test.
66053
66054 2005-10-16  Bruno Haible  <bruno@clisp.org>
66055
66056         * gnulib-tool (func_emit_tests_Makefile_am): Also define
66057         TESTS_ENVIRONMENT, so that individual tests can augment it.
66058
66059         * gnulib-tool (func_create_testdir): Use an intermediate target for
66060         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
66061         macros, like $(ALLOCA_H), which cannot be passed through the command
66062         line.
66063
66064 2005-10-15  Simon Josefsson  <jas@extundo.com>
66065
66066         * modules/rijndael-tests: New file.
66067
66068         * modules/rijndael: New file.
66069
66070 2005-10-15  Simon Josefsson  <jas@extundo.com>
66071
66072         * m4/rijndael.m4: New file.
66073
66074 2005-10-15  Simon Josefsson  <jas@extundo.com>
66075
66076         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
66077
66078         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
66079
66080 2005-10-14  Simon Josefsson  <jas@extundo.com>
66081
66082         * tests/test-arcfour.c: New file.
66083
66084         * modules/arcfour, modules/arcfour-tests: New files.
66085
66086 2005-10-14  Simon Josefsson  <jas@extundo.com>
66087
66088         * m4/arcfour.m4: New file.
66089
66090 2005-10-14  Simon Josefsson  <jas@extundo.com>
66091
66092         * lib/arcfour.h, lib/arcfour.c: New files.
66093
66094 2005-10-14  Roland McGrath  <roland@redhat.com>
66095
66096         Import from libc.  [BZ #1331]
66097         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
66098         macro argument.
66099         Reported by Matej Vela <vela@debian.org>.
66100
66101 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66102
66103         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
66104         include <wchar.h>; no longer needed.
66105
66106 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66107
66108         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
66109
66110 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
66111         and  Ulrich Drepper  <drepper@redhat.com>
66112
66113         Import from libc.
66114         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
66115         instead of inline stream orientation test and two separate
66116         function calls.  Pay no attention to USE_IN_LIBIO.
66117
66118 2005-10-13  Simon Josefsson  <jas@extundo.com>
66119
66120         * modules/gc-hmac-md5-tests: New file.
66121
66122         * tests/test-gc-hmac-sha1.c: New file.
66123
66124         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
66125
66126         * modules/gc-hmac-md5-tests: New file.
66127
66128         * tests/test-gc-md5.c: New file.
66129
66130         * modules/gc-md5-tests: New file.
66131
66132 2005-10-13  Simon Josefsson  <jas@extundo.com>
66133
66134         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
66135         Move memory allocation outside of loop.
66136
66137 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
66138
66139         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
66140         intermediate directory is in a read-only file system.  Problem
66141         reported by Eric Blake.
66142
66143 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
66144
66145         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
66146
66147 2005-10-12  Simon Josefsson  <jas@extundo.com>
66148
66149         * tests/test-hmac-sha1.c: New file.
66150
66151         * modules/hmac-sha1-tests: New file.
66152
66153         * modules/hmac-sha1: New file.
66154
66155 2005-10-12  Simon Josefsson  <jas@extundo.com>
66156
66157         * modules/gc-sha1: New file.
66158
66159 2005-10-12  Simon Josefsson  <jas@extundo.com>
66160
66161         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
66162
66163         * tests/test-gc-pbkdf2-sha1.c: New file.
66164
66165 2005-10-12  Simon Josefsson  <jas@extundo.com>
66166
66167         * modules/gc-md5, modules/gc-hmac-md5: New files.
66168
66169         * modules/gc (Files): Remove md5, memxor and hmac files.
66170
66171 2005-10-12  Simon Josefsson  <jas@extundo.com>
66172
66173         * m4/gc-pbkdf2-sha1.m4: New file.
66174
66175         * m4/gc-hmac-sha1.m4: New file.
66176
66177         * m4/gc-sha1: New file.
66178
66179         * m4/hmac-sha1.m4: New file.
66180
66181 2005-10-12  Simon Josefsson  <jas@extundo.com>
66182
66183         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
66184
66185         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
66186
66187 2005-10-12  Simon Josefsson  <jas@extundo.com>
66188
66189         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
66190         suggested by Bruno Haible <bruno@clisp.org>.
66191
66192 2005-10-12  Simon Josefsson  <jas@extundo.com>
66193
66194         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
66195
66196 2005-10-12  Simon Josefsson  <jas@extundo.com>
66197
66198         * lib/gc-pbkdf2-sha1.c: New file.
66199
66200         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
66201
66202 2005-10-12  Simon Josefsson  <jas@extundo.com>
66203
66204         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
66205
66206         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
66207
66208 2005-10-12  Simon Josefsson  <jas@extundo.com>
66209
66210         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
66211         GC_USE_HMAC_MD5, respectively.
66212
66213         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
66214         (gc_md5): Fix typo.
66215
66216         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
66217
66218         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
66219
66220         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
66221
66222 2005-10-12  Bruno Haible  <bruno@clisp.org>
66223
66224         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
66225         Reported by Stepan Kasal <kasal@ucw.cz>.
66226
66227 2005-10-11  Simon Josefsson  <jas@extundo.com>
66228
66229         * tests/test-crc.c: New file.
66230
66231         * modules/crc, modules/crc-tests: New files.
66232
66233 2005-10-11  Simon Josefsson  <jas@extundo.com>
66234
66235         * m4/crc.m4: New file.
66236
66237 2005-10-11  Simon Josefsson  <jas@extundo.com>
66238
66239         * lib/gc.h: Add gc_hash and gc_hash_buffer.
66240
66241         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
66242
66243         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
66244
66245 2005-10-11  Simon Josefsson  <jas@extundo.com>
66246
66247         * lib/crc.h, lib/crc.c: New files.
66248
66249         * lib/gc.h (gc_hash_buffer): Add doc.
66250
66251 2005-10-11  Bruno Haible  <bruno@clisp.org>
66252
66253         * modules/c-strcasestr: New file.
66254         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
66255
66256 2005-10-11  Bruno Haible  <bruno@clisp.org>
66257
66258         * modules/c-strcase: New file.
66259         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
66260
66261 2005-10-11  Bruno Haible  <bruno@clisp.org>
66262
66263         * lib/strcasecmp.c: Include limits.h.
66264         (strcasecmp): Avoid integer overflow on exotic platforms.
66265         * lib/strncasecmp.c: Include limits.h.
66266         (strncasecmp): Avoid integer overflow on exotic platforms.
66267         Reported by Paul Eggert.
66268
66269 2005-10-11  Bruno Haible  <bruno@clisp.org>
66270
66271         * lib/c-strcasestr.h: New file, from GNU gettext.
66272         * lib/c-strcasestr.c: New file, from GNU gettext.
66273
66274 2005-10-11  Bruno Haible  <bruno@clisp.org>
66275
66276         * lib/c-strcase.h: New file, from GNU gettext.
66277         * lib/c-strcasecmp.c: New file, from GNU gettext.
66278         * lib/c-strncasecmp.c: New file, from GNU gettext.
66279
66280 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66281
66282         * modules/mempcpy (License): GPL -> LGPL.
66283         * modules/strchrnul (License): Likewise.
66284         * modules/sysexits (License): Likewise.
66285
66286 2005-10-08  Simon Josefsson  <jas@extundo.com>
66287
66288         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
66289
66290 2005-10-07  Simon Josefsson  <jas@extundo.com>
66291
66292         * m4/memxor.m4: Remove gl_C_RESTRICT call.
66293
66294 2005-10-06  Simon Josefsson  <jas@extundo.com>
66295
66296         * tests/test-hmac-md5.c: New file.
66297
66298         * modules/hmac-md5-tests: New file.
66299
66300         * modules/hmac-md5: New file.
66301
66302 2005-10-06  Simon Josefsson  <jas@extundo.com>
66303
66304         * m4/hmac-md5.m4: New file.
66305
66306         * m4/memxor.m4: Require gl_C_RESTRICT.
66307
66308 2005-10-06  Simon Josefsson  <jas@extundo.com>
66309
66310         * lib/memxor.c (memxor): Avoid casts and warnings.
66311
66312 2005-10-06  Simon Josefsson  <jas@extundo.com>
66313
66314         * lib/hmac-md5.c: New file.
66315
66316         * lib/hmac.h: New file.
66317
66318 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66319
66320         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
66321         promotes to int, not unsigned int, to catch the AIX 5.3
66322         compiler bug.
66323
66324 2005-10-05  Simon Josefsson  <jas@extundo.com>
66325
66326         * modules/memxor: New file.
66327
66328         * modules/iconv (Files): Move config.rpath to havelib, it is used
66329         there.
66330
66331         * modules/havelib (Files): Add config.rpath.
66332
66333 2005-10-05  Simon Josefsson  <jas@extundo.com>
66334
66335         * m4/memxor.m4: New file.
66336
66337 2005-10-05  Simon Josefsson  <jas@extundo.com>
66338
66339         * lib/memxor.c (memxor): Fix compiler error.
66340
66341         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
66342         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
66343
66344         * lib/memxor.h, lib/memxor.c: New files.
66345
66346         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
66347         we assume all systems have it, suggested by Jim Meyering
66348         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
66349         any systems lack sys/socket.h; mingw32 is known to lack it, but we
66350         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
66351         same reasons.
66352
66353 2005-10-05  Simon Josefsson  <jas@extundo.com>
66354
66355         * config/srclist.txt: Add glibc bug 1423 for md5.h.
66356
66357 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66358
66359         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
66360         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
66361         needed, since the source code now assumes these .h files.
66362
66363 2005-10-05  Derek Price  <derek@ximbiot.com>
66364
66365         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
66366
66367 2005-10-05  Bruno Haible  <bruno@clisp.org>
66368
66369         * modules/stdint (License): Change to LGPL.
66370
66371 2005-10-04  Simon Josefsson  <jas@extundo.com>
66372
66373         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
66374         D. Baushke" <mdb@gnu.org>.
66375
66376 2005-10-04  Bruno Haible  <bruno@clisp.org>
66377
66378         * lib/verify.h (verify_true): Provide alternative definition for C++.
66379
66380 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
66381
66382         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
66383         (SSIZE_MAX): New macro, if not already defined.
66384         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
66385         than 2 GiB.
66386
66387 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66388
66389         Sync from coreutils.
66390         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
66391         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
66392         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
66393         ULLONG_MAX doesn't work with 2.7.2.1.
66394
66395 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66396
66397         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
66398         From Ben Pfaff.
66399
66400         * modules/exclude (Depends-on): Depend on verify.
66401         * modules/strtoimax (Depends-on): Likewise.
66402         * modules/utimecmp (Depends-on): Likewise.
66403
66404 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66405
66406         * lib/exclude.c: Include verify.h.
66407         (verify): Remove.  All callers changed to use verify.h's version.
66408         * lib/strtoimax.c: Likewise.
66409         * lib/utimecmp.c: Likewis.e
66410
66411         Sync from coreutils.
66412         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
66413         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
66414         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
66415         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
66416         bother returning ENOSYS if settimeofday or stime fails; just let
66417         them return whatever errno they want to return.
66418         * lib/utimens.c: Include unistd.h, for dup2.
66419         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
66420         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
66421
66422 2005-10-02  Jim Meyering  <jim@meyering.net>
66423
66424         Sync from coreutils.
66425         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
66426         from glibc-2.2.5 that fails for read-only files.
66427
66428 2005-10-02  Jim Meyering  <jim@meyering.net>
66429
66430         Sync from coreutils.
66431         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
66432         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
66433         `#if HAVE_CONFIG_H'.
66434         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
66435         Remove AT_FDCWD test.
66436         Do not consume the fd unless successful.
66437         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
66438         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
66439         block, so that we don't even try to compile it if settimeofday is
66440         available.  This works around a compilation failure on OSF1 V5.1,
66441         due to stime requiring a `long int*' while tv_sec is `int'.
66442
66443 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
66444
66445         Sync from coreutils.
66446         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
66447         against `yes', rather than just testing for nonempty.
66448
66449 2005-10-01  Simon Josefsson  <jas@extundo.com>
66450
66451         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
66452         and Darwin.
66453
66454         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
66455         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
66456         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
66457         freeaddrinfo and gai_strerror are declared by the POSIX headers.
66458         Check if struct addrinfo is declared.
66459
66460 2005-10-01  Simon Josefsson  <jas@extundo.com>
66461
66462         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
66463         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
66464         AI_* and EAI_* definitions.  Protect function declarations.
66465
66466 2005-10-01  Jim Meyering  <jim@meyering.net>
66467
66468         Sync from coreutils.
66469
66470         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
66471         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
66472         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
66473         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66474         in the inet and nsl libraries.  Required on Solaris 5.7.
66475
66476 2005-10-01  Jim Meyering  <jim@meyering.net>
66477
66478         Sync from coreutils.
66479         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66480         in the inet and nsl libraries.  Required on Solaris 5.7.
66481
66482 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
66483
66484         * lib/getdelim.c (getdelim): Remove unused variables.
66485
66486 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66487
66488         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
66489         so that the code works even with ancient cpp.  Portability problem
66490         with GCC 2.7.2.1 reported by Thomas M.Ott.
66491
66492 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66493
66494         * modules/regex (Depends-on): Add strcase.
66495
66496         * modules/gethostname (Licence): Change from GPL to LGPL, since
66497         gethostname.c is a trivial implementation of a standard library
66498         function.
66499         * modules/poll (License): Change from GPL to LGPL, since it's
66500         derived from LGPL code.
66501
66502 2005-09-27  Jim Meyering  <jim@meyering.net>
66503
66504         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
66505         HAVE_CONFIG_H.
66506
66507         * lib/intprops.h (signed_type_or_expr__): Define.
66508         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
66509         for unsigned types.
66510
66511 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66512
66513         * lib/verify.h (verify_expr): Remove, replacing with:
66514         (verify_true): New macro that returns true instead of void.
66515         (verify_type__): Remove.
66516         (verify): Use verify_true rather than verify_type__.
66517
66518 2005-09-26  Bruno Haible  <bruno@clisp.org>
66519
66520         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
66521         is necessary.
66522         (lib_SOURCES): Remove mbchar.c.
66523         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
66524         (Files): Add m4/mbrtowc.m4.
66525         * modules/mbiter: Likewise.
66526         * modules/mbuiter: Likewise.
66527
66528 2005-09-26  Bruno Haible  <bruno@clisp.org>
66529
66530         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
66531         compile mbchar.c if they are not both present.
66532         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
66533         * m4/mbiter.m4 (gl_MBITER): Likewise.
66534         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
66535         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
66536         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
66537
66538 2005-09-25  Jim Meyering  <jim@meyering.net>
66539
66540         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
66541         also uses socklen_t.
66542
66543 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
66544
66545         * lib/utimens.c (ENOSYS): Define if not already defined.
66546         (futimens): Support having a null PATH if the file descriptor
66547         is nonnegative.
66548
66549         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
66550         Remove.
66551         (__attribute): Define to empty unless GCC 3.1 or later.
66552         This works around a core dump on OpenBSD 3.4, which has GCC
66553         2.95.3, which dumps core when given __attribute__(()).  It also
66554         simplifies other tests, since we really don't want to bother with
66555         worrying about which ancient version of GCC supported what.
66556         Original problem reported by Yoann Vandoorselaere, with part of
66557         the fix suggested by Derek Price.
66558
66559 2005-09-24  Jim Meyering  <jim@meyering.net>
66560
66561         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
66562         so we can once again use a positive bitfield width of 1 -- now we
66563         don't have to explain why we were using a bitfield width of 2.
66564
66565 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66566
66567         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
66568         and similarly for the other external symbols.  Problem reported
66569         by James Gallager.
66570
66571         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
66572         bug reported by Jim Meyering.
66573
66574         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
66575         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
66576         not needed, since socklen is a prerequisite module.
66577
66578 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66579
66580         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
66581         Problem reported by Eric Blake.
66582         (getaddrinfo): Initialize se so that it's not garbage.
66583         Redo internal storage allocation so that it doesn't make unportable
66584         assumptions about alignment.
66585         Fix a memory leak.
66586
66587         * lib/utimens.c (futimens): Use futimesat if available.
66588         Prefer it to futimes since it doesn't have the futimes bug.
66589
66590         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
66591         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
66592         Instead, declare a function that returns a pointer to an array,
66593         and use verify_type__ to declare the size of the array.
66594         Problem and germ of a solution reported by Bruno Haible.
66595         (verify_type__): Use 2, not 1, for bitfield size, to avoid
66596         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
66597
66598 2005-09-23  Jim Meyering  <jim@meyering.net>
66599
66600         Sync from coreutils.
66601         Correct build failure (socklen_t not defined) on at least
66602         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
66603         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
66604
66605 2005-09-23  Jim Meyering  <jim@meyering.net>
66606
66607         * modules/getaddrinfo (Depends-on): Add socklen.
66608
66609 2005-09-23  Bruno Haible  <bruno@clisp.org>
66610
66611         * tests/test-verify.c: New file.
66612
66613 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66614
66615         Sync from coreutils.
66616
66617         * modules/argmatch (Depends-on): Add verify.
66618         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
66619         unistd-safer.
66620         * modules/save-cwd (Depends-on): Likewise.
66621
66622         * modules/openat (Files): Add lib/openat-die.c.
66623         (Depends-on): Remove error, exitfail.
66624         Add dirname.
66625
66626         * modules/verify: New file.
66627         * MODULES.html.sh (Diagnostics <assert.h>): New section,
66628         with "verify" module.
66629
66630 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66631
66632         Sync from coreutils.
66633
66634         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
66635         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
66636         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
66637         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
66638         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
66639         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
66640         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
66641         Don't bother checking for string.h, stdlib.h, unistd.h.
66642         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
66643         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
66644         module's job.
66645         * m4/jm-macros.m4 (gl_MACROS): Likewise.
66646         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
66647
66648         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
66649         (gl_GETDATE): Use it.
66650
66651         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
66652
66653 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66654
66655         Sync from coreutils.
66656
66657         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
66658         stat-time.h.
66659         * lib/argmatch.h: Include verify.h
66660         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
66661         (ARGMATCH_ASSERT): Remove; unused.
66662         * lib/canonicalize.c: Assume STDC_HEADERS.
66663         * lib/exclude.c: Include "strcase.h".
66664         * lib/regex_internal.h [!defined _LIBC]: Likewise.
66665         * lib/getusershell.c: Include stdio--.h rather than stdio.h
66666         and stdio-safer.h.
66667         (getusershell): Call fopen, not fopen_safer.
66668         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
66669         Do not include unistd-safer.h.
66670         (save_cwd): Don't call fd_safer; no longer needed
66671         now that we include fcntl--.h.
66672
66673         * lib/getdate.y (relative_time): New type.
66674         (RELATIVE_TIME_0): New constant.
66675         (parser_control): Use relative_time instead of doing it ourselves.
66676         (%union): Add new relative_time rel member.
66677         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
66678         Now typeless.
66679         (relunit, relunit_snumber): Now of type rel.
66680         (zone, rel, relunit, get_date): Adjust to above changes.
66681
66682         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
66683         Do not include unistd-safer.h.
66684         (getloadavg): Don't call fd_safer; no longer needed
66685         now that we include fcntl--.h.
66686
66687         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
66688         (make_dir_parents): Treat ENOSYS like EEXIST.
66689
66690         Improve quality of diagnostics on restore_cwd failure.
66691         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
66692         (make_dir_parents): Last arg is now int * (for errno), not bool *.
66693         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
66694         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
66695         each time through the loop.  Do not diagnose restore_cwd failure;
66696         that is the caller's job (and perhaps the caller does not care).
66697
66698         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
66699         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
66700         If the file already exists but is not a directory, don't bother
66701         to try to make its parents.
66702         Close potential file descriptor leak if we can't chdir("/") (!).
66703         Don't always return true if chdir($PWD) fails; return true only
66704         if the requested action was done successfully (except for the
66705         chdir($PWD)).
66706         Don't log final directory unless we actually made it.
66707         Refactor to avoid duplicate code to fix up permissions.
66708         Don't attempt to fix up parent permissions if chdir($PWD) fails.
66709
66710         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
66711         to make it a bit faster and (I hope) clearer.
66712         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
66713         Fix bug in formats like %2N.
66714
66715         * lib/verify.h: New file.
66716
66717 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66718
66719         Sync from coreutils.
66720         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
66721
66722 2005-09-22  Jim Meyering  <jim@meyering.net>
66723
66724         Sync from coreutils.
66725
66726         * m4/lstat.m4 (gl_FUNC_LSTAT):
66727         Use AC_LIBSOURCES to require lstat.c and lstat.h.
66728         Remove obsolete comment.
66729         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
66730         * m4/xstrtod.m4: Likewise.
66731
66732         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
66733
66734 2005-09-22  Jim Meyering  <jim@meyering.net>
66735
66736         Sync from coreutils.
66737
66738         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
66739
66740         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
66741         the .tm_year member, since otherwise gcc-4.0 would now warn about
66742         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
66743
66744         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
66745         order to avoid an unsuppressible warning from gcc on 64-bit systems.
66746
66747         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
66748         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
66749         when run in a time zone for which daylight savings time is in effect
66750         for the starting date.
66751
66752         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
66753         stop us from restricting permissions of just-created absolute-named
66754         directories.
66755         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
66756         to restore initial working directory.
66757         * lib/mkdir-p.c (make_dir_parents): New parameter:
66758         different_working_dir, to tell caller if/when we change the working
66759         directory and are unable to return to the initial one.
66760         * lib/mkdir-p.h (make_dir_parents): Update prototype.
66761         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
66762         `return false'.  This fixes a bug introduced on 2004-07-30.
66763
66764         * lib/openat.c (fdopendir): Be sure to close the supplied
66765         file descriptor before returning.  This makes our replacement
66766         implementation a little closer to Solaris's, where fdopendir
66767         ties the file descriptor to the returned DIR* pointer.
66768         * lib/openat.c (unlinkat): New function.
66769         * lib/openat.h (unlinkat): Add prototype.
66770         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
66771         (openat_restore_fail): Rename from openat_restore_die.
66772         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
66773
66774         Provide an alternative to exiting immediately upon save_cwd or
66775         restore_cwd failure.  Now, an application can arrange e.g.,
66776         to perform a longjump in that case.
66777         * lib/openat.c: Include dirname.h.
66778         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
66779         (rpl_openat, fdopendir, fstatat): Call openat_save_die
66780         and openat_restore_die rather than calling error directly.
66781         Don't include "error.h" or "exitfail.h"; they're no longer needed.
66782
66783         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
66784         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
66785         define.
66786
66787         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
66788         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
66789                             int utc, int nanoseconds);
66790         Background:
66791         date should not have to allocate a megabyte of virtual memory to
66792         handle a format argument like +%1048575T.  When implemented with
66793         strftime, it must allocate such a buffer, use strftime to fill it
66794         in, print it, then free it.
66795         With fprintftime, it simply prints everything and exits.
66796         With no need for memory allocation, that's one fewer way to fail.
66797         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
66798         optional field width, not before, so we accept %9:z, not %:9z.
66799         (my_strftime): Be sure to use L_('x') for literals.
66800
66801         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
66802         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
66803         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
66804         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
66805         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
66806         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
66807         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
66808         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
66809         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
66810         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
66811         * lib/xgethostname.c, lib/xreadlink.c:
66812         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
66813
66814         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
66815         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
66816         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
66817         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66818         and don't include <sys/file.h>).
66819
66820 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
66821
66822         Sync from coreutils.
66823
66824         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
66825         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
66826         [!LDAV_DONE]: Avoid unused variable warning.
66827
66828 2005-09-21  Bruno Haible  <bruno@clisp.org>
66829
66830         * lib/unicodeio.h (unicode_to_mb): New declaration.
66831
66832 2005-09-20  Derek Price  <derek@ximbiot.com>
66833
66834         * lib/getaddrinfo.c: Don't include <netdb.h> included from
66835         getaddrinfo.h.
66836
66837 2005-09-20  Bruno Haible  <bruno@clisp.org>
66838
66839         * gnulib-tool: Remove trailing slashes from the values specified for
66840         --source-base, --m4-base, --tests-base, --aux-dir.
66841         Suggested by Simon Josefsson <jas@extundo.com>.
66842
66843 2005-09-20  Bruno Haible  <bruno@clisp.org>
66844
66845         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
66846         func_modules_to_filelist, func_import, func_create_testdir): Make all
66847         sorting results locale-independent, so that gnulib-cache.m4 doesn't
66848         change when gnulib-tool is invoked in a different locale.
66849
66850 2005-09-19  Simon Josefsson  <jas@extundo.com>
66851
66852         * m4/socklen.m4: Fix typo.
66853
66854 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66855
66856         Use a consistent style for including <config.h>.
66857         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
66858         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
66859         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
66860         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
66861         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
66862         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
66863         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
66864         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
66865         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
66866         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
66867         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
66868         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
66869         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
66870         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
66871         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
66872         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
66873         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
66874         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
66875         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
66876         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
66877         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
66878         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
66879         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
66880         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
66881         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
66882         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
66883         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
66884         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
66885         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
66886         lib/xstrtoumax.c, lib/yesno.c:
66887         Standardize inclusion of config.h.
66888         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
66889         lib/inttostr.h:  Removed inclusion of config.h from header files.
66890         * lib/inttostr.c:  Adjusted in-tree users.
66891         * lib/timespec.h: Remove superfluous warning to include config.h.
66892         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
66893         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
66894         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
66895         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
66896         config.h with HAVE_CONFIG_H.
66897
66898 2005-09-19  Jim Meyering  <jim@meyering.net>
66899
66900         * modules/pathmax (License): Change to LGPL.
66901
66902 2005-09-19  Derek Price  <derek@ximbiot.com>
66903
66904         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
66905
66906 2005-09-19  Bruno Haible  <bruno@clisp.org>
66907
66908         * gnulib-tool (import): Provide default for --tests-base.
66909
66910 2005-09-19  Bruno Haible  <bruno@clisp.org>
66911
66912         * doc/quote.texi: New file, extracted from gnulib.texi.
66913         * doc/ctime.texi: New file, extracted from gnulib.texi.
66914         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
66915         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
66916         * doc/gnulib.texi: Include them.
66917
66918 2005-09-18  Bruno Haible  <bruno@clisp.org>
66919
66920         Portability fix.
66921         * gnulib-tool (func_readlink): New function.
66922         (func_ln_if_changed): Use it.
66923
66924 2005-09-18  Bruno Haible  <bruno@clisp.org>
66925
66926         * gnulib-tool: Support --with-tests also with --import.
66927         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
66928         (func_import): Use variables $testsbase and $inctests. Emit a
66929         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
66930         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
66931         SUBDIRS += $testsdir.
66932         (func_create_testdir): Update.
66933
66934 2005-09-18  Bruno Haible  <bruno@clisp.org>
66935
66936         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
66937         instead of $dry_run.
66938         (func_cp_if_changed, func_mv_if_changed): Remove functions.
66939         (func_ln_if_changed): Don't handle dry-run here.
66940         (func_import): In dry-run mode, detect more precisely which actions
66941         would be performed, and don't use "...ing" verbs.
66942
66943 2005-09-18  Bruno Haible  <bruno@clisp.org>
66944
66945         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
66946         (func_import): Use join on two temporary files instead of three nested
66947         loops, in order to determine which files are new or old.
66948
66949 2005-09-18  Bruno Haible  <bruno@clisp.org>
66950
66951         * gnulib-tool (func_import): Comment out code that spits out the
66952         new files with --dry-run.
66953
66954 2005-09-18  Bruno Haible  <bruno@clisp.org>
66955
66956         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
66957
66958 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66959
66960         * lib/stat-time.h: New file.
66961         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
66962         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
66963         in a different way.
66964         (timespec_cmp): New function.
66965         * lib/utimecmp.c: Include stat-time.h.
66966         (SYSCALL_RESOLUTION): Depend on whether various struct stat
66967         members exist, not on the obsolescent ST_MTIM_NSEC.
66968         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
66969
66970 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66971
66972         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
66973
66974 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66975
66976         * MODULES.html.sh (File system functions): Add stat-time.
66977         * modules/stat-time: New file.
66978         * modules/timespec (Files): Remove m4/st_mtim.m4; this
66979         is now done in a different way, by the stat-time module.
66980         * modules/utimecmp (Depends-on): Add stat-time.
66981
66982 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66983
66984         * m4/st_mtim.m4: Remove.  Superseded by...
66985         * m4/stat-time.m4: New file.
66986         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
66987         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
66988
66989 2005-09-15  Derek Price  <derek@ximbiot.com>
66990
66991         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
66992
66993 2005-09-15  Derek Price  <derek@ximbiot.com>
66994
66995         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
66996         * lib/regex_internal.c: Ditto, using this...
66997         (__GNUC_PREREQ): ...new macro.
66998         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
66999         using...
67000         (__GNUC_PREREQ): ...this new macro.
67001
67002         * lib/strstr.h: Include string.h. Define strstr as a macro here.
67003
67004 2005-09-15  Derek Price  <derek@ximbiot.com>
67005             Paul Eggert  <eggert@cs.ucla.edu>
67006
67007         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
67008         changes, consolidating in...
67009         * lib/regex_internal.h: ...this file.
67010
67011 2005-09-13  Jim Meyering  <jim@meyering.net>
67012
67013         * lib/canon-host.c: Filter through gnu indent and reword comments
67014         slightly.
67015         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
67016
67017 2005-09-13  Derek Price  <derek@ximbiot.com>
67018
67019         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
67020         failure.
67021         Reported by Jim Meyering  <jim@meyering.net>.
67022
67023 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67024
67025         * lib/base64.c: Typo.
67026         (base64_encode): Put b64str in initialized data section.
67027
67028 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
67029
67030         Merge glibc and coreutils changes into gnulib, plus a few
67031         extra fixes.
67032         * lib/md5.c: Use #error rather than a string.
67033         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
67034         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
67035         (__attribute__): Define to empty for non recent-GCC.
67036         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
67037         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
67038         Renamed from their non-__ counterparts, with new macros replacing
67039         them if not _LIBC.  Add __THROW attribute.
67040         (rol): Remove.
67041         (struct md5_ctx): Align buffer if using GCC.
67042         * lib/sha1.h (struct sha1_ctx): Likewise.
67043         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
67044         The old name was backwards.
67045         (NOTSWAP): Remove; not used.
67046         (rol): New macro, moved here from md5.h.
67047         (sha1_process_block): Remove a FIXME that doesn't make sense.
67048
67049 2005-09-12  Derek Price  <derek@ximbiot.com>
67050
67051         Return usable errors from canon-host.
67052         * lib/canon-host.h: New file.
67053         * lib/canon-host.c (canon_host): Wrap...
67054         (canon_host_r): ...this new function, which now relies exclusively on
67055         getaddrinfo.
67056         (ch_strerror): New function.
67057         (last_cherror): New global.
67058         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
67059         interface.
67060         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
67061         void *.
67062         (freeaddrinfo): Free ai->ai_canonname when set.
67063
67064 2005-09-12  Derek Price  <derek@ximbiot.com>
67065
67066         Make canon-host require getaddrinfo.
67067         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
67068         AC_LIBSOURCE canon-host.h.  Call...
67069         (gl_PREREQ_CANON_HOST): ...this new function, which requires
67070         gl_GETADDRINFO.
67071         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
67072
67073 2005-09-12  Derek Price  <derek@ximbiot.com>
67074
67075         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
67076         LGPL.
67077         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
67078
67079 2005-09-12  Derek Price  <derek@ximbiot.com>
67080
67081         * lib/gai_strerror.c: Include config.h when available.  Include
67082         getaddrinfo.h before other headers to test interface.
67083         Reported by Larry Jones <lawrence.jones@ugs.com>.
67084
67085 2005-09-12  Derek Price  <derek@ximbiot.com>
67086             Paul Eggert  <eggert@cs.ucla.edu>
67087
67088         * modules/glob (Files): Add glob-libc.h.
67089
67090 2005-09-12  Derek Price  <derek@ximbiot.com>
67091             Paul Eggert  <eggert@cs.ucla.edu>
67092
67093         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
67094         glob_.h, glob-libc.h.
67095         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
67096
67097 2005-09-12  Derek Price  <derek@ximbiot.com>
67098             Paul Eggert  <eggert@cs.ucla.edu>
67099
67100         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
67101         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
67102         protecting things that should be done only in gnulib contexts.
67103         * lib/glob_.h: New file, containing only the glob things needed for
67104         gnulib.
67105         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
67106         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
67107         (glob, globfree, glob_pattern_p): Now defined simply in terms of
67108         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
67109         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
67110         and to respect the namespace rules better.
67111
67112 2005-09-08  Simon Josefsson  <jas@extundo.com>
67113
67114         * modules/socklen: New file.
67115
67116 2005-09-08  Simon Josefsson  <jas@extundo.com>
67117
67118         * m4/socklen.m4: New file.
67119
67120 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67121
67122         * modules/utimens (Files): Add m4/utimbuf.m4, since
67123         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
67124         Reported by Sergey Poznyakoff.
67125
67126 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67127
67128         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
67129         definitions, since that's the preferred style in glibc.
67130         Fix a minor spacing issue, and update copyright notice to match
67131         glibc's.
67132
67133 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67134
67135         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
67136
67137 2005-09-06  Simon Josefsson  <jas@extundo.com>
67138
67139         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
67140         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
67141
67142 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67143
67144         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
67145         warning.
67146
67147 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67148
67149         * config/srclist.txt: Add glibc bug 1302.
67150
67151 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
67152
67153         Change bitset word type from unsigned int to unsigned long int,
67154         as this has better performance on typical 64-bit hosts.
67155         Port bitset code to hosts with unusual word sizes.
67156         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
67157         (build_collating_symbol):
67158         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
67159         argument is a bitset.  This is merely a style issue, but it makes
67160         it clearer that an entire array is expected.
67161         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
67162         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
67163         Port to the case where bitset_word is not the same as unsigned int.
67164         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67165         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
67166         Likewise.
67167         * lib/regexec.c (check_dst_limits_calc_pos_1,
67168         check_subexp_matching_top):
67169         (build_trtable, group_nodes_into_DFAstates):
67170         Likewise.
67171         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
67172         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
67173         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
67174         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
67175         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
67176         * lib/regcomp.c (optimize_subexps, lower_subexp):
67177         Work even if bitset_word has holes in its bitwise representation.
67178         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
67179         * lib/regexec.c (check_dst_limits_calc_pos_1,
67180         check_subexp_matching_top):
67181         Likewise.
67182         * lib/regex_internal.c (re_string_reconstruct):
67183         Don't assume UCHAR_MAX == 255.
67184         * lib/regex_internal.h (bitset_set_all): Likewise.
67185         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
67186         All uses changed.
67187         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
67188         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
67189         All uses changed.
67190         (BITSET_WORD_MAX): New macro.
67191         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
67192         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
67193         (bitset_empty, bitset_copy):
67194         Prefer sizeof (bitset) to multiplying it out ourselves.
67195         (bitset_not_merge): Remove; unused.
67196         (bitset_contain): Return bool, not unsigned int with one bit on.
67197         All callers changed.
67198         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
67199         alignment than re_node_set; do this by defining a new internal
67200         type struct dests_alloc and using it to allocate memory.
67201
67202 2005-09-05  Bruno Haible  <bruno@clisp.org>
67203
67204         * gnulib-tool (func_import): Fix comparison in handling of symbolic
67205         links.
67206
67207 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
67208
67209         * modules/size_max (Makefile.am): Add size_max.h
67210
67211 2005-09-04  Derek Price  <derek@ximbiot.com>
67212
67213         * gnulib-tool (func_import): Fix reversed $symbolic logic.
67214
67215 2005-09-03  Simon Josefsson  <jas@extundo.com>
67216
67217         * gnulib-tool: Fix typo.
67218
67219 2005-09-03  Simon Josefsson  <jas@extundo.com>
67220
67221         * config/srclist.txt: Add glibc bug 1293.
67222
67223 2005-09-03  Derek Price  <derek@ximbiot.com>
67224
67225         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
67226         From Larry Jones <lawrence.jones@ugs.com>.
67227
67228 2005-09-02  Simon Josefsson  <jas@extundo.com>
67229
67230         * modules/socklen: New file.
67231
67232 2005-09-02  Simon Josefsson  <jas@extundo.com>
67233
67234         * modules/havelib: New module.
67235
67236         * modules/gettext, modules/iconv, modules/lock, modules/readline:
67237         Use havelib.
67238
67239 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67240
67241         Check for arithmetic overflow when calculating sizes, to prevent
67242         some buffer-overflow issues.  These patches are conservative, in the
67243         sense that when I couldn't determine whether an overflow was possible,
67244         I inserted a run-time check.
67245         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
67246         macros.
67247         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
67248         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
67249         (re_xnrealloc, re_x2nrealloc): New inline functions.
67250         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
67251         parse_bracket_exp):
67252         (build_equiv_class, build_charclass): Check for arithmetic overflow
67253         in size expression calculations.
67254         * lib/regex_internal.c (re_string_realloc_buffers):
67255         (build_wcs_upper_buffer, re_node_set_add_intersect):
67256         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
67257         (re_dfa_add_node, register_state): Likewise.
67258         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
67259         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
67260         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
67261         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
67262
67263 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67264
67265         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67266         m4/ulonglong.m4.  Problem reported by Martin Lambers.
67267
67268 2005-09-02  Bruno Haible  <bruno@clisp.org>
67269
67270         Support for lib vs. lib64 distinction on biarch platforms.
67271         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
67272         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
67273         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
67274
67275 2005-09-02  Bruno Haible  <bruno@clisp.org>
67276
67277         * gnulib-tool (import): In the other first-use case, provide defaults
67278         as well.
67279
67280 2005-09-02  Bruno Haible  <bruno@clisp.org>
67281
67282         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
67283         patches not yet found in the latest gettext release.
67284
67285 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67286
67287         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
67288         to avoid a collision with bits/local_lim.h in glibc.
67289         All uses changed.  Problem reported by Dmitry V. Levin in
67290         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
67291
67292         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
67293         bugs in int versus size_t comparisons.
67294         (re_string_context_at): Fix bug where the code assumed that
67295         Idx is signed.
67296
67297         Use bool where appropriate.
67298         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
67299         All callers changed.
67300         (calc_eclosure_iter): Likewise, for ROOT arg.
67301         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
67302         (build_charclass_op): Likewise, for NON_MATCH arg.
67303         * lib/regex_internal.c (re_string_allocate, re_string_construct):
67304         (re_string_construct_common): Likewise, for ICASE arg.
67305         * lib/regexec.c (re_search_2_stub, re_search_stub):
67306         Likewise, for RET_LEN arg.
67307         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
67308         (set_regs): Likewise, for FL_BACKTRACK arg.
67309         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
67310         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
67311         (calc_eclosure_iter, parse_bracket_exp):
67312         Use bool for internal variables that are booleans.
67313         * lib/regexec.c (re_search_internal, check_matching,
67314         proceed_next_node):
67315         (set_regs, build_sifted_states, sift_states_bkref):
67316         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
67317         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67318         (find_collation_sequence_value):
67319         Likewise.
67320         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
67321         (re_node_set_compare):
67322         Return bool, not int. All callers changed.
67323         * lib/regexec.c (check_halt_node_context, check_dst_limits):
67324         (build_trtable, check_node_accept): Likewise.
67325         * lib/regex_internal.h: Include stdbool.h.
67326
67327         Fix bugs uncovered when converting to bool.
67328         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
67329         failure instead of charging ahead blindly.
67330         * lib/regex_internal.c (register_state): Likewise.
67331         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
67332         for freeing internal storage.
67333         (group_nodes_into_DFA_states): Use unsigned int, not int, for
67334         bitset pieces used as boolean, to avoid undefined behavior
67335         on hosts that do int overflow checking.
67336
67337 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67338
67339         * config/srclist.txt: Add glibc bugs 1285-1287.
67340
67341 2005-09-01  Jim Meyering  <jim@meyering.net>
67342
67343         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
67344         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
67345         Require gl_STAT_MACROS, too.
67346
67347 2005-09-01  Bruno Haible  <bruno@clisp.org>
67348
67349         * gnulib-tool (import): In the first-use case, provide defaults.
67350
67351 2005-09-01  Bruno Haible  <bruno@clisp.org>
67352
67353         * gnulib-tool (func_import): Remove the .tmp files.
67354
67355 2005-09-01  Bruno Haible  <bruno@clisp.org>
67356
67357         * gnulib-tool (func_import): Fix handling of symbolic links.
67358
67359 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67360
67361         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
67362         old glibc regex code mishandles strings longer than 2**31 bytes.
67363         This patch fixes this when the regex code is used in gnulib
67364         (i.e., outside glibc).
67365
67366         This patch should not affect the use of the regex code inside
67367         glibc.  No doubt this problem also needs to be handled for glibc
67368         as well, but the result will be an incompatible change to the
67369         glibc ABI, and the old ABI will have to be supported too.  That
67370         can be the the subject for another patch.
67371
67372         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
67373         governing whether the rest of this patch is active.  By default,
67374         the macro is disabled and the patch has no effect.
67375         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
67376         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
67377         (struct re_pattern_buffer, re_search, re_search_2, re_match):
67378         (re_match_2, re_set_registers): Use the new types.
67379         * lib/regex_internal.h (Idx, re_hashval_t): New types.
67380         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
67381         New macros.
67382         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
67383         (re_string_context_at, bin_tree_t, re_dfastate_t):
67384         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
67385         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
67386         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
67387         (re_string_char_size_at, re_string_wchar_at):
67388         (re_string_elem_size_at):
67389         Use the new types and macros to port to 64-bit hosts.
67390         Use unsigned types for internal values, so that the code
67391         mostly works even for arrays larger than SSIZE_MAX.
67392         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
67393         (search_duplicated_node, calc_eclosure_iter, fetch_number):
67394         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
67395         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
67396         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
67397         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
67398         (calc_inveclosure, parse_dup_op, build_range_exp):
67399         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
67400         (fetch_number, create_token_tree, mark_opt_subexp):
67401         Likewise.
67402         * lib/regex_internal.c (re_string_construct_common,
67403         create_ci_newstate):
67404         (create_cd_newstate, re_string_allocate, re_string_construct):
67405         (re_string_realloc_buffers, build_wcs_upper_buffer):
67406         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67407         (re_string_reconstruct, re_string_peek_byte_case):
67408         (re_string_fetch_byte_case, re_string_context_at):
67409         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67410         (re_node_set_init_copy, re_node_set_add_intersect):
67411         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67412         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67413         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67414         (re_acquire_state, re_acquire_state_context, register_state):
67415         Likewise.
67416         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
67417         search_cur_bkref_entry):
67418         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
67419         (re_search_internal, re_search_2_stub, re_search_stub)
67420         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
67421         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
67422         (update_cur_sifted_state, check_dst_limits):
67423         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67424         (check_subexp_limits, sift_states_bkref, merge_state_array):
67425         (check_subexp_matching_top, get_subexp, get_subexp_sub):
67426         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
67427         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67428         (expand_bkref_cache, check_node_accept_bytes):
67429         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
67430         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
67431         (acquire_init_state_context, check_halt_node_context):
67432         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
67433         (sift_states_backward, clean_state_log_if_needed):
67434         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
67435         (find_recover_state, transit_state_sb, transit_state_mb):
67436         (transit_state_bkref, build_trtable, match_ctx_clean):
67437         Likewise.
67438         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
67439         to work around an assumption that REG_MISSING is negative.
67440
67441         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
67442         (seek_collating_symbol_entry) [defined _LIBC]:
67443         (lookup_collation_sequence_value) [defined _LIBC]:
67444         (build_range_exp, build_collating_symbol) [defined _LIBC]:
67445         Use prototypes rather than old-style function definitions.
67446         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
67447         (transit_state_sb) [0]:
67448         (find_collation_sequence_value) [defined _LIBC]: Likewise.
67449
67450         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
67451         rm_eo.
67452
67453         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
67454         (optimize_subexps, lower_subexp):
67455         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
67456         since the signed shift might overflow.  Use 1u<<31 instead.
67457         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67458         Likewise.
67459         * lib/regexec.c (check_dst_limits_calc_pos_1,
67460         check_subexp_matching_top): Likewise.
67461
67462         * lib/regcomp.c (optimize_subexps, lower_subexp):
67463         Use CHAR_BIT rather than 8, for clarity.
67464         * lib/regexec.c (check_dst_limits_calc_pos_1):
67465         (check_subexp_matching_top): Likewise.
67466         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
67467         have to worry about portability issues when shifting it left.
67468         Remove no-longer-needed test for table_size > 0.
67469         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
67470         in a word, as the resulting behavior is undefined.
67471         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
67472         in one case, a <= should have been an <, and in another case the
67473         whole test was missing.
67474         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
67475         the standard name CHAR_BIT.
67476         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
67477         this is not true on one's complement and signed-magnitude hosts.
67478
67479         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
67480         next_last_offset.
67481         (struct re_dfa_t): Remove unused member states_alloc.
67482         * lib/regcomp.c (init_dfa): Don't initialize unused members.
67483
67484 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67485
67486         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
67487         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
67488         and large-file glibc and in 32-bit large-file Solaris.
67489
67490 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67491
67492         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
67493         lengths fit in regoff_t; this isn't true if regoff_t is the same
67494         width as size_t.
67495         * lib/regex.c (re_search_internal): 5th arg is LAST_START
67496         (= START + RANGE) instead of RANGE.  This avoids overflow
67497         problems when regoff_t is the same width as size_t.
67498         All callers changed.
67499         (re_search_2_stub): Check for overflow when adding the
67500         sizes of the two strings.
67501         (re_search_stub): Check for overflow when adding START
67502         to RANGE; if it occurs, substitute the extreme value.
67503
67504 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67505
67506         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
67507
67508 2005-08-31  Jim Meyering  <jim@meyering.net>
67509
67510         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
67511         a pointer-to-const.
67512         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
67513         (register_state): Likewise.
67514         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
67515         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67516         (group_nodes_into_DFAstates): Likewise.
67517
67518 2005-08-31  Jim Meyering  <jim@meyering.net>
67519
67520         * check-module: Add a FIXME comment.
67521
67522 2005-08-31  Eric Blake  <ebb9@byu.net>
67523
67524         * modules/unistd-safer (Files): Add unistd--.h.
67525         * modules/stdio-safer (Files): Add stdio--.h.
67526
67527 2005-08-31  Derek Price  <derek@ximbiot.com>
67528
67529         * lib/getdelim.c (getdelim): Return EOF on EOF.
67530         Reported by Larry Jones <lawrence.jones@ugs.com>.
67531
67532 2005-08-31  Bruno Haible  <bruno@clisp.org>
67533
67534         Avoid unnecessary diffs in the generated lib/Makefile.am.
67535         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
67536         the generated files.
67537         (func_import): Don't set cmd.
67538
67539 2005-08-31  Bruno Haible  <bruno@clisp.org>
67540
67541         * lib/strstr.c: Include <stddef.h>, for NULL.
67542         * lib/strcasestr.c: Likewise.
67543         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67544
67545 2005-08-31  Bruno Haible  <bruno@clisp.org>
67546
67547         * gnulib-tool: New option --macro-prefix.
67548         (func_import): Use macro_prefix.
67549         (import): Handle option --macro-prefix.
67550
67551 2005-08-31  Bruno Haible  <bruno@clisp.org>
67552
67553         * gnulib-tool (import): Rename most ac_* variables to cached_*.
67554         Also use new variables cached_lgpl, cached_libtool.
67555
67556 2005-08-31  Bruno Haible  <bruno@clisp.org>
67557
67558         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
67559         always instantiating them.
67560
67561 2005-08-31  Bruno Haible  <bruno@clisp.org>
67562
67563         * gnulib-tool (func_import): Read the previous cached settings
67564         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
67565         earlier added by gnulib but are now dropped. Warn when a gnulib file
67566         overwrites a non-gnulib file.
67567
67568 2005-08-31  Bruno Haible  <bruno@clisp.org>
67569
67570         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
67571         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
67572         projects that don't keep autogenerated files in CVS. Put into
67573         actioncmd only the specified modules, not the transitive closure.
67574
67575 2005-08-31  Bruno Haible  <bruno@clisp.org>
67576
67577         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
67578         Create directories that shall be filled.
67579         (import): Don't look for gl_* macros in configure.ac. Recurse across
67580         all directories containing a gnulib-cache.m4 files, if meaningful.
67581
67582 2005-08-31  Bruno Haible  <bruno@clisp.org>
67583
67584         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
67585         (import): Set seen_libtool when we see gl_LIBTOOL.
67586
67587 2005-08-31  Bruno Haible  <bruno@clisp.org>
67588
67589         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
67590         declaration macro definitions from generated gnulib.m4.
67591
67592 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
67593
67594         * lib/iconvme.h: Add prototype for iconv_alloc.
67595
67596 2005-08-29  Simon Josefsson  <jas@extundo.com>
67597
67598         * lib/iconvme.c: Fix errno.
67599
67600 2005-08-29  Bruno Haible  <bruno@clisp.org>
67601
67602         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
67603         that it works when the directory contains spaces.
67604
67605 2005-08-29  Bruno Haible  <bruno@clisp.org>
67606
67607         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
67608
67609 2005-08-29  Bruno Haible  <bruno@clisp.org>
67610
67611         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
67612         Emit more advice.
67613
67614 2005-08-29  Bruno Haible  <bruno@clisp.org>
67615         and Stepan Kasal  <kasal@ucw.cz>
67616
67617         * check-module: If more parameters are given, check each of them
67618         separately; add more exceptions, as noted by Jim Meyering.
67619         (check_module): New procedure.
67620         (%exempt_header): Now contains all exceptions.
67621
67622 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
67623
67624         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
67625
67626 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67627
67628         * lib/iconvme.c: Split iconv_string into iconv_alloc.
67629
67630 2005-08-28  Bruno Haible  <bruno@clisp.org>
67631
67632         * m4/gnulib-tool.m4: New file.
67633
67634 2005-08-27  Jim Meyering  <jim@meyering.net>
67635
67636         * modules/unistd-safer (Files): Add pipe-safer.c.
67637         * modules/fcntl-safer (Files): Add creat-safer.c.
67638
67639 2005-08-27  Jim Meyering  <jim@meyering.net>
67640
67641         * m4/stdlib-safer.m4: New file.  From coreutils.
67642         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
67643         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
67644         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
67645         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
67646         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
67647
67648 2005-08-27  Jim Meyering  <jim@meyering.net>
67649
67650         * lib/fopen-safer.c: Merge minor changes from coreutils.
67651         * lib/dup-safer.c: Likewise.
67652         * lib/fd-safer.c: Likewise.
67653
67654         Merge from coreutils.
67655         * lib/stdio--.h: New file.
67656         * lib/stdlib--.h: New file.
67657         * lib/mkstemp-safer.c: New file.
67658
67659         GNU tar needs these.
67660         * lib/pipe-safer.c: New file.
67661         * lib/creat-safer.c: New file.
67662         * lib/fcntl--.h (creat): Define to creat_safer.
67663         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
67664         * lib/unistd--.h (pipe): Define to pipe_safer.
67665         * lib/unistd-safer.h: Declare pipe_safer.
67666
67667 2005-08-26  Simon Josefsson  <jas@extundo.com>
67668
67669         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
67670         Haible <bruno@clisp.org>.
67671
67672 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
67673
67674         * lib/regex_internal.h: Remove all references to
67675         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
67676         or better.
67677         (bitset_not, bitset_merge, bitset_not_merge):
67678         (bitset_mask, re_string_allocate, re_string_construct):
67679         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
67680         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
67681         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
67682         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
67683         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67684         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67685         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
67686         (re_acquire_state_context):
67687         Remove unnecessary forward decls.
67688         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
67689         Put __attribute at function definition,
67690         now that the function decl has been removed.
67691         * lib/regex_internal.c (re_string_peek_byte_case):
67692         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
67693         Likewise.
67694
67695 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
67696
67697         * m4/regex.m4: Add AC_PREREQ(2.50).
67698         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
67699
67700 2005-08-25  Simon Josefsson  <jas@extundo.com>
67701
67702         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
67703         __fsetlocking.
67704
67705 2005-08-25  Simon Josefsson  <jas@extundo.com>
67706
67707         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
67708         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
67709         GLIBC specific code.
67710
67711 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67712
67713         Make regex safe for g++.  This fixes one real bug (an "err"
67714         that should have been "*err").  g++ problem reported by
67715         Sam Steingold.
67716         * lib/regex_internal.h (re_calloc): New macro, consistent with
67717         re_malloc etc.  All callers of calloc changed to use re_calloc.
67718         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
67719         not int.  All callers changed.
67720         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
67721         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
67722         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
67723         (find_recover_state): Change "err" to "*err"; this fixes what
67724         appears to be a real bug.
67725         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
67726         versus int.
67727
67728 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67729
67730         * modules/regex (Depends-on): Add malloc, since the code
67731         assumes that !malloc(0) means failure.
67732
67733 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67734
67735         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
67736
67737         alloca modernization/simplification for regex.
67738         * lib/regex.c: Remove portability cruft for alloca.  This no longer
67739         needs to be at the start of the file, and can be moved into
67740         regex_internal.h and simplified.
67741         * lib/regex_internal.h: Include <alloca.h>.
67742         (__libc_use_alloca) [!defined _LIBC]: New macro.
67743         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
67744         now works outside glibc.
67745
67746 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67747
67748         * config/srclist.txt: Add glibc bugs 1241, 1245.
67749
67750 2005-08-25  Jim Meyering  <jim@meyering.net>
67751
67752         * lib/open-safer.c: Include <config.h>.
67753         Otherwise, we'd lose LARGEFILE support in any file using
67754         e.g. "fcntl--.h"
67755
67756 2005-08-25  Bruno Haible  <bruno@clisp.org>
67757
67758         * m4/minmax.m4: Require autoconf 2.52.
67759         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
67760         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
67761         alternatives of translit over the alphabet.
67762         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
67763
67764 2005-08-24  Simon Josefsson  <jas@extundo.com>
67765
67766         * tests/test-getpass.c: New file.
67767
67768 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67769
67770         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
67771         for GNU regex features.
67772
67773 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67774
67775         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
67776         * lib/regex.h (regerror): Likewise.
67777
67778         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
67779         requires this.  (The code never needed it.)
67780
67781         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
67782         All uses of recently-renamed identifiers changed to use the new,
67783         POSIX-compliant names.  The code will build and run just fine
67784         without these changes, but it's better to eat our own dog food
67785         and use the standard-conforming names.
67786
67787         * lib/regex.h: Fix a multitude of POSIX name space violations.
67788         These changes have an effect only for programs that define
67789         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
67790         do not change anything for programs compiled in the normal way.
67791         Also, there is no effect on the ABI.
67792
67793         (_REGEX_SOURCE): New macro.
67794         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
67795         defined and _GNU_SOURCE is not; this fixes a name space violation.
67796
67797         Rename the following macros to obey POSIX requirements.
67798         The old names are still visible as macros if _REGEX_SOURCE is defined.
67799         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
67800         RE_BACKSLASH_ESCAPE_IN_LISTS.
67801         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
67802         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
67803         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
67804         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
67805         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
67806         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
67807         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
67808         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
67809         (REG_INTERVALS): renamed from RE_INTERVALS.
67810         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
67811         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
67812         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
67813         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
67814         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
67815         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
67816         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
67817         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
67818         RE_UNMATCHED_RIGHT_PAREN_ORD.
67819         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
67820         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
67821         (REG_DEBUG): renamed from RE_DEBUG.
67822         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
67823         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
67824         unusual, since we can't clash with the POSIX REG_ICASE.
67825         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
67826         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
67827         (REG_NO_SUB): renamed from RE_NO_SUB.
67828         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
67829         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
67830         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
67831         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
67832         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
67833         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
67834         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
67835         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
67836         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
67837         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
67838         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
67839         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
67840         RE_SYNTAX_POSIX_MINIMAL_BASIC.
67841         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
67842         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
67843         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
67844         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
67845         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
67846         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
67847         (REG_FIXED): Renamed from REGS_FIXED.
67848         (REG_NREGS): Renamed from RE_NREGS.
67849
67850         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
67851         of other REG_* macros, since POSIX says the user is allowed to
67852         #undef these macros selectively.
67853
67854         (reg_errcode_t): Update comment stating what other tables need
67855         to be consistent.
67856
67857         Rename the following enum values to obey POSIX requirements.
67858         The old names are still visible as macros.
67859         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
67860         is not defined, since GNU is supposed to be a superset of POSIX as
67861         much as possible, and since we want reg_errcode_t to be a signed
67862         type for implementation consistency.
67863         (_REG_NOERROR): Renamed from REG_NOERROR.
67864         (_REG_NOMATCH): Renamed from REG_NOMATCH.
67865         (_REG_BADPAT): Renamed from REG_BADPAT.
67866         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
67867         (_REG_ECTYPE): Renamed from REG_ECTYPE.
67868         (_REG_EESCAPE): Renamed from REG_EESCAPE.
67869         (_REG_ESUBREG): Renamed from REG_ESUBREG.
67870         (_REG_EBRACK): Renamed from REG_EBRACK.
67871         (_REG_EPAREN): Renamed from REG_EPAREN.
67872         (_REG_EBRACE): Renamed from REG_EBRACE.
67873         (_REG_BADBR): Renamed from REG_BADBR.
67874         (_REG_ERANGE): Renamed from REG_ERANGE.
67875         (_REG_ESPACE): Renamed from REG_ESPACE.
67876         (_REG_BADRPT): Renamed from REG_BADRPT.
67877         (_REG_EEND): Renamed from REG_EEND.
67878         (_REG_ESIZE): Renamed from REG_ESIZE.
67879         (_REG_ERPAREN): Renamed from REG_ERPAREN.
67880         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
67881         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
67882         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
67883         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
67884
67885         (_REG_RE_NAME, _REG_RM_NAME): New macros.
67886         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
67887         changed.  But support the old name if the new one is not defined
67888         and if _REGEX_SOURCE.
67889
67890         Change the following member names in struct re_pattern_buffer.
67891         The old names are still supported if !_REGEX_SOURCE.
67892         The new names are always supported, regardless of _REGEX_SOURCE.
67893         (re_buffer): Renamed from buffer.
67894         (re_allocated): Renamed from allocated.
67895         (re_used): Renamed from used.
67896         (re_syntax): Renamed from syntax.
67897         (re_fastmap): Renamed from fastmap.
67898         (re_translate): Renamed from translate.
67899         (re_can_be_null): Renamed from can_be_null.
67900         (re_regs_allocated): Renamed from regs_allocated.
67901         (re_fastmap_accurate): Renamed from fastmap_accurate.
67902         (re_no_sub): Renamed from no_sub.
67903         (re_not_bol): Renamed from not_bol.
67904         (re_not_eol): Renamed from not_eol.
67905         (re_newline_anchor): Renamed from newline_anchor.
67906
67907         Change the following member names in struct re_registers.
67908         The old names are still supported if !_REGEX_SOURCE.
67909         The new names are always supported, regardless of _REGEX_SOURCE.
67910         (rm_num_regs): Renamed from num_regs.
67911         (rm_start): Renamed from start.
67912         (rm_end): Renamed from end.
67913
67914         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
67915         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
67916         Prepend __ to parameter names.
67917
67918         Undo yesterday's changes.
67919
67920 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67921
67922         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
67923         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
67924         lib/regex.c.
67925
67926 2005-08-24  Jim Meyering  <jim@meyering.net>
67927
67928         Sync from coreutils.
67929         * m4/fcntl-safer.m4: New file.
67930
67931         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
67932         and object files for this module.
67933
67934 2005-08-24  Jim Meyering  <jim@meyering.net>
67935
67936         Sync from coreutils.
67937         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
67938
67939 2005-08-24  Jim Meyering  <jim@meyering.net>
67940
67941         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
67942         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
67943
67944 2005-08-24  Jim Meyering  <jim@meyering.net>
67945
67946         * modules/fcntl-safer: New module.
67947         * modules/fts (Depends-on): Add fcntl-safer.
67948         * MODULES.html.sh (File descriptor based Input/Output):
67949         Add fcntl-safer.
67950
67951 2005-08-24  Bruno Haible  <bruno@clisp.org>
67952
67953         Support for unit test modules.
67954         * modules/README: Mention tests modules.
67955         * modules/TEMPLATE-TESTS: New file.
67956         * gnulib-tool: New options --extract-tests-module, --with-tests and
67957         --tests-base (unused for the moment).
67958         (testsbase, inctests): New variables.
67959         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
67960         (func_verify_module): Exclude TEMPLATE-TESTS.
67961         (func_verify_nontests_module, func_verify_tests_module): New functions.
67962         (func_get_dependencies): Add implicit dependency for tests modules.
67963         (func_get_tests_module): New function.
67964         (func_modules_transitive_closure): When --with-tests was specified,
67965         include the unit tests as well, unless explicitly avoided.
67966         (func_emit_lib_Makefile_am): Ignore the tests modules here.
67967         (func_emit_tests_Makefile_am): New function.
67968         (func_create_testdir): When --with-tests was specified, emit a
67969         tests/ directory.
67970         * MODULES.html.sh (Future developments): Update.
67971
67972 2005-08-24  Bruno Haible  <bruno@clisp.org>
67973
67974         * modules/tls-tests: New file.
67975         * tests/test-tls.c: New file, from GNU gettext.
67976
67977 2005-08-24  Bruno Haible  <bruno@clisp.org>
67978
67979         * modules/lock-tests: New file.
67980         * tests/test-lock.c: New file, from GNU gettext.
67981
67982 2005-08-24  Bruno Haible  <bruno@clisp.org>
67983
67984         * lib/lock.h: Add multiple inclusion guard.
67985         * lib/tls.h: Add multiple inclusion guard.
67986
67987 2005-08-24  Bruno Haible  <bruno@clisp.org>
67988
67989         * gnulib-tool: Add support for the --aux-dir option to
67990         --create-testdir, --create-megatestdir, --test, --megatest.
67991         (func_create_testdir, func_create_megatestdir): Optionally emit a
67992         AC_CONFIG_AUX_DIR directive.
67993         (create-testdir, create-megatestdir, test, megatest): Provide a
67994         default value for $auxdir.
67995
67996 2005-08-24  Bruno Haible  <bruno@clisp.org>
67997
67998         * gnulib-tool (import): Use compound statement instead of subshell
67999         where possible.
68000
68001 2005-08-24  Bruno Haible  <bruno@clisp.org>
68002
68003         * gnulib-tool (import): Change --aux-dir default to "build-aux".
68004
68005 2005-08-24  Bruno Haible  <bruno@clisp.org>
68006
68007         * gnulib-tool (func_version): Update.
68008
68009 2005-08-24  Bruno Haible  <bruno@clisp.org>
68010
68011         * gnulib-tool (func_import, func_create_testdir,
68012         func_create_megatestdir): Quote all autoconf macro arguments.
68013
68014 2005-08-24  Bruno Haible  <bruno@clisp.org>
68015
68016         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
68017         option --force, because --force causes the aclocal.m4 of each
68018         subdirectory to be newer than the corresponding config.h.in.
68019
68020 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68021
68022         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
68023         All contents moved to gl_REGEX.
68024         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
68025         assume that it does.
68026
68027 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68028
68029         * lib/regex.h (REG_NOSYS)
68030         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
68031         Define, since POSIX requires it as of 2001.
68032         (_REG_ENOSYS)
68033         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
68034         New private symbol, used to keep the enum signed in all cases.
68035         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
68036         Youngman in
68037         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
68038
68039         * lib/regex_internal.c (re_string_skip_chars, register_state):
68040         (calc_state_hash):
68041         Remove forward decls; no longer needed now that we use prototypes.
68042         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
68043         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
68044         (clean_state_log_if_needed): Likewise.
68045
68046 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68047
68048         * config/srclist.txt: Add glibc bugs 1231-1233.
68049
68050 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68051
68052         Fix problems reported by Sam Steingold in
68053         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
68054         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
68055         assumed that reg_errcode_t is a signed type, which is not
68056         necessarily true if _XOPEN_SOURCE is not defined.
68057         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
68058         since some compilers warn about it otherwise.
68059
68060 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68061
68062         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
68063         (init_word_char, create_initial_state, duplicate_node_closure):
68064         (fetch_token, peek_token_bracket, build_range_exp):
68065         (build_collating_symbol): Remove forward decls; no longer needed
68066         now that we use prototypes.
68067
68068         * lib/regcomp.c:
68069         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
68070         (re_compile_fastmap_iter, regcomp, regerror, regfree):
68071         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
68072         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
68073         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
68074         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
68075         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
68076         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
68077         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
68078         (build_range_exp, build_collating_symbol, parse_bracket_exp):
68079         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
68080         (build_charclass, build_charclass_op, fetch_number, create_tree):
68081         (create_token_tree, mark_opt_subexp, duplicate_tree):
68082         Use prototypes rather than old-style definitions.
68083
68084         * lib/regex_internal.c:
68085         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
68086         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
68087         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68088         (re_string_reconstruct, re_string_peek_byte_case):
68089         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
68090         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68091         (re_node_set_init_copy, re_node_set_add_intersect):
68092         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68093         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68094         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68095         (re_acquire_state, re_acquire_state_context, register_state):
68096         (create_ci_newstate, create_cd_newstate, free_state):
68097         Likewise.
68098         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
68099         re_search_2):
68100         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
68101         (re_search_internal, prune_impossible_nodes):
68102         (acquire_init_state_context, check_matching, static):
68103         (check_halt_node_context, check_halt_state_context, proceed_next_node):
68104         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
68105         (update_regs, sift_states_backward, build_sifted_states):
68106         (clean_state_log_if_needed, merge_state_array):
68107         (update_cur_sifted_state, add_epsilon_src_nodes):
68108         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
68109         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
68110         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
68111         (find_recover_state, check_subexp_matching_top, transit_state_mb):
68112         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
68113         (check_arrival, check_arrival_add_next_nodes):
68114         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68115         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68116         (check_node_accept_bytes, check_node_accept, extend_buffers):
68117         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
68118         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
68119         (sift_ctx_init):
68120         Likewise.
68121
68122         * lib/regex_internal.h:
68123         (re_string_allocate, re_string_construct, re_string_reconstruct):
68124         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
68125         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
68126         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
68127         (re_string_context_at, re_string_peek_byte_case):
68128         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
68129         is defined, since we now use prototypes always.
68130
68131         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
68132         C89 or better.  All uses removed.
68133
68134 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68135
68136         * config/srclist.txt: Add glibc bugs 1220-1227.
68137
68138 2005-08-20  Jim Meyering  <jim@meyering.net>
68139
68140         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
68141         of unused local, dfa.
68142
68143 2005-08-20  Bruno Haible  <bruno@clisp.org>
68144
68145         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
68146
68147 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68148
68149         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
68150         (re_node_set_insert_last, re_dfa_add_node):
68151         Rename local variables to avoid GCC shadowing warnings.
68152
68153 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68154
68155         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
68156         [defined lint]: Suppress bogus uninitialized-variable warnings.
68157
68158         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
68159         and let the caller return REG_ESPACE if out of space.  This
68160         removes an uninitialied-variable warning with GCC 4.0.1, and also
68161         avoids taking the address of a local variable.  All callers
68162         changed.
68163
68164 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68165
68166         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
68167         $LIBCSRC/posix/regexec.c.
68168         Add glibc bug 1217 for regcomp.c.
68169
68170 2005-08-19  Jim Meyering  <jim@meyering.net>
68171
68172         * lib/regexec.c (proceed_next_node): Redo local variables to
68173         avoid GCC shadowing warnings.
68174
68175 2005-08-18  Bruno Haible  <bruno@clisp.org>
68176
68177         * lib/strstr.c (strstr): Fix return value in multibyte case.
68178         * lib/strcasestr.c (strcasestr): Likewise.
68179
68180 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68181
68182         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
68183
68184 2005-08-17  Jim Meyering  <jim@meyering.net>
68185
68186         Make the %s format (seconds since the epoch) work for a negative
68187         number and when used with a zero-padded field width, e.g. %015s.
68188
68189         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
68190         label so that it precedes the code to set `digits'.  Otherwise,
68191         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
68192         print `00-22'.  Now, it prints `-0022', as it should.
68193
68194 2005-08-17  Bruno Haible  <bruno@clisp.org>
68195
68196         * modules/strstr (Files): Add m4/mbrtowc.m4.
68197         (Depends-on): Add mbuiter.
68198
68199 2005-08-17  Bruno Haible  <bruno@clisp.org>
68200
68201         * modules/strcasestr: New file.
68202         * MODULES.html.sh (String handling, based on ANSI C 89): Add
68203         strcasestr.
68204
68205 2005-08-17  Bruno Haible  <bruno@clisp.org>
68206
68207         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
68208
68209 2005-08-17  Bruno Haible  <bruno@clisp.org>
68210
68211         * modules/mbuiter: New file.
68212         * MODULES.html.sh (Extended multibyte and wide character utilities):
68213         Add mbuiter.
68214
68215 2005-08-17  Bruno Haible  <bruno@clisp.org>
68216
68217         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
68218         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
68219
68220 2005-08-17  Bruno Haible  <bruno@clisp.org>
68221
68222         * m4/strcasestr.m4: New file.
68223
68224 2005-08-17  Bruno Haible  <bruno@clisp.org>
68225
68226         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
68227         * lib/strstr.c: Completely rewritten, with multibyte locale support.
68228
68229 2005-08-17  Bruno Haible  <bruno@clisp.org>
68230
68231         * lib/strcasestr.h: New file.
68232         * lib/strcasestr.c: New file.
68233
68234 2005-08-17  Bruno Haible  <bruno@clisp.org>
68235
68236         * lib/strcasecmp.c: Use mbuiter.h.
68237
68238 2005-08-17  Bruno Haible  <bruno@clisp.org>
68239
68240         * lib/mbuiter.h: New file.
68241
68242 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68243
68244         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
68245         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
68246         and gl_GETOPT are both invoked via different paths (as happens
68247         with GNU tar CVS because it uses both argp and getopt), the former
68248         wins.
68249
68250 2005-08-16  Bruno Haible  <bruno@clisp.org>
68251
68252         * modules/tls: New file.
68253         * MODULES.html.sh (Multithreading): Add tls.
68254
68255 2005-08-16  Bruno Haible  <bruno@clisp.org>
68256
68257         * modules/strnlen1: New file.
68258         * MODULES.html.sh (String handling): Add strnlen1.
68259
68260 2005-08-16  Bruno Haible  <bruno@clisp.org>
68261
68262         * modules/strcase (Files): Add m4/mbrtowc.m4.
68263         (Depends-on): Add strnlen1, mbchar.
68264
68265 2005-08-16  Bruno Haible  <bruno@clisp.org>
68266
68267         * modules/mbiter: New file.
68268         * MODULES.html.sh (Extended multibyte and wide character utilities):
68269         Add mbiter.
68270
68271 2005-08-16  Bruno Haible  <bruno@clisp.org>
68272
68273         * modules/mbfile: New file.
68274         * MODULES.html.sh (Extended multibyte and wide character utilities):
68275         Add mbfile.
68276
68277 2005-08-16  Bruno Haible  <bruno@clisp.org>
68278
68279         * modules/mbchar: New file.
68280         * MODULES.html.sh (Extended multibyte and wide character utilities):
68281         New section.
68282
68283 2005-08-16  Bruno Haible  <bruno@clisp.org>
68284
68285         * m4/tls.m4: New file, from GNU gettext.
68286
68287 2005-08-16  Bruno Haible  <bruno@clisp.org>
68288
68289         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
68290         always.
68291         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
68292
68293 2005-08-16  Bruno Haible  <bruno@clisp.org>
68294
68295         * m4/mbiter.m4: New file.
68296
68297 2005-08-16  Bruno Haible  <bruno@clisp.org>
68298
68299         * m4/mbfile.m4: New file.
68300
68301 2005-08-16  Bruno Haible  <bruno@clisp.org>
68302
68303         * m4/mbchar.m4: New file.
68304
68305 2005-08-16  Bruno Haible  <bruno@clisp.org>
68306
68307         * lib/tls.h: New file, from GNU gettext.
68308         * lib/tls.c: New file, from GNU gettext.
68309
68310 2005-08-16  Bruno Haible  <bruno@clisp.org>
68311
68312         * lib/strnlen1.h: New file.
68313         * lib/strnlen1.c: New file.
68314
68315 2005-08-16  Bruno Haible  <bruno@clisp.org>
68316
68317         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
68318         (mbi_init): Update.
68319         (mbi_avail, mbi_advance): Let the iteration end before the terminating
68320         NUL byte, not after it.
68321
68322 2005-08-16  Bruno Haible  <bruno@clisp.org>
68323
68324         * lib/strcase.h (strcasecmp): Add note in comments.
68325         * lib/strncasecmp.c: Use code from strcasecmp.c.
68326         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
68327         (strcasecmp): Work correctly in multibyte locales.
68328
68329 2005-08-16  Bruno Haible  <bruno@clisp.org>
68330
68331         * lib/mbiter.h: New file.
68332
68333 2005-08-16  Bruno Haible  <bruno@clisp.org>
68334
68335         * lib/mbfile.h: New file.
68336
68337 2005-08-16  Bruno Haible  <bruno@clisp.org>
68338
68339         * lib/mbchar.h: New file.
68340         * lib/mbchar.c: New file.
68341
68342 2005-08-16  Bruno Haible  <bruno@clisp.org>
68343
68344         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
68345         the valid ones. Makes the comparison operations transitive:
68346         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
68347         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
68348
68349 2005-08-15  Simon Josefsson  <jas@extundo.com>
68350
68351         * modules/ssize_t (License): Change to 'unlimited'.
68352
68353         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
68354
68355 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68356
68357         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
68358         Add comments for each pending glibc patch.
68359
68360 2005-08-15  Bruno Haible  <bruno@clisp.org>
68361
68362         * lib/regex.h (__restrict_arr): Don't define to __restrict if
68363         __cplusplus is defined.
68364
68365 2005-08-14  Jim Meyering  <jim@meyering.net>
68366
68367         Sync from coreutils.
68368
68369         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
68370         Use the hash-table-based cycle-detection code not just when
68371         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
68372         Reported by James Youngman in
68373         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
68374         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
68375         FTS_TIGHT_CYCLE_CHECK.
68376         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
68377         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
68378         once again.
68379         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
68380         * lib/fts.c (fd_safer): Remove decl.
68381         Include fcntl--.h rather than unistd-safer.h
68382         (fts_safe_changedir): Don't call fd_safer; no longer needed
68383         now that we include fcntl--.h.
68384
68385 2005-08-12  Simon Josefsson  <jas@extundo.com>
68386
68387         * modules/getndelim2: Use ssize_t module.
68388         * modules/getnline: Likewise.
68389         * modules/safe-read: Likewise.
68390         * modules/xreadlink: Likewise.
68391
68392         * modules/ssize_t: New file.
68393
68394 2005-08-12  Simon Josefsson  <jas@extundo.com>
68395
68396         * m4/readline.m4: Look for termcap, curses or ncurses if required.
68397
68398 2005-08-12  Simon Josefsson  <jas@extundo.com>
68399
68400         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68401         ssize_t.
68402
68403 2005-08-12  Simon Josefsson  <jas@extundo.com>
68404
68405         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
68406         readline, getdelim and check_version.
68407         (Support for systems lacking ISO C 99: Sizes of integer types):
68408         Add size_max.
68409
68410 2005-08-12  Bruno Haible  <bruno@clisp.org>
68411
68412         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
68413
68414 2005-08-11  Simon Josefsson  <jas@extundo.com>
68415
68416         * modules/readline: New file.
68417
68418         * modules/strnlen (Files): Add strnlen.h.
68419
68420 2005-08-11  Simon Josefsson  <jas@extundo.com>
68421
68422         * m4/readline.m4: New file.
68423
68424 2005-08-11  Simon Josefsson  <jas@extundo.com>
68425
68426         * lib/readline.h, readline.c: New file.
68427
68428 2005-08-11  Simon Josefsson  <jas@extundo.com>
68429
68430         * doc/gnulib.texi (Initial import, Finishing touches): Mention
68431         gl_AVOID.
68432
68433 2005-08-11  Bruno Haible  <bruno@clisp.org>
68434
68435         * lib/strnlen.h (strnlen): Change parameter name to match comment.
68436
68437 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
68438
68439         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
68440
68441 2005-08-10  Simon Josefsson  <jas@extundo.com>
68442
68443         * tests/test-iconvme.c: New file.
68444
68445 2005-08-10  Simon Josefsson  <jas@extundo.com>
68446
68447         * m4/strnlen.m4: New file.
68448
68449         * m4/strndup.m4: Don't check for strnlen declaration, done in
68450         strnlen.m4.
68451
68452 2005-08-10  Simon Josefsson  <jas@extundo.com>
68453
68454         * lib/strndup.c: Use strnlen.h.
68455
68456         * lib/strnlen.h: New file.
68457
68458 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68459
68460         * README: Typos.
68461
68462 2005-08-02  Simon Josefsson  <jas@extundo.com>
68463
68464         * modules/readline: New file.
68465
68466 2005-08-02  Simon Josefsson  <jas@extundo.com>
68467
68468         * modules/getdelim: New file.
68469
68470         * modules/getline: Rewrite, don't use getndelim2.
68471
68472 2005-08-02  Simon Josefsson  <jas@extundo.com>
68473
68474         * m4/getline.m4: Separate out getdelim stuff into separate module.
68475
68476         * m4/getdelim.m4: New file.
68477
68478 2005-08-02  Simon Josefsson  <jas@extundo.com>
68479
68480         * lib/getline.h, getline.c: Rewrite.
68481
68482         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
68483
68484 2005-07-31  Bruno Haible  <bruno@clisp.org>
68485
68486         * lib/lock.h (gl_lock_initializer): New macro.
68487         (gl_lock_define_initialized): Use it.
68488         (gl_rwlock_initializer): New macro.
68489         (gl_rwlock_define_initialized): Use it.
68490         (gl_recursive_lock_initializer): New macro.
68491         (gl_recursive_lock_define_initialized): Use it.
68492
68493 2005-07-30  Karl Berry  <karl@gnu.org>
68494
68495         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
68496         Report from Ben Pfaff, regarding getopt.
68497
68498 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
68499
68500         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
68501         normal way.
68502         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
68503         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
68504         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
68505         (gl_GETOPT): Use the new macros.  Most of the implementation
68506         is moved to the new macros.  This is for programs like Emacs
68507         that don't want all the functionality of gl_GETOPT.
68508
68509 2005-07-26  Bruno Haible  <bruno@clisp.org>
68510
68511         * m4/lock.m4: Update from GNU gettext.
68512
68513 2005-07-26  Bruno Haible  <bruno@clisp.org>
68514
68515         * lib/lock.h: Update from GNU gettext.
68516         * lib/lock.c: Update from GNU gettext.
68517
68518 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
68519
68520         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
68521         obsolescent AC_TRY_RUN.  Include the default includes files, for
68522         'exit'.
68523
68524 2005-07-24  Bruno Haible  <bruno@clisp.org>
68525
68526         * modules/visibility: New file.
68527         * MODULES.html.sh (Misc): Add visibility.
68528
68529 2005-07-24  Bruno Haible  <bruno@clisp.org>
68530
68531         * m4/visibility.m4: New file.
68532
68533 2005-07-24  Bruno Haible  <bruno@clisp.org>
68534
68535         * doc/visibility.texi: New file.
68536
68537 2005-07-22  Bruno Haible  <bruno@clisp.org>
68538
68539         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
68540         $(ALLOCA_H), redundant through BUILT_SOURCES.
68541         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
68542         redundant through BUILT_SOURCES.
68543         * modules/byteswap (Makefile.am): Remove explicit dependency on
68544         $(BYTESWAP_H), redundant through BUILT_SOURCES.
68545         * modules/fnmatch (Makefile.am): Remove explicit dependency on
68546         $(FNMATCH_H), redundant through BUILT_SOURCES.
68547         * modules/getopt (Makefile.am): Remove explicit dependency on
68548         $(GETOPT_H), redundant through BUILT_SOURCES.
68549         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
68550         redundant through BUILT_SOURCES.
68551         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
68552         redundant through BUILT_SOURCES.
68553         * modules/stdbool (Makefile.am): Remove explicit dependency on
68554         $(STDBOOL_H), redundant through BUILT_SOURCES.
68555         * modules/stdint (Makefile.am): Remove explicit dependency on
68556         $(STDINT_H), redundant through BUILT_SOURCES.
68557         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
68558         Remove explicit dependency on $(SYSEXITS_H).
68559         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
68560
68561 2005-07-18  Simon Josefsson  <jas@extundo.com>
68562
68563         * lib/check-version.c (check_version): Accept identical versions too.
68564
68565 2005-07-18  Bruno Haible  <bruno@clisp.org>
68566
68567         * modules/lock: New file.
68568         * MODULES.html.sh (Multithreading): New section.
68569
68570 2005-07-18  Bruno Haible  <bruno@clisp.org>
68571
68572         * m4/lock.m4: New file, from GNU gettext.
68573
68574 2005-07-18  Bruno Haible  <bruno@clisp.org>
68575
68576         * lib/lock.h: New file, from GNU gettext.
68577         * lib/lock.c: New file, from GNU gettext.
68578
68579 2005-07-18  Bruno Haible  <bruno@clisp.org>
68580
68581         * lib/lock.h (gl_once_t): New type.
68582         (gl_once_define, gl_once): New macros.
68583         * lib/lock.c (fresh_once): New variable.
68584         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
68585         functions.
68586
68587 2005-07-16  Simon Josefsson  <jas@extundo.com>
68588
68589         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
68590         workaround, suggested by Bruno.
68591
68592 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68593
68594         * modules/xalloc (Depends-on): Add xalloc-die.
68595         * modules/xvasprintf (Depends-on): Add xalloc-die.
68596
68597 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68598
68599         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
68600         with a minor change.
68601
68602 2005-07-15  Bruno Haible  <bruno@clisp.org>
68603
68604         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
68605         When using lib/poll.c, define poll as rpl_poll.
68606
68607 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
68608
68609         * modules/argp (Depends-on): Remove unlocked-io.
68610
68611 2005-07-14  Derek Price  <derek@ximbiot.com>
68612
68613         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
68614         for glob symlink bug.
68615
68616 2005-07-14  Bruno Haible  <bruno@clisp.org>
68617
68618         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
68619         Instead, test for *_unlocked function declarations directly.
68620
68621 2005-07-11  Simon Josefsson  <jas@extundo.com>
68622
68623         * modules/size_max: New file.
68624
68625         * modules/xsize: Depend on size_max module for size_max.m4.
68626
68627 2005-07-11  Simon Josefsson  <jas@extundo.com>
68628
68629         * lib/size_max.h: New file.
68630
68631 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
68632
68633         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
68634         copyright symbol and the year.
68635         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
68636         (version_etc_va): Use parameterized copyright notice.
68637         Reword to conform to the current GNU coding standards.
68638
68639 2005-07-11  Karl Berry  <karl@gnu.org>
68640
68641         * doc/gnulib.texi (Quoting): new node.
68642         (Initial import): more info, from Patrice.
68643
68644 2005-07-11  Bruno Haible  <bruno@clisp.org>
68645
68646         * gnulib-tool (func_usage): Document option --avoid.
68647         (Command line options): Handle --avoid.
68648         (func_acceptable): New function.
68649         (func_modules_transitive_closure): Use it.
68650
68651 2005-07-11  Bruno Haible  <bruno@clisp.org>
68652
68653         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
68654         Reported by Jim Meyering.
68655
68656 2005-07-10  Bruno Haible  <bruno@clisp.org>
68657
68658         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
68659         Needed when size_t is smaller than 'unsigned int'.
68660         Reported by Paul Eggert.
68661
68662 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68663
68664         * modules/argp (Depends-on): Add unlocked-io
68665
68666 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68667
68668         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
68669         block of defines.
68670
68671 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68672
68673         * config/srclist.txt: Comment out regcomp.c, since we have a porting
68674         fix now.
68675
68676 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
68677         and Paul Eggert  <eggert@cs.ucla.edu>
68678
68679         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
68680         in wint_t, not wchar_t.  Remove now-unnecessary cast.
68681
68682 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68683
68684         * modules/regex (Files): Add lib/regex_internal.c,
68685         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
68686         (Depends-on): Add extensions.
68687         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
68688
68689 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68690
68691         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
68692         pathconf.
68693         * m4/same.m4 (gl_SAME): Likewise.
68694         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
68695
68696         * m4/regex.m4: Adjust to new libc regex implementation.
68697         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
68698         all the .c and .h parts of (the new) regex.
68699         Quote the m4 stuff better.
68700         Check for RE_ICASE bug of old gnulib.
68701         Check for REG_STARTEND of recent libc.
68702         Rename local variables from jm_* to gl_*.
68703         Quote operand of "test -f".
68704         Say "recent enough" version of libc, not "version 2".
68705         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
68706         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
68707         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
68708         Remove check for btowc, isascii.
68709         Require AM_LANGINFO_CODESET.
68710
68711 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68712
68713         * lib/regex.c, regex.h: Sync from libc.
68714         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
68715         * lib/regexec.c:
68716         New files, synced from libc, except that regex_internal.h
68717         currently has a small porting fix.
68718
68719 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68720
68721         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
68722         regex_internal.c, regexec.c.
68723         Add regex_internal.h too, but as a comment, since the libc version
68724         is currently broken in gnulib mode.
68725
68726 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68727
68728         Support programs like Emacs that use gnulib but not gettext.
68729         * MODULES.html.sh (Internationalization functions): Add gettext-h.
68730         * modules/gettext-h: New file.
68731         * modules/gettext (Files): Remove lib/gettext.h.
68732         (Depends-on): Add gettext-h.
68733         (Makefile.am): Remove lib_SOURCES.
68734         * modules/argmatch, modules/c-stack, modules/closeout:
68735         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
68736         * modules/execute, modules/file-type, modules/getaddrinfo:
68737         * modules/getopt, modules/human, modules/javacomp:
68738         * modules/javaexec, modules/mkdir-p, modules/obstack:
68739         * modules/openat, modules/pagealign_alloc, modules/pipe:
68740         * modules/quotearg, modules/regex, modules/rpmatch:
68741         * modules/unicodeio, modules/userspec, modules/version-etc:
68742         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
68743         * modules/xsetenv:
68744         Depend on gettext-h, not gettext.
68745
68746 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68747
68748         * gnulib-tool (func_import): Add support for 'public domain' license.
68749         * modules/alloca, modules/atexit, modules/memmove:
68750         Now public domain, not GPL.
68751         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
68752         * modules/realloc, modules/strerror, modules/strtod:
68753         Now LGPL, not GPL.
68754
68755 2005-07-05  Bruno Haible  <bruno@clisp.org>
68756
68757         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
68758         autoconf CVS. Needed for mingw.
68759
68760 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68761
68762         Remove the dependency of the strftime module on the tzset module.
68763         * modules/strftime (Depends-on): Remove dependency on tzset.
68764
68765 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68766
68767         Remove the dependency of the strftime module on the tzset module.
68768         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
68769         gl_FUNC_TZSET_CLOBBER.
68770
68771 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68772
68773         Remove the dependency of the strftime module on the tzset module.
68774         * lib/strftime.c (my_strftime)
68775         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
68776         Copy the input structure, to work around some of the bug with
68777         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
68778         Solaris releases, you should also use the tzset module, but we won't
68779         require it as a dependency any more since we don't want LGPLed code
68780         to depend on GPLed code.
68781
68782 2005-07-02  Jim Meyering  <jim@meyering.net>
68783
68784         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
68785         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
68786         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
68787         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
68788
68789 2005-07-02  Jim Meyering  <jim@meyering.net>
68790
68791         * lib/backupfile.c (backup_args): Change a `0' to NULL.
68792
68793 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68794
68795         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
68796         declares only 'struct timespec;' (!).
68797
68798 2005-07-01  Jim Meyering  <jim@meyering.net>
68799
68800         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
68801         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
68802         * lib/save-cwd.c, tempname.c:
68803         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68804         and don't include <sys/file.h>).
68805
68806 2005-06-29  Jim Meyering  <jim@meyering.net>
68807
68808         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
68809         type name.  Use the variable name instead.
68810         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
68811         Likewise.
68812
68813 2005-06-28  Simon Josefsson  <jas@extundo.com>
68814
68815         * modules/check-version (Files): Add check-version.m4.
68816
68817 2005-06-28  Simon Josefsson  <jas@extundo.com>
68818
68819         * m4/check-version.m4: New file, suggested by Jim Meyering
68820         <jim@meyering.net>.
68821
68822 2005-06-28  Simon Josefsson  <jas@extundo.com>
68823
68824         * lib/check-version.h, lib/check-version.c: New files.
68825
68826 2005-06-28  Simon Josefsson  <jas@extundo.com>
68827
68828         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
68829         collision with global variable.  Better indentation.  Don't
68830         increment buffer pointer beyond buffer end.  Based on comments
68831         from Paul Eggert <eggert@cs.ucla.edu>.
68832
68833         * lib/base64.h: Indent.
68834
68835 2005-06-28  Simon Josefsson  <jas@extundo.com>
68836
68837         * doc/gnulib.texi (Library version handling): New section.
68838
68839 2005-06-28  Jim Meyering  <jim@meyering.net>
68840
68841         * check-module (find_included_lib_files): Hard-code another
68842         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
68843         but modules/fts-lgpl (correctly) does not list those files.
68844
68845         * modules/canonicalize (Files): Add lib/pathmax.h.
68846
68847 2005-06-25  Simon Josefsson  <jas@extundo.com>
68848
68849         * modules/check-version: New file.
68850
68851 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
68852
68853         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
68854         initializer of struct addrinfo, as an indication that we don't
68855         care how many members the structure has.
68856
68857 2005-06-24  Derek Price  <derek@ximbiot.com>
68858         and Bruno Haible  <bruno@clisp.org>
68859
68860         Remove stat module & update lstat.
68861         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
68862         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68863         * m4/stat.m4: Remove this file.
68864
68865 2005-06-24  Derek Price  <derek@ximbiot.com>
68866         and Bruno Haible  <bruno@clisp.org>
68867
68868         Remove stat module & update lstat.
68869         * lib/stat.c: Remove this file...
68870         (slash_aware_lstat): ...moving this content and its support...
68871         * lib/lstat.c (rpl_lstat): ...into here.
68872         * lib/lstat.h: New file.
68873
68874 2005-06-24  Derek Price  <derek@ximbiot.com>
68875         and Bruno Haible  <bruno@clisp.org>
68876
68877         Remove stat module & update lstat.
68878         * config/srclist.txt (libc sources): Remove stat.
68879
68880 2005-06-24  Derek Price  <derek@ximbiot.com>
68881         and Bruno Haible  <bruno@clisp.org>
68882
68883         Remove stat module & update lstat.
68884         * MODULES.html.sh (stat): Remove.
68885         * MODULES.html: Regenerated.
68886         * modules/lstat (Description): Correct function name.
68887         (Files): Add "lstat.h".
68888         (Depends-on): Remove stat, add xalloc, stat-macros.
68889         * modules/stat: Remove this file.
68890         (Include): Add "lstat.h", remove <sys/stat.h>.
68891
68892 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68893
68894         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
68895         (ranged_convert): Don't save conversion in a temporary struct.
68896         This causes a warning with GCC 4.0.0, and anyway in the typical
68897         case it's not worth the extra 100 bytes or so of code.
68898         (ranged_convert, __mktime_internal): When calling a function via a
68899         pointer P, use P () rather than (*P) (), as we now assume C89 or
68900         better.
68901
68902 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68903
68904         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
68905         "who -r" failed to give output.  Problem reported by Tim Waugh.
68906
68907         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
68908         (xcalloc): Use it to avoid needless tests.
68909         Problem reported by Jim Meyering.
68910
68911 2005-06-20  Derek Price  <derek@ximbiot.com>
68912
68913         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
68914         unnecessary for Autoconfs > 2.59c.
68915
68916 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68917
68918         * lib/argp.h (__option_is_short): Check upper limit of
68919         __key. Isprint() requires its argument to have the value
68920         of an unsigned char or EOF.
68921
68922 2005-06-16  Jim Meyering  <jim@meyering.net>
68923
68924         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
68925         when either N or S is zero.
68926
68927 2005-06-16  Derek Price  <derek@ximbiot.com>
68928
68929         * m4/bison.m4: Declare YACC & YFLAGS precious.
68930
68931 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
68932
68933         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
68934         multibyte string or pattern, fall back on unibyte matching.
68935         Problem reported by James Youngman.
68936
68937 2005-06-08  Bruno Haible  <bruno@clisp.org>
68938
68939         * modules/csharpcomp: New file.
68940         * MODULES.html.sh (C#): Add csharpcomp.
68941
68942 2005-06-08  Bruno Haible  <bruno@clisp.org>
68943
68944         * m4/csharpcomp.m4: New file, from GNU gettext.
68945
68946 2005-06-08  Bruno Haible  <bruno@clisp.org>
68947
68948         * lib/csharpcomp.h: New file, from GNU gettext.
68949         * lib/csharpcomp.c: New file, from GNU gettext.
68950         * lib/csharpcomp.sh.in: New file, from GNU gettext.
68951
68952 2005-06-08  Bruno Haible  <bruno@clisp.org>
68953
68954         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
68955         warning on mingw.
68956
68957 2005-06-07  Derek Price  <derek@ximbiot.com>
68958
68959         Sync from CVS.
68960         * lib/glob_.h: Indent nested #ifdef.
68961
68962 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68963
68964         Sync from coreutils.
68965         Use "file name" when talking about file names, instead of "filename"
68966         or "path", as per the GNU coding standards.
68967         * lib/mkdir-p.c: Renamed from makepath.c.
68968         (make_dir_parents): Renamed from make_path.  All callers changed.
68969         * lib/mkdir-p.h: Likewise.  All includers changed.
68970         * lib/filenamecat.c: Renamed from path-concat.c.
68971         (file_name_concat): Renamed from path_concat.  All callers changed.
68972         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
68973         * lib/filenamecat.h: Likewise.  All includers changed.
68974         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
68975         in comments or local variable names.
68976         * lib/basename.c: Likewise.
68977         * lib/canonicalize.c, canonicalize.h: Likewise.
68978         * lib/dirname.c, dirname.h: Likewise.
68979         * lib/euidaccess.c: Likewise.
68980         * lib/exclude.c: Likewise
68981         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
68982         * lib/fsusage.c, fsuage.h: Likewise.
68983         * lib/fts.c, fts_.h: Likewise.
68984         * lib/getcwd.c: Likewise.
68985         * lib/getloadavg.c: Likewise.
68986         * lib/mkstemp.c: Likewise.
68987         * lib/mountlist.c, mountlist.h: Likewise.
68988         * lib/openat.c, openat.h: Likewise.
68989         * lib/readlink-stub.c: Likewise.
68990         * lib/readutmp.c, readutmp.h: Likewise.
68991         * lib/rename.c: Likewise.
68992         * lib/rmdir.c: Likewise.
68993         * lib/same.c: Likewise.
68994         * lib/savedir.c: Likewise.
68995         * lib/stripslash.c: Likewise.
68996         * lib/tempname.c: Likewise.
68997         * lib/xreadlink.c: Likewise.
68998         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
68999         All uses changed.
69000         * lib/exclude.h: Likewise.
69001
69002         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
69003         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69004         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
69005         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69006         * lib/pathmax.h: Include <limits.h> unconditionally, since other
69007         files have been getting away with it for years (MORE/BSD 4.3
69008         is extinct now).
69009         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
69010         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69011
69012         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
69013         Define to 256, not 255, as per modern POSIX.
69014
69015 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69016
69017         Sync from coreutils.
69018         Use "file name" when talking about file names, instead of "filename"
69019         or "path", as per the GNU coding standards.
69020         * MODULES.html.sh: mkdir-p renamed from makepath.
69021         filenamecat renamed from path-concat.
69022         * modules/filenamecat: Renamed from modules/path-concat.
69023         (Files): filenamecat.h and filenamecat.c renamed from
69024         path-concat.h and path-concat.c.
69025         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
69026         (Include): filenamecat.h, not path-concat.h.
69027         * modules/mkdir-p: Renamed from modules/makepath.
69028         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
69029         makepath.c.
69030         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
69031         (Include): mkdir-p.h, not makepath.h.
69032
69033 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69034
69035         Sync from coreutils.
69036         * m4/mkdir-p.m4: Renamed from makepath.m4.
69037         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
69038         Rename files from makepath.c to mkdir-p.c, and from
69039         makepath.h to mkdir-p.h.
69040         * m4/filenamecat.m4: Renamed from path-concat.m4.
69041         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
69042         Rename files from path-concat.c to filenamecat.c,
69043         and from path-concat.h to filenamecat.h.
69044         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
69045         "file name" in local variables or comments.
69046         * m4/rename.m4: Likewise.
69047
69048 2005-06-01  Bruno Haible  <bruno@clisp.org>
69049
69050         * modules/csharpexec: New file.
69051         * MODULES.html.sh (C#): New section.
69052
69053 2005-06-01  Bruno Haible  <bruno@clisp.org>
69054
69055         * m4/csharp.m4: New file, from GNU gettext.
69056         * m4/csharpexec.m4: New file, from GNU gettext.
69057
69058 2005-06-01  Bruno Haible  <bruno@clisp.org>
69059
69060         * lib/csharpexec.h: New file, from GNU gettext.
69061         * lib/csharpexec.c: New file, from GNU gettext.
69062         * lib/csharpexec.sh.in: New file, from GNU gettext.
69063
69064 2005-05-31  Derek Price  <derek@ximbiot.com>
69065             Paul Eggert  <eggert@cs.ucla.edu>
69066
69067         Sync from cvs.
69068         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69069
69070 2005-05-31  Derek Price  <derek@ximbiot.com>
69071             Paul Eggert  <eggert@cs.ucla.edu>
69072
69073         Sync from cvs.
69074         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69075
69076 2005-05-29  Derek Price  <derek@ximbiot.com>
69077
69078         * config/srclist.txt (glob_.h, glob.c): Add these files.
69079
69080 2005-05-29  Derek Price  <derek@ximbiot.com>
69081
69082         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
69083         * modules/glob: New file.
69084         * modules/getlogin_r: Add link to POSIX spec in description.
69085
69086 2005-05-29  Derek Price  <derek@ximbiot.com>
69087             Paul Eggert  <eggert@cs.ucla.edu>
69088
69089         * m4/glob.m4: New file.
69090
69091 2005-05-29  Derek Price  <derek@ximbiot.com>
69092             Paul Eggert  <eggert@cs.ucla.edu>
69093
69094         * lib/glob_.h, lib/glob.c: New files.
69095
69096 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69097
69098         * modules/fts (Files): Remove m4/inttypes-pri.m4.
69099         * modules/fts-lgpl (Depends-on): Remove gettext.
69100
69101 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69102
69103         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
69104         and don't require gt_INTTYPES_PRI.
69105
69106 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69107
69108         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
69109
69110         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
69111         the configuration hassle isn't worth it.
69112         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
69113         (LONGEST_MODIFIER, PRIuMAX): Remove.
69114
69115 2005-05-27  Bruno Haible  <bruno@clisp.org>
69116
69117         * lib/getlogin_r.h: Remove second include of <stddef.h>.
69118
69119 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
69120
69121         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
69122         _POSIX_PTHREAD_SEMANTICS for Solaris.
69123
69124 2005-05-25  Derek Price  <derek@ximbiot.com>
69125
69126         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
69127
69128 2005-05-25  Derek Price  <derek@ximbiot.com>
69129             Paul Eggert  <eggert@cs.ucla.edu>
69130
69131         * modules/getlogin_r, m4/getlogin_r.m4: New files.
69132         * lib/getlogin_r.c, getlogin_r.h: New files.
69133
69134 2005-05-25  Bruno Haible  <bruno@clisp.org>
69135             Derek Price  <derek@ximbiot.com>
69136
69137         * lib/getlogin_r.h: Simplify API documentation.
69138
69139 2005-05-23  Derek Price  <derek@ximbiot.com>
69140
69141         * modules/minmax (Files): Add m4/minmax.m4.
69142         (configure.ac): Add gl_MINMAX.
69143
69144 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69145
69146         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
69147         so that unistd-safer.h (GPL'ed code) need not be included.
69148
69149 2005-05-22  Bruno Haible  <bruno@clisp.org>
69150
69151         * m4/minmax.m4: New file.
69152         Based on a patch by Derek Price <derek@ximbiot.com>.
69153
69154 2005-05-22  Bruno Haible  <bruno@clisp.org>
69155
69156         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
69157         (INT64_MIN): Fix definition.
69158         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
69159
69160         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
69161         NEED_SIGNED_INT_TYPES.
69162
69163         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
69164         HAVE_SYSTEM_INTTYPES.
69165
69166 2005-05-22  Bruno Haible  <bruno@clisp.org>
69167
69168         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
69169         Also include <sys/param.h> if it defines MIN, MAX.
69170         Based on a patch by Derek Price <derek@ximbiot.com>.
69171
69172 2005-05-21  Jim Meyering  <jim@meyering.net>
69173
69174         * modules/fts (Files): Add m4/inttypes-pri.m4.
69175         (Depends-on): Add lstat and remove gettext.  Alphabetize.
69176
69177 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69178
69179         New fts module.
69180         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
69181         (setup_dir, free_dir): New functions.
69182         (enter_dir, leave_dir): Define trivial
69183         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
69184         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
69185         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
69186         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
69187         Move to fts-cycle.c.
69188         (fts_open): Use setup_dir.
69189         (fts_close): Use free_dir.
69190         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
69191         This adds a label and some gotos, but the alternatives were messier.
69192         Check for memory allocation failure when entering a dir.
69193         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
69194         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
69195         (FTS): New member fts_cycle, that is a union that contains the
69196         old active_dir_ht and cycle_state.  All uses changed to mention
69197         fts_cycle.ht and fts_cycle.state.
69198         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
69199         fts.c, with the following changes:
69200         (setup_dir, free_dir): New functions.
69201         (enter_dir): Now returns bool.  Return true if successful, false
69202         if memory exhausted.  All callers changed.
69203         Do not bother partly cleaning up on
69204         memory allocation failure; that is free_dir's job.
69205         However, free ad if hash_insert fails, to avoid memory leak.
69206         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
69207         fts->fts_options to see which union member to use.
69208
69209 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69210
69211         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
69212         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
69213
69214 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69215
69216         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
69217
69218 2005-05-20  Jim Meyering  <jim@meyering.net>
69219
69220         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
69221         Now a macro, to pacify GCC.
69222
69223 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69224
69225         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
69226         of -1.
69227
69228 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69229
69230         * lib/chown.c (rpl_chown): Return -1 on failure.
69231
69232 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69233
69234         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
69235         Don't check for stddef.h.
69236         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
69237         don't use its results.
69238         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
69239         since we include them unconditionally.  Don't require
69240         AM_STDBOOL_H, since stdbool is a prerequisite.
69241         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
69242         since we assume C89 or better.
69243         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
69244         as we don't use their results.
69245         Don't check for fchdir, memmove, memset, strrchr, as we use
69246         them unconditionally.
69247         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
69248         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
69249
69250 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69251
69252         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
69253         Include <stddef.h> unconditionally, since we assume C89 now.
69254         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
69255         * lib/fts.c: Include fts_.h first, to check interface.
69256         Do not include intprops.h; no longer needed.
69257         Include cycle-check.h and hash.h, since fts_.h no longer does.
69258         Remove unnecessary casts of closedir to void.
69259         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
69260         decide whether to decrement nlinks.
69261         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
69262         (FTS): Use struct hash_table * instead of Hash_table, so that
69263         we no longer need to include hash.h here.
69264
69265 2005-05-18  Jim Meyering  <jim@meyering.net>
69266
69267         * modules/dirfd (License): Change to LGPL.  Most of the code
69268         is already in the public domain.
69269
69270 2005-05-18  Jim Meyering  <jim@meyering.net>
69271
69272         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
69273         Reported by Yoann Vandoorselaere.
69274
69275 2005-05-17  Jim Meyering  <jim@meyering.net>
69276
69277         * m4/fts.m4: New file, from coreutils.
69278
69279 2005-05-17  Jim Meyering  <jim@meyering.net>
69280
69281         * lib/fts.c, lib/fts_.h: New files, from coreutils.
69282
69283 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69284
69285         Sync from coreutils.
69286         * m4/unlinkdir.m4: New file.
69287
69288 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69289
69290         Sync from coreutils.
69291         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
69292         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
69293         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
69294         White space changes only.
69295         * lib/makepath.c (make_path): Port to hosts where leading "//" is
69296         special.
69297         * lib/yesno.c: Include getline.h, not ctype.h.
69298         (yesno): Don't remove leading white space; POSIX doesn't allow it.
69299         Use getline to remove arbitrary restriction on response length.
69300
69301 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69302
69303         * config/srclist-update: Spell out "Street" in FSF postal
69304         mail address; this is the style the FSF seems to prefer.
69305
69306         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
69307         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
69308         this updates FSF postal mail address.
69309
69310         Sync from coreutils.
69311         * modules/unlinkdir: New file.
69312         * modules/yesno (Depends-on): Add getline.
69313         * MODULES.html.sh (File system functions): Add unlinkdir.
69314
69315 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69316
69317         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
69318         lib/strsep.h:
69319         Change the initial comment to refer to GPL, not LGPL.
69320         gnulib-tool will change it to LGPL as needed.
69321
69322         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
69323         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
69324         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
69325         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
69326         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
69327         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
69328         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
69329         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
69330         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
69331         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
69332         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
69333         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
69334         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
69335         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
69336         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
69337         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
69338         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
69339         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
69340         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
69341         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
69342         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
69343         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
69344         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
69345         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
69346         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
69347         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
69348         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
69349         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
69350         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
69351         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
69352         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
69353         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
69354         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
69355         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
69356         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
69357         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
69358         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
69359         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
69360         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
69361         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
69362         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
69363         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
69364         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
69365         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
69366         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
69367         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
69368         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
69369         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
69370         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
69371         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
69372         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69373         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
69374         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
69375         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
69376         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
69377         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
69378         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
69379         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
69380         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
69381         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
69382         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
69383         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
69384         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
69385         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
69386         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
69387         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
69388         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
69389         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
69390         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
69391         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
69392         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
69393         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
69394         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
69395         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
69396         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
69397         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
69398         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
69399         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
69400         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
69401         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
69402         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
69403         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
69404         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
69405         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
69406         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
69407         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
69408         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
69409         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
69410         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
69411         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
69412         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
69413         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
69414         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
69415         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
69416         lib/yesno.c, lib/yesno.h:
69417         Update FSF postal mail address.
69418
69419 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69420
69421         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
69422         tests/test-memmem.c, tests/test-stpncpy.c:
69423         Update FSF postal mail address.
69424
69425 2005-05-13  Bruno Haible  <bruno@clisp.org>
69426
69427         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
69428         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
69429         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
69430         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
69431         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
69432         Add support for 64-bit integers in the MSVC compiler.
69433
69434 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69435
69436         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
69437
69438 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
69439
69440         * gnulib-tool (func_import): Sort and uniquify recommended includes.
69441
69442 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
69443
69444         * doc/getdate.texi (General date syntax): Don't say that date
69445         date --iso-8601=ns generates acceptable dates; it doesn't yet.
69446         Problem reported by Nic Ferrier.
69447
69448 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69449
69450         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
69451         specified in ai_socktype. Fix invalid ai_protocol
69452         check. ai_protocol is usually set to 0 or depending on
69453         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
69454         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
69455         ai_socktype / ai_protocol in the returned addrinfo structure.
69456
69457 2005-05-10  Simon Josefsson  <jas@extundo.com>
69458
69459         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
69460         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69461
69462 2005-05-10  Karl Berry  <karl@gnu.org>
69463
69464         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
69465         (from http://www.gnu.org/licenses).
69466         * doc/COPYING.LIB: also rename to COPYING.LESSER.
69467         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
69468         fdl.texi suffices.
69469
69470 2005-05-10  Karl Berry  <karl@gnu.org>
69471
69472         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
69473         (COPYING.DOC): remove.
69474
69475         * config/srclist-update: new FSF address.
69476
69477 2005-05-10  Derek Price  <derek@ximbiot.com>
69478
69479         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
69480         possible.
69481
69482 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69483             Bruno Haible  <bruno@clisp.org>
69484
69485         * modules/inet_ntop: New file.
69486         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69487         inet_ntop.
69488
69489 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69490             Bruno Haible  <bruno@clisp.org>
69491
69492         * m4/inet_ntop.m4: New file.
69493
69494 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69495             Bruno Haible  <bruno@clisp.org>
69496
69497         * lib/inet_ntop.h: New file.
69498         * lib/inet_ntop.c: New file, from glibc with modifications.
69499
69500 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
69501
69502         * modules/time_r (License): Change to LGPL.
69503         * modules/extensions (License): Change to LGPL.  Actually,
69504         the license is more permissive than that, but currently gnulib-tool
69505         doesn't know how to handle more-permissive licenses.
69506
69507         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
69508         Problem reported by Dave Love.
69509
69510 2005-05-08  Jim Meyering  <jim@meyering.net>
69511
69512         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
69513         blank.
69514
69515 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69516
69517         * modules/argmatch (Depends-on): Add stdbool.
69518         * modules/backupfile (Depends-on): Likewise.
69519         * modules/chdir-long (Depends-on): Likewise.
69520         * modules/closeout (Depends-on): Likewise.
69521         * modules/cycle-check (Depends-on): Likewise.
69522         * modules/dirname (Depends-on): Likewise.
69523         * modules/fnmatch (Depends-on): Likewise.
69524         * modules/fsusage (Depends-on): Likewise.
69525         * modules/fwriteerror (Depends-on): Likewise.
69526         * modules/getcwd (Depends-on): Likewise.
69527         * modules/getloadavg (Depends-on): Likewise.
69528         * modules/hard-locale (Depends-on): Likewise.
69529         * modules/makepath (Depends-on): Likewise.
69530         * modules/mountlist (Depends-on): Likewise.
69531         * modules/nanosleep (Depends-on): Likewise.
69532         * modules/posixtm (Depends-on): Likewise.
69533         * modules/quotearg (Depends-on): Likewise.
69534         * modules/readtokens (Depends-on): Likewise.
69535         * modules/readtokens0 (Depends-on): Likewise.
69536         * modules/readutmp (Depends-on): Likewise.
69537         * modules/save-cwd (Depends-on): Likewise.
69538         * modules/strftime (Depends-on): Likewise.
69539         * modules/userspec (Depends-on): Likewise.
69540         * modules/utimecmp (Depends-on): Likewise.
69541         * modules/xgetcwd (Depends-on): Likewise.
69542         * modules/xnanosleep (Depends-on): Likewise.
69543         * modules/xstrtod (Depends-on): Likewise.
69544         * modules/yesno (Depends-on): Likewise.
69545
69546 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69547
69548         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
69549         needless checks.
69550
69551 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69552
69553         Merge from coreutils.  Among other things,
69554         add bulletproofing for cases where stdin, stdout, or stderr are closed.
69555         * lib/fd-safer.c: New file.
69556         * lib/fcntl-safer.h, open-safer.c: Remove.
69557         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
69558         * lib/dup-safer.c: Include unistd-safer.h first.
69559         Don't include errno.h.
69560         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
69561         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
69562         * lib/file-type.c: Rely on file-type.h change.
69563         * lib/getloadavg.c: Include unistd-safer.h.
69564         (getloadavg): Use safer open.
69565         * lib/getusershell.c: Include "stdio-safer.h".
69566         (getusershell): Use safer fopen.
69567         * lib/long-options.c (long_options): Use NULL rather than 0.
69568         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
69569         'free'.
69570         * lib/modechange.c: Likewise.
69571         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
69572         (MODE_DONE): New constant.
69573         (struct mode_change): Remove 'next' member.
69574         (make_node_op_equals): New function; like the old one of the
69575         same name, except it allocates an array.
69576         (mode_compile, mode_create_from_ref): Use it.
69577         (mode_compile): Allocate result as an array, not a linked list.
69578         Parse octal string ourself, so that we catch mistakes like "+0".
69579         (mode_adjust): Arg is an array, not a linked list.
69580         * lib/modechange.c: Include stat-macros.h, xalloc.h.
69581         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
69582         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
69583         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
69584         Remove.  This is now stat-macros.h's job.
69585         (talloc): Remove.  All callers replaced by xalloc, so that
69586         our invokers don't have to worry about reporting memory failures.
69587         (make_node_op_equals): Remove.
69588         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69589         New constants.
69590         (struct mode_change): Moved here from modechange.h.
69591         (mode_append_entry): Remove.
69592         (mode_compile): Remove MASKED_OPS arg, since it encouraged
69593         apps to have incorrect behavior.  Use simpler algorithm for head
69594         and tail.  Don't futz with umask; that's now the job of mode_adjust.
69595         Detect more invalid usages rather than having somewhat-random behavior.
69596         Don't insert an "a=" action, as that leads to incorrect behavior.
69597         (mode_compile, mode_create_from_ref): Return NULL on error instead
69598         of an enum, since now there's only one way to have an error.  All
69599         callers changed.
69600         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
69601         at the correct time.  Simplify calculation of "+u" and its ilk.
69602         Don't mishandle "+X".
69603         (mode_free): Remove "register" and localize decls.
69604         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69605         (struct mode_change): Move to modechange.c; callers don't
69606         need to see this stuff.
69607         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
69608         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
69609         (mode_change, mode_adjust): Reflect the new signatures noted above.
69610         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
69611         that might redefine system include files.
69612         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
69613         (my_usleep): Use NULL rather than (void *) 0.
69614         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
69615         Use siginterrupt to specify that system calls should be interrupted.
69616         (rpl_nanosleep): Move initialization of suspended closer to call of
69617         my_usleep.
69618         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
69619         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
69620         (desirable_utmp_entry): New function.
69621         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
69622         using x2nrealloc, to simplify logic.
69623         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
69624         size calculation.  Do not assume utmp file is a regular file.
69625         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
69626         (READ_UTMP_CHECK_PIDS): New constant.
69627         * lib/save-cwd.c: Include unistd-safer.h.
69628         (save_cwd): Use fd_safer.
69629         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
69630         [!_LIBC] Include "stat-macros.h" instead.
69631         * lib/unistd-safer.h (fd_safer): New decl.
69632
69633 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69634
69635         * modules/getloadavg (Depends-on): Add unistd-safer.
69636         * modules/getusershell (Depends-on): Add stdio-safer.
69637         * modules/lstat (Depends-on): Remove xalloc.
69638         * modules/mkstemp (Depends-on): Add stat-macros.
69639         * modules/modechange (Depends-on): Remove xstrtol.
69640         Add stat-macros, xalloc.
69641         * modules/save-cwd (Depends-on): Add unistd-safer.
69642         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
69643         * modules/unistd-safer (Files): Add lib/fd-safer.c
69644         (Makefile.am): Remove lib_SOURCES.
69645
69646         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
69647         Remove fcntl-safer; unistd-safer supersedes it.
69648
69649 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69650
69651         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
69652         AC_HEADER_STAT.
69653         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
69654         (gl_PREREQ_CHOWN): Remove.
69655         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
69656         it.  Don't require AC_HEADER_STAT.
69657         (gl_PREREQ_LSTAT): Remove.
69658         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
69659         Don't require AC_HEADER_STAT.
69660         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
69661         (gl_PREREQ_RMDIR): Remove.
69662         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
69663         mention stat-macros.h or AC_HEADER_STAT, since we'll make
69664         the stat-macros module a prerequisite.
69665         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
69666         * m4/filemode.m4 (gl_FILEMODE): Likewise.
69667         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
69668         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
69669         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
69670         variable names.
69671         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
69672         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
69673         variable prefixes.
69674         * m4/fcntl-safer.m4: Remove.
69675         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
69676         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
69677         Invoke gl_PREREQ_FD_SAFER.
69678         (gl_PREREQ_FD_SAFER): New macro.
69679         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
69680         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
69681         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
69682         Remove duplicate call to AC_LIBOBJ(readutmp).
69683         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
69684
69685         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
69686         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
69687
69688 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69689
69690         * MODULES.html.sh (Misc): Add byteswap.
69691
69692 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69693
69694         * modules/getcwd (Depends-on): Add extensions.
69695         * modules/openat (Depends-on): Likewise.
69696
69697 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69698
69699         * modules/byteswap: New file.
69700
69701 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69702
69703         * m4/byteswap.m4: New file.
69704
69705 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69706
69707         * lib/byteswap_.h: New file.
69708
69709 2005-04-25  Karl Berry  <karl@gnu.org>
69710
69711         * m4/gettext.m4: Update from GNU gettext 0.14.4.
69712
69713 2005-04-25  Albert Chin  <china@thewrittenword.com>
69714
69715         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
69716         Toolkit C bug.
69717
69718 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
69719
69720         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
69721         (func_ln_if_changed): Remove forcibly for no error message
69722         in case file does not exist.
69723
69724 2005-04-19  Simon Josefsson  <jas@extundo.com>
69725
69726         * gnulib-tool (Options): Make --symlink mean --symbolic.
69727
69728 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
69729
69730         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
69731
69732 2005-04-16  Simon Josefsson  <jas@extundo.com>
69733
69734         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
69735
69736 2005-04-15  Simon Josefsson  <jas@extundo.com>
69737
69738         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
69739
69740 2005-04-15  Simon Josefsson  <jas@extundo.com>
69741
69742         * gnulib-tool: Rename --symlink to --symbolic.
69743
69744 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
69745
69746         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
69747         symbolic links to files instead of copying/moving.  Add --aux-dir,
69748         specifying directory relative --dir where auxiliary build tools
69749         are placed.
69750
69751 2005-04-14  Bruno Haible  <bruno@clisp.org>
69752
69753         * modules/allocsa (License): Change to LGPL.
69754         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
69755
69756 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69757
69758         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
69759         that "UTC +1 second" continues to work.  Problem reported
69760         by Dmitry V. Levin.
69761         (relunit_snumber): New rule.
69762         (relunit): Use it.
69763
69764 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69765
69766         * lib/getdate.y (universal_time_zone_table): New constant.
69767         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
69768         universal_time_zone_table.
69769         (lookup_zone): Prefer universal_time_zone_table to
69770         local_time_zone_table, so that "GMT" time stamps are allowed in
69771         London during the summer.  Problem reported by Ian Abbott.
69772
69773 2005-04-12  Jim Meyering  <jim@meyering.net>
69774
69775         * lib/human.c (humblock): Set *options even when returning due to
69776         xstrtoumax conversion failure.  Thanks to a used-uninitialized
69777         warning from gcc-4.
69778
69779 2005-04-09  Jim Meyering  <jim@meyering.net>
69780
69781         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
69782         -Wuninitialized: initialize tm0.tm_year.
69783
69784 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69785
69786         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
69787         count, since there's no maximum.  All uses changed.
69788         Add member dsts_seen.
69789         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
69790         not being INT_MAX.
69791         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
69792         Use pc_rels_seen to decide whther a date is absolute.
69793
69794         * lib/getdate.y (number): Don't overwrite year.
69795         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
69796         check.
69797
69798 2005-04-02  Simon Josefsson  <jas@extundo.com>
69799
69800         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
69801         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
69802
69803 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
69804
69805         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
69806         where no absolute path name can be longer than PATH_MAX.
69807
69808 2005-03-27  Jim Meyering  <jim@meyering.net>
69809
69810         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
69811
69812 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
69813
69814         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
69815         "one's complement" -> "ones' complement" in comment, as per Knuth.
69816         "value of type" -> "type or expression" in comment.
69817         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
69818
69819 2005-03-26  Jim Meyering  <jim@meyering.net>
69820
69821         Comment nits.
69822         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
69823         Correct typos: s/or/of/.
69824
69825 2005-03-26  Jim Meyering  <jim@meyering.net>
69826
69827         * modules/check-include-files: Move to ../ and rename to...
69828         * check-module: ...this.
69829
69830 2005-03-25  Jim Meyering  <jim@meyering.net>
69831
69832         * modules/xvasprintf (Files): Add xalloc.h.
69833
69834 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69835
69836         * modules/gettext (Files): config/config.rpath ->
69837         build-aux/config.rpath
69838         * modules/iconv (Files): Likewise.
69839         Problem reported by Oskar Liljeblad.
69840
69841 2005-03-23  Jim Meyering  <jim@meyering.net>
69842
69843         * modules/check-include-files: New script to check for
69844         missing dependencies, multiple includes, etc.
69845
69846         * modules/c-strtold (Depends-on): Add xalloc.
69847         * modules/c-strtod (Depends-on): Add xalloc.
69848         * modules/hash (Depends-on): Add xalloc.
69849         (Files): Remove lib/xalloc.h.
69850
69851         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
69852         * modules/userspec (Files): Add lib/inttostr.h.
69853
69854 2005-03-23  Jim Meyering  <jim@meyering.net>
69855
69856         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
69857
69858 2005-03-22  Jim Meyering  <jim@meyering.net>
69859
69860         * modules/stat-macros: New module.
69861         * modules/canonicalize, modules/euidaccess, modules/file-type,
69862         * modules/filemode, modules/lchown, modules/makepath,
69863         * modules/rmdir, modules/stat: Depend on new stat-macros module
69864         rather than listing lib/stat-macros.h manually.
69865         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
69866
69867 2005-03-22  Jim Meyering  <jim@meyering.net>
69868
69869         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
69870
69871 2005-03-22  Bruno Haible  <bruno@clisp.org>
69872
69873         * config/srclist.txt: Replace target directory 'config' with
69874         'build-aux'.
69875         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
69876         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
69877         ../build-aux/.
69878
69879 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
69880
69881         * modules/chdir-long (Depends-on): Add mempcpy.
69882
69883         * modules/acl, modules/backupfile, modules/c-strtod,
69884         modules/c-strtold, modules/canon-host, modules/canonicalize,
69885         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
69886         modules/exclude, modules/exitfail, modules/file-type,
69887         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
69888         modules/getdate, modules/getline, modules/getpagesize,
69889         modules/getpass, modules/getugroups, modules/group-member,
69890         modules/hard-locale, modules/hash, modules/human, modules/idcache,
69891         modules/inttostr, modules/long-options, modules/makepath,
69892         modules/md5, modules/memcasecmp, modules/memcoll,
69893         modules/modechange, modules/mountlist, modules/path-concat,
69894         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
69895         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
69896         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
69897         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
69898         modules/strftime, modules/strndup, modules/strverscmp,
69899         modules/timespec, modules/unlocked-io, modules/userspec,
69900         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
69901         modules/yesno:
69902         Remove lib_SOURCES line from Makefile.am section, as this is now
69903         done automatically by the corresponding Autoconf macro.
69904
69905 2005-03-21  Jim Meyering  <jim@meyering.net>
69906
69907         Changes imported from coreutils.
69908
69909         * lib/cycle-check.c: Don't include xalloc.h.
69910
69911         * lib/path-concat.c: Don't include assert.h.
69912         (path_concat): Remove assertion that would have triggered
69913         for ABASE starting with more than one slash.
69914         Reported by Andreas Schwab.
69915
69916         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
69917         properly when ABASE is an absolute file name.
69918         Correct the description of this function.
69919         Include <assert.h>.
69920         Add an assertion and a test driver.
69921         This fixes a bug introduced on 2004-07-02.
69922         Andreas Schwab reported the resulting failure of cp --parents:
69923         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
69924
69925 2005-03-21  Jim Meyering  <jim@meyering.net>
69926
69927         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
69928         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
69929
69930 2005-03-21  Jim Meyering  <jim@meyering.net>
69931         and  Paul Eggert  <eggert@cs.ucla.edu>
69932
69933         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
69934         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
69935         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
69936         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
69937         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
69938         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
69939         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
69940         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
69941         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
69942         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
69943         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
69944         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
69945         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
69946         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
69947         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
69948         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
69949         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
69950         for these modules.
69951
69952 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
69953
69954         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
69955         (which shouldn't happen), generate nothing instead of returning 0
69956         immediately, so that nstrftime (NULL, ...) doesn't return 0.
69957
69958 2005-03-16  Bruno Haible  <bruno@clisp.org>
69959
69960         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
69961         HAVE_LONGLONG_64BIT.
69962
69963 2005-03-16  Bruno Haible  <bruno@clisp.org>
69964
69965         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
69966         HAVE_LONGLONG_64BIT.
69967
69968 2005-03-16  Bruno Haible  <bruno@clisp.org>
69969
69970         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
69971         HAVE_LONGLONG_64BIT.
69972
69973 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69974
69975         * lib/strftime.c (my_strftime): Prepend space to format so that we can
69976         reliably distinguish strftime failure from empty output on POSIX
69977         hosts.
69978
69979 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69980
69981         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
69982         (iconv_string): Don't guess a size-zero buffer, as that might cause
69983         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
69984         result would be 'too large', where 'too large' is (heuristically)
69985         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
69986         overflow concerns.  This will prevent some unwanted malloc failures
69987         when the inputs are very large.
69988
69989 2005-03-15  Karl Berry  <karl@gnu.org>
69990
69991         * config/srclist.txt (config.rpath): from gettext.
69992         * config/config.rpath: update.
69993
69994 2005-03-15  Bruno Haible  <bruno@clisp.org>
69995
69996         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
69997         to 'negate'.
69998
69999         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
70000         variable.
70001
70002         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
70003         results.
70004
70005 2005-03-14  Simon Josefsson  <jas@extundo.com>
70006
70007         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
70008         <fx@gnu.org>.
70009
70010 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
70011
70012         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
70013         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
70014         intprops.h.
70015         * lib/strtol.c: Likewise.
70016
70017 2005-03-14  Jim Meyering  <jim@meyering.net>
70018
70019         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
70020         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
70021         to be nonzero so that we (and caller) can detect the difference
70022         between a valid zero-length expansion and an error return, even
70023         when the underlying strftime fails before writing anything into
70024         that location.
70025
70026 2005-03-14  Bruno Haible  <bruno@clisp.org>
70027
70028         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
70029         Update from GNU gettext 0.14.3.
70030
70031 2005-03-10  Jim Meyering  <jim@meyering.net>
70032
70033         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
70034
70035 2005-03-10  Jim Meyering  <jim@meyering.net>
70036
70037         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
70038         so that this module works on systems without fchdir.
70039
70040 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70041
70042         Factor int-properties macros into a single file, except for
70043         glibc-related files.
70044         * lib/intprops.h: New file.
70045         * lib/getloadavg.c: Include it instead of limits.h.
70046         (INT_STRLEN_BOUND): Remove.
70047         * lib/human.c: Include intprops.h.
70048         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
70049         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
70050         302/1000.
70051         * lib/inttostr.h: Include intprops.h instead of limits.h.
70052         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
70053         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
70054         for consistency with intprops.h.
70055         (time_t_is_integer, twos_complement_arithmetic): Use them.
70056         * lib/sig2str.h: Include <signal.h>, intprops.h.
70057         (INT_STRLEN_BOUND): Remove.
70058         * lib/strftime.c (TYPE_SIGNED): Remove.
70059         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
70060         * lib/strtol.c: Adjust comments to match intprops.h.
70061         * lib/userspec.c: Include intprops.h.
70062         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
70063         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
70064         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
70065         instead of rolling our own expressions.
70066         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
70067
70068         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
70069         instead of int.
70070         (my_strftime): Do not mishandle years close to INT_MAX, by doing
70071         the right thing even if adding 1900 would overflow.  Similarly
70072         for tm_mon + 1 and tm_yday + 1.
70073         Make %Y always equivalent to %C%y, and similarly for %G and %g.
70074         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
70075         (DO_SIGNED_NUMBER): New macro.
70076         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
70077
70078 2005-03-07  Bruno Haible  <bruno@clisp.org>
70079
70080         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
70081
70082 2005-03-07  Bruno Haible  <bruno@clisp.org>
70083
70084         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
70085
70086 2005-03-04  Derek R. Price  <derek@ximbiot.com>
70087
70088         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
70089         (func_import): Only replace files via --import when they have actually
70090         changed.
70091
70092 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70093
70094         * m4/mmap-anon.m4: New file.
70095         * m4/pagealign_alloc.m4: New file.
70096
70097 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70098             Bruno Haible  <bruno@clisp.org>
70099
70100         * modules/pagealign_alloc: New file.
70101         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
70102
70103 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70104             Bruno Haible  <bruno@clisp.org>
70105
70106         * lib/pagealign_alloc.h: New file.
70107         * lib/pagealign_alloc.c: New file.
70108
70109 2005-03-03  Bruno Haible  <bruno@clisp.org>
70110
70111         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
70112         Use an all-permissive copyright notice, recommended by RMS.
70113
70114 2005-03-02  Bruno Haible  <bruno@clisp.org>
70115
70116         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
70117         of AIX, the replacement has to be done only after <string.h> is
70118         included, therefore not in config.h. stpncpy.h does the replacement,
70119         and stpncpy.c uses it.
70120
70121 2005-03-02  Bruno Haible  <bruno@clisp.org>
70122
70123         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
70124         stpncpy.c uses it.
70125
70126 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70127
70128         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
70129         The workaround isn't strictly needed for POSIX conformance, and
70130         it's too much of a pain to configure and maintain.  We'll ask
70131         people to fix their kernels instead.
70132         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
70133         (NANOSLEEP_BUG_WORKAROUND): Remove.
70134         (xnanosleep): Remove the workaround.
70135
70136 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70137
70138         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
70139         Reported by Derek Price.
70140         (Include): Add "timespec.h".
70141
70142         * modules/xnanosleep (Depends-on): Remove gethrxtime.
70143
70144 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70145
70146         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
70147         to detect nanosleep bug.
70148
70149 2005-03-01  Bruno Haible  <bruno@clisp.org>
70150
70151         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
70152
70153 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70154
70155         * modules/gethrxtime: New file.
70156         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
70157         (Depends-on): Add gethrxtime.
70158         (configure.ac): Add gl_XNANOSLEEP.
70159         (Makefile.am): Remove lib_SOURCES line.
70160
70161 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70162
70163         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
70164         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
70165
70166 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70167
70168         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
70169         * lib/timespec.h (gettime): Return void, since it always
70170         succeeds now.  All uses changed.
70171         * lib/gettime.c (gettime): Likewise.
70172         [HAVE_NANOTIME]: Prefer nanotime.
70173         Assume gettimeofday succeeds, as POSIX requires.
70174         Assime time () succeeds, since other code already does.
70175         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
70176         (timespec_subtract): Remove.
70177         (NANOSLEEP_BUG_WORKAROUND): New constant.
70178         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
70179         things considerably.  Use it only on GNU/Linux hosts, since the
70180         workaround shouldn't be needed elsewhere.
70181
70182 2005-02-24  Bruno Haible  <bruno@clisp.org>
70183
70184         * modules/gettext (Files): Add m4/glibc2.m4.
70185
70186 2005-02-24  Bruno Haible  <bruno@clisp.org>
70187
70188         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
70189         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
70190         * m4/progtest.m4:
70191         Update from GNU gettext 0.14.2.
70192         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
70193
70194 2005-02-24  Bruno Haible  <bruno@clisp.org>
70195
70196         * lib/localcharset.c: Update from GNU gettext 0.14.2.
70197         * lib/config.charset: Update from GNU gettext 0.14.2.
70198
70199 2005-02-24  Bruno Haible  <bruno@clisp.org>
70200
70201         * lib/gettext.h: Update from GNU gettext 0.14.2.
70202
70203 2005-02-23  Simon Josefsson  <jas@extundo.com>
70204
70205         * m4/iconvme.m4: New file.
70206
70207 2005-02-23  Jim Meyering  <jim@meyering.net>
70208
70209         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
70210         change.
70211         Thanks to Bruno Haible for catching it.
70212
70213 2005-02-22  Simon Josefsson  <jas@extundo.com>
70214
70215         * modules/iconvme: New file.
70216
70217         * MODULES.html.sh: Add iconvme.
70218
70219 2005-02-22  Simon Josefsson  <jas@extundo.com>
70220
70221         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
70222
70223 2005-02-22  Simon Josefsson  <jas@extundo.com>
70224
70225         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
70226
70227 2005-02-22  Jim Meyering  <jim@meyering.net>
70228
70229         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
70230         s/ifndef/ifdef/.
70231
70232 2005-02-20  Neil Conway  <neilc@samurai.com>
70233
70234         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
70235         returned by OSX/Darwin if the specified buffer is not large
70236         enough for the hostname.
70237
70238 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70239
70240         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
70241         pass it to _help, otherwise the latter coredumps trying to
70242         dereference state.root_argp.
70243
70244 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70245
70246         * modules/chdir-long (Depends-on): Add memrchr.
70247         * modules/memrchr (Files): Add lib/memrchr.h.
70248         (Include): "memrchr.h".
70249
70250 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70251
70252         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
70253
70254 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70255
70256         * lib/memrchr.h: New file.
70257         * lib/chdir-long.c: Include it.
70258         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
70259         Don't bother including stddef.h.
70260
70261 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70262
70263         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
70264         inclusion.
70265         Include <sys/types.h>, for dev_t.
70266         (ME_DUMMY, ME_REMOTE): Move from here....
70267         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
70268         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
70269         Dmitry V. Levin.
70270         Include mountlist.h first, to test the interface.
70271
70272 2005-01-29  Bruno Haible  <bruno@clisp.org>
70273
70274         * lib/progname.c (program_name): Initialize.
70275         Needed when linking statically on MacOS X.
70276
70277 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70278
70279         Sync from coreutils.
70280         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
70281         (Depends-on): Add c-strtod.
70282         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
70283
70284 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70285
70286         Sync from coreutils.
70287         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
70288
70289         Remove files that are specific to coreutils.
70290         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
70291
70292 2005-01-28  Bruno Haible  <bruno@clisp.org>
70293
70294         * modules/javacomp: New file.
70295         * MODULES.html.sh (Java): Add javacomp.
70296
70297 2005-01-28  Bruno Haible  <bruno@clisp.org>
70298
70299         * m4/javacomp.m4: New file, from GNU gettext.
70300
70301 2005-01-28  Bruno Haible  <bruno@clisp.org>
70302
70303         * lib/javacomp.sh.in: New file, from GNU gettext.
70304         * lib/javacomp.h: New file, from GNU gettext.
70305         * lib/javacomp.c: New file, from GNU gettext.
70306
70307 2005-01-26  Simon Josefsson  <jas@extundo.com>
70308
70309         * lib/gai_strerror.c: Use GPL in header.
70310
70311 2005-01-26  Bruno Haible  <bruno@clisp.org>
70312
70313         * modules/javaexec: New file.
70314         * MODULES.html.sh (Java): Add javaexec.
70315
70316 2005-01-26  Bruno Haible  <bruno@clisp.org>
70317
70318         * m4/javaexec.m4: New file, from GNU gettext.
70319
70320 2005-01-26  Bruno Haible  <bruno@clisp.org>
70321
70322         * lib/javaexec.sh.in: New file, from GNU gettext.
70323         * lib/javaexec.h: New file, from GNU gettext.
70324         * lib/javaexec.c: New file, from GNU gettext.
70325
70326 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70327
70328         * modules/lchown (Depends-on): Remove lchown.h
70329
70330 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70331
70332         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
70333         must be defined if the header file was not found, in order
70334         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
70335
70336 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70337
70338         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
70339         initializers for struct pentry_state.
70340         (__argp_error): Check return value of __asprintf
70341         (__argp_failure): Translate error message
70342
70343         * lib/argp-parse.c: Removed braces around the expansion of N_()
70344
70345 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70346
70347         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
70348         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
70349         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
70350         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
70351         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
70352         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
70353         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
70354         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
70355         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
70356         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
70357         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
70358         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
70359         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
70360         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
70361         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
70362         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
70363         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
70364         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
70365         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
70366         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
70367         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
70368         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
70369         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
70370         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
70371         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
70372         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
70373         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
70374         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
70375         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
70376         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
70377         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
70378         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
70379         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
70380         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
70381         xstrtol.m4, xstrtoumax.m4, yesno.m4:
70382         Use an all-permissive copyright notice, recommended by RMS.
70383
70384 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
70385
70386         * modules/chdir-long (Depends-on): Remove mempcpy.
70387
70388 2005-01-21  Jim Meyering  <jim@meyering.net>
70389
70390         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
70391         same value as for Solaris 9.
70392
70393         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
70394         component length.  This included changing the parameter to be
70395         of type `char *' rather than `char const *'.
70396         * lib/chdir-long.h (chdir_long): Update prototype.
70397
70398         * lib/openat.c (fdopendir, fstatat): New functions.
70399         * lib/openat.h: Include headers required for use of DIR and struct
70400         stat.
70401         [AT_SYMLINK_NOFOLLOW]: Define.
70402         (fdopendir, fstatat): Add prototypes.
70403
70404 2005-01-21  Bruno Haible  <bruno@clisp.org>
70405
70406         * modules/classpath: New file.
70407         * MODULES.html.sh (Java): Add classpath.
70408
70409 2005-01-21  Bruno Haible  <bruno@clisp.org>
70410
70411         * lib/classpath.h: New file, from GNU gettext.
70412         * lib/classpath.c: New file, from GNU gettext.
70413
70414 2005-01-20  Simon Josefsson  <jas@extundo.com>
70415
70416         * modules/version-etc-fsf: New file.
70417
70418 2005-01-20  Simon Josefsson  <jas@extundo.com>
70419
70420         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
70421         * lib/version-etc.c: Remove version_etc_copyright.
70422         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
70423         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
70424
70425 2005-01-20  Simon Josefsson  <jas@extundo.com>
70426
70427         * lib/base64.h (isbase64): Add.
70428
70429         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
70430         using a unsigned prototype, don't inline.
70431         (base64_decode): Use it.
70432
70433 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70434
70435         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
70436         it.
70437
70438 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70439
70440         * lib/save-cwd.c (save_cwd): Remove code to support the case
70441         where fchdir is missing or flaky.
70442
70443 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70444
70445         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
70446
70447 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70448
70449         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
70450         AC_LIBSOURCES now does this.
70451         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
70452         with new ullong_max module.
70453
70454 2005-01-19  Bruno Haible  <bruno@clisp.org>
70455
70456         * modules/sh-quote: New file.
70457         * MODULES.html.sh (Executing programs): Add sh-quote.
70458
70459 2005-01-19  Bruno Haible  <bruno@clisp.org>
70460
70461         * lib/sh-quote.h: New file, from GNU gettext.
70462         * lib/sh-quote.c: New file, from GNU gettext.
70463
70464 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70465
70466         Merge from coreutils.
70467         * m4/ullong_max.m4: New file.
70468         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
70469         (gl_MACROS): Assume localeconv exists.
70470
70471 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70472
70473         Merge changes from coreutils, as described below in several
70474         changelogs dated today.
70475
70476         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
70477         (O_DIRECTORY): Remove; not needed here, since "." must be
70478         a directory.  All uses removed.
70479         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
70480         universal on Suns, and we also need to test for IRIX.
70481         Revamp code to use 'if' rather than '#if'.
70482         Avoid unnecessary comparison of cwd->desc to 0.
70483
70484         * lib/utimens.c (futimens): Robustify the previous patch, by checking
70485         for known valid error numbers rather than observed invalid ones.
70486
70487 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70488
70489         * modules/ullong_max: New file.
70490
70491         * modules/chdir-long, modules/openat: New files.
70492         * modules/save-cwd (Depends-on): Depend on chdir-long.
70493         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
70494
70495 2005-01-18  Jim Meyering  <jim@meyering.net>
70496
70497         Merge from coreutils.
70498         * m4/chdir-long.m4, m4/openat.m4: New files.
70499         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
70500         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
70501         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
70502         is sane and DOES follow symlinks.  Besides, testing 20 different
70503         systems found no broken chown implementations.
70504         Prompted by a change in rsync's copy of this macro.
70505         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
70506
70507         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
70508
70509         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
70510         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
70511         NULL-means-set-to-current-time semantics.
70512         Remove temporary file immediately, rather than waiting
70513         for configure's at-exit trap code to do it.
70514
70515 2005-01-18  Jim Meyering  <jim@meyering.net>
70516
70517         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70518
70519         * lib/utimens.c (futimens): Account for the fact that futimes
70520         can also fail with errno == ENOSYS or errno == ENOENT.
70521         Patch from Dmitry V. Levin.
70522
70523         Change the name of the robust chdir function from chdir to chdir_long.
70524         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
70525         (restore_cwd): Use chdir_long, not chdir.
70526         * lib/chdir-long.c: Renamed from chdir.c.
70527         * lib/chdir-long.h: Renamed from chdir.h.
70528         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
70529         Hurd.
70530
70531 2005-01-18  Bruno Haible  <bruno@clisp.org>
70532
70533         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
70534         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
70535         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
70536         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
70537         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
70538         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
70539         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
70540         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
70541         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
70542         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
70543         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
70544         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
70545         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
70546         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
70547         Use an all-permissive copyright notice, recommended by RMS.
70548
70549 2005-01-18  Bob Proulx  <bob@proulx.com>
70550
70551         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
70552         simplify offsetof() macro construct to avoid compile failure with
70553         native HP-UX 11.0 ANSI C compiler.
70554
70555 2005-01-17  Bruno Haible  <bruno@clisp.org>
70556
70557         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
70558         redundant because stpncpy.m4 takes care of it.
70559
70560 2005-01-17  Bruno Haible  <bruno@clisp.org>
70561
70562         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
70563
70564 2005-01-17  Bruno Haible  <bruno@clisp.org>
70565
70566         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
70567         used.
70568
70569 2005-01-17  Bruno Haible  <bruno@clisp.org>
70570
70571         * lib/fwriteerror.h (fwriteerror): Change specification to include
70572         fclose.
70573         * lib/fwriteerror.c: Include <stdbool.h>.
70574         (fwriteerror): At the end, close the file stream. Record whether
70575         stdout was already closed.
70576
70577 2005-01-17  Bruno Haible  <bruno@clisp.org>
70578
70579         * lib/execute.c (environ): Declare if needed.
70580         * lib/pipe.c (environ): Likewise.
70581         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
70582
70583 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70584
70585         * modules/argp: Depend on vsnprintf
70586
70587 2005-01-10  Jim Meyering  <jim@meyering.net>
70588
70589         * modules/closeout (Depends-on): Add atexit.
70590
70591 2005-01-06  Bruno Haible  <bruno@clisp.org>
70592
70593         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
70594
70595 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70596
70597         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
70598         definitions to be after all include files, to avoid collisions.
70599         Problem reported by Bob Proulx.
70600
70601 2005-01-04  Jim Meyering  <jim@meyering.net>
70602
70603         Changes imported from coreutils.
70604         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
70605         as the mkstemp template, use a temporary directory and an
70606         8.3-friendly template to avoid trouble on systems like DJGPP.
70607         Reported by Juan M. Guerrero via Stepan Kasal.
70608         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
70609         close. Remove the temporary directory right away, rather than waiting
70610         for configure's at-exit trap code to do it.
70611         Suggestion from Stepan Kasal.
70612
70613 2005-01-01  Simon Josefsson  <jas@extundo.com>
70614
70615         * gnulib-tool: Print #include directives when --import'ing.
70616
70617 2004-12-28  Simon Josefsson  <jas@extundo.com>
70618
70619         * tests/test-base64.c: Include required header files.  Remove
70620         unused variables.
70621
70622 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70623
70624         * modules/error (Depends-on): Remove gettext.
70625
70626 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
70629         not needed.  This removes a dependency on the gettext module.
70630         [defined _LIBC]: Do not include <libintl.h>; not needed.
70631
70632 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70633
70634         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
70635         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
70636
70637 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70638
70639         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
70640         HAVE_DECL_STRTOLD.
70641
70642 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70643
70644         * modules/getdate (Depends-on): Remove alloca-opt.
70645
70646 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70647
70648         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
70649
70650 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70651
70652         * lib/argp-parse.c: Include <stddef.h>.
70653         (alignof, alignto): New macros.
70654         (parser_init): Don't assume that void * is aligned sufficiently
70655         for struct option.
70656
70657         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
70658         need to extend the stack.
70659         (YYINITDEPTH): New macro, so that the initial stack isn't overly
70660         large.
70661
70662 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70663
70664         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
70665
70666 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70667
70668         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
70669         (2004-10-24) change.  Apparently this was a false alarm.
70670
70671         * modules/getdate: Depend on alloca-opt, not alloca.
70672
70673 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70674
70675         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
70676         Remove now-obsolete comment about AIX.
70677         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
70678         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
70679         (YYMAXDEPTH): New macro.
70680
70681 2004-12-18  Simon Josefsson  <jas@extundo.com>
70682
70683         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
70684
70685 2004-12-18  Bruno Haible  <bruno@clisp.org>
70686
70687         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
70688
70689 2004-12-18  Bruno Haible  <bruno@clisp.org>
70690
70691         * lib/fatal-signal.c (fatal_signals): Make non-const.
70692         (init_fatal_signals): New function.
70693         (uninstall_handlers, install_handlers): Ignore signals that were set to
70694         SIG_IGN.
70695         (at_fatal_signal): Call init_fatal_signals.
70696         (init_fatal_signal_set): Likewise. Ignore signals that were set to
70697         SIG_IGN.
70698         Reported by Paul Eggert.
70699
70700 2004-12-18  Bruno Haible  <bruno@clisp.org>
70701
70702         * doc/alloca.texi: New file.
70703         * doc/alloca-opt.texi: New file.
70704
70705 2004-12-17  Jim Meyering  <jim@meyering.net>
70706
70707         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
70708         Otherwise, install-sh could exit with improper exit status when
70709         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
70710
70711 2004-12-16  Simon Josefsson  <jas@extundo.com>
70712
70713         * tests/test-base64.c: Add license.
70714
70715 2004-12-15  Stepan Kasal  <address@hidden>
70716
70717         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
70718
70719 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
70720
70721         * modules/getcwd (Files): Add m4/d-ino.m4.
70722         Suggested by Mark D. Baushke.
70723
70724 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70725
70726         * lib/getdate.y (textint): New member "negative".
70727         (time_zone_hhmm): New function.
70728         Expect 14 shift-reduce conflicts, not 13.
70729         (o_colon_minutes): New rule.
70730         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
70731         (yylex): Set the "negative" member of signed numbers.
70732
70733 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70734
70735         * doc/getdate.texi (Time of day items, Time zone items):
70736         Describe new formats +00:00, UTC+00:00.
70737
70738 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70739
70740         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
70741         spurious "-l"s.  Problem reported by Stepan Kasal.
70742
70743 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
70744
70745         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
70746         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
70747
70748 2004-12-04  Simon Josefsson  <jas@extundo.com>
70749
70750         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
70751         Vandoorselaere <yoann@prelude-ids.org>.
70752
70753 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70754
70755         Changes imported from coreutils.
70756         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
70757         exist.
70758         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
70759
70760 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70761
70762         Changes imported from coreutils.
70763         * lib/hard-locale.c: Assume <locale.h> exists.
70764         Include "strdup.h".
70765         (GLIBC_VERSION): New macro.
70766         (hard_locale): Assume setlocale exists.
70767         Rewrite to avoid #ifdef.
70768         Use strdup rather than malloc + strcpy.
70769         * lib/human.c: Assume <locale.h> exists.
70770         (human_readable): Assume localeconv exists.
70771
70772 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70773
70774         * modules/hard-locale (Depends-on): Add strdup.
70775
70776 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70777
70778         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
70779         convert T2, not T.  (Imported from libc.)
70780
70781 2004-11-30  Simon Josefsson  <jas@extundo.com>
70782
70783         * modules/restrict (License): Change to LGPL.
70784
70785 2004-11-30  Simon Josefsson  <jas@extundo.com>
70786
70787         * m4/restrict.m4: Add copyright and copying conditions.
70788
70789 2004-11-30  Simon Josefsson  <jas@extundo.com>
70790
70791         * m4/base64.m4: New file.
70792
70793 2004-11-30  Simon Josefsson  <jas@extundo.com>
70794
70795         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
70796         base64.
70797
70798         * tests/test-base64.c: New file.
70799
70800         * modules/base64: New file.
70801
70802 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70803
70804         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
70805         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
70806
70807         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
70808
70809 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70810
70811         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
70812         (__getcwd.c): Don't restore errno; glibc doesn't.
70813         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
70814         first, falling back to our code only if its results look suspicious.
70815         Ensure that the resulting buffer is only as large as necessary.
70816
70817         * lib/readutmp.c: Include readutmp.h first.
70818         Include <errno.h>, since readutmp.h no longer does that.
70819         * lib/readutmp.h: Don't include <errno.h>,
70820         <sys/param.h>, <time.h>; not needed to establish interface.
70821         (errno): Remove decl.
70822         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
70823         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
70824         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
70825
70826 2004-11-28  Simon Josefsson  <jas@extundo.com>
70827
70828         * lib/base64.h, base64.c: New file.
70829
70830 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70831
70832         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
70833
70834 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70835
70836         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
70837         (Depends-on): Remove pathmax, same.  Add mempcpy.
70838         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
70839         (Makefile.am): Append getcwd.h to lib_SOURCES.
70840         (Include): Add getcwd.h.
70841         (Maintainer): Change from Jim Meyering to "all, glibc",
70842         since getdate now uses intended-for-glibc code.
70843         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
70844         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
70845
70846 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70847
70848         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
70849         HP's ANSI C compiler.
70850         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
70851         Declaring int functions causes warnings on some modern systems and
70852         shouldn't be needed to compile on ancient ones.
70853         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
70854         defined.
70855
70856         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
70857         with the following changes.
70858         (__set_errno): Parenthesize properly.
70859         Include <stdbool.h>.
70860         (MIN, MAX, MATCHING_INO): New macros.
70861         (__getcwd): Define with prototype, not K&R form.
70862         Use heuristics to allocate default buffer on stack if possible.
70863         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
70864         behavior, and to avoid the PATH_MAX limit when computing
70865         ../../../../...
70866         Use MATCHING_INO to compare inode number to file.
70867         Check for arithmetic overflow in size calculations.
70868         Fix bug in reallocation of dot array that caused getcwd to fail
70869         on directories nested deeper than 75.
70870         Be more careful about saving errno on error.
70871         Do not use realloc; use only free+malloc, as this is a bit
70872         more flexible and avoids a needless copy operation.
70873         Do not inspect st_dev and st_ino for symbolic links; POSIX
70874         doesn't specify the latter.
70875         Check for closedir errors.
70876         Avoid needless casts.
70877         Use "#ifdef weak_alias" around weak_alias, to be like other
70878         glibc code.
70879         The following changes to getcwd.c have effect only when used in
70880         gnulib; they have no effect inside glibc proper.
70881         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
70882         as alloca isn't used.
70883         (alloca, __alloca): Likewise.
70884         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
70885         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70886         unconditionally, as gnulib assumes C89 or better.
70887         Do not include <sys/param.h>.
70888         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
70889         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
70890         better.
70891         (NULL) [!defined NULL]: Remove; we assume C89 or better.
70892         Include <dirent.h> in a way that is compatible with modern Autoconf.
70893         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
70894         New macros, if not already defined.
70895         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
70896         Use "_LIBC", not "defined _LIBC", for consistency.
70897         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
70898         a mempcpy module.
70899         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
70900         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
70901         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
70902         credit only to Jim Meyering and adjust the copyright dates.
70903         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
70904         <stdlib.h>, <unistd.h>, "pathmax.h".
70905         Instead, include "xgetcwd.h" (first) and "getcwd.h".
70906         (INITIAL_BUFFER_SIZE): Remove.
70907         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
70908
70909 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70910
70911         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
70912         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
70913         Use the _ONCE methods, for efficiency.
70914         Check for fcntl.h.  In test program, include <errno.h>
70915         and <fcntl.h> if available.  Remove old K&R cruft from
70916         test program.  Check for common errors in GNU/Linux,
70917         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
70918         don't do AC_LIBOBJ, as that's getcwd.m4's job.
70919         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
70920         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
70921         name accordingly.
70922         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
70923         accommodate new getcwd.c.
70924         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
70925         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
70926         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
70927         that's all we need now.
70928
70929 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70930
70931         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
70932         argp-parse.c depends on getopt internals, that means we should
70933         always use our getopt, to be on the safe side.
70934         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
70935         order not to spoil the result of an eventual previous invocation
70936         of gl_GETOPT_SUBSTITUTE.
70937
70938 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70939
70940         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
70941         redefinition warnings. To avoid them, include the defines
70942         in `#if !defined __need_getopt ... #endif'. The only place
70943         where __getopt_argv_const is used is in definitions
70944         of getopt_long and getopt_long_only below, which are as well
70945         protected by `#ifndef __need_getopt'.
70946         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
70947         __need_getopt after including <stdio.h> and <unistd.h> These
70948         headers might have defined it.
70949
70950 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70951
70952         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
70953
70954 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70955
70956         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
70957         (futimens): New function, which uses futimes if available.
70958         (futimens, utimens): Support timespec==NULL, with same semantics
70959         as utime and utimens.
70960         * lib/utimens.h (futimens): New decl.
70961
70962 2004-11-23  Jim Meyering  <jim@meyering.net>
70963
70964         * lib/getopt_.h: Remove trailing blanks.
70965
70966 2004-11-23  Jim Meyering  <jim@meyering.net>
70967
70968         * lib/__fpending.c: Add comment.
70969
70970 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
70971
70972         * modules/canonicalize (Depends-on): Add xreadlink.
70973         Problem reported by James Youngman.
70974
70975 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70976
70977         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
70978         New macros.
70979         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
70980         optopt): Use them instead of invoking ## directly; otherwise, the
70981         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
70982
70983 2004-11-19  Bruno Haible  <bruno@clisp.org>
70984
70985         * lib/strtok_r.c: Move comments from here...
70986         * lib/strtok_r.h: ... to here.
70987
70988 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70989
70990         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
70991         implementations that mishandle size_t overflow.
70992
70993 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70994
70995         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
70996         might fail.  Problem reported by Yoann Vandoorselaere.
70997         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
70998         implementations that mishandle size_t overflow.
70999
71000 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71001
71002         * modules/canon-host (Depends-on): Add strdup.
71003
71004 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71005
71006         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
71007
71008 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71009
71010         * lib/canon-host.c: Include "strdup.h".
71011         (canon_host): Use getaddrinfo if available, so that IPv6 works.
71012         Use strdup instead of malloc/strcpy to duplicate strings.
71013
71014         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
71015         (human_space_before_unit): New constant.
71016         * lib/human.c (human_readable): Support it.
71017
71018         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
71019         (xgetcwd): Set errno correctly when failing.
71020         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
71021         the failure is actually due to a PATH_MAX problem.
71022
71023         Further getopt changes to make it more likely that glibc will
71024         buy the changes back.
71025         * lib/getopt.c (POSIXLY_CORRECT): New constant.
71026         (getopt): Use it, so to preserve glibc semantic
71027         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
71028         when compiling for libc.
71029         * lib/getopt_.h (__getopt_argv_const): Bring it back.
71030         (getopt_long, getopt_long_only): Use it.
71031
71032         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71033         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
71034         (getopt): Argv is now char * const *, as per standard.
71035         (_getopt_internal_r, _getopt_internal): Argv is now char **,
71036         not char *__getopt_argv_const *.
71037         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71038         _getopt_long_only_r): Likewise.
71039         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
71040         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71041         _getopt_long_r, _getopt_long_only_r): Likewise.
71042         * lib/getopt_.h (__getopt_argv_const): Remove.
71043         (getopt): Argv is now char * const *, as per standard.
71044
71045         * lib/getdate.y (tORDINAL): New token.
71046         (day, relunit): Allow it for relative times.
71047         (relative_time_table): Use tORDINAL for ordinals.
71048
71049 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71050
71051         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
71052         Document that "second" isn't allowed as an ordinal number.
71053
71054 2004-11-16  Jim Meyering  <jim@meyering.net>
71055
71056         * modules/closeout (Depends-on): Add fpending.
71057
71058 2004-11-15  Jim Meyering  <jim@meyering.net>
71059
71060         * lib/closeout.c: Include "__fpending.h" once again.
71061         Include <stdbool.h>.
71062         (close_stdout): Don't fail just because stdout was closed initially,
71063         since some programs don't write to stdout in the normal course of
71064         operation (other than --version and --help), and we don't want this
71065         function to make e.g. `touch file >&-' fail.
71066         But do fail if it was closed and someone has tried to write to it.
71067         E.g., `printf foo >&-' must fail.
71068
71069 2004-11-13  Jim Meyering  <jim@meyering.net>
71070
71071         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
71072
71073 2004-11-12  Simon Josefsson  <jas@extundo.com>
71074
71075         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
71076         small doc fix is still pending.
71077
71078 2004-11-11  Simon Josefsson  <jas@extundo.com>
71079
71080         * modules/strtok_r: New file.
71081
71082         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71083         strtok_r.
71084
71085 2004-11-11  Simon Josefsson  <jas@extundo.com>
71086
71087         * m4/strtok_r.m4: New file.
71088
71089         * m4/getopt.m4: Replace opterr.
71090
71091 2004-11-11  Simon Josefsson  <jas@extundo.com>
71092
71093         * lib/strtok_r.h, strtok_r.c: New file.
71094
71095 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71096
71097         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
71098         of replacing opterr, getopt, etc.  This should handle the
71099         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
71100
71101 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71102
71103         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
71104         we can stop lying to compilers about the constness of argv when we
71105         are compiled outside glibc.
71106         (getopt, getopt_long, getopt_long_only): Use it.
71107         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71108         _getopt_internal, getopt): Likewise.
71109         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71110         _getopt_long_only_r): Likewise.
71111         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71112         _getopt_long_r, _getopt_long_only_r): Likewise.
71113
71114         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
71115         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
71116         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
71117         the other external symbols.
71118         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
71119         declaration, since the above renaming now works around collisions.
71120
71121 2004-11-11  Jim Meyering  <jim@meyering.net>
71122
71123         * lib/linebreak.c: Remove trailing blanks.
71124         * lib/alloca_.h: Likewise.
71125         * lib/acosl.c: Likewise.
71126         * lib/euidaccess.c: Likewise.
71127         * lib/allocsa.h: Likewise.
71128
71129 2004-11-10  Simon Josefsson  <jas@extundo.com>
71130
71131         * m4/getaddrinfo.m4: New file.
71132
71133 2004-11-10  Simon Josefsson  <jas@extundo.com>
71134
71135         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
71136
71137 2004-11-10  Simon Josefsson  <jas@extundo.com>
71138
71139         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71140         getaddrinfo.
71141
71142         * modules/getaddrinfo: New file.
71143
71144 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71145
71146         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
71147
71148 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71149
71150         * lib/mktime.c (SHR): New macro, which is a portable
71151         substitute for >> that should work even on Crays.
71152         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
71153         Problem reported by Mark D. Baushke in
71154         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
71155         * lib/getdate.y (SHR): Likewise.
71156         (tm_diff): Use it.
71157         * lib/strftime.c (SHR): Likewise.
71158         (tm_diff): Use it.
71159         * lib/quotearg.c (struct quoting_options): Use unsigned int for
71160         quote_these_too, so that right shifts are well defined.  All uses
71161         changed.
71162
71163 2004-11-10  Jim Meyering  <jim@meyering.net>
71164
71165         Ensure that no close failure goes unreported.
71166         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
71167         return early when it seems there's nothing to flush.
71168         Don't include __fpending.h.
71169
71170 2004-11-10  Jim Meyering  <jim@meyering.net>
71171
71172         * modules/closeout (Depends-on): Remove fpending.
71173
71174 2004-11-10  Jim Meyering  <jim@meyering.net>
71175
71176         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
71177
71178 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71179
71180         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
71181         gl_FUNC_STRFTIME.
71182         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
71183         and AC_REQUIRE when possible, to avoid duplicate checks.
71184         Check for <wchar.h>.
71185
71186 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71187
71188         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
71189
71190 2004-11-09  Bruno Haible  <bruno@clisp.org>
71191
71192         * m4/sockpfaf.m4: New file.
71193
71194 2004-11-05  Bruno Haible  <bruno@clisp.org>
71195
71196         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
71197         Reported by Mark D. Baushke <mdb@cvshome.org>.
71198
71199 2004-11-04  Bruno Haible  <bruno@clisp.org>
71200
71201         2004-09-11  Bruno Haible  <bruno@clisp.org>
71202                 * allocsa.valgrind: New file.
71203         2004-02-06  Bruno Haible  <bruno@clisp.org>
71204                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
71205                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
71206                 Reported by Christopher Seip <chris.seip@hp.com>.
71207
71208 2004-11-04  Bruno Haible  <bruno@clisp.org>
71209
71210         * modules/allocsa (Files): Add lib/allocsa.valgrind.
71211         (Makefile.am): Distribute it.
71212
71213 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71214
71215         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
71216         with errno == ERANGE if the buffer is too small.
71217         Problem reported by Mark D. Baushke.
71218
71219 2004-11-03  Albert Chin  <china@thewrittenword.com>
71220             Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
71223         equivalent, substitute $ac_type for equivalent type rather than
71224         blindly using uint32_t *always* which won't work if uint32_t is not
71225         available.  Define _UINT32_T to work around typedef of uint32_t if
71226         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
71227         2.5.1.
71228
71229 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71230
71231         * m4/jm-macros.m4: Sync from coreutils.
71232         (gl_MACROS): Check for mbrlen, for pathchk.
71233         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
71234
71235 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71236
71237         * lib/xreadlink.c (MAXSIZE): New macro.
71238         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
71239         size does not exceed MAXSIZE.  Avoid cast.
71240         As suggested by Mark D. Baushke in
71241         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
71242         if readlink fails with buffer size just under MAXSIZE, try again
71243         with MAXSIZE.
71244
71245 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71246
71247         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
71248
71249 2004-11-02  Derek R. Price  <derek@ximbiot.com>
71250         and  Paul Eggert  <eggert@cs.ucla.edu>
71251
71252         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
71253         (get_date): Overparenthesize to avoid GCC warning.
71254
71255 2004-11-02  Bruno Haible  <bruno@clisp.org>
71256
71257         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
71258         returns void.
71259
71260 2004-11-02  Bruno Haible  <bruno@clisp.org>
71261
71262         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
71263         function returns void.
71264
71265 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71266
71267         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
71268         fflush_unlocked, flockfile, funlockfile, funlockfile,
71269         fputs_unlocked, putc_unlocked.
71270
71271 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71272
71273         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71274         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
71275         already declared.
71276
71277 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71278
71279         * modules/getdate (Files): Add doc/getdate.texi.
71280         (Depends-on): Add setenv, xalloc.
71281
71282 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71283
71284         * lib/getdate.y: Add support for TZ="foo" within a date string.
71285         Fix some bugs near time_t boundaries.  Reject dates with
71286         out-of-range components, e.g., "Sept 31".
71287         Include <stdlib.h>, "setenv.h", "xalloc.h".
71288         (ISDIGIT_LOCALE): Remove; unused.
71289         Note that the TZ and time functions used here are not reentrant.
71290         (mktime_ok, get_tz): New functions.
71291         (TZBUFSIZE): New constant.
71292         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
71293         This requires that we sometimes generate our own TZ="XXX..." setting.
71294
71295 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71296
71297         * doc/getdate.texi: New file, from coreutils with modifications for
71298         the new TZ parsing.
71299
71300 2004-10-27  Derek R. Price  <derek@ximbiot.com>
71301
71302         * lib/mktime.c (not_equal_tm): Remove redundant check.
71303
71304 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71305
71306         * modules/regex (lib_SOURCES): Add regex.c.
71307         Reported by James Youngman in
71308         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
71309
71310 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71311
71312         * lib/getdate.y: Use Bison 1.875 features, and some minor
71313         code cleanups.  This change does not affect semantics.
71314         Don't include <stdlib.h>; no longer needed.
71315         Don't include unlocked-io.h; only the "#if TEST" code uses
71316         stdio, and performance isn't crucial there.
71317         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
71318         Bison 1.875 features as described below.
71319         All uses of "PC." replaced by "pc->".
71320         (YYSTYPE): Add a forward declaration.
71321         (yylex, yyerror): Use full prototypes in forward decls.
71322         Use "%pure-parser" rather than obsolescent "%pure_parser".
71323         Use %parse-param and %lex-param instead of obsolescent
71324         YYPARSE_PARAM and YYLEX_PARAM.
71325         (meridian_table, month_and_day_table, time_units_table,
71326         relative_time_table, time_zone_table, military_table,
71327         lookup_zone, lookup_word, get_date):
71328         Use NULL instead of 0 where appropriate.
71329         (to_hour): Avoid abort (), to avoid a dependency on
71330         stdlib.h.
71331         (yyerror, yylex): Now accepts parser_control * arg.
71332         (main) [TEST]: Use '\0' rather than 0 for char.
71333
71334 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71335
71336         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
71337
71338 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71339
71340         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
71341         It's now the caller's responsibility to handle the case where
71342         !HAVE_GETPAGESIZE && !defined getpagesize.
71343
71344         * lib/mktime.c (leapyear): Arg is long int, not int.
71345
71346 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
71347
71348         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
71349
71350 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71351
71352         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
71353         missing.  Problem reported by James Youngman.
71354
71355 2004-10-16  Simon Josefsson  <jas@extundo.com>
71356
71357         * gnulib-tool: Fix comments.  Fix parse problem.
71358         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
71359
71360 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
71361
71362         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
71363         implementation of getopt_long.  Problem reported by Alexander Taler in:
71364         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
71365
71366 2004-10-15  Bruno Haible  <bruno@clisp.org>
71367
71368         * gnulib-tool: Untabify. Initialize supplied_libname.
71369         (func_usage): More homogenous output.
71370         (func_modules_transitive_closure, func_modules_to_filelist,
71371         func_emit_lib_Makefile_am): New functions.
71372         (func_import): New function, extracted from big case statement. Use
71373         func_get_license, func_modules_transitive_closure,
71374         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
71375         opt_lgpl. Don't use test -a, as it's not portable.
71376         (func_create_testdir): Use func_modules_transitive_closure,
71377         func_modules_to_filelist, func_emit_lib_Makefile_am.
71378
71379 2004-10-15  Bruno Haible  <bruno@clisp.org>
71380
71381         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
71382
71383 2004-10-15  Bruno Haible  <bruno@clisp.org>
71384
71385         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
71386         the portions belonging to each module.
71387         Suggested by Derek Robert Price <derek@ximbiot.com>.
71388
71389 2004-10-12  Simon Josefsson  <jas@extundo.com>
71390
71391         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71392         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
71393         to real functions.
71394
71395 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71396
71397         * modules/vsnprintf: New file.
71398
71399 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71400
71401         * m4/vsnprintf.m4: New file.
71402
71403 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71404
71405         * lib/vsnprintf.h: New file.
71406         * lib/vsnprintf.c: New file.
71407
71408 2004-10-11  Bruno Haible  <bruno@clisp.org>
71409
71410         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
71411         vsnprintf.
71412
71413 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71414
71415         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
71416
71417 2004-10-07  Bruno Haible  <bruno@clisp.org>
71418
71419         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
71420         fits into the provided buffer.
71421
71422 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71423
71424         * lib/diacrit.c, diacrit.h: Add GPL notice.
71425
71426         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
71427         notice.
71428         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
71429         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
71430         This avoids a potential constant-folding bug.
71431
71432 2004-10-05  Bruno Haible  <bruno@clisp.org>
71433
71434         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
71435         for the declaration of strsep.
71436
71437 2004-10-05  Bruno Haible  <bruno@clisp.org>
71438
71439         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
71440
71441 2004-10-04  Simon Josefsson  <jas@extundo.com>
71442
71443         * modules/memmem: New file.
71444         * tests/test-memmem.c: New file.
71445         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
71446
71447 2004-10-04  Simon Josefsson  <jas@extundo.com>
71448
71449         * m4/memmem.m4: New file.
71450
71451 2004-10-04  Simon Josefsson  <jas@extundo.com>
71452
71453         * lib/memmem.h: New file.
71454         * lib/memmem.c: New file, taken from glibc.
71455
71456 2004-10-04  Simon Josefsson  <jas@extundo.com>
71457
71458         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
71459         '#ifdef USE_UNLOCKED_IO'.
71460
71461 2004-10-04  Simon Josefsson  <jas@extundo.com>
71462
71463         * config/srclist.txt: Add memmem from glibc.
71464
71465 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71466
71467         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
71468
71469         * modules/argmatch, modules/argp, modules/closeout, modules/error,
71470         modules/exclude, modules/getdate, modules/getline,
71471         modules/getndelim2, modules/getpass, modules/getpass-gnu,
71472         modules/getusershell, modules/linebuffer, modules/md5,
71473         modules/mountlist, modules/posixtm, modules/readtokens,
71474         modules/readutmp, modules/regex, modules/sha1,
71475         modules/version-etc, modules/yesno:
71476         Remove dependency on unlocked-io.
71477
71478 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71479
71480         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
71481
71482         * m4/unlocked-io.m4: Add copyright notice.
71483         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
71484
71485 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71486
71487         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
71488         * lib/xmalloc.c (xmemdup): Likewise.
71489         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
71490         XFREE): Remove these long-obsolescent macros.
71491         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
71492         * lib/xstrdup.c: Remove.
71493
71494         * lib/regex.c (re_comp): Cast gettext return value to char *,
71495         Problem reported by Martin Neitzel via Mark D. Baushke.
71496
71497 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71498
71499         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
71500         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
71501         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
71502         regex.c, sha1.c, version-etc.c, yesno.c:
71503         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
71504         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
71505         the includer's responsibility.
71506
71507         Sync from coreutils.
71508
71509         * lib/modechange.c (mode_compile): Don't decrement a pointer that
71510         points to the start of a string, as the C Standard says the
71511         resulting behavior is undefined.
71512
71513         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
71514         simple -> simple_backups, numbered_existing ->
71515         numbered_existing_backups, numbered -> numbered_backups
71516         to avoid shadowing problems.  All uses changed.
71517         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
71518         * lib/backupfile.c (check_extension, numbered_backup):
71519         Rename locals to avoid shadowing 'basename'.
71520         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
71521         once.
71522
71523         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
71524         * lib/.cvsignore: Add getopt.h.
71525
71526 2004-10-04  Bruno Haible  <bruno@clisp.org>
71527
71528         * modules/README: New file.
71529         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
71530         not a module.
71531
71532 2004-10-02  Jim Meyering  <jim@meyering.net>
71533
71534         * lib/dirfd.h, getpagesize.h: Add copyright notice.
71535
71536 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71537
71538         * modules/strsep: New file.
71539
71540 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71541
71542         * m4/strsep.m4: New file.
71543
71544 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71545
71546         * lib/strsep.h: New file.
71547         * lib/strsep.c: New file.
71548
71549 2004-10-01  Simon Josefsson  <jas@extundo.com>
71550
71551         * lib/snprintf.c (snprintf): Handle size==0.
71552
71553 2004-10-01  Simon Josefsson  <jas@extundo.com>
71554             Bruno Haible  <bruno@clisp.org>
71555
71556         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
71557         (snprintf): Declare 'args'.
71558
71559 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
71560
71561         * lib/snprintf.c: Remove comments as to why each header is needed.
71562
71563 2004-10-01  Bruno Haible  <bruno@clisp.org>
71564
71565         * MODULES.html.sh: Add strsep.
71566
71567 2004-09-30  Simon Josefsson  <jas@extundo.com>
71568
71569         * modules/snprintf: New file.
71570
71571 2004-09-30  Simon Josefsson  <jas@extundo.com>
71572
71573         * m4/snprintf.m4: New file.
71574
71575 2004-09-30  Simon Josefsson  <jas@extundo.com>
71576
71577         * lib/snprintf.h, lib/snprintf.c: New files.
71578
71579 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71580
71581         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
71582         (hol_entry_help): Never translate an empty string.
71583         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
71584         * lib/argp.h (OPTION_NO_TRANS): New option.
71585
71586 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71587
71588         * modules/argp (Maintainer): Replace Simon Josefsson
71589         by Sergey Poznyakoff.
71590
71591 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71592
71593         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
71594         changes merged back into glibc.
71595
71596 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71597
71598         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
71599
71600 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71601
71602         * lib/xvasprintf.c: Include xalloc.h.
71603         (xvasprintf): Use xalloc_die, not xmalloc_die.
71604
71605 2004-09-29  Bruno Haible  <bruno@clisp.org>
71606
71607         * modules/alloca-opt: New file, derived from modules/alloca.
71608         * modules/allocsa: Depend on alloca-opt instead of alloca.
71609         * modules/setenv: Likewise.
71610         * modules/vasnprintf: Likewise.
71611         * MODULES.html.sh: Add alloca-opt.
71612
71613 2004-09-28  Simon Josefsson  <jas@extundo.com>
71614
71615         * gnulib-tool: New parameter --lgpl, to asseert that modules are
71616         LGPL, and to replace license template from GPL to LGPL.
71617
71618 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71619
71620         * modules/dummy: Change license to LGPL.
71621
71622 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71623
71624         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
71625
71626 2004-09-24  Simon Josefsson  <jas@extundo.com>
71627
71628         * modules/minmax (License): Change from GPL to LGPL.
71629
71630 2004-09-23  Simon Josefsson  <jas@extundo.com>
71631
71632         * gnulib-tool (--import): Typo.
71633
71634 2004-09-23  Simon Josefsson  <jas@extundo.com>
71635
71636         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
71637
71638 2004-09-22  Bruno Haible  <bruno@clisp.org>
71639
71640         * modules/*: Add 'License' field.
71641         * gnulib-tool: Accept --extract-license option.
71642         (func_get_license): New function.
71643
71644 2004-09-21  Bruno Haible  <bruno@clisp.org>
71645
71646         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
71647         Reported by Simon Josefsson.
71648
71649 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71650
71651         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
71652         gl_AC_TYPE_LONG_LONG.
71653
71654 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71655
71656         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
71657
71658 2004-09-18  Simon Josefsson  <jas@extundo.com>
71659         and  Paul Eggert  <eggert@cs.ucla.edu>
71660
71661         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
71662         calls with autoreconf.  Define GL_LIB.
71663
71664 2004-09-14  Karl Berry  <karl@gnu.org>
71665
71666         * config/srclist.txt: unsync setenv.c, sigh.
71667
71668 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71669
71670         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
71671         Problem reported by Bruno Haible in:
71672         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
71673
71674 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71675
71676         * config/srclist.txt: Comment out argp-pvh.c.
71677
71678 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
71679
71680         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
71681         in case some system header has #define'd it.  Problem reported by
71682         Soeren D. Schulze in
71683         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
71684
71685 2004-09-09  Karl Berry  <karl@gnu.org>
71686
71687         * regex.[ch]: delete from the root.  These were supposed to be
71688                 synced with emacs cvs, but this has not happened for about
71689                 a year, and anyway nothing else uses emacs regex.[ch].
71690                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
71691                 lib/regex[.ch] is untouched.
71692
71693 2004-09-09  Bruno Haible  <bruno@clisp.org>
71694
71695         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
71696
71697 2004-09-09  Bruno Haible  <bruno@clisp.org>
71698
71699         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
71700         modifications.
71701         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
71702
71703 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71704
71705         * modules/xvasprintf: New file.
71706         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
71707
71708 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71709
71710         * lib/xvasprintf.h: New file.
71711         * lib/xvasprintf.c: New file.
71712         * lib/xasprintf.c: New file.
71713
71714 2004-09-08  Bruno Haible  <bruno@clisp.org>
71715
71716         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
71717
71718 2004-09-08  Bruno Haible  <bruno@clisp.org>
71719
71720         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
71721         length is > INT_MAX.
71722         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
71723         more.
71724
71725 2004-09-08  Bruno Haible  <bruno@clisp.org>
71726
71727         * lib/stdint_.h: New file, taken from GNU clisp.
71728
71729 2004-09-08  Bruno Haible  <bruno@clisp.org>
71730             Oskar Liljeblad  <oskar@osk.mine.nu>
71731
71732         * modules/stdint: New file.
71733         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
71734
71735 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71736
71737         Import from coreutils.
71738         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
71739         strings on unbounded length.  alloca's performance benefits aren't
71740         that important here.
71741         (V_STRDUP): Remove.
71742         (parse_with_separator): New function, with most of the internals
71743         of the old parse_user_spec.  Allow user to omit both user and group,
71744         for compatibility with FreeBSD.
71745         Clone only the user name, not the entire spec.
71746         Do not set *uid, *gid unless entirely successful.
71747         Avoid memory leak in some failing cases.
71748         Fix regression for USER.GROUP reported by Dmitry V. Levin in
71749         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
71750         (parse_user_spec): Rewrite to use parse_with_separator.
71751
71752 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71753
71754         * modules/userspec: Don't depend on alloca.
71755
71756 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71757
71758         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
71759
71760 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71761
71762         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
71763         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
71764         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
71765
71766 2004-08-16  Simon Josefsson  <jas@extundo.com>
71767
71768         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
71769         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
71770         Add --dry-run for --import.
71771         Let user provided command line parameters override configure.ac
71772         settings.
71773
71774 2004-08-12  Simon Josefsson  <jas@extundo.com>
71775
71776         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
71777         as discussed with Paul Eggert in threads rooted at
71778         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
71779         and
71780         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
71781         Before, the test was empty, and relied on ELIDE_CODE in source
71782         code.)
71783         (gl_PREREQ_GETOPT): New macro.
71784         (gl_GETOPT): Use them.
71785
71786 2004-08-12  Simon Josefsson  <jas@extundo.com>
71787
71788         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
71789         * lib/getopt_.h: Renamed from getopt.h.
71790
71791 2004-08-12  Simon Josefsson  <jas@extundo.com>
71792
71793         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
71794         Change default library name from libfoo to libgnu.
71795         Now, if you have a configure.ac that says:
71796                 gl_SOURCE_BASE(gl)
71797                 gl_M4_BASE(gl/m4)
71798                 gl_MODULES(error getopt etcetera)
71799                 gl_INIT
71800         you can import all you need by running:
71801                 ../gnulib/gnulib-tool --import
71802
71803         * modules/getopt (Files): Rename getopt.h to getopt_.h.
71804         (Makefile.am): Rewrite, use logic from argz.
71805         (Include): Use <getopt.h> instead of "getopt.h".
71806
71807 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71808
71809         * modules/argp (Files): Add m4/unlocked-io.m4.
71810         (Depends-on): Add extensions.
71811
71812 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71813
71814         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
71815         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
71816         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
71817         Check for program_invocation_name, program_invocation_short_name,
71818         flockfile, funlockfile, features.h, _getopt_long_only_r.
71819
71820 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71821
71822         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
71823         its complicated substitute.
71824         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
71825         and program_invocation_name.
71826         (__argp_basename) [!_LIBC]: Remove; the only use was
71827         replaced by its body.
71828         (__argp_short_program_name): Change condition from
71829         !defined __argp_short_program_name to
71830         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
71831         to match argp-namefrob.h.
71832         (__argp_failure): Don't assume strerror_r returns char *.
71833         * lib/argp-parse.c (N_): Define unconditionally.
71834         (argp_default_options): Fill out initializers with 0 to avoid
71835         gcc warnings.
71836
71837 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71838
71839         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
71840         getopt1.c.
71841
71842 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71843
71844         Merge from coreutils.
71845
71846         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
71847
71848         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
71849         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
71850
71851 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71852
71853         Merge from coreutils.
71854
71855         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
71856         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
71857         for Reliant Unix 5.43.
71858
71859         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
71860         (union fooround): Use uintmax_t, not long int.
71861         The rest is a merge from libc:
71862         [defined _LIBC]: Include <shlib-compat.h>.
71863         (_obstack) [defined _LIBC]: Remove after 2.3.4.
71864
71865         * lib/settime.c (settime): Recode to avoid warning with
71866         Sun Forte C 6U2.
71867
71868         * lib/strverscmp.c: Convert to UTF-8.
71869
71870 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71871
71872         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71873         m4/uintmax_t.m4.
71874
71875 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71876
71877         * modules/xalloc-die: New file.
71878         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
71879
71880         * modules/md5 (Files): Add m4/uint32_t.m4.
71881         * modules/sha1: Renamed from modules/sha.
71882         (Files):
71883         Rename lib/sha.h to lib/sha1.h.
71884         Rename lib/sha.c to lib/sha1.c.
71885         Rename m4/sha.m4 to m4/sha1.m4.
71886         (lib_SOURCES): Likewise.
71887         (configure.ac): Rename gl_SHA to gl_SHA1.
71888         (Include): sha.h -> sha1.h.
71889
71890 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71891
71892         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
71893         * m4/sha1.m4: Renamed from sha.m4.
71894         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
71895
71896 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71897
71898         * lib/obstack.h (obstack_empty_p):
71899         Don't assume that chunk->contents is suitably aligned.
71900         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
71901         Likewise. Problem reported by Benno in
71902         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
71903
71904         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
71905         readable.  This could be improved further but it'd take some work.
71906
71907 2004-08-08  Simon Josefsson  <jas@extundo.com>
71908
71909         * modules/xgethostname (Depends-on): Remove exit and error (not
71910         used).
71911
71912         * modules/getpass-gnu: Add getpass.h.
71913         (Depends-on): Add stdbool.
71914         * modules/getpass: Add getpass.h.
71915
71916 2004-08-08  Simon Josefsson  <jas@extundo.com>
71917
71918         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
71919         Check getpass declaration.
71920
71921 2004-08-08  Simon Josefsson  <jas@extundo.com>
71922
71923         * lib/xgethostname.c: Don't include error.h (not used).
71924
71925         * lib/getpass.h: Add.
71926         * lib/getpass.c: Include getpass.h first.
71927
71928 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
71929
71930         * lib/xalloc-die.c: New file.
71931         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
71932         All uses removed.
71933         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
71934         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
71935         xalloc-die.c.
71936         (_, N_, xalloc_die): Move to xalloc-die.c.
71937         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
71938         so that we needn't mess with xalloc_msg_memory_exhausted.
71939
71940         * lib/sha1.h: Renamed from sha.h.
71941         (SHA1_H): Renamed from _SHA_H.
71942         (sha1_ctx): Renamed from sha_ctx.
71943         (sha1_init_ctx): Renamed from sha_init_ctx.
71944         (sha1_process_block): Renamed from sha_process_block.
71945         (sha1_process_bytes): Renamed from sha_process_bytes.
71946         (sha1_finish_ctx): Renamed from sha_finish_ctx.
71947         (sha1_read_ctx): Renamed from sha_read_ctx.
71948         (sha1_stream): Renamed from sha_stream.
71949         (sha1_buffer): Renamed from sha_buffer.
71950         * lib/sha1.c: Likewise; renamed from sha.c.
71951         Do not include <sys/types.h>.
71952         Include <stddef.h> rather than <stdlib.h>.
71953
71954 2004-08-08  Bruno Haible  <bruno@clisp.org>
71955
71956         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
71957         FILESYSTEM_PREFIX_LEN.
71958         * lib/progreloc.c: Likewise.
71959         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
71960
71961 2004-08-06  Simon Josefsson  <jas@extundo.com>
71962
71963         * modules/progname (Depends-on): Don't depend on stdbool.
71964
71965 2004-08-06  Simon Josefsson  <jas@extundo.com>
71966
71967         * modules/getsubopt: New file.
71968         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71969         getsubopt.
71970
71971 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71972
71973         More merge from coreutils.
71974
71975         * m4/utimens.m4, m4/utimecmp.m4: New files.
71976         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
71977         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
71978         prereq.m4, sha.m4: Import changes from coreutils.
71979
71980 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71981
71982         More merge from coreutils.
71983         * modules/raise, modules/readtokens0, modules/utimens:
71984         * modules/utimecmp, module/xnanosleep: New files.
71985         * modules/strftime: Add lib/strftime.h.
71986         Change include from <time.h> to "strftime.h".
71987         * modules/yesno: Add lib/yesno.h.
71988         * modules/backupfile: Remove lib/addext.c.
71989         * modules/euidaccess: Add stat-macros.h.
71990         * modules/canonicalize, modules/euidaccess,
71991         modules/filemode, modules/lchown, modules/makepath,
71992         modules/rmdir, modules/stat: Likewise.
71993
71994 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71995
71996         Merge from tar.
71997         * lib/argp-help.c (make_hol, hol_append): Don't assume that
71998         SIZE_MAX is a valid preprocessor constant.
71999         (__argp_basename): Change from "#ifndef _LIBC"
72000         to "#ifndef __argp_short_program_name", so that
72001         we don't compile these functions for tar.
72002
72003         More merges from coreutils.
72004         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
72005         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
72006         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
72007         * lib/addext.c: Remove; no longer needed.
72008         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
72009         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
72010         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
72011         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
72012         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
72013         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
72014         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
72015         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
72016         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
72017         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72018         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
72019         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
72020         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
72021         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
72022         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
72023         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
72024         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
72025         Import changes from coreutils.
72026
72027 2004-08-05  Simon Josefsson  <jas@extundo.com>
72028
72029         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
72030
72031 2004-08-05  Simon Josefsson  <jas@extundo.com>
72032
72033         * m4/getsubopt.m4: New file.
72034
72035 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72036
72037         Merge from coreutils.
72038
72039         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
72040         * m4/getcwd-path-max.m4: New files.
72041
72042         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
72043         FILESYSTEM_PREFIX_LEN ->
72044         FILE_SYSTEM_PREFIX_LEN.
72045         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
72046         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
72047         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
72048         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
72049
72050         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
72051         prerequisite modules now handle the DOS stuff.
72052         Don't check for unistd.h.
72053
72054 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72055
72056         Merge from coreutils.
72057
72058         * lib/.gdb-history: Remove; this doesn't belong here.
72059
72060         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
72061         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
72062         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
72063         * lib/getcwd.c: New files.
72064
72065         * lib/dirname.h: Include <stdbool.h>.
72066         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
72067         for consistency with POSIX terminology.  All uses changed.
72068         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
72069         (strip_trailing_slashes): Use bool for booleans.
72070         * lib/stripslash.c (strip_trailing_slashes): Likewise.
72071
72072         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
72073         sometimes returns a positive errno value even when it succeeds.
72074         (print_errno_message) [!LIBC]: Fall back on strerror if
72075         __strerror_r fails.
72076
72077         * lib/path-concat.c (mempcpy): Don't define if a system header defines
72078         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
72079         (longest_relative_suffix): New function.
72080         (path_concat): Use it.  Assume first argument is not NULL.
72081         Port to DOS.  Omit redundant separators.
72082         Report an error instead of returning NULL.
72083         Use mempcpy instead of memcpy.
72084         (xpath_concat): Remove: not declared or used.
72085
72086         * lib/same.h: Include <stdbool.h>
72087         (same_name): Return bool, not int.
72088         * lib/same.c (same_name): Likewise.
72089         (errno): Don't declare; we assume C89 or better now.
72090
72091         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
72092         if not already defined.
72093
72094         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
72095         * lib/dup-safer.c (errno): Likewise.
72096
72097 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72098
72099         Merge from coreutils.
72100         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
72101         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
72102         * modules/path-concat: Don't depend on strdup.
72103
72104 2004-08-03  Simon Josefsson  <jas@extundo.com>
72105
72106         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
72107         * lib/progname.h: Don't include stdbool.h.
72108
72109 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72110
72111         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
72112         * MODULES.html.sh (func_all_modules): Remove fatal.
72113
72114 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72115
72116         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
72117
72118 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72119
72120         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
72121         working.
72122
72123 2004-08-02  Simon Josefsson  <jas@extundo.com>
72124
72125         * lib/getsubopt.h: New file, with comments from Bruno Haible.
72126         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
72127         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
72128
72129 2004-08-01  Simon Josefsson  <jas@extundo.com>
72130
72131         * lib/xgetdomainname.c: Include stdlib.h, for free().
72132
72133 2004-07-19  Bruno Haible  <bruno@clisp.org>
72134
72135         * MODULES.html.sh (func_all_modules): Add dummy.
72136
72137 2004-07-16  Simon Josefsson  <jas@extundo.com>
72138
72139         * modules/dummy: New file.
72140
72141 2004-07-16  Simon Josefsson  <jas@extundo.com>
72142
72143         * lib/dummy.c: New file.
72144
72145 2004-07-16  Bruno Haible  <bruno@clisp.org>
72146
72147         * lib/backupfile.h: Add extern "C" for C++.
72148         * lib/closeout.h: Likewise.
72149         * lib/copy-file.h: Likewise.
72150         * lib/findprog.h: Likewise.
72151         * lib/full-write.h: Likewise.
72152         * lib/pathname.h: Likewise.
72153         * lib/progname.h: Likewise.
72154         * lib/stpcpy.h: Likewise.
72155         * lib/stpncpy.h: Likewise.
72156         * lib/strcase.h: Likewise.
72157         * lib/strstr.h: Likewise.
72158         * lib/xalloc.h: Likewise.
72159
72160         * lib/mbswidth.h: Add extern "C" for C++.
72161         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
72162
72163 2004-07-13  Robert Millan  <robertmh@gnu.org>
72164
72165         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
72166
72167 2004-07-09  Simon Josefsson  <jas@extundo.com>
72168
72169         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
72170         failed without this.)
72171
72172 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72173
72174         * modules/chown (Files): Add lib/fchown-stub.c, since
72175         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
72176
72177 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72178
72179         * lib/fchown-stub.c: New file.
72180
72181 2004-06-24  Jim Meyering  <jim@meyering.net>
72182
72183         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
72184
72185 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72186
72187         * modules/argz: Omit "#include".
72188
72189         * MODULES.html.sh (func_all_modules): Add calloc, to match
72190         2004-06-01 addition of calloc module.
72191
72192 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72193
72194         * m4/argz.m4: New file, which is autoupdated from libtool.
72195
72196 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72197
72198         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
72199         libtool.
72200
72201 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72202
72203         * config/srclist-update: Don't insist on "USA." before the
72204         close-comment, as libtool omits the period and puts the */ on a
72205         separate line.
72206         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
72207         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
72208
72209 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
72210
72211         * modules/argz: New file.
72212         * MODULES.html.sh (func_all_modules): Add argz.
72213
72214 2004-06-12  Jim Meyering  <jim@meyering.net>
72215         and  Paul Eggert  <eggert@cs.ucla.edu>
72216
72217         * modules/hash (Files): Add lib/xalloc.h.
72218         * modules/pipe (Depends-on): Add wait-process.
72219         * modules/stat (Depends-on): Add xalloc.
72220         * modules/userspec (Files): Add lib/userspec.h.
72221         * modules/xstrto
72222
72223         Upgrade from gettext-0.13.
72224         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
72225         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
72226         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
72227
72228 2004-06-10  Jim Meyering  <jim@meyering.net>
72229
72230         * lib/calloc.c: New file.
72231
72232 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
72233
72234         * lib/getdate.y (yylex): Allow space between sign and number.
72235         Problem reported by Dan Jacobson.
72236
72237 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72238
72239         Merge from coreutils CVS.
72240
72241         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
72242         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
72243         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
72244         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
72245         xstrtol.m4: Fix copyright date and/or serial number.
72246
72247         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
72248         See if we need an fchown replacement.
72249         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
72250         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
72251         and use the replacement function if we detect either defect.
72252
72253         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
72254         gl_UTIMECMP.
72255
72256 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72257         and  Jim Meyering  <jim@meyering.net>
72258
72259         Merge from coreutils CVS.
72260
72261         * lib/stat-macros.h: New file, with contents from file-type.h
72262         and coreutils' system.h.
72263         * lib/file-type.c: Include "stat-macros.h".
72264         * lib/file-type.h (file_type): Move all macro definitions to new file,
72265         stat-macros.h.
72266
72267         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
72268         Wrap old code with this conditional.
72269         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
72270         function that does not dereference symlinks.
72271         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
72272
72273         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
72274         dependency problems.
72275         (xreadlink): Accept new arg SIZE, for efficiency.
72276         All decls and uses changed.
72277         * lib/xreadlink.h: Include <stddef.h>, for size_t.
72278
72279         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
72280         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
72281
72282         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
72283         sysexits.h.
72284
72285 2004-06-01  Jim Meyering  <jim@meyering.net>
72286
72287         * m4/calloc.m4: New file.
72288
72289 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
72290
72291         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
72292         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
72293         Also, fix a typo in a diagnostic.
72294
72295 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72296
72297         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
72298         or AC_FUNC_REALLOC.
72299
72300 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72301
72302         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
72303         macros to be defined.
72304         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
72305         the allocator returns NULL because the requested size is zero.
72306
72307 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72308
72309         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
72310         var.  Add comment explaining why libc still defines it.  This
72311         merges the following patch from glibc:
72312         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
72313
72314 2004-05-20  Andreas Schwab  <schwab@suse.de>
72315
72316         * m4/free.m4: Replace free if it not known to work, not the other
72317         way round.
72318
72319 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72320
72321         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
72322         present in glibc since revision 1.1 of this file.
72323         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
72324         obstack_alignment_mask, obstack_alloc, obstack_base,
72325         obstack_blank, obstack_blank_fast, obstack_chunk_size,
72326         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
72327         obstack_grow0, obstack_init, obstack_int_grow,
72328         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
72329         obstack_next_free, obstack_object_size, obstack_ptr_grow,
72330         obstack_ptr_grow_fast, obstack_room): Remove declarations of
72331         nonexistent functions.
72332
72333 2004-05-18  Karl Berry  <karl@gnu.org>
72334
72335         * config/srclist.txt: break link for vasnprintf.c.
72336
72337 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72338
72339         Port obstack to the AS/400, where pointers are 16 bytes wide and
72340         you cannot cast an integer to a valid pointer.  This patch is
72341         currently waiting to be integrated into glibc; see
72342         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
72343
72344         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
72345         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
72346         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
72347         (struct obstack): temp member is now a union of a pointer and
72348         an integer, instead of an integer.  All integer uses changed.
72349         This does not affect the physical layout of struct obstack,
72350         except on hosts (like the AS/400) where the size or alignment of
72351         void * is greater than that of ptrdiff_t.
72352         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
72353         __STDC__)]: Store temporary in pointer member of union, not
72354         integer member.
72355         * lib/obstack.c: Include <stddef.h>, for offsetof.
72356         (struct fooalign): Remove; it doesn't need a name.
72357         (union fooround): Change double to long double, and add void *.
72358         (DEFAULT_ALIGNMENT): Use offsetof to compute.
72359         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
72360         not a macro.  Hence the values are always int; so remove all
72361         casts-to-int in uses.
72362
72363 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72364
72365         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
72366         we can get this patch merged into glibc.
72367
72368 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72369             Paul Eggert  <eggert@cs.ucla.edu>
72370
72371         * m4/argp: Depend on alloca.
72372
72373 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72374             Paul Eggert  <eggert@cs.ucla.edu>
72375
72376         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
72377         freecoding.
72378
72379 2004-05-17  Bruno Haible  <bruno@clisp.org>
72380
72381         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
72382         precision that consists of a '.' followed by an empty digit string.
72383         Patch by Tor Lillqvist <tml@iki.fi>.
72384
72385 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72386
72387         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
72388         for backward compatibility with older code.  We need our own
72389         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
72390         it under some other name, and our alloca.h will define it.
72391
72392 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72393             Derek Price  <derek@ximbiot.com>
72394
72395         * lib/alloca.c: Include <alloca.h>, to get our interface.
72396         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
72397         include <alloca.h> first.  Use C89 prototype for alloca; this
72398         requires including <stddef.h> for size_t.  Use extern "C" if C++.
72399         Use #elif for simplicity, since we can assume C89 now.
72400         Don't try to source the system alloca.h since it will not be found
72401         and to prevent recursively including its replacement.
72402         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
72403         * lib/regex.c: Likewise.
72404
72405 2004-05-16  Derek Price  <derek@ximbiot.com>
72406             Paul Eggert  <eggert@cs.ucla.edu>
72407
72408         getline cleanup.  This changes the getndelim2 API: both order of
72409         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
72410         no delimiter).
72411
72412         * lib/getline.c: Don't include stddef.h or stdio.h, since our
72413         interface does that.
72414         (getline): Always use getdelim, so that we don't have two
72415         copies of this code.
72416         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
72417         if available.
72418         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
72419         (GETNDELIM2_MAXIMUM): New macro.
72420         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
72421         instead of the old practice of delim2==0.  All callers changed.
72422         Return -1 on overflow, instead of returning junk.
72423         Do not set *linesize unless allocation succeeds.
72424         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
72425         that we include sys/types.h.
72426         * lib/getnline.h: Likewise.
72427         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
72428         (getndelim2): Reorder arguments.
72429         * lib/getnline.c (getnline, getndelim):
72430         Don't discard the NMAX argument.
72431         (getnline): Invoke getndelim, to avoid code duplication.
72432         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
72433         of (size_t) -1 by callers of the getnline family.
72434
72435 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72436
72437         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
72438         Check for gettimeofday.
72439         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
72440         Check for settimeofday, stime.
72441
72442 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72443
72444         * lib/nanosleep.c (suspended): Change its type from int to
72445         sig_atomic_t volatile.
72446         (first_call): Make it private to rpl_nanosleep, and have it
72447         be zero initially as that's a bit faster.
72448         (my_usleep): Round up fractional times instead of truncating them,
72449         as this is the usual meaning for 'sleep'.
72450
72451         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
72452         doesn't work.
72453         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
72454         (ENOSYS): Define if not defined.
72455         (settime): Fall back on stime if it exists and settimeofday fails.
72456         But don't bother with fallbacks if a method fails with errno == EPERM.
72457
72458 2004-05-11  Jim Meyering  <jim@meyering.net>
72459
72460         Prior to this change, the save_cwd caller required read access to the
72461         current directory on most systems (ones with the fchdir function).
72462
72463         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
72464         fails, try write-only, and finally, resort to using xgetcwd.
72465
72466 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72467
72468         * lib/obstack.c, obstack.h: Import changes from libc.
72469
72470 2004-04-28  Bruno Haible  <bruno@clisp.org>
72471
72472         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
72473         also implicitly appends .exe to executables.
72474         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
72475         accepts Windows pathnames.
72476         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72477         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72478         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72479         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72480         Reported by Derek Robert Price <derek@ximbiot.com>.
72481
72482 2004-04-21  Karl Berry  <karl@gnu.org>
72483
72484         * config/srclist.txt (localcharset.c): break sync.
72485
72486 2004-04-20  Paul Eggert  <eggert@twinsun.com>
72487
72488         * m4/host-os.m4: Add a copyright notice.
72489
72490 2004-04-20  Jim Meyering  <jim@meyering.net>
72491
72492         Change UTILS_ to gl_ in AC_DEFINE'd names.
72493         Change utils_- and jm_-prefixed variables, too.
72494         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
72495         UTILS_FUNC_MKDIR_TRAILING_SLASH.
72496         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
72497
72498         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
72499         Don't emit trailing blanks.
72500         Also rename jm_-prefixed variables to have gl_ prefix.
72501
72502         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
72503         Also rename jm_-prefixed variables to have gl_ prefix.
72504
72505         * m4/jm-macros.m4: Reflect the renamings.
72506         * m4/prereq.m4: Likewise.
72507
72508 2004-04-20  Jim Meyering  <jim@meyering.net>
72509
72510         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
72511         memory.
72512
72513 2004-04-20  Jim Meyering  <jim@meyering.net>
72514             Bruno Haible  <bruno@clisp.org>
72515
72516         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
72517         memory when realloc fails.
72518
72519 2004-04-19  Jim Meyering  <jim@meyering.net>
72520
72521         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
72522         now that readutmp.c may call `free (0)'.
72523
72524 2004-04-19  Bruno Haible  <bruno@clisp.org>
72525
72526         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
72527         * m4/inttypes_h.m4: Likewise.
72528         * m4/stdint_h.m4: Likewise.
72529         * m4/intmax_t.m4: Likewise.
72530         * m4/uintmax_t.m4: Likewise.
72531
72532 2004-04-18  Jim Meyering  <jim@meyering.net>
72533
72534         * m4/prereq.m4: Don't forbid jm_ prefix.
72535
72536         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
72537         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
72538         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
72539         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
72540         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
72541         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
72542         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
72543         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
72544         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
72545         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
72546         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
72547         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
72548         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
72549         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
72550         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
72551         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
72552         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
72553         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
72554         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
72555
72556 2004-04-18  Jim Meyering  <jim@meyering.net>
72557
72558         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
72559         failure, don't leak memory and do call END_UTMP_ENT.
72560
72561 2004-04-16  Jim Meyering  <jim@meyering.net>
72562
72563         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
72564         coreutils' stat program.
72565         (gl_PREREQ): Don't require jm_PREREQ_STAT.
72566
72567 2004-04-11  Paul Eggert  <eggert@twinsun.com>
72568
72569         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
72570         C89.
72571         (CHAR_BIT): Remove, since we assume C89.
72572         Include <stdint.h> if available, as per current Autoconf CVS advice.
72573
72574 2004-03-31  Jim Meyering  <jim@meyering.net>
72575
72576         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
72577         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
72578         * m4/xalloc.m4: Likewise.
72579
72580 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72581
72582         Merge from coreutils.
72583
72584         * m4/inttostr.m4: New file.
72585         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
72586         Require AM_STDBOOL_H and gl_TIMESPEC instead.
72587         Require gl_CLOCK_TIME.
72588         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
72589
72590 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72591
72592         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
72593         not bool, to be more consistent with Unix conventions.
72594         Suggested by Bruno Haible.
72595
72596         Merge from coreutils.
72597
72598         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
72599         * lib/umaxtostr.c: New files.
72600
72601         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
72602         the usual <time.h> dance.
72603         (get_date): Change signature to support fractional time stamps.
72604         All callers changed.
72605         * lib/getdate.y: Include "getdate.h" first, as we can now
72606         assume C89 and don't need to worry about 'const'.
72607         Similarly, include "unlocked-io.h" near start, not in middle.
72608         Include <limits.h>.
72609         (textint.value): Use long int rather than int.
72610         (textint.digits): Use size_t rather than int.
72611         (BILLION, LOG10_BILLION): New constants.
72612         (parser_control): New member rel_ns.  Members day_ordinal,
72613         time_zone, month, day, hour, minutes, rel_year, rel_month,
72614         rel_day, rel_hour, rel_minutes, rel_seconds
72615         are now long int, not int.  Member seconds is now struct timespec,
72616         not int.  New member timespec_seen.  Members dates_seen, days_seen,
72617         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
72618         not int.
72619         (%union.intval): Now long int, not int.
72620         New member timespec.
72621         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
72622         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
72623         (spec): Now is a timespec or an item list.
72624         (timespec, items): New nonterminals.
72625         (time, rel, relunit, number, get_date):
72626         Add support for fractional seconds.
72627         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
72628         (gmtime, localtime, mktime): Remove decls; not needed with C89.
72629         (to_hour): First arg is now long int, not int.
72630         (to_year): Returns long int, not int.
72631         Don't treat year -70 like 70.
72632         (tm_diff): Returns long int, not int.
72633         (lookup_word): Use bool instead of int when appropriate.
72634         (yylex): Use size_t for count, not int.
72635         Detect overflow when parsing large integer constants.
72636         Add support for fractions.
72637         (get_date): Make pointers 'const' if possible.
72638         Use more-portable code to detect integer overflow.
72639         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
72640         Don't use ctime; it's not reliable if the year has >4 digits.
72641
72642         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
72643         This is for compatibility with BSD.
72644
72645         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
72646         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
72647         From coreutils' system.h.
72648
72649         * lib/userspec.c: Don't include "posixver.h".
72650         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
72651         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
72652         compatible extension.  Simplify code by removing a boolean int
72653         that was always nonzero if a string was nonnull.
72654
72655 2004-03-30  Jim Meyering  <jim@meyering.net>
72656
72657         Merge from coreutils.
72658
72659         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
72660         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
72661         on some systems one must include <grp.h> before it.
72662         Reported by Christian Krackowizer.
72663
72664 2004-03-30  Jim Meyering  <jim@meyering.net>
72665
72666         Merge from coreutils.
72667
72668         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
72669
72670         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
72671         an empty input stream.
72672
72673         * lib/readtokens.c: Include <stdbool.h>.
72674         (readtoken): Use `size_t' rather than int/long.
72675         All callers adjusted.
72676         Use `bool' rather than `int' where appropriate.
72677         Use memset rather than an explicit loop.
72678         Use x2nrealloc rather than xrealloc.
72679         Allow the use of `\0' as a delimiter.
72680         (readtokens): Likewise.
72681         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
72682
72683 2004-03-30  Jim Meyering  <jim@meyering.net>
72684
72685         * m4/realloc.m4: Remove file, since now it does no more than
72686         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
72687         the `configure.ac' section of module/realloc.
72688         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
72689
72690 2004-03-30  Bruno Haible  <bruno@clisp.org>
72691
72692         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
72693         nonnull.
72694
72695 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72696
72697         Merge changes to getloadavg.c from coreutils and Emacs.
72698
72699         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
72700         Define to an expression, not to the empty string.
72701         Include cloexec.h and xalloc.h.
72702         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
72703         Use set_cloexec_flag rather than rolling our own.
72704         * lib/cloexec.c, lib/cloexec.h: New files.
72705
72706 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72707
72708         * m4/cloexec.m4: New file.
72709
72710 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72711
72712         * lib/getopt.h: Sync with libc CVS.
72713
72714 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72715             Bruno Haible  <bruno@clisp.org>
72716
72717         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
72718         mbswidth.
72719
72720 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72721             Bruno Haible  <bruno@clisp.org>
72722
72723         * lib/mbswidth.h: Include <wchar.h> only if
72724         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
72725         <wchar.h>.
72726         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
72727
72728 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72729
72730         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
72731         Sync with libc CVS.
72732         * lib/getopt_int.h: New file, also synced from libc.
72733
72734 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72735
72736         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
72737         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
72738         Bring back getopt.c, getopt.h, getopt1.c.
72739
72740 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72741
72742         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
72743         All uses changed.  Check for sa_sigaction member; this fixes
72744         a bug first reported by Jason Andrade in
72745         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72746
72747 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72748
72749         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
72750         '#if' expressions.  Unlike the code it replaces, it does not
72751         depend on (defined _SC_PAGESIZE).  However, it does depend on
72752         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
72753         first reported by Jason Andrade in
72754         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72755
72756 2004-02-25  Simon Josefsson  <jas@extundo.com>
72757
72758         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
72759
72760 2004-02-25  Simon Josefsson  <jas@extundo.com>
72761
72762         * lib/strdup.h: New file.
72763         * lib/strdup.c: Include it.
72764         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
72765         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
72766
72767 2004-02-23  Karl Berry  <karl@gnu.org>
72768
72769         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
72770         (from fencepost.gnu.org:/gd/gnuorg).
72771
72772 2004-02-23  Karl Berry  <karl@gnu.org>
72773
72774         * config/srclistvars.sh (GNUORG) [karl]: redefine.
72775         * config/srclist.txt: add maintain/standards documents.
72776
72777 2004-02-18  Bruno Haible  <bruno@clisp.org>
72778
72779         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
72780         Reported by Derek Robert Price <derek@ximbiot.com>.
72781
72782 2004-02-16  Karl Berry  <karl@gnu.org>
72783
72784         * config/mkinstalldirs, install-sh: update from automake.
72785
72786 2004-02-06  Karl Berry  <karl@gnu.org>
72787
72788         * m4/po.m4: update from gettext 0.14.1.
72789
72790 2004-02-06  Karl Berry  <karl@gnu.org>
72791
72792         * lib/config.charset: update from gettext 0.14.1.
72793
72794 2004-02-05  Paul Eggert  <eggert@twinsun.com>
72795
72796         Add comments and code, prompted by suggestions from Bruno Haible
72797         for sh-quote.
72798         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
72799         describing the enum quoting_style values.
72800         * lib/quotearg.c (quotearg_alloc): New function.
72801         (quotearg_buffer_restyled): Treat lone { and } as special.
72802         Treat = as special.  Work around bug with older shells
72803         that "see" a '\' that is really the 2nd byte of a multibyte char.
72804         Quote empty string with shell_quoting_style.
72805
72806 2004-02-03  Bruno Haible  <bruno@clisp.org>
72807
72808         * m4/pipe.m4: New file, from GNU gettext.
72809
72810 2004-02-03  Bruno Haible  <bruno@clisp.org>
72811
72812         * lib/pipe.h: New file, from GNU gettext.
72813         * lib/pipe.c: New file, from GNU gettext.
72814
72815 2004-01-27  Bruno Haible  <bruno@clisp.org>
72816
72817         * m4/execute.m4: New file, from GNU gettext.
72818
72819 2004-01-27  Bruno Haible  <bruno@clisp.org>
72820
72821         * lib/execute.h: New file, from GNU gettext.
72822         * lib/execute.c: New file, from GNU gettext.
72823         * lib/w32spawn.h: New file, from GNU gettext.
72824
72825 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72826
72827         Merge from diffutils.
72828
72829         * lib/file-type.c (file_type): Add typed memory objects.
72830         * lib/file-type.h (S_TYPEISTMO): New macro.
72831
72832         * lib/c-stack.h (c_stack_action): Remove argv argument.
72833         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
72834         (die): Don't calculate message unless segv_action returns.
72835         (get_stack_location, min_address_from_argv, max_address_from_argv,
72836         volatile stack_base, volatile_stack_size): Remove.
72837         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
72838         that every segmentation violation is a stack overflow.  (Ouch!)
72839         See Debian bug 136249 (still outstanding) for more info about why
72840         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
72841
72842 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72843
72844         Exit-status fix from coreutils.
72845
72846         Use exit_failure consistently in place of EXIT_FAILURE,
72847         so that program exit statuses are consistent on failure.
72848
72849         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
72850         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
72851         * lib/argmatch.h: Comment fix to match the above.
72852         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
72853         Now a macro referring to exit_failure, instead of a separate
72854         variable.  Include "exitfail.h" to get it.
72855         * lib/xstrtol.h: Include "exitfail.h".
72856         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
72857
72858         * lib/long-options.c (parse_long_options): Use prototype
72859         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
72860         for clarity.
72861
72862 2004-01-21  Jim Meyering  <jim@meyering.net>
72863
72864         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
72865         so as not to conflict with a different-sized __mktime_internal
72866         function in GNU libc.
72867         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
72868         Problem building statically-linked `ls' reported by Michael Brunnbauer.
72869
72870 2004-01-20  Karl Berry  <karl@gnu.org>
72871
72872         * config/config.guess: update from config.
72873
72874         * config/srclistvars.sh: GNUWWWLICENSES for karl.
72875
72876 2004-01-20  Bruno Haible  <bruno@clisp.org>
72877
72878         Safer stack allocation.
72879         * lib/setenv.c: Include allocsa.h.
72880         (alloca): Remove fallback definition.
72881         (freea): Remove macro.
72882         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
72883         instead of freea.
72884
72885 2004-01-20  Bruno Haible  <bruno@clisp.org>
72886
72887         * m4/eealloc.m4: New file, from GNU gettext.
72888
72889 2004-01-20  Bruno Haible  <bruno@clisp.org>
72890
72891         * m4/allocsa.m4: New file, from GNU gettext.
72892
72893 2004-01-20  Bruno Haible  <bruno@clisp.org>
72894
72895         * lib/xallocsa.h: New file, from GNU gettext.
72896         * lib/xallocsa.c: New file, from GNU gettext.
72897
72898 2004-01-20  Bruno Haible  <bruno@clisp.org>
72899
72900         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
72901
72902 2004-01-20  Bruno Haible  <bruno@clisp.org>
72903
72904         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
72905         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
72906         specially.
72907
72908 2004-01-20  Bruno Haible  <bruno@clisp.org>
72909
72910         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
72911         patch.
72912
72913 2004-01-20  Bruno Haible  <bruno@clisp.org>
72914
72915         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
72916
72917 2004-01-20  Bruno Haible  <bruno@clisp.org>
72918
72919         * lib/eealloc.h: New file.
72920
72921 2004-01-20  Bruno Haible  <bruno@clisp.org>
72922
72923         * lib/binary-io.h: Avoid warnings on Cygwin.
72924
72925 2004-01-20  Bruno Haible  <bruno@clisp.org>
72926
72927         * lib/allocsa.h: New file, from GNU gettext.
72928         * lib/allocsa.c: New file, from GNU gettext.
72929
72930 2004-01-18  Karl Berry  <karl@gnu.org>
72931
72932         * doc/gpl.texi, doc/lgpl.texi: new files.
72933
72934 2004-01-18  Karl Berry  <karl@gnu.org>
72935
72936         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
72937         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
72938
72939 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72940
72941         Merge from coreutils.
72942
72943         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
72944         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
72945         (gl_DEFAULT_POSIX2_VERSION): Move
72946         the documentation from 'configure' into 'config.hin',
72947         so that 'configure --help' isn't burdened by it and
72948         we don't have to worry about its formatting there.
72949         Reword the documentation so that it's more succinct
72950         and can be run together into a single paragraph.
72951         * m4/same.m4 (gl_SAME): Check for pathconf.
72952
72953 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72954
72955         Merge from coreutils.
72956
72957         * lib/posixver.c: Include posixver.h.
72958
72959         * lib/same.c: Include <stdbool.h>, <limits.h>.
72960         (_POSIX_NAME_MAX): Define if not defined.
72961         (MIN): New macro.
72962         (same_name): If file names are silently truncated, report
72963         that the file names are the same if they are the same after
72964         the silent truncation.
72965
72966         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
72967         conversion function.
72968         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
72969         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
72970         longer needed.
72971
72972 2004-01-15  Jim Meyering  <jim@meyering.net>
72973
72974         Merge from coreutils.
72975
72976         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
72977         if no library is required.
72978         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
72979         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
72980         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
72981         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
72982         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
72983         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
72984         value, $ac_cv_search_crypt, if it's "none required".
72985         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
72986         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
72987         not gl_FUNC_GETLOADAVG.
72988         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
72989         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
72990
72991 2004-01-15  Jim Meyering  <jim@meyering.net>
72992
72993         Merge from coreutils.
72994
72995         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
72996         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
72997         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
72998
72999         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
73000         optional configure-time default.
73001
73002         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73003
73004         * lib/xreadlink.c (xreadlink): Correct outdated comment.
73005
73006 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
73007
73008         Merge from coreutils.
73009
73010         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
73011         value, $ac_cv_search_nanosleep, if it's "none required".
73012
73013 2004-01-14  Paul Eggert  <eggert@twinsun.com>
73014
73015         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
73016         with like-named macro in fnmatch.c.
73017         (EXT): Use an internal constant instead.
73018
73019         Merge fnmatch patches from glibc.
73020         * lib/fnmatch.c (mbsinit): Remove define.
73021         Add libc_hidden_ver (__fnmatch, fnmatch).
73022         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
73023         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
73024
73025 2004-01-14  Karl Berry  <karl@gnu.org>
73026
73027         * config/install-sh: update from automake.
73028
73029 2004-01-13  Karl Berry  <karl@gnu.org>
73030
73031         * config/install-sh: update from automake.
73032
73033 2004-01-09  Karl Berry  <karl@gnu.org>
73034
73035         * config/install-sh: update from automake.
73036
73037 2004-01-05  Karl Berry  <karl@gnu.org>
73038
73039         * config/config.{sub,guess}: update from config.
73040
73041 2003-12-31  Karl Berry  <karl@gnu.org>
73042
73043         * config/depcomp: update from automake.
73044
73045 2003-12-14  Karl Berry  <karl@gnu.org>
73046
73047         * lib/config.charset: update from gettext-runtime.
73048
73049 2003-12-03  Paul Eggert  <eggert@twinsun.com>
73050
73051         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
73052         Bug reported by Alfred M. Szmidt.
73053
73054 2003-12-03  Bruno Haible  <bruno@clisp.org>
73055
73056         * m4/gettext.m4: Upgrade from gettext-0.13.
73057         * m4/po.m4: Upgrade from gettext-0.13.
73058         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
73059         * m4/intmax.m4: New file, from gettext-0.13.
73060         * m4/printf-posix.m4: New file, from gettext-0.13.
73061
73062 2003-11-29  Karl Berry  <karl@gnu.org>
73063
73064         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
73065
73066 2003-11-25  Paul Eggert  <eggert@twinsun.com>
73067             Bruno Haible  <bruno@clisp.org>
73068
73069         * lib/printf-parse.h: Don't include sys/types.h.
73070         (ARG_NONE): New macro.
73071         (char_directive): Change type of *arg_index fields to size_t.
73072         * lib/printf-parse.c: Don't include sys/types.h.
73073         (SSIZE_MAX): Remove macro.
73074         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
73075         Remove unnecessary overflow check.
73076         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
73077         fields.
73078
73079 2003-11-25  Bruno Haible  <bruno@clisp.org>
73080
73081         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
73082
73083 2003-11-25  Bruno Haible  <bruno@clisp.org>
73084
73085         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
73086         gt_TYPE_SSIZE_T.
73087
73088 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73089
73090         * modules/alloca: Remove dependency on xalloc.
73091
73092 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73093
73094         * lib/alloca.c: Remove dependency on xalloc module.
73095         (xalloc_die): Remove.
73096         (memory_full) [!defined emacs]: New macro.
73097         [!defined emacs]: Don't include xalloc.h.
73098         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
73099         address arithmetic overflows.  Change datatypes a bit to avoid
73100         unnecessary casts.
73101
73102 2003-11-22  Jim Meyering  <jim@meyering.net>
73103
73104         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
73105         s/size/size_t/.
73106
73107 2003-11-21  Karl Berry  <karl@gnu.org>
73108
73109         * config/config.{sub,guess}: update from config.
73110
73111 2003-11-18  Karl Berry  <karl@gnu.org>
73112
73113         * config/config.{sub,guess}: update from config.
73114
73115         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
73116
73117 2003-11-17  Paul Eggert  <eggert@twinsun.com>
73118
73119         * README: Mention that S+T cannot overflow if S is the size of
73120         an existing object and T is sufficiently small.
73121
73122 2003-11-17  Jim Meyering  <jim@meyering.net>
73123
73124         On systems without utime and without a utimes function capable of
73125         dealing with a NULL struct utimbuf* argument, this utime replacement
73126         could -- in unusual circumstances -- leak a file descriptor.
73127         * lib/utime.c: Include <unistd.h> and <errno.h>.
73128         (utime_null): Be sure to close `fd' and to preserve errno.
73129         Reported by Geoff Collyer via Arnold Robbins.
73130
73131 2003-11-17  Bruno Haible  <bruno@clisp.org>
73132
73133         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
73134         (Depends-on): Add xsize.
73135
73136 2003-11-17  Bruno Haible  <bruno@clisp.org>
73137
73138         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
73139
73140 2003-11-17  Bruno Haible  <bruno@clisp.org>
73141
73142         * lib/vasnprintf.c (alloca): Remove fallback definition.
73143         (freea): Remove definition.
73144         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
73145         Reported by Paul Eggert.
73146
73147 2003-11-16  Paul Eggert  <eggert@twinsun.com>
73148             Bruno Haible  <bruno@clisp.org>
73149
73150         Protect against address arithmetic overflow.
73151         * lib/printf-args.h: Include stddef.h.
73152         (arguments): Change type of field 'count' to size_t.
73153         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
73154         'unsigned int' where appropriate.
73155         * lib/printf-parse.h: Include sys/types.h.
73156         (char_directive): Change type of *arg_index fields to ssize_t.
73157         (char_directives): Change type of fields 'count', max_*_length to
73158         size_t.
73159         * lib/printf-parse.c: Include sys/types.h and xsize.h.
73160         (SSIZE_MAX): Define fallback value.
73161         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
73162         instead of 'int' where appropriate. Check a_allocated, d_allocated
73163         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
73164         * lib/vasnprintf.c: Include xsize.h.
73165         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
73166         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
73167         overflow. Avoid wraparound when converting a width or precision from
73168         decimal to binary.
73169
73170 2003-11-16  Bruno Haible  <bruno@clisp.org>
73171
73172         Update from GNU gettext.
73173         * lib/printf-parse.c: Generalize to it can be compiled for wide
73174         strings.
73175         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
73176         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
73177         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
73178         SNPRINTF): New macros.
73179         Don't include <alloca.h> if the file is used inside libintl.
73180         (local_wcslen): New function, for Solaris 2.5.1.
73181         (VASNPRINTF): Use it instead of wcslen.
73182
73183 2003-11-16  Bruno Haible  <bruno@clisp.org>
73184
73185         * lib/xsize.h (xmax): New function.
73186         (xsum, xsum3, xsum4): Declare as "pure" functions.
73187
73188 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73189
73190         * modules/xalloc (Files): Undo latest change, since xalloc.h
73191         no longer needs SIZE_MAX or PTRDIFF_MAX.
73192
73193 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73194
73195         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
73196         gl_PTRDIFF_MAX.
73197
73198 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73199
73200         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
73201         "return", to pacify some unknown compiler.  Problem reported
73202         by Joerg Schilling.
73203
73204 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73205
73206         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
73207         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
73208         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
73209         heuristic is just as accurate as far as we know, and it removes a
73210         dependency on size_max.m4 and ptrdiff_max.m4.
73211
73212 2003-11-11  Bruno Haible  <bruno@clisp.org>
73213
73214         * modules/xsize (Files): Add m4/size_max.m4.
73215         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
73216
73217 2003-11-11  Bruno Haible  <bruno@clisp.org>
73218
73219         * m4/size_max.m4: New file.
73220         * m4/ptrdiff_max.m4: New file.
73221         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
73222         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
73223         (gl_XALLOC): Invoke it.
73224
73225 2003-11-11  Bruno Haible  <bruno@clisp.org>
73226
73227         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
73228         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
73229         defined.
73230
73231 2003-11-10  Paul Eggert  <eggert@twinsun.com>
73232
73233         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
73234         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
73235         rejected some allocations of exactly SIZE_MAX - 2 bytes.
73236         From Bruno Haible.
73237         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
73238         not (size_t) -1, since it's defined here.
73239
73240 2003-11-09  Karl Berry  <karl@gnu.org>
73241
73242         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
73243
73244 2003-11-06  Paul Eggert  <eggert@twinsun.com>
73245
73246         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
73247         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
73248         Reject sizes of exactly SIZE_MAX bytes.
73249         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
73250         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
73251
73252 2003-11-05  Bruno Haible  <bruno@clisp.org>
73253
73254         * lib/xsize.h: Include limits.h, to avoid a possible collision with
73255         SIZE_MAX defined in <limits.h> on Solaris.
73256
73257 2003-11-04  Jim Meyering  <jim@meyering.net>
73258
73259         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
73260         variable names, rather than @VAR@.
73261         * modules/poll: Likewise.
73262
73263 2003-11-04  Bruno Haible  <bruno@clisp.org>
73264
73265         * modules/xsize: New file.
73266         * modules/linebreak: Depend on xsize.
73267         * MODULES.html.sh (func_all_modules): Add xsize.
73268
73269 2003-11-04  Bruno Haible  <bruno@clisp.org>
73270
73271         * m4/xsize.m4: New file.
73272
73273 2003-11-04  Bruno Haible  <bruno@clisp.org>
73274
73275         * lib/xsize.h: New file.
73276         * lib/linebreak.c: Include xsize.h.
73277         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
73278         argument for overflow.
73279         Suggested by Paul Eggert.
73280
73281 2003-11-03  Karl Berry  <karl@gnu.org>
73282
73283         * config/config.{guess,sub}: update from config.
73284
73285 2003-11-03  Jim Meyering  <jim@meyering.net>
73286
73287         * modules/userspec (lib_SOURCES): Add userspec.h.
73288         (Include): Add "userspec.h".
73289         Improve description.
73290
73291 2003-11-03  Jim Meyering  <jim@meyering.net>
73292
73293         * lib/userspec.c: Include "userspec.h".
73294         * lib/userspec.h: New file.
73295
73296 2003-11-03  Bruno Haible  <bruno@clisp.org>
73297
73298         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
73299
73300 2003-11-03  Bruno Haible  <bruno@clisp.org>
73301
73302         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
73303         available, to avoid (extremely rare) race condition.
73304         Suggested by Paul Eggert.
73305
73306 2003-11-02  Karl Berry  <karl@gnu.org>
73307
73308         * config/srclist.txt (vasprintf.c): sync broken, sigh.
73309
73310 2003-10-31  Paul Eggert  <eggert@twinsun.com>
73311
73312         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
73313         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
73314         (read_filesystem_list): Set and use me_type_malloced.
73315         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
73316         whatever the type happens to be), for brevity and consistency.
73317         Check for size calculation overflow on Alphas running OSF/1.
73318
73319 2003-10-31  Jim Meyering  <jim@meyering.net>
73320
73321         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
73322
73323         * lib/linebuffer.c: Include <string.h> for declaration of memset.
73324
73325 2003-10-30  Paul Eggert  <eggert@twinsun.com>
73326             Bruno Haible  <bruno@clisp.org>
73327
73328         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
73329         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
73330
73331 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73332
73333         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
73334         netbsd*-gnu*.  Suggested by Robert Millan.
73335
73336 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73337
73338         * modules/group-member: Depend on stdbool.
73339
73340 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73341
73342         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
73343
73344 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73345
73346         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
73347         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
73348         after the 'gnu' in these cases.  This fixes some bugs in the
73349         previous change, and is based on suggestions by Robert Millan.
73350
73351 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73352
73353         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
73354         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
73355         no longer needed.
73356         * lib/quotearg.c (quotearg_n_options): Use it.
73357         * lib/group-member.c: Include <stdbool.h>.
73358         (free_group_info): Arg is now const *; don't free arg.
73359         (get_group_info): Now returns bool and accepts struct group_info *,
73360         rather than returning a malloc'ed struct group_info *.
73361         All uses changed.  Check for overflow in internal size calculation.
73362
73363         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
73364         rather than xmalloc/xrealloc.
73365         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
73366         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
73367         conformance bug: the old code used a pointer after freeing the
73368         storage that it addressed.
73369         * lib/hash.c (hash_initialize): Simplify the code by using
73370         xalloc_oversized rather than doing it by hand.
73371         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
73372         the buffer preserved.  Use free and xmalloc instead.
73373         * lib/quotearg.c (quotearg_n_options): Likewise.
73374         Use a simpler test for size overflow.  Don't use xalloc_oversized
73375         because unsigned int might be wider than size_t (!); this suggests
73376         that we should switch from unsigned int to size_t for slot numbers.
73377
73378 2003-10-28  Paul Eggert  <eggert@twinsun.com>
73379
73380         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
73381         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
73382         NetBSD kernels.  Requested by Richard Stallman.
73383
73384 2003-10-27  Paul Eggert  <eggert@twinsun.com>
73385
73386         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
73387         to allocate the returned structure.  Do not allocate a subarray,
73388         as x2nrealloc will do that.
73389         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
73390         instead of xnrealloc.
73391         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
73392
73393 2003-10-27  Bruno Haible  <bruno@clisp.org>
73394
73395         * lib/stdbool_.h: Better support for BeOS.
73396
73397 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73398
73399         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
73400         now uses inline.
73401
73402 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73403
73404         * lib/xalloc.h (xalloc_oversized): New static inline function, for
73405         callers that want to do their own size-overflow checking.  Include
73406         <stdbool.h>, since xalloc_oversized returns bool.
73407         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
73408         to use xalloc_oversized.
73409
73410         Add two functions x2realloc, x2nrealloc, for programs that grow
73411         arrays dynamically by doubling their sizes.
73412         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
73413         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
73414         New functions.
73415
73416         Port to C99 semantics for 'inline' of external functions.
73417         Bug reported by Bruno Haible.
73418         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
73419         with the old contents of xnmalloc.
73420         (xnmalloc, xmalloc): Use it.
73421         (xnrealloc_inline): New static inline function,
73422         with the old contents of xnrealloc.
73423         (xnrealloc, xrealloc): Use it.
73424
73425         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
73426         that.
73427
73428 2003-10-26  Karl Berry  <karl@gnu.org>
73429
73430         * config/srclist.txt (COPYING.DOC): no longer available from
73431         /gd/gnuorg; don't know where the ultimate source is.
73432
73433 2003-10-25  Paul Eggert  <eggert@twinsun.com>
73434
73435         Fix several address-calculation bugs in the hash modules,
73436         plus some minor code cleanup.
73437
73438         * lib/hash.h: Include <stdbool.h>, for bool.
73439         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
73440         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
73441         hash_get_n_entries, hash_get_max_bucket_length,
73442         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
73443         hash_rehash): Use size_t rather than unsigned.
73444         * lib/hash.c (struct hash_table, hash_get_n_buckets,
73445         hash_get_n_buckets_used, hash_get_n_entries,
73446         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
73447         hash_get_entries, hash_do_for_each, hash_string, is_prime,
73448         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
73449         Likewise.
73450         (SIZE_MAX): Define if not defined.
73451         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
73452         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
73453         hash_print):
73454         Use const * when possible.
73455         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
73456         (check_tuning): Fix bug: if tuning parameters were very close to
73457         0 or 1, rounding errors could have caused subscript violations.
73458         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
73459         (hash_initialize): Add 'fail:' label
73460         to free table and return NULL, and use it to simplify code.
73461         Use calloc rather than clearing the storage ourself.
73462         (hash_initialize, hash_rehash): Check for arithmetic overflow in
73463         buffer size calculations.
73464         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
73465         Include <stddef.h>, for size_t.
73466         * lib/hash-pjw.c (hash_pjw): Likewise.
73467         Switch to method described by Bruno Haible.
73468         Include <limits.h>, for CHAR_BIT.
73469         (SIZE_BITS): New macro.
73470
73471 2003-10-23  Paul Eggert  <eggert@twinsun.com>
73472
73473         * m4/getline.m4 (AM_FUNC_GETLINE):
73474         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
73475         hosts.  Problem reported by Derek Robert Price in
73476         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
73477         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
73478         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
73479
73480 2003-10-21  Paul Eggert  <eggert@twinsun.com>
73481
73482         * lib/getndelim2.c (getndelim2): When size calculation overflows,
73483         ceiling the allocation at NMAX bytes rather than silently
73484         discarding input bytes before NMAX is reached.  This makes
73485         a difference only if NMAX exceeds SIZE_MAX / 2.
73486
73487         * lib/obstack.c: Merge from glibc.
73488         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
73489         Add libc_hidden_def (_obstack_newchunk).
73490         (_obstack_free) [! defined _LIBC]: Remove.
73491         [defined _LIBC]: Make a strong alias from obstack_free, rather than
73492         a clone of the function body.
73493         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
73494         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
73495
73496         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
73497         glibc.
73498         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
73499         arg to memcpy.
73500
73501         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
73502         (obstack_ptr_grow_fast, obstack_int_grow_fast):
73503         Don't use lvalue casts, as GCC plans to remove support for them
73504         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
73505         was also present in the non-GCC version, indicating that this
73506         code had always been buggy and had never been widely used.
73507         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
73508         Use the fast variant of each macro, rather than copying the
73509         definiens of the fast variant; that way, we'll be more likely to
73510         catch future bugs in the fast variants.
73511
73512 2003-10-20  Bruno Haible  <bruno@clisp.org>
73513
73514         * modules/wait-process: New file.
73515         * MODULES.html.sh (func_all_modules): Add wait-process.
73516
73517 2003-10-20  Bruno Haible  <bruno@clisp.org>
73518
73519         * m4/wait-process.m4: New file.
73520
73521 2003-10-20  Bruno Haible  <bruno@clisp.org>
73522
73523         * lib/wait-process.h: New file, from GNU gettext.
73524         * lib/wait-process.c: New file, from GNU gettext.
73525
73526 2003-10-19  Jim Meyering  <jim@meyering.net>
73527
73528         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
73529         HPUX 10.20.
73530
73531 2003-10-18  Karl Berry  <karl@gnu.org>
73532
73533         * config/config.guess: update from config.
73534
73535 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73536
73537         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
73538         (getgroups): First arg is int, not size_t.
73539         Don't let 'free' mangle errno.
73540
73541 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73542
73543         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
73544
73545 2003-10-16  Karl Berry  <karl@gnu.org>
73546
73547         * config/config.{guess,sub}: update from config.
73548
73549 2003-10-16  Jim Meyering  <jim@meyering.net>
73550
73551         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
73552         memcpy.
73553
73554 2003-10-15  Paul Eggert  <eggert@twinsun.com>
73555
73556         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
73557         (SIZE_MAX): Remove.
73558         (new_exclude, add_exclude_file): Initial size no longer needs to
73559         be a power of 2.
73560         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
73561         our own address arithmetic overflow checking.
73562
73563         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
73564         (fnmatch): Do not alloca more than 2000 wide characters;
73565         instead, use malloc for large buffers.
73566         Check for address arithmetic overflow, and return -1
73567         with errno set to ENOMEM in that case.
73568         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
73569         (NEW_PATTERN): Do not alloca more than 8000 bytes;
73570         instead, return -1.  Check for address arithmetic overflow.
73571
73572 2003-10-14  Paul Eggert  <eggert@twinsun.com>
73573
73574         Handle invalid suffixes and overflow independently, so that
73575         callers can treat them independently as needed.  Fix some bugs in
73576         suffix handling, e.g., "100k@" was not diagnosed as an invalid
73577         suffix for a human-readable blocksize.  The major caller-visible
73578         change is the addition of a new
73579         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
73580         that both overflow and suffix chars were found.
73581
73582         * lib/human.c (humblock): Don't check separately for invalid suffix
73583         char; that is xstrtoumax's job (now that its bug is fixed).
73584         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
73585         INTMAX_MAX]: New macros.
73586         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
73587         TYPE_MAXIMUM): New macros.
73588         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
73589         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
73590         if overflow occurs, as it's what __strtol does and it's more useful
73591         in practice.
73592         (__xstrtol): If __strtol reports some error other than ERANGE,
73593         reflect it to the caller as LONGINT_INVALID.  If it reports
73594         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
73595         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
73596         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
73597         value.
73598         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
73599         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
73600         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
73601         [defined UINTMAX_MAX]: New macros.
73602
73603 2003-10-14  Bruno Haible  <bruno@clisp.org>
73604
73605         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
73606
73607 2003-10-14  Bruno Haible  <bruno@clisp.org>
73608
73609         * m4/sig_atomic_t: New file, from GNU gettext.
73610         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
73611
73612 2003-10-14  Bruno Haible  <bruno@clisp.org>
73613
73614         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
73615         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
73616         Also use volatile where needed.
73617
73618 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73619
73620         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
73621         Change maintainer from Bruno Haible to 'all'.
73622
73623 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73624
73625         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
73626
73627 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73628
73629         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
73630         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
73631         and define in terms of the other primitives.
73632         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
73633         (SIZE_MAX): Define if not already defined.
73634         (array_size_overflow): New function.
73635         (xalloc_die): Abort instead of exiting if 'error' returns.
73636         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
73637         (xmalloc, xrealloc): Use them.
73638         (xcalloc): Check for address arithmetic overflow.
73639         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
73640         a bit faster than strcpy.
73641
73642 2003-10-10  Simon Josefsson  <jas@extundo.com>
73643
73644         * modules/argp (Depends-on): Add restrict and strcase.
73645
73646 2003-10-10  Simon Josefsson  <jas@extundo.com>
73647
73648         * m4/argp.m4: Add AC_C_INLINE.
73649
73650 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73651
73652         Merge getpass from libc, plus a few fixes.
73653
73654         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
73655         Include <stdbool.h>.
73656         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
73657         __fsetlocking to empty.
73658         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
73659         do include <bits/libc-lock.h>.
73660         Do not include <fcntl.h>; not needed.
73661         [_LIBC]: Include <wchar.h>.
73662         (NOTCANCEL_MODE): New macro.
73663         (flockfile, funlockfile) [_LIBC]: New macros.
73664         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
73665         [!_LIBC]: New macros.
73666         (call_fclose): New function.
73667         (getpass): Use it.  Save tty stream separately; this simplifies the
73668         code and makes it more reliable if stdin happens to equal stdout.
73669         Invoke __fsetlocking on tty.
73670         Handle thread cancellation if needed.
73671         Namespace cleanup (use __tcgetattr, __getline).
73672         Use bool for Booleans.
73673         [USE_IN_LIBIO]: Handle wide streams.
73674         [!_LIBC]: Unconditionally do the fseek, since we don't know what
73675         stream might go where.
73676
73677         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
73678         doesn't have to include <stdio.h> before us.
73679         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
73680         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
73681         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
73682         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
73683         if not declared, so that we can use getpass.c code from libc without
73684         rewriting it.
73685         (flockfile, ftrylockfile, funlockfile): New macros.
73686
73687 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73688
73689         * modules/getpass: Depend on stdbool.
73690
73691 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73692
73693         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
73694
73695 2003-10-07  Karl Berry  <karl@gnu.org>
73696
73697         * config/config.{guess,sub}: update from config.
73698
73699 2003-10-06  Jim Meyering  <jim@meyering.net>
73700             Bruno Haible  <bruno@clisp.org>
73701
73702         This lets translators provide better translations for the
73703         "Written by ..." part of --version output.
73704         * lib/version-etc.h: Include stdarg.h.
73705         (version_etc_copyright): Declare as readonly.
73706         (version_etc): Make this function variadic with a NULL-terminated list
73707         of author name strings.
73708         (version_etc_va): New declaration.
73709         * lib/version-etc.c: Include stdarg.h, stdlib.h.
73710         (version_etc_copyright): Declare as readonly.
73711         (version_etc_va): New function. Provide a different translatable string
73712         for each possible number of authors < 10. Abbreviate when there are 10
73713         authors or more.
73714         (version_etc): Make this function variadic. Call version_etc_va.
73715         Suggestion from Gary V. Vaughan.
73716
73717         * lib/long-options.h (parse_long_options): Change prototype: the
73718         authors string is moved to the end and becomes variadic.
73719         * lib/long-options.c: Include stdarg.h.
73720         (parse_long_options): Make this function variadic, too.
73721         Call version_etc_va, not version_etc.
73722
73723 2003-10-06  Bruno Haible  <bruno@clisp.org>
73724
73725         * modules/version-etc-2: Remove file.
73726         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
73727
73728 2003-10-06  Bruno Haible  <bruno@clisp.org>
73729
73730         * modules/fatal-signal: New file.
73731         * MODULES.html.sh (func_all_modules): Add fatal-signal.
73732
73733 2003-10-06  Bruno Haible  <bruno@clisp.org>
73734
73735         * m4/fatal-signal.m4: New file.
73736         * m4/signalblocking.m4: New file, from GNU gettext.
73737
73738 2003-10-06  Bruno Haible  <bruno@clisp.org>
73739
73740         * lib/version-etc-2.h: Remove file.
73741         * lib/version-etc-2.c: Remove file.
73742
73743 2003-10-06  Bruno Haible  <bruno@clisp.org>
73744
73745         * lib/fatal-signal.h: New file, from GNU gettext.
73746         * lib/fatal-signal.c: New file, from GNU gettext.
73747
73748 2003-10-05  Paul Eggert  <eggert@twinsun.com>
73749
73750         * README: Rework advice for preventing empty .o files.
73751         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
73752         not <sys/types.h>.
73753
73754 2003-10-04  Karl Berry  <karl@gnu.org>
73755
73756         * lib/argp*: update from libc.
73757
73758 2003-10-04  Karl Berry  <karl@gnu.org>
73759
73760         * config/config.{guess,sub}: update from config.
73761
73762 2003-10-02  Bruno Haible  <bruno@clisp.org>
73763
73764         * modules/lchown (Include): Add lchown.h.
73765         * modules/time_r (Include): Use "..." syntax.
73766         * modules/xgetdomainname (Include): Add xgetdomainname.h.
73767
73768 2003-10-01  Simon Josefsson  <jas@extundo.com>
73769
73770         * MODULES.html.sh (func_all_modules): Move gethostname from section
73771         'based on' to section 'lacking' POSIX:2001.
73772
73773 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
73774
73775         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
73776         to output mode on the same stream.
73777
73778 2003-09-29  Paul Eggert  <eggert@twinsun.com>
73779
73780         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
73781         Fix arg typo in previous patch.
73782
73783 2003-09-28  Jim Meyering  <jim@meyering.net>
73784
73785         * lib/error.c: Correct cpp indentation.
73786
73787 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73788
73789         * modules/free: New file.
73790
73791 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73792
73793         * m4/free.m4: New file.
73794
73795 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73796
73797         * lib/minmax.h (MIN, MAX)
73798         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
73799         Omit the special code that used __typeof__, since we worry that
73800         it could be more trouble than it's worth.  See:
73801         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
73802         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
73803
73804         * lib/free.c: New file.
73805
73806 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
73807
73808         Trivial fixes to Makefile.am parts of module listings.
73809         * modules/strstr: Append strstr.h to lib_SOURCES.
73810         * modules/strcase: Likewise, for strcase.h.
73811
73812 2003-09-27  Karl Berry  <karl@gnu.org>
73813
73814         * config/mkinstalldirs: update from automake.
73815
73816 2003-09-26  Paul Eggert  <eggert@twinsun.com>
73817
73818         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
73819         (error_tail): Do not loop, reallocating temporary buffer, since
73820         the output cannot contain more wide characters than the input
73821         contains bytes, the size must be big enough already.  This avoids
73822         one potential size overflow calculation.  Check for size overflow
73823         when calculating temporary buffer size.  Free temporary buffer
73824         when done, if it was allocated with malloc; this plugs a memory
73825         leak.  Remove casts from void * to pointers, that are no longer
73826         needed now that we're assuming C89 or better.
73827
73828         Merge error changes from glibc.
73829
73830         * lib/error.c, error.h: Update copyright notice header to match glibc.
73831         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
73832         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
73833         Disable cancellation while printing error.
73834         * lib/error.h: Prepend __ to parameter names.
73835
73836 2003-09-26  Jim Meyering  <jim@meyering.net>
73837
73838         * lib/error.c (error_tail): Move some declarations
73839         into inner scope where the local variables are used.
73840
73841 2003-09-26  Bruno Haible  <bruno@clisp.org>
73842
73843         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
73844         stpncpy().
73845         Don't define stpncpy through config.h; it's now done through stpncpy.h.
73846
73847 2003-09-26  Bruno Haible  <bruno@clisp.org>
73848
73849         * lib/stpncpy.h (gnu_stpncpy): New declaration.
73850         (stpncpy): Define as alias for gnu_stpncpy.
73851         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
73852
73853 2003-09-25  Simon Josefsson  <jas@extundo.com>
73854
73855         * lib/xgetdomainname.h: New file.
73856         * lib/xgetdomainname.c: New file.
73857
73858 2003-09-25  Simon Josefsson  <jas@extundo.com>
73859             Bruno Haible  <bruno@clisp.org>
73860
73861         * modules/getdomainname: New file.
73862         * modules/xgetdomainname: New file.
73863         * MODULES.html.sh (func_all_modules): Add getdomainname,
73864         xgetdomainname.
73865
73866 2003-09-25  Simon Josefsson  <jas@extundo.com>
73867             Bruno Haible  <bruno@clisp.org>
73868
73869         * m4/getdomainname.m4: New file.
73870
73871 2003-09-25  Simon Josefsson  <jas@extundo.com>
73872             Bruno Haible  <bruno@clisp.org>
73873
73874         * lib/getdomainname.h: New file.
73875         * lib/getdomainname.c: New file.
73876
73877 2003-09-25  Karl Berry  <karl@gnu.org>
73878
73879         * lib/argp-fmtstream.c, argp-help.c: update from libc.
73880
73881 2003-09-25  Karl Berry  <karl@gnu.org>
73882
73883         * config/install-sh: update from automake.
73884
73885 2003-09-25  Bruno Haible  <bruno@clisp.org>
73886
73887         * modules/version-etc-2: New file, from modules/version-etc with
73888         modifications.
73889         * MODULES.html.sh (func_all_modules): Add version-etc-2.
73890
73891 2003-09-25  Bruno Haible  <bruno@clisp.org>
73892
73893         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
73894         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
73895
73896 2003-09-24  Simon Josefsson  <jas@extundo.com>
73897
73898         * modules/xgethostname: Add xgethostname.h.
73899
73900 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73901
73902         * lib/linebuffer.c (freebuffer): Don't free the argument, just
73903         the buffer associated with the argument.  Bug reported by
73904         Simon Josefsson.
73905
73906 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73907
73908         * README: Document assumptions that 'int' is at least 32 bits
73909         wide, that integer arithmetic is 2's complement without overflow,
73910         that there are no holes in integer values, that adding sizes of
73911         two nonoverlapping objects can't overflow, and that all-bits-zero
73912         yields scalar zero.  Fix spelling and capitalization typos.
73913
73914 2003-09-19  Karl Berry  <karl@gnu.org>
73915
73916         * lib/argp.h: update from libc.
73917
73918 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73919
73920         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
73921         to avoid spurious warnings like "AC_RUN_IFELSE was called before
73922         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
73923
73924 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73925
73926         * gnulib-tool: Use "test -h", not "test -L", for portability
73927         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
73928         (tags_regexp): Remove, since \| doesn't conform to POSIX.
73929         (sed_extract_prog): Issue s commands one-by-one, rather than
73930         using \| in one s command.
73931
73932 2003-09-16  Paul Eggert  <eggert@twinsun.com>
73933
73934         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
73935         input error, instead of returning NULL the next time we are called
73936         (and therefore losing track of errno).
73937
73938 2003-09-16  Bruno Haible  <bruno@clisp.org>
73939
73940         * gnulib-tool (func_create_testdir): Warn about duplicated
73941         dependencies.
73942
73943 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73944
73945         * modules/argmatch, modules/fatal, modules/obstack,
73946         modules/xalloc, modules/xgethostname: Sort dependencies by
73947         importance, not alphabetically.
73948
73949 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73950
73951         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
73952         fails, so that the caller gets the proper errno.
73953
73954         * lib/readutmp.c (read_utmp): Likewise.
73955         Check for fstat error.  Close stream and free storage
73956         when failing.
73957
73958 2003-09-14  Karl Berry  <karl@gnu.org>
73959
73960         * config/srclist.txt (strdup.c): disable for c89 changes.
73961
73962 2003-09-14  Jim Meyering  <jim@meyering.net>
73963
73964         * lib/getloadavg.c: Correct cpp indentation.
73965         * lib/strdup.c: Likewise.
73966         * lib/vasnprintf.c: Likewise.
73967
73968 2003-09-14  Bruno Haible  <bruno@clisp.org>
73969
73970         * modules/fwriteerror: New file.
73971         * MODULES.html.sh (func_all_modules): Add fwriteerror.
73972
73973 2003-09-14  Bruno Haible  <bruno@clisp.org>
73974
73975         * lib/fwriteerror.h: New file.
73976         * lib/fwriteerror.c: New file.
73977
73978 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73979
73980         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
73981         modules/xgethostname, modules/xalloc: Depend on exit.
73982
73983 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73984
73985         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
73986
73987         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
73988         and AC_MINIX, too, so that their extensions are available.
73989
73990         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
73991         This macro has been superseded by gl_BACKUPFILE.
73992
73993         More patches to assume C89 or better.
73994
73995         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
73996
73997         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
73998         unconditionally.
73999         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
74000         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
74001         Include <string.h>, <stdlib.h> unconditionally.
74002         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
74003         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
74004         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
74005         headers or for string.h.
74006         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
74007         or strtoul.
74008
74009         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
74010         headers.
74011         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
74012         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74013         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
74014         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
74015         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74016         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
74017         memcpy, memset.
74018         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
74019         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
74020         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
74021         strtol.
74022         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
74023         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
74024         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
74025         strtoul.
74026
74027 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74028
74029         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
74030         * lib/obstack.c [!defined _LIBC]: Likewise.
74031         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
74032         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
74033         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
74034
74035         More changes to assume C89 or better.
74036
74037         * lib/error.c (error_tail): Assume vprintf.
74038
74039         * lib/argmatch.c (getenv): Remove decl.
74040         * lib/progreloc.c (get_full_program_name): Define via prototype.
74041         * lib/setenv.c (clearenv): Likewise.
74042         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
74043         needed.
74044         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
74045         (malloc, memcpy): Remove decls.
74046         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
74047         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
74048         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74049         (memcpy): Remove macro.
74050         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
74051         (__P): Remove.  All uses removed.
74052         (PTR): Remove.  All uses changed to void *.
74053         (CHAR_BIT, NULL): Remove.
74054         (spaces, zeros, memset_space, memset_zero)
74055         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
74056         Remove.
74057         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
74058         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
74059         Define with prototype.
74060         Remove now-unnecessary prototype decl.
74061         (extra_args_spec): Assume ANSI C.  All uses changed.
74062         (extra_args_spec_iso): Remove.
74063         (my_strftime, emacs_strftimeu): Define via prototype.
74064         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
74065         unconditionally.
74066         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
74067         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
74068         (strtoul, strtol): Remove decls.
74069         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
74070         LONG_MAX): Remove.
74071         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74072         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
74073         (LOCALE_PARAM_PROTO): New macro.
74074         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
74075         (INTERNAL (strtol), strtol): Define with a prototype.
74076         (PARAMS): Remove.  All uses removed.
74077         * lib/tempname.c: Include <string.h> unconditionally.
74078         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
74079         * lib/xgethostname.c (main): Define with a prototype.
74080         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
74081         Include <stdlib.h> unconditionally.
74082         (calloc, malloc, realloc, free): Remove decls.
74083         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
74084         Include <stdlib.h> unconditionally.  Sort include file names.
74085         (strtod): Remove.
74086         (xstrtod): Define with a prototype.
74087         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
74088         (strtol, strtoul): Remove decls.
74089
74090 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74091
74092         More patches to assume C89 or better.
74093         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
74094         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
74095         string.h, memchr, STDC_HEADERS.
74096
74097 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74098
74099         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
74100         Include <stdlib.h>, <string.h> unconditionally.
74101         Remove now-unnecessary cast to char *.
74102         * lib/strnlen.c: Include <string.h> unconditionally.
74103         * lib/yesno.c (yesno): Define with a prototype.
74104
74105 2003-09-11  Bruno Haible  <bruno@clisp.org>
74106
74107         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
74108
74109 2003-09-10  Jim Meyering  <jim@meyering.net>
74110
74111         * lib/error.c: Correct indentation of cpp directives.
74112
74113 2003-09-10  Bruno Haible  <bruno@clisp.org>
74114
74115         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
74116         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
74117         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
74118         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
74119         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
74120         <stdlib.h> and <string.h> checks.
74121         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
74122         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
74123
74124 2003-09-10  Bruno Haible  <bruno@clisp.org>
74125
74126         * lib/strcspn.c: Include <string.h> unconditionally.
74127         * lib/strpbrk.c: Include <string.h> unconditionally.
74128         * lib/strstr.c: Include <string.h> unconditionally.
74129         * lib/unicodeio.c: Include <string.h> unconditionally.
74130         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
74131         * lib/unsetenv.c: Likewise.
74132         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
74133         * lib/yesno.c: Include <stdlib.h> unconditionally.
74134         (rpmatch): Add prototype.
74135
74136 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74137
74138         More patches to assume C89 or better.
74139         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
74140         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
74141         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
74142         or for string.h.
74143         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
74144         stdlib.h.
74145         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
74146         C headers.
74147         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
74148         string.h.
74149         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
74150         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
74151         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
74152         or for string.h.
74153         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
74154         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
74155         C headers.
74156         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
74157         memcpy.
74158         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
74159         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
74160         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
74161         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
74162         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
74163         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
74164         string.h, free.
74165         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
74166         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
74167         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
74168         C headers, or for string.h.
74169         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
74170         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
74171         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
74172         headers, memory.h, stdlib.h, string.h, strings.h.
74173         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
74174         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
74175         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
74176         strchr.
74177         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
74178         headers, memory.h, string.h.
74179         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
74180         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
74181         free.
74182         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
74183         headers.
74184         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
74185         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
74186         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
74187         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
74188         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
74189
74190 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74191
74192         More K&R removal.
74193
74194         * lib/acosl.c (main): Use a prototype.
74195         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
74196         tanl.c: Likewise.
74197
74198         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
74199
74200         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
74201         (getopt, etopt_long, getopt_long_only, _getopt_internal)
74202         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
74203         with a prototype.
74204         * lib/getopt.c (const): Remove macro.
74205         Include <string.h> unconditionally.
74206         (my_index): Remove; all uses changed to strchr.
74207         (strlen): Remove decl.
74208         (exchange): Remove forward decl; no longer needed.
74209         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
74210         Define with prototype.
74211         * lib/getopt1.c (const): Remove macro.
74212         (getopt_long, getopt_long_only, main): Define with prototype.
74213
74214         * lib/getugroups.c: Include <string.h> unconditionally.
74215
74216         * lib/getusershell.c: Include <stdlib.h> unconditionally.
74217         (getusershell, setusershell, endusershell, readname, main):
74218         Define with prototypes.
74219
74220         * lib/group-member.c: Include group-member.h first.
74221         Include <stdlib.h> unconditionally.
74222
74223         * lib/hard-locale.c: Include hard-locale.h first.
74224         Include <stdlib.h>, <string.h> unconditionally.
74225
74226         * lib/hash.c (free, malloc): Remove decls.
74227         Include <stdlib.h> unconditionally.
74228
74229         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
74230         (getenv): Do not declare.
74231
74232         * lib/idcache.c: Include <string.h> unconditionally.
74233
74234         * lib/long-options.c: Include long-options.h first, to test interface.
74235         Include <stdlib.h> unconditionally.
74236
74237         * lib/makepath.c: Include makepath.h first, to test interface.
74238         Include <stdlib.h> and <string.h> unconditionally.
74239
74240         * lib/linebuffer.c: Include <stdlib.h>.
74241         (free): Remove decl.
74242
74243         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
74244         stddef.h. rpl_malloc returns void *, not char *.
74245         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
74246         prototype.
74247
74248         * lib/md5.h: Include <limits.h> unconditionally.
74249         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
74250         (__P): Remove; all uses removed.
74251         * lib/md5.c: Include "md5.h" first.
74252         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
74253         md5_buffer, md5_process_bytes, md5_process_block):
74254         Define with prototypes.
74255         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
74256         * lib/sha.c: Include "sha.h" first.
74257         Include <stdlib.h>, <string.h> unconditionally.
74258
74259         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
74260         * lib/memcmp.c (__ptr_t): Likewise.
74261         * lib/memrchr.c (__ptr_t): Likewise.
74262         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
74263         Include <string.h> unconditionally.
74264         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
74265         * lib/memchr.c: Include <stdlib.h> unconditionally.
74266         * lib/memchr.c (LONG_MAX): Remove.
74267         * lib/memrchr.c (LONG_MAX): Likewise.
74268         * lib/memchr.c (__memchr): Define via a prototype.
74269         * lib/memrchr.c (__memrchr): Likewise.
74270         * lib/memcmp.c (__P): Remove, and remove all uses.
74271         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
74272         Remove forward decls; no longer needed.
74273         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
74274         Use types required by C89 in prototype.
74275
74276         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
74277         * lib/savedir.c: Likewise.
74278         * lib/mkdir.c (free): Remove decl.
74279         * lib/rmdir.c (rmdir): Define with a prototype.
74280         * lib/savedir.c: Include savedir.h first, to test interface.
74281
74282         * lib/mktime.c (STDC_HEADERS): Remove.
74283         Include <stdlib.h>, <string.h> unconditionally.
74284
74285         * lib/modechange.c: Include <stdlib.h> unconditionally.
74286         (malloc): Remove decl.
74287
74288         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
74289         (free): Remove decl.
74290
74291         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
74292         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
74293         (This type really should be intptr_t, but that's a C99ism.)
74294         (_obstack_memcpy): Remove: all uses changed to memcpy.
74295         Include <string.h> unconditionally.
74296         (struct obstack): Assume __STDC__ for types of members
74297         chunkfun, freefun, extra_arg.
74298         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
74299         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
74300         obstack_begin, obstack_specify_allocation,
74301         obstack_specify_allocation_with_arg, obstack_chunkfun,
74302         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
74303         Remove unprototyped decls and the macros that use them.
74304         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
74305         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
74306         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
74307         (defined __STDC__ && __STDC__)]:
74308         Remove nonprototyped code.
74309         Include <stdlib.h> unconditionally.
74310         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
74311         _obstack_allocated_p, _obstack_free, obstack_free,
74312         _obstack_memory_used, print_and_abort):
74313         Define using prototypes.
74314         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
74315         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
74316         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
74317         obstack_next_free, obstack_object_size, obstack_room) [0]:
74318         Remove unused, unprototyped code.
74319
74320         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
74321
74322         * lib/physmem.c (physmem_total, physmem_available, main): Define
74323         with prototypes.
74324
74325         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
74326         (main): Define with a prototype.
74327
74328         * lib/posixver.c (getenv): Remove decl.
74329
74330         * lib/putenv.c (malloc): Returns void *, not char *.
74331         Include <string.h> unconditionally.
74332         (strchr, memcpy, NULL): Do not define.
74333
74334         * lib/readtokens.c: Include readtokens.h first, to test interface.
74335         Include <stdlib.h>, <string.h> unconditionally.
74336         (init_tokenbuffer): Define with a prototype.
74337
74338         * lib/regex.c (PARAMS): Remove.  All uses removed.
74339         All uses of _RE_ARGS removed, too.
74340         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74341         unconditionally.
74342         (bzero): Assume memset exists.
74343         (memcmp, memcpy, NULL): Remove.
74344         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
74345         char, or assignments to local vars of type signed char.
74346         (init_syntax_once, PREFIX(extract_number_and_incr),
74347         PREFIX(print_partial_compiled_pattern),
74348         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
74349         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
74350         PREFIX(regex_grow_registers), PREFIX(regex_compile),
74351         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
74352         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
74353         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
74354         wcs_compile_range, byte_compile_range, truncate_wchar,
74355         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
74356         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
74357         count_mbs_length, wcs_re_match_2_internal,
74358         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
74359         PREFIX(alt_match_null_string_p),
74360         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
74361         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
74362         regfree, PREFIX(extract_number)): Define with prototype.  Remove
74363         now-unnecessary declaration, if any.
74364         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
74365         regcomp, regexec):
74366         Remove now-unnecessary casts among pointer types.
74367         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
74368
74369         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
74370         (free): Remove decl.
74371
74372         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
74373
74374         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
74375         (free): Remove decl.
74376
74377         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
74378         * lib/xgetcwd.c: Likewise.
74379
74380         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
74381         (free): Remove decl.
74382
74383         * lib/strchrnul.c (strchrnul): Define with a prototype.
74384         Fix bug: c_in was not converted to char before searching.
74385
74386         The following changes are not K&R related:
74387
74388         * lib/group-member.h: Include <sys/types.h>, so that this file is
74389         self-contained.
74390         * lib/makepath.h: Likewise.
74391
74392         * lib/getusershell.c (readname, default_index, line_size, readname):
74393         Use size_t, not int, for sizes.
74394         (readname): If the size overflows, report an error instead of
74395         looping forever.
74396
74397 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74398
74399         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
74400         libc.
74401
74402 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74403
74404         * README: New section: portability guidelines.
74405
74406 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74407
74408         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
74409         C89 spec.
74410
74411 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74412
74413         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
74414
74415 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74416
74417         Assume C89 or better; remove K&R cruft.
74418         A few of these changes were first proposed by Derek Robert Price
74419         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
74420
74421         * lib/addext.c: Include <string.h> unconditionally.
74422         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
74423         Don't declare getenv or malloc.
74424
74425         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
74426         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
74427         (NULL): Remove.
74428         (find_stack_direction, alloca): Use prototypes.
74429
74430         * lib/atexit.c (atexit): Define using a prototype.
74431
74432         * lib/basename.c, dirname.c, stripslash.c:
74433         Include <string.h> unconditionally.
74434
74435         * lib/bcopy.c: Include <stddef.h>.
74436         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
74437
74438         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
74439
74440         * lib/error.h (error, error_at_line, error_print_progname)
74441         [! (defined (__STDC__) && __STDC__)]: Remove decls.
74442         * lib/error.c: Include error.h first, to check interface.
74443         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74444         (VA_START): Remove; all uses changeed to va_start.
74445         (exit, strerror): Remove decls.
74446         (error_print_progname): Prototype uncondionally.
74447         Don't include <errno.h>; no longer needed.
74448         (private_strerror): Remove.
74449         (error_tail): Always define.
74450         (error, error_at_line): Assume C89 or better; always use prototypes.
74451         * lib/fatal.c: Include "fatal.h" first, to test interface.
74452         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74453         (VA_START): Remove; all uses changed to va_start.
74454         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
74455         this case.
74456         (exit): Remove decl.
74457         (fatal): Prototype unconditionally.  Assume va_start works.
74458         Abort at end, to pacify gcc.
74459
74460         * lib/euidaccess.c (main): Define with a prototype.
74461
74462         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
74463
74464         * lib/exitfail.c: Include <stdlib.h> unconditionally.
74465
74466         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
74467         prototypes.
74468         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
74469         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
74470         (getenv): Remove decl.
74471         (fnmatch): Define using a prototype.
74472         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
74473         (FCT): Define using a prototype.
74474
74475         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
74476
74477         * lib/gethostname.c: Include <stddef.h>.
74478         (gethostname): Define with prototype.  Length is size_t, not int.
74479
74480 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74481
74482         Assume C89 or better; remove K&R cruft.
74483         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
74484         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
74485         string.h, getenv, malloc.
74486         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
74487         headers.
74488         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
74489         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
74490         do not check for strerror.
74491         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
74492         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
74493         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
74494         do not check for doprnt or vprintf.
74495         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
74496         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
74497
74498 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74499
74500         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
74501         getversion.c should have been removed then, but was accidentally
74502         preserved.
74503
74504         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
74505         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
74506
74507 2003-09-08  Karl Berry  <karl@gnu.org>
74508
74509         * config/config.sub, config.guess, srclistvars.sh: update from savannah
74510                 config, forget about prep.
74511
74512         * config/depcomp, missing: update from automake.
74513
74514 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74515
74516         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
74517         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74518
74519 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74520
74521         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
74522         copy_tm_result.  Bug reported by Simon Josefsson in
74523         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74524
74525 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74526
74527         * m4/time_r.m4: New file.
74528         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
74529         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
74530         is. Check for timegm declaration.
74531         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
74532         Do not check for gmtime_r.
74533         Replace mktime if __mktime_internal does not exist and if mktime
74534         hasn't been replaced already.
74535
74536 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74537
74538         * lib/time_r.c, lib/time_r.h: New files.
74539
74540         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
74541         __localtime_r.
74542         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
74543         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
74544
74545         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
74546         __gmtime_r.
74547         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
74548         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
74549         Include <time_r.h>.
74550
74551         * lib/timegm.c: Switch to glibc implementation, with the following
74552         changes:
74553         [defined HAVE_CONFIG_H]: Include <config.h>.
74554         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
74555         (__mktime_internal) [!defined _LIBC]: New decl.
74556         (__gmtime_r) [!defined _LIBC]: New macro and function.
74557         (timegm): Use a prototype, since gnulib assumes C89.
74558         Do not bother declaring tmp to be const, as it's not really usefu.
74559         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
74560         (timegm): Declare only if HAVE_DECL_TIMEGM.
74561
74562 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74563
74564         * MODULES.html.sh (func_all_modules): Add time_r.
74565         * modules/time_r: New file.
74566         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
74567         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
74568
74569 2003-09-03  Paul Eggert  <eggert@twinsun.com>
74570
74571         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
74572         Bug reported by Lute Kamstra in
74573         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
74574
74575         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
74576         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
74577         course with correspondingly smaller numbers for tomorrow and
74578         yesterday.  From Tadayoshi Funaba.  Originally installed into
74579         sh-utils on 1999-08-07, but the patch got lost (I guess during the
74580         coreutils merge?).
74581
74582 2003-08-31  Simon Josefsson  <jas@extundo.com>
74583
74584         * modules/timegm: New file.
74585         * MODULES.html.sh (func_all_modules): Add timegm.
74586
74587 2003-08-31  Simon Josefsson  <jas@extundo.com>
74588
74589         * m4/timegm.m4: New file.
74590
74591 2003-08-31  Simon Josefsson  <jas@extundo.com>
74592
74593         * lib/timegm.h: New file.
74594         * lib/timegm.c: New file.  Based on
74595         wget-1.8.2/src/http.c:mktime_from_utc.
74596
74597 2003-08-31  Karl Berry  <karl@gnu.org>
74598
74599         * lib/argp.h: update from libc.
74600
74601 2003-08-28  Bruno Haible  <bruno@clisp.org>
74602
74603         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
74604         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
74605         followed by '#define fnmatch fnmatch_posix' gives an error.
74606
74607 2003-08-28  Bruno Haible  <bruno@clisp.org>
74608
74609         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
74610         warning on QNX, which defines O_BINARY to 000000.
74611
74612 2003-08-27  Jim Meyering  <jim@meyering.net>
74613
74614         * m4/mkstemp.m4: Require that the system mkstemp be able to create
74615         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
74616         would fail after 32.  Reported by Danny Levinson.  Details here:
74617         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
74618
74619 2003-08-24  Bruno Haible  <bruno@clisp.org>
74620
74621         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
74622         MSVC7 <stdio.h> is included later.
74623
74624 2003-08-22  Simon Josefsson  <jas@extundo.com>
74625
74626         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
74627
74628 2003-08-20  Karl Berry  <karl@gnu.org>
74629
74630         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
74631
74632 2003-08-20  Bruno Haible  <bruno@clisp.org>
74633
74634         * modules/progname: New file.
74635         * MODULES.html.sh (func_all_modules): Add progname.
74636
74637 2003-08-20  Bruno Haible  <bruno@clisp.org>
74638
74639         * lib/progname.h: New file, from GNU gettext.
74640         * lib/progname.c: New file, from GNU gettext.
74641         * lib/progreloc.c: New file, from GNU gettext.
74642
74643 2003-08-19  Jim Meyering  <jim@meyering.net>
74644
74645         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
74646         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
74647
74648 2003-08-19  Bruno Haible  <bruno@clisp.org>
74649
74650         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
74651         more.
74652
74653 2003-08-19  Bruno Haible  <bruno@clisp.org>
74654
74655         * lib/xstrdup.c: Assume <string.h> exists.
74656
74657 2003-08-18  Paul Eggert  <eggert@twinsun.com>
74658
74659         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
74660         in makefile rules.
74661
74662 2003-08-18  Jim Meyering  <jim@meyering.net>
74663
74664         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
74665         * m4/lib-ld.m4: Likewise.
74666
74667 2003-08-18  Jim Meyering  <jim@meyering.net>
74668
74669         * lib/setenv.h: Indent nested cpp directive.
74670         * lib/vasnprintf.c: Remove trailing blanks.
74671
74672 2003-08-17  Simon Josefsson  <jas@extundo.com>
74673
74674         * modules/xstrndup: New file.
74675         * MODULES.html.sh (func_all_modules): Add xstrndup.
74676
74677 2003-08-17  Simon Josefsson  <jas@extundo.com>
74678
74679         * modules/argp: Fix autoconf macro name. Add more dependencies.
74680
74681 2003-08-17  Simon Josefsson  <jas@extundo.com>
74682
74683         * m4/xstrndup.m4: New file.
74684
74685 2003-08-17  Simon Josefsson  <jas@extundo.com>
74686
74687         * m4/argp.m4: New file.
74688
74689 2003-08-17  Simon Josefsson  <jas@extundo.com>
74690             Bruno Haible  <bruno@clisp.org>
74691
74692         * lib/xstrndup.h: New file.
74693         * lib/xstrndup.c: New file.
74694
74695 2003-08-17  Bruno Haible  <bruno@clisp.org>
74696
74697         * modules/strndup (Files, Include): Add lib/strndup.h.
74698
74699 2003-08-17  Bruno Haible  <bruno@clisp.org>
74700
74701         * modules/euidaccess (Files): Add lib/euidaccess.h.
74702
74703 2003-08-17  Bruno Haible  <bruno@clisp.org>
74704
74705         * lib/strndup.h: New file.
74706
74707 2003-08-17  Bruno Haible  <bruno@clisp.org>
74708
74709         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
74710         like AC_GNU_SOURCE.
74711         * modules/extensions (configure.ac): Comment out the invocation of
74712         gl_USE_SYSTEM_EXTENSIONS.
74713
74714 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74715
74716         Merges from coreutils, etc.
74717         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
74718         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
74719         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
74720         fixing a typo.
74721         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
74722         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
74723
74724 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74725
74726         Document merge from coreutils.
74727         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
74728         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
74729         * modules/utime: Add m4/utimes-null.m4.
74730
74731 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74732
74733         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
74734         space, undoing this 2003-08-12 change:
74735         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74736
74737 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74738
74739         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
74740         strtoul.c from libc, undoing this 2003-08-12 change:
74741         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74742
74743 2003-08-16  Jim Meyering  <jim@meyering.net>
74744
74745         Merges from coreutils.
74746         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
74747         prefix.  Adjust cache variables similarly.  Create 500 rather than
74748         just 300 files, to exercise bug on Darwin6.5, too.
74749         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
74750         $missing_dir.
74751         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
74752         AM_SYS_POSIX_TERMIOS.
74753         Reported by mkc@mathdogs.com.
74754         Also change use of $am_cv_sys_posix_termios
74755         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
74756         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
74757         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
74758         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
74759         in /proc/mounts until it finds one with matching device number.  This
74760         is unnecessary when the FILE argument *is* a mount point.  No stat call
74761         is necessary in that case.  So, disable the statvfs-testing code on
74762         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
74763         as RedHat bug# 84846.
74764         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74765         to 1MB, so as not to render systems with no stack size limit (e.g.,
74766         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74767         Include <unistd.h>.  On some systems,
74768         it is required for the definition of _SC_PAGESIZE.
74769
74770 2003-08-16  Jim Meyering  <jim@meyering.net>
74771
74772         Merge from coreutils.
74773         * lib/xstrtoimax.c: #else #if -> #elif.
74774         * lib/xstrtoumax.c: Likewise.
74775
74776 2003-08-16  Jim Meyering  <jim@meyering.net>
74777
74778         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
74779         * m4/utimes.m4: Removed.
74780         * m4/utimes-null.m4: Renamed from utimes.m4.
74781
74782         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74783         to 1MB, so as not to render systems with no stack size limit (e.g.,
74784         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74785         Include <unistd.h>.  On some systems,
74786         it is required for the definition of _SC_PAGESIZE.
74787
74788 2003-08-16  Jim Meyering  <jim@meyering.net>
74789         and Paul Eggert  <eggert@cs.ucla.edu>
74790
74791         Merges from coreutils, etc.
74792
74793         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
74794         using the latest version from cvs.  This avoids problems with #line
74795         directives using a vendor (Sun) compiler.
74796         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
74797         Don't set GETGROUPS_LIB here; now it's
74798         done via getgroups.m4's wrapper function.
74799         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
74800         rather than just in sh-util/configure.in, so that the
74801         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
74802         same.
74803         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
74804         AC_FUNC_GETLOADAVG where to find getloadavg.c.
74805         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
74806         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
74807         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
74808         Remove code that is now done by the newly-required macros.
74809         Append $(EXEEXT) to DF_PROG.
74810         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
74811         Do not invoke or require the following here,
74812         since prereq.m4 or some gnulib .m4 now does this for us:
74813         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
74814         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
74815         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
74816         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
74817         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
74818         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
74819         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
74820         AC_FUNC_OBSTACK.
74821         Do not replace the following functions, as this is now the job
74822         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
74823         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
74824         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
74825         atexit getpass, strdup, getpagesize.
74826         Replace 'raise'.
74827         Do not check for the following functions, as this is now the job
74828         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
74829         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
74830         setregid.
74831         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
74832         Check for sys/sysctl.h.
74833         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
74834         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
74835         of checking for ssize_t ourselves.
74836
74837         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
74838         Require every macro that gnulib/modules/* suggests for us.
74839         (jm_PREREQ_ADDEXT): New macro.
74840         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
74841         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
74842
74843         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
74844         (gl_PHYSMEM): Use it.
74845         Also check for `table' function.
74846         Check for new headers and functions.
74847         Add check for sys/sysmp.h.
74848         With suggestions from Kaveh Ghazi.
74849         Ignore headers that are present but cannot be compiled.  This
74850         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
74851         C 5.4.
74852
74853 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74854
74855         Document merge from coreutils.
74856         * modules/userspec: Depend on posixver.
74857         * modules/strftime: Depend on tzset.
74858
74859 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74860
74861         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
74862         rather than tab, after '#' in shell-script copyright notices.
74863         Suggested by Bruno Haible.
74864
74865 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74866
74867         * config/srclist-update: Use three spaces, rather than tab, after '#'
74868         in shell-script copyright notices.  Suggested by Bruno Haible.
74869         Remove unnecessary parenthesization in regular expression.
74870
74871 2003-08-15  Jim Meyering  <jim@meyering.net>
74872
74873         Merge from coreutils.
74874         * lib/xgethostname.c: Include <stdlib.h>.
74875         (xghostname): Don't exit for anything other than memory-related
74876         failure; just return NULL.
74877         * lib/userspec.c: Include "posixver.h".
74878         (parse_user_spec): Accept `.' as a separator only
74879         in pre-POSIX-200112 mode.
74880         * lib/strtoimax.c: Use #elif rather than #else #if.
74881         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
74882         Remove function, now that we can rely on a working tzset function.
74883         [!_LIBC]: Ensure that the required autoconf test has been run.
74884         [!defined _NL_CURRENT && HAVE_STRFTIME]:
74885         Use underlying_strftime for %r.
74886         * lib/sha.c: Merge in some clean-up and optimization changes from
74887         glibc.
74888         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
74889         Ensure that it is a multiple of 64.
74890         Rearrange loop exit tests so as to avoid performing an
74891         additional fread after encountering an error or EOF.
74892         * lib/realloc.c: Update copyright date.
74893
74894 2003-08-15  Jim Meyering  <jim@meyering.net>
74895         and Paul Eggert  <eggert@twinsun.com>
74896
74897         Merge from coreutils.
74898         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
74899         member but strut utmpx does not.  Needed for AIX 4.3.3.
74900         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
74901
74902 2003-08-15  Jim Meyering  <jim@meyering.net>
74903         and Paul Eggert  <eggert@cs.ucla.edu>
74904
74905         Merges from coreutils, etc.
74906         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
74907         Require gl_FUNC_TZSET_CLOBBER.
74908         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
74909         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
74910         members.
74911
74912 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74913
74914         Help the merge from coreutils.
74915         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
74916         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
74917         * m4/tzset.m4: Use it too.
74918
74919 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74920
74921         * modules/tzset: New file.
74922
74923 2003-08-14  Jim Meyering  <jim@meyering.net>
74924
74925         Merges from coreutils.
74926         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
74927         variable names, rather than @FNMATCH_H@.
74928         * modules/alloca: Likewise for $(ALLOCA_H).
74929
74930         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
74931         the three copies of the literal target, `fnmatch.h'.
74932         * modules/alloca (alloca.h): Likewise.
74933
74934 2003-08-14  Jim Meyering  <jim@meyering.net>
74935
74936         Merge from coreutils.
74937         * m4/tzset.m4: New file.
74938         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
74939         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
74940         otherwise, AIX 5.1 systems would end up using the latter.
74941         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
74942         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
74943         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
74944         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
74945
74946 2003-08-14  Jim Meyering  <jim@meyering.net>
74947
74948         Merge from coreutils.
74949         * lib/obstack.h: Whitespace changes.
74950         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
74951         and xcalloc return values.
74952         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
74953         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
74954         hang on OSF/1 5.1 for DIR on both local and remote file systems.
74955         Reported by (and fix confirmed by) Nelson H. F. Beebe.
74956         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74957         error from mntctl.
74958         Use mntctl's return value to drive the entry-processing loop, since
74959         we can't rely on the value of the vmt_length member in the last
74960         entry.  On some systems doing so could result in exhausting
74961         virtual memory.  Based in part on a patch from Mike Jetzer.
74962
74963 2003-08-14  Jim Meyering  <jim@meyering.net>
74964         and Paul Eggert  <eggert@twinsun.com>
74965
74966         Merges from coreutils, plus other fixes.
74967         * lib/physmem.c: Merge in portability changes from gcc/libiberty
74968         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
74969         for credits and details.  Thanks to Kaveh Ghazi for helping
74970         to keep these files in sync.
74971         (ARRAY_SIZE): Define it.
74972         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
74973         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
74974         (memcasecmp): Don't assume size_t fits in unsigned int.
74975         Remove casts and duplicate code.
74976         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
74977         (memcpy): Remove definition.
74978         Merge in some clean-up and optimization changes from glibc.
74979         [BLOCKSIZE]: Move definition to top of file.
74980         Ensure that it is a multiple of 64.
74981         Rearrange loop exit tests so as to avoid performing an
74982         additional fread after encountering an error or EOF.
74983         * lib/md5.h (md5_uintptr): Define.
74984         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
74985         return to the initial working directory.  Preserve errno
74986         for caller.
74987         * lib/idcache.c: Include "xalloc.h".
74988         (xmalloc, xrealloc): Remove decls.
74989         (getuser): Remove casts no longer required in C89.
74990         * lib/human.c: Include stdio.h, for sprintf.
74991         * lib/group-member.c: Include "xalloc.h".
74992         (xmalloc, xrealloc): Remove decls.
74993         (get_group_info): Remove casts no longer required in C89.
74994         * lib/getusershell.c (readname): Remove casts no longer required in
74995         C89.
74996         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
74997         * lib/getline.c: Whitespace fix, from coreutils.
74998
74999 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75000
75001         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
75002         Check for isascii.
75003
75004         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75005         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75006         Undo previous (whitespace-only) change.
75007
75008 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75009
75010         * lib/exclude.c: Include <ctype.h>
75011         (IN_CTYPE_DOMAIN): New macro.
75012         (is_space): New fn.
75013         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
75014         and empty lines.
75015
75016         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75017         Undo previous (whitespace-only) change.
75018
75019 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75020
75021         * config/srclist-update: Change update back to the old behavior,
75022         leaving whitespace alone.  Use one 'sed' command rather than a
75023         pipeline.
75024         (fixlicense): Now a variable, not a function.
75025         (remove_trailing_blanks): Remove.
75026         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
75027         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75028         Undo previous (whitespace-only) change.
75029
75030 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75031
75032         Merge from coreutils.
75033         * modules/euidaccess: Add lib_SOURCES, include for new
75034         file euidaccess.h
75035
75036 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75037
75038         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75039         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75040         Normalize leading white space and remove trailing white space.
75041
75042         Merge from coreutils
75043         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
75044
75045         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
75046         0.12.1.  These files are now being upgraded automatically by
75047         ../config/srclist-update.
75048
75049 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75050
75051         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75052         Normalize leading white space and remove trailing white space.
75053         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
75054         notice, as per ../config/srclist-update.
75055
75056         Merge from coreutils.
75057         * lib/euidaccess.h: New file.
75058         * lib/euidaccess.c: Include it.
75059         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
75060         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
75061         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
75062
75063 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75064
75065         * config/srclist-update: Add copyright notice.
75066         (remove_id_lines, remove_trailing_blanks): New constants.
75067         (fixfile): Use them to normalize spacing a bit in copied files.
75068         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75069         Normalize leading white space and remove trailing white space.
75070
75071         * config/texinfo.tex: Sync with texinfo.
75072
75073         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
75074         strtoul.c from libc, to merge coreutils whitespace changes.
75075
75076         * config/srclist.txt: Get the following m4 files from gettext:
75077         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
75078         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
75079         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
75080         wint_t.m4.
75081
75082 2003-08-12  Karl Berry  <karl@gnu.org>
75083
75084         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
75085         been made.
75086
75087 2003-08-11  Paul Eggert  <eggert@twinsun.com>
75088
75089         * modules/gnu-source, m4/gnu-source.m4:
75090         Remove; we're assuming Autoconf 2.54 or later now.
75091         Suggested by Bruno Haible.
75092         * MODULES.html.sh (func_all_modules): Remove gnu-source.
75093
75094 2003-08-11  Bruno Haible  <bruno@clisp.org>
75095
75096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
75097
75098 2003-08-11  Bruno Haible  <bruno@clisp.org>
75099
75100         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
75101         (vasnprintf): Use it instead of wcslen.
75102
75103 2003-08-11  Bruno Haible  <bruno@clisp.org>
75104
75105         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
75106         value to ensure that _Bool promotes to int. Use #define for _Bool when
75107         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
75108
75109 2003-08-10  Karl Berry  <karl@gnu.org>
75110
75111         * lib/regex.h: update from libc (whitespace fix).
75112
75113 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75114
75115         Merge some files from coreutils.  These changes were
75116         originally made by Jim Meyering.
75117         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
75118         many older Unixes require this.
75119         * lib/alloca.c (alloca): Remove cast to argument of free;
75120         no longer needed in C89.
75121         * lib/alloca_.h, regex.h: Fix white space to match
75122         what GNU indent does.
75123
75124 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75125
75126         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
75127         apparently Emacs's Unicode mode got confused before my 2003-08-05
75128         checkin.
75129
75130 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75131
75132         * m4/extensions.m4: New file.
75133         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
75134         Require gl_USE_SYSTEM_EXTENSIONS.
75135         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
75136         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
75137
75138 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75139
75140         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
75141         * modules/extensions, modules/gnu-source: New files.
75142         * modules/timespec, modules/unlocked-io: Depend on extensions.
75143
75144 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75145
75146         * modules/restrict: New file.
75147         * MODULES.html.sh (func_all_modules): Add restrict.
75148         * modules/regex: Depend on restrict.
75149
75150 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75151
75152         * m4/restrict.m4: New file.
75153         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
75154
75155 2003-08-07  Bruno Haible  <bruno@clisp.org>
75156
75157         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
75158         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
75159
75160 2003-08-07  Bruno Haible  <bruno@clisp.org>
75161
75162         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
75163         makes the module 'getndelim2' compatible with the module 'getline'.
75164
75165 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75166
75167         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
75168         byte with "\201" to avoid glitches when editing that source file
75169         with multi-gnome-terminal.
75170
75171 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75172
75173         * lib/bumpalloc.h: Remove.
75174
75175 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75176
75177         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
75178         * modules/bumpalloc: Remove.
75179
75180 2003-08-04  Paul Eggert  <eggert@twinsun.com>
75181
75182         * lib/getloadavg.c: Change copyright notice and spacing to conform to
75183         GNU coding style.
75184
75185         Merge from coreutils.
75186         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
75187         1. From glibc.
75188         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
75189         from Karl Berry, implemented by Jim Meyering.
75190         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
75191         from Dmitry V. Levin.
75192         Remove anachronistic cast of xrealloc.
75193         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
75194         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
75195         type. Otherwise, it wouldn't compile with at least /bin/cc on
75196         ymp-cray-unicos9.0.2.X.
75197         Combine two mostly-identical uses of alloca into one.
75198         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
75199
75200 2003-08-04  Dave Love  <d.love@dl.ac.uk>
75201
75202         [From Emacs.]
75203
75204         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
75205         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
75206         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
75207         obsolete NLIST_NAME_UNION.
75208         [__GNU__]: Undef BSD and FSCALE.
75209         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
75210
75211 2003-08-03  Paul Eggert  <eggert@twinsun.com>
75212
75213         * lib/stdbool_.h (_Bool): Make it signed char, instead of
75214         an enum type, so that it's guaranteed to promote to int.  See:
75215         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
75216
75217 2003-08-03  Karl Berry  <karl@gnu.org>
75218
75219         * config/depcomp: update from automake.
75220
75221 2003-07-31  Paul Eggert  <eggert@twinsun.com>
75222
75223         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
75224         (strerror): Don't assume that a printable int fits in 14 bytes.
75225
75226 2003-07-31  Bruno Haible  <bruno@clisp.org>
75227
75228         * modules/getpass-gnu: New file.
75229         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
75230
75231 2003-07-31  Bruno Haible  <bruno@clisp.org>
75232
75233         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
75234
75235 2003-07-24  Karl Berry  <karl@gnu.org>
75236
75237         * config/missing: update from automake.
75238
75239 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
75240             Bruno Haible  <bruno@clisp.org>
75241
75242         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
75243         * lib/getline.c (getline, getdelim): Likewise.
75244         Remove _GNU_SOURCE define; now it's defined in config.h through
75245         m4/getline.m4.
75246
75247 2003-07-23  Karl Berry  <karl@gnu.org>
75248
75249         * config/config.sub: update from prep.
75250
75251 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75252
75253         * modules/xalloc (Depends-on): Add exitfail.
75254         * modules/xmemcoll: Likewise.
75255
75256 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75257
75258         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
75259         over-parenthesization in macros.
75260
75261         Sync with coreutils.
75262
75263         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
75264         required by C99.
75265
75266         Use `exit_failure' for xalloc and xmemcoll instead of their own
75267         private exit-failure variables.
75268         * lib/xalloc.h (xalloc_exit_failure): Remove.
75269         * lib/xmalloc.c: Likewise.  Include exitfail.h.
75270         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
75271         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
75272         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
75273         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
75274
75275 2003-07-20  Jim Meyering  <jim@meyering.net>
75276
75277         * modules/closeout (Depends-on): Add exitfail.
75278         Suggestion from Bruno Haible.
75279
75280 2003-07-19  Karl Berry  <karl@gnu.org>
75281
75282         * config/config.sub: update from prep.
75283
75284 2003-07-18  Paul Eggert  <eggert@twinsun.com>
75285
75286         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
75287         Remove.
75288         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
75289         to test that it can stand by itself.  Include "exitfail.h".
75290         Clients should set exit_failure instead.
75291         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
75292
75293 2003-07-18  Bruno Haible  <bruno@clisp.org>
75294
75295         * modules/getndelim2: New file.
75296         * modules/getline: Share files with module getndelim2.
75297         * modules/getnline: Depend on getndelim2 instead of sharing files with
75298         it. Add getnline.c to lib_SOURCES.
75299         * MODULES.html.sh (func_all_modules): Add getndelim2.
75300
75301 2003-07-18  Bruno Haible  <bruno@clisp.org>
75302
75303         * m4/getndelim2.m4: New file.
75304         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
75305         invoke gl_PREREQ_GETNDELIM2.
75306         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
75307         gl_PREREQ_GETNDELIM2.
75308         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
75309         gl_GETNDELIM2.
75310
75311 2003-07-18  Bruno Haible  <bruno@clisp.org>
75312
75313         * lib/getndelim2.h: New file.
75314         * lib/getndelim2.c: Make into a module of its own. Include config.h,
75315         getndelim2.h.
75316         (getndelim2): Make non-static. Change return type to ssize_t.
75317         * lib/getline.h: Change argument names.
75318         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
75319         * lib/getnline.c: Include getndelim2.h.
75320
75321 2003-07-18  Andreas Schwab  <schwab@suse.de>
75322
75323         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
75324
75325 2003-07-17  Karl Berry  <karl@gnu.org>
75326
75327         * config/config.sub: update from prep.
75328
75329 2003-07-17  Bruno Haible  <bruno@clisp.org>
75330
75331         * modules/getnline: New file.
75332         * modules/getline: Add lib/getndelim2.c to source file list.
75333         * MODULES.html.sh (func_all_modules): Add getnline.
75334
75335 2003-07-17  Bruno Haible  <bruno@clisp.org>
75336
75337         * m4/getnline.m4: New file.
75338
75339 2003-07-17  Bruno Haible  <bruno@clisp.org>
75340
75341         * m4/Makefile.am.in: Remove file.
75342         * m4/Makefile.am: Remove file.
75343         * m4/Makefile.in: Remove file.
75344
75345 2003-07-17  Bruno Haible  <bruno@clisp.org>
75346
75347         * lib/getnline.h: New file.
75348         * lib/getnline.c: New file.
75349         * lib/getndelim2.c: New file, extracted from getline.c.
75350         (getndelim2): Renamed from getdelim2, with added nmax argument.
75351         * lib/getline.c: Include getndelim2.c.
75352         (getdelim2): Moved out to getndelim2.c.
75353         (getline, getdelim): Update.
75354
75355 2003-07-17  Bruno Haible  <bruno@clisp.org>
75356
75357         * lib/Makefile.am: Remove file.
75358         * lib/Makefile.in: Remove file.
75359
75360 2003-07-17  Bruno Haible  <bruno@clisp.org>
75361
75362         * configure.in: Remove file.
75363         * Makefile.in: Remove file.
75364
75365 2003-07-17  Bruno Haible  <bruno@clisp.org>
75366
75367         * MODULES.html.sh: Put the </BODY> right before </HTML>.
75368
75369 2003-07-16  Karl Berry  <karl@gnu.org>
75370
75371         * config/srclist-update: was running fixlicense twice, which caused
75372                 texinfo.tex to be nullified for some reason.  Simplify,
75373                 $gplsrc is no longer needed as far as I can see?
75374
75375 2003-07-16  Jim Meyering  <jim@meyering.net>
75376
75377         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
75378
75379 2003-07-15  Paul Eggert  <eggert@twinsun.com>
75380
75381         * config/srclist.txt: Get the following files from gettext-runtime/intl
75382         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
75383         ref-del.sin.  From Bruno Haible.
75384         * config/srclist-update (fixfile): Change grep pattern again, since the
75385         previous fix didn't work (there was another trailing $).  Use
75386         '[$]' to escape the $s.
75387
75388 2003-07-15  Karl Berry  <karl@gnu.org>
75389
75390         * lib/vasnprintf.c: update from gettext.
75391
75392 2003-07-15  Karl Berry  <karl@gnu.org>
75393
75394         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
75395         gets expanded when surrounded by '$'.
75396
75397 2003-07-15  Jim Meyering  <jim@meyering.net>
75398
75399         * modules/save-cwd: Don't depend on error.  From Derek Price.
75400
75401 2003-07-15  Jim Meyering  <jim@meyering.net>
75402
75403         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
75404
75405 2003-07-14  Simon Josefsson  <jas@extundo.com>
75406
75407         * modules/mempcpy: New file.
75408         * MODULES.html.sh (func_all_modules): Add mempcpy.
75409
75410 2003-07-14  Simon Josefsson  <jas@extundo.com>
75411
75412         * m4/mempcpy.m4: New file.
75413
75414 2003-07-14  Simon Josefsson  <jas@extundo.com>
75415
75416         * lib/mempcpy.h: New file.
75417         * lib/mempcpy.c: New file.
75418
75419 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75420
75421         * modules/getdate, modules/posixtm: Depend on mktime.
75422
75423 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75424
75425         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
75426         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
75427         unicodeio.c, unicodeio.h, unlocked-io.h:
75428         Switch from LGPL to GPL.
75429
75430 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75431
75432         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
75433         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
75434         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
75435         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
75436         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
75437         updated automatically by ../config/srclist-update.  This changes
75438         their license from LPGL to GPL.
75439
75440 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75441
75442         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
75443         assumed to refer to the root of the most recent stable gettext version.
75444         * config/srclistvars.sh: Add defaults for eggert.
75445         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
75446         Match "This program" as well as "The program".  This is needed
75447         for gettext.
75448
75449 2003-07-14  Jim Meyering  <jim@meyering.net>
75450
75451         Don't emit diagnostics.  Let callers do that.
75452         * lib/save-cwd.c: Don't include "error.h".
75453         (save_cwd): Don't call error.  Ensure that errno is valid
75454         when returning nonzero.
75455
75456         * lib/save-cwd.h (restore_cwd): Update prototype.
75457         * lib/save-cwd.c (restore_cwd): Remove two parameters.
75458         Simplify.  Don't call error upon failure.  Let callers do that.
75459         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
75460         when auditing is enabled.  But don't bother updating the #if.
75461
75462 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
75463
75464         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
75465         it breaks C++ compilation.
75466         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
75467
75468 2003-07-10  Simon Josefsson  <jas@extundo.com>
75469
75470         * modules/strchrnul (Makefile.am): Add strchrnul.h.
75471
75472 2003-07-10  Jim Meyering  <jim@meyering.net>
75473
75474         * m4/clock_time.m4: Remove trailing blank.
75475         * m4/intmax_t.m4: Likewise.
75476
75477 2003-07-10  Jim Meyering  <jim@meyering.net>
75478
75479         * lib/vasnprintf.c: Remove trailing blanks.
75480         Make cpp indentation consistent.
75481
75482 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75483
75484         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
75485         posixver.c, strftime.c, strnlen.c, strverscmp.c:
75486         Switch from LGPL to GPL.
75487
75488 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75489
75490         * config/srclist.txt: Sort sublists.  Add
75491         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
75492         that differ from gnulib for one reason or another; we'd like this list
75493         to be smaller but for now let's document what we have.
75494
75495 2003-07-08  Paul Eggert  <eggert@twinsun.com>
75496
75497         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
75498         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
75499         and sweeter "eval x=$x".
75500         * config/srclist.txt: Get lib/argp* from glibc.
75501
75502 2003-07-07  Paul Eggert  <eggert@twinsun.com>
75503
75504         * lib/mktime.c: Fix some boundary cases and remove need for floating
75505         point.
75506
75507         Issue a compile-time diagnostic if time_t is floating point, or if
75508         two's complement arithmetic is not in effect, or if arithmetic
75509         right shift does not propagate the sign.  These assumptions were
75510         all in the original code but they weren't checked.
75511
75512         (TIME_T_MIDPOINT, verify): New macros.
75513         (__isleap): Remove; it has integer overflow problems.
75514         (leapyear): New function, without those problems.
75515         (ydhms_tm_diff): Remove; splitting into two parts.
75516         (ydhms_diff): New function, containing the arithmetic part of
75517         the old ydhms_tm_diff function.  Issue a compile-time
75518         diagnostic if we are not using C99 integer division.
75519         Avoid casts when possible.
75520         (guess_time_tm): New function, containing the checking part of
75521         the old ydhms_tm_diff function.  Return the new value, rather than
75522         the difference between it and the old.  Accept a new argument T
75523         so that *T specifies the old value.  Check for overflow in the result.
75524
75525         (__mktime_internal): Use a time_t offset, not a long int offset.
75526         This undoes the 2003-06-04 change, which is no longer needed now
75527         that we have better overflow checking.
75528         (localtime_offset): Likewise.
75529
75530         (__mktime_internal): Avoid harmful overflow on hosts where time_t
75531         and long are 64-bit but int is only 32-bit.
75532         (ydhms_diff): Use long int to store year1 and yday1.
75533         Issue a compile-time diagnostic if long int is not wide enough.
75534
75535         (__mktime_internal): Use long int to store adjusted year and yday.
75536         Use plain C rather than preprocessor commands, if that doesn't
75537         affect efficiency.
75538         Check for overflow (and try to repair) after each probe
75539         rather than checking only at the very end.  This avoids some bugs
75540         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
75541         does not equal GMT offset at maximum time).
75542         Use integer to check for overflow rather than floating point; this
75543         is more portable to non-IEEE hosts, and is a tad faster.
75544         When we detect that we are oscillating between two values,
75545         don't check whether tm_isdst has the requested value, since
75546         we already know the answer.  When tm_isdst has the wrong value,
75547         use a different heuristic to find the right one, based on the
75548         extreme values actually observed in practice in tz2003a,
75549         rather than the (overly optimistic) "previous 3 calendar quarters".
75550
75551         (not_equal_tm, print_tm, check_result): Use "const T" rather than
75552         "T const" to accommodate glibc style.
75553         (check_result): Use less-confusing report format.  "long" -> "long int.
75554         (main): Likewise.
75555         Don't loop if the iteration overflows time_t.
75556         Allow a negative step in the iteration.
75557
75558 2003-07-06  Karl Berry  <karl@gnu.org>
75559
75560         * config/depcomp: update from automake.
75561         * config/config.sub: update from prep.
75562
75563 2003-07-03  Karl Berry  <karl@gnu.org>
75564
75565         * config/config.guess: update from prep.
75566
75567 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75568
75569         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
75570         xreadlink.c now includes it unconditionally.
75571
75572 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75573
75574         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
75575         having it depend on HAVE_SYS_TYPES_H.
75576
75577 2003-07-01  Bruno Haible  <bruno@clisp.org>
75578
75579         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
75580         <sys/types.h> should be sufficient.
75581         Reported by Paul Eggert.
75582
75583 2003-06-26  Karl Berry  <karl@gnu.org>
75584
75585         * config/depcomp: update from automake.
75586
75587 2003-06-26  Bruno Haible  <bruno@clisp.org>
75588
75589         * modules/human: Depend on module stdbool.
75590
75591 2003-06-25  Bruno Haible  <bruno@clisp.org>
75592
75593         * modules/readlink: New file.
75594         * modules/xreadlink: Depend on it.
75595         * MODULES.html.sh (func_all_modules): Add readlink.
75596
75597 2003-06-25  Bruno Haible  <bruno@clisp.org>
75598
75599         * m4/readlink.m4: New file.
75600
75601 2003-06-25  Bruno Haible  <bruno@clisp.org>
75602
75603         * lib/readlink.c: New file.
75604
75605 2003-06-22  Karl Berry  <karl@gnu.org>
75606
75607         * config/srclist.txt: update mkinstalldirs from automake.
75608         * config/mkinstalldirs: update.
75609
75610 2003-06-22  Bruno Haible  <bruno@clisp.org>
75611
75612         Portability to mingw32.
75613         * m4/ssize_t.m4: New file, from GNU gettext.
75614         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
75615         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
75616
75617 2003-06-22  Bruno Haible  <bruno@clisp.org>
75618
75619         * modules/safe-read: Add m4/ssize_t.m4.
75620         * modules/xreadlink: Add m4/ssize_t.m4.
75621
75622 2003-06-20  Bruno Haible  <bruno@clisp.org>
75623
75624         Assume C89, so PARAMS isn't needed.
75625         * lib/unicodeio.h (PARAMS): Remove.
75626         * lib/unicodeio.c: Don't use PARAMS.
75627
75628 2003-06-18  Karl Berry  <karl@gnu.org>
75629
75630         * config/config.{guess,sub}: update from prep.
75631
75632 2003-06-18  Jim Meyering  <jim@meyering.net>
75633
75634         Merge changes from coreutils.
75635         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
75636         Remove explicit declarations of xmalloc and realloc.
75637         Include xalloc.h.
75638         (read_utmp): Remove anachronistic cast of xmalloc.
75639
75640 2003-06-17  Paul Eggert  <eggert@twinsun.com>
75641
75642         Assume C89, so PARAMS isn't needed.
75643         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
75644         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
75645         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
75646         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
75647         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
75648         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
75649         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
75650         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
75651         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
75652         lib/xstrtod.h, lib/xstrtol.h: Likewise.
75653         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
75654         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
75655         no longer needed. Anyway, config.h should always be included before any
75656         other file.
75657
75658 2003-06-11  Simon Josefsson  <jas@extundo.com>
75659
75660         * modules/sysexits: New file.
75661         * MODULES.html.sh (func_all_modules): Add sysexits.
75662
75663 2003-06-11  Simon Josefsson  <jas@extundo.com>
75664
75665         * lib/sysexit_.h: New file.
75666
75667 2003-06-11  Derek Price  <derek@ximbiot.com>
75668
75669         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
75670         necessary.
75671
75672 2003-06-11  Bruno Haible  <bruno@clisp.org>
75673
75674         * m4/sysexits.m4: New file.
75675
75676 2003-06-10  Simon Josefsson  <jas@extundo.com>
75677
75678         * lib/argp.h: New file, from glibc.
75679         * lib/argp-ba.c: New file, from glibc.
75680         * lib/argp-eexst.c: New file, from glibc.
75681         * lib/argp-fmtstream.c: New file, from glibc.
75682         * lib/argp-fmtstream.h: New file, from glibc.
75683         * lib/argp-fs-xinl.c: New file, from glibc.
75684         * lib/argp-help.c: New file, from glibc.
75685         * lib/argp-namefrob.h: New file, from glibc.
75686         * lib/argp-parse.c: New file, from glibc.
75687         * lib/argp-pv.c: New file, from glibc.
75688         * lib/argp-pvh.c: New file, from glibc.
75689         * lib/argp-xinl.c: New file, from glibc.
75690
75691 2003-06-10  Simon Josefsson  <jas@extundo.com>
75692
75693         * modules/strchrnul: New file.
75694
75695 2003-06-10  Simon Josefsson  <jas@extundo.com>
75696
75697         * modules/argp: New file.
75698
75699 2003-06-10  Simon Josefsson  <jas@extundo.com>
75700
75701         * m4/strchrnul.m4: New file.
75702
75703 2003-06-10  Simon Josefsson  <jas@extundo.com>
75704
75705         * lib/strchrnul.h: New file.
75706         * lib/strchrnul.c: New file.
75707
75708 2003-06-10  Bruno Haible  <bruno@clisp.org>
75709
75710         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
75711
75712 2003-06-07  Karl Berry  <karl@gnu.org>
75713
75714         * config/config.{guess,sub}: update from prep.
75715
75716 2003-06-07  Jim Meyering  <jim@meyering.net>
75717
75718         * modules/strtod: Use $(...) notation, not @...@ for
75719         AC_REPLACE'd variables.
75720         * modules/localcharset: Likewise.
75721
75722 2003-06-07  Jim Meyering  <jim@meyering.net>
75723
75724         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
75725         in place of my name in the copyright comment.
75726         Remove definition and uses of __P.
75727
75728         From coreutils.
75729         * lib/stat.c: Don't declare xmalloc explicitly.
75730         Instead, include "xalloc.h".
75731         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
75732         xrealloc, and xcalloc return values.
75733         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
75734         Improve comment.
75735         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
75736
75737 2003-06-07  Bruno Haible  <bruno@clisp.org>
75738
75739         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
75740         avoid AC_CONFIG_LINKS.
75741         * modules/fnmatch (Makefile.am): Use explicit creation rule for
75742         fnmatch.h, to avoid AC_CONFIG_LINKS.
75743         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
75744
75745 2003-06-07  Bruno Haible  <bruno@clisp.org>
75746
75747         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
75748         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
75749         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75750         directory.
75751         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
75752         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75753         directory.
75754
75755 2003-06-06  Jim Meyering  <jim@meyering.net>
75756
75757         Merge from coreutils.
75758         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
75759         Consolidate declarations and initializations of *_base* locals.
75760
75761         Merge from coreutils.
75762         This avoids a core dump on systems without GNU putenv,
75763         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
75764         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
75765         (unsetenv): New static function, from GNU libc.
75766         (rpl_putenv): Use it.
75767
75768         * lib/modechange.c: Remove trailing blanks.
75769
75770         Merge from coreutils.
75771         * lib/fsusage.c: Remove declaration of statfs.
75772         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
75773
75774         * lib/posixtm.c: Include <stdbool.h> unconditionally.
75775
75776 2003-06-06  Jim Meyering  <jim@meyering.net>
75777
75778         * lib/stdbool_.h: Renamed from stdbool.h.in.
75779
75780 2003-06-06  Jim Meyering  <jim@meyering.net>
75781             Bruno Haible  <bruno@clisp.org>
75782
75783         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
75784         Adjust Makefile.am snippet not to redirect directly to target.
75785         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
75786
75787 2003-06-05  Paul Eggert  <eggert@twinsun.com>
75788
75789         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
75790         mismatch, look in future quarters as well as past.  This fixes a
75791         bug when processing fall-backwards gaps immediately after a long
75792         period of daylight-saving time.
75793
75794         * lib/mktime.c: Assume freestanding C89 or better.
75795         (HAVE_LIMITS_H): Remove.  Assume it's 1.
75796         (__P): Remove; not used.
75797         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
75798         (mktime, not_equal_tm, print_tm, check_result,
75799         main): Use prototypes.  Use const * where appropriate.
75800         (main): Fix typo in testing code that uncovered by above changes.
75801         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
75802
75803 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75804
75805         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
75806         locale.h, localeconv.  This merges changes from coreutils.
75807
75808         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
75809         It can be removed after the next Autoconf is released.
75810         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
75811         needed.
75812
75813 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75814
75815         * lib/mktime.c: Fix Debian bug 177940
75816         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
75817         (localtime_offset): Now long int, not time_t, because we want it
75818         to be guaranteed to be signed.  All uses changed.
75819         (__mktime_internal): If overflow would occur when adding offset,
75820         don't add it.
75821
75822         Merge 'human' changes from coreutils.  Rewrite to support
75823         locale-specific notations like thousands separators.
75824         * lib/human.c: Simplify authorship notice.
75825         Include human.h immediately after config.h.
75826         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
75827         <limits.h>: Do not include, since human.h does.
75828         (SIZE_MAX, UINTMAX_MAX): New macros.
75829         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
75830         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
75831         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
75832         (power_letter): Renamed from suffixes.
75833         (generate_suffix_backwards): Remove.
75834         (adjust_value): Now takes int style (because of human.h changes)
75835         and long double value (for greater precision on some platforms).
75836         (group_number): New function.
75837         (human_readable): Use it.  Use integer options, not enum.
75838         Put the options before the sizes in the arg list.
75839         Support all the new options.
75840         The old human_readable function has been removed;
75841         use inttostr.h instead.
75842         (human_readable, default_block_size, humblock):
75843         Use uintmax_t, not int, for block sizes.
75844         (human_readable_inexact, block_size_types): Remove.
75845         (block_size_opts): New constant.
75846         (human_options): Renamed from human_block_size, with new signature
75847         that allows block sizes up to UINTMAX_MAX.  All callers changed.
75848         * lib/human.h: Add copyright and authorship notice.
75849         Include <limits.h> and <stdbool.h> unconditionally.
75850         (PARAMS): Remove.  All uses removed.
75851         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
75852         (enum human_inexact_style): Remove tag; now a nameless enum.
75853         (human_floor, human_ceiling, human_round_to_even): Now have
75854         values 2, 0, 1 rather than -1, 1, 0.
75855         (human_group_digits, human_suppress_point_zero, human_autoscale,
75856         human_base_1024, human_SI, human_B): New constants.
75857         (human_readable_inexact, human_block_size): Remove.
75858         (human_readable): Size args are now uintmax_t, not int.
75859         (human_options): New decl.
75860
75861         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
75862         unnecessary now that we assume C89 or better.  This change
75863         imported from coreutils.
75864
75865         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75866         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
75867         in the 2003-05-30 sync from glibc.
75868
75869         .h files should stand alone, but we shouldn't include <sys/types.h>
75870         if we can get away with just <stddef.h>.
75871
75872         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
75873         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
75874         rather than <sys/types.h>, as we merely need size_t.
75875         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
75876         to get size_t.
75877         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
75878         Include <stdio.h>, to get FILE.
75879         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
75880         memcasecmp.h has included <stddef.h> and all we need is size_t.
75881         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
75882         our interface, instead of including <sys/types.h>
75883
75884 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75885
75886         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
75887         now, as glibc mktime is buggy on non-glibc systems.
75888
75889 2003-06-03  Karl Berry  <karl@gnu.org>
75890
75891         * config/config.sub: update from prep.
75892
75893 2003-06-02  Paul Eggert  <eggert@twinsun.com>
75894
75895         [from coreutils]
75896         Fix some minor time-related bugs with POSIX time arguments.
75897         Some valid time stamps were being rejected (notably -1, and
75898         time stamps before 1900 on 64-bit hosts).  And some invalid
75899         time stamps were being accepted, e.g. September 31.
75900
75901         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
75902         that we can return (time_t) -1 successfully.
75903         * lib/posixtm.c: Likewise.
75904         [HAVE_STDBOOL_H]: Include <stdbool.h>.
75905         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
75906         (t): Remove static var.
75907         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
75908         of static var.  All uses changed.
75909         (year): Do not reject years before 1900; they can occur with
75910         64-bit time_t.
75911         (posix_time_parse): Do not check for out-of-range components;
75912         that is now the caller's responsibility, since our checks were
75913         only approximations.
75914         (posixtime): Use mktime to check for out-of-range components,
75915         since it knows them exactly.
75916         If mktime returns (time_t) -1, check whether an error actually occurred
75917         by invoking localtime on -1.
75918         (main) [TEST_POSIXTIME]: Check for input data errors, and report
75919         posixtime failures better.
75920         Improve the test data (in comments only).
75921
75922 2003-06-02  Karl Berry  <karl@gnu.org>
75923
75924         * config/mkinstalldirs (version): new variable.
75925         (--version): new option.
75926         (usage): improve message.
75927
75928 2003-05-30  Karl Berry  <karl@gnu.org>
75929
75930         * lib/mktime.c: update from libc.
75931
75932 2003-05-30  Bruno Haible  <bruno@clisp.org>
75933
75934         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
75935         * config/config.rpath: Upgrade to gettext-0.12.1.
75936
75937 2003-05-30  Bruno Haible  <bruno@clisp.org>
75938
75939         * m4/gettext.m4: Upgrade to gettext-0.12.1.
75940         * m4/nls.m4: New file, from gettext-0.12.1.
75941         * m4/po.m4: New file, from gettext-0.12.1.
75942         * m4/progtest.m4: Upgrade to gettext-0.12.1.
75943
75944 2003-05-30  Bruno Haible  <bruno@clisp.org>
75945
75946         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
75947         * lib/localcharset.h: Likewise.
75948         * lib/localcharset.c: Likewise.
75949
75950 2003-05-29  Karl Berry  <karl@gnu.org>
75951
75952         * config/config.rpath: update from gettext.
75953
75954 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75955
75956         Assume the headers required for C89 freestanding compilers.
75957         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
75958         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
75959         * m4/human.m4 (gl_HUMAN): Likewise.
75960         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
75961         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
75962         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75963         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
75964         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75965         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
75966
75967 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75968
75969         Assume the headers required for C89 freestanding compilers.
75970         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
75971         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
75972         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
75973         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
75974         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
75975         define, since <limits.h> is guaranteed to do that.
75976         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
75977         * lib/exclude.c: Include <stdbool.h> unconditionally.
75978         * lib/tempname.c: Include <stddef.h> unconditionally.
75979         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
75980         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
75981         <stddef.h> does that.
75982         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
75983         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
75984         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
75985         needed.
75986         * lib/xstrtol.c: Likewise.
75987         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
75988         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
75989
75990         * lib/addext.c (addext): Use assignment rather than cast, to avoid
75991         warnings on some platforms.
75992
75993         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75994         arbitrarily.
75995
75996 2003-05-26  Jim Meyering  <jim@meyering.net>
75997
75998         Merge in a change from coreutils:
75999         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
76000         that is guaranteed to be `no'.  Use `no_such_member' to indicate
76001         that condition, rather than `-1' which is slightly misleading.
76002         Change the name of the cache variable to have the gl_ prefix.
76003         Prompted by a patch from Richard Dawe for DJGPP.
76004
76005 2003-05-24  Karl Berry  <karl@gnu.org>
76006
76007         * config/config.guess: update from prep.
76008
76009 2003-05-22  Karl Berry  <karl@gnu.org>
76010
76011         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
76012
76013 2003-05-20  Karl Berry  <karl@gnu.org>
76014
76015         * config/config.guess: update from prep.
76016
76017 2003-05-18  Karl Berry  <karl@gnu.org>
76018
76019         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
76020         might actually be set by the user.
76021
76022         * config/depcomp, install-sh, mdate-sh: update from automake.
76023
76024 2003-05-17  Bruno Haible  <bruno@clisp.org>
76025
76026         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
76027         invalid expansion for AC_EGREP_CPP.
76028         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
76029         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
76030         Suggested by Akim Demaille <akim@epita.fr> in
76031         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
76032
76033 2003-05-12  Jim Meyering  <jim@meyering.net>
76034
76035         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
76036         the space-padded-by-default conversion specifiers, %e, %k, %l.
76037
76038 2003-05-12  Bruno Haible  <bruno@clisp.org>
76039
76040         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
76041         the string is longer than 4 KB.
76042
76043 2003-05-11  Karl Berry  <karl@gnu.org>
76044
76045         * config/config.{guess,sub}: update from prep.
76046
76047 2003-05-09  Bruno Haible  <bruno@clisp.org>
76048
76049         * modules/error: Add m4/strerror_r.m4 to file list.
76050
76051 2003-05-03  Bruno Haible  <bruno@clisp.org>
76052
76053         Upgrade to Unicode-4.0.
76054         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
76055         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
76056         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
76057         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
76058         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
76059         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
76060         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
76061         Change width of U+E0100..U+E01EF from 1 to 0.
76062
76063 2003-04-25  Jim Meyering  <jim@meyering.net>
76064
76065         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
76066         of type size_t, not int.
76067
76068 2003-04-25  Bruno Haible  <bruno@clisp.org>
76069
76070         * lib/copy-file.c: Include <stddef.h>, for size_t.
76071
76072 2003-04-21  Paul Eggert  <eggert@twinsun.com>
76073
76074         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
76075         code which expansion is under static control.  Patch imported from
76076         Akim Demaille's patch to Bison; see
76077         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
76078
76079 2003-04-14  Bruno Haible  <bruno@clisp.org>
76080
76081         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
76082
76083 2003-04-11  Jim Meyering  <jim@meyering.net>
76084
76085         Merge changes from Coreutils.
76086
76087         2003-03-22  Jim Meyering  <jim@meyering.net>
76088
76089         * lib/strftime.c (widen): Cast alloca return value to proper type.
76090
76091         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
76092
76093         From GNU libc.
76094         * lib/strftime.c (my_strftime): Handle very large width
76095         specifications for numeric values correctly.  Improve checks for
76096         overflow.
76097
76098         2003-01-19  Jim Meyering  <jim@meyering.net>
76099
76100         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
76101         definitions.
76102         (nl_get_alt_digit) [! defined my_strftime]: Define.
76103         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
76104         _nl_get_alt_digit and _nl_get_walt_digit.
76105
76106         * lib/strftime.c (my_strftime): Merge in locale-related changes from
76107         libc. These changes have no effect outside of _LIBC.
76108
76109 2003-04-10  Bruno Haible  <bruno@clisp.org>
76110
76111         * modules/findprog: New file.
76112         * MODULES.html.sh (func_all_modules): Add it.
76113
76114 2003-04-10  Bruno Haible  <bruno@clisp.org>
76115
76116         * m4/findprog.m4: New file.
76117         * m4/eaccess.m4: New file.
76118
76119 2003-04-10  Bruno Haible  <bruno@clisp.org>
76120
76121         * lib/findprog.h: New file, from GNU gettext.
76122         * lib/findprog.c: New file, from GNU gettext.
76123
76124 2003-04-05  Jim Meyering  <jim@meyering.net>
76125
76126         Merge changes from Coreutils.
76127
76128         * lib/exclude.h (PARAMS): Remove definition and uses.
76129         * lib/exclude.c: Remove uses of `PARAMS'.
76130
76131         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
76132         Add test-cases for DOS filenames. Declare program_name.
76133         (main): Set up program_name.  Patch by Rich Dawe.
76134
76135         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76136         error from mntctl.
76137         Use mntctl's return value to drive the entry-processing loop, since
76138         we can't rely on the value of the vmt_length member in the last
76139         entry.  On some systems doing so could result in exhausting
76140         virtual memory.  Based in part on a patch from Mike Jetzer.
76141
76142 2003-04-04  Bruno Haible  <bruno@clisp.org>
76143
76144         * modules/linebreak: New file.
76145         * MODULES.html.sh (func_all_modules): Add it.
76146
76147 2003-04-04  Bruno Haible  <bruno@clisp.org>
76148
76149         * m4/linebreak.m4: New file.
76150
76151 2003-04-04  Bruno Haible  <bruno@clisp.org>
76152
76153         * lib/linebreak.h: New file, from GNU gettext.
76154         * lib/linebreak.c: New file, from GNU gettext with slight
76155         modifications.
76156         * lib/lbrkprop.h: New file, from GNU gettext.
76157
76158 2003-04-03  Bruno Haible  <bruno@clisp.org>
76159
76160         * modules/utf8-ucs4: New file.
76161         * modules/utf16-ucs4: New file.
76162         * modules/ucs4-utf8: New file.
76163         * modules/ucs4-utf16: New file.
76164         * MODULES.html.sh (func_all_modules): Add them.
76165
76166 2003-04-03  Bruno Haible  <bruno@clisp.org>
76167
76168         * m4/utf-ucs4.m4: New file.
76169         * m4/ucs4-utf.m4: New file.
76170
76171 2003-04-03  Bruno Haible  <bruno@clisp.org>
76172
76173         * lib/utf8-ucs4.h: New file, from GNU gettext.
76174         * lib/utf16-ucs4.h: New file, from GNU gettext.
76175         * lib/ucs4-utf8.h: New file, from GNU gettext.
76176         * lib/ucs4-utf16.h: New file, from GNU gettext.
76177
76178 2003-04-02  Bruno Haible  <bruno@clisp.org>
76179
76180         * modules/binary-io: New file.
76181         * MODULES.html.sh (func_all_modules): Add it.
76182
76183 2003-04-02  Bruno Haible  <bruno@clisp.org>
76184
76185         * lib/binary-io.h: New file, from GNU gettext.
76186
76187 2003-04-01  Bruno Haible  <bruno@clisp.org>
76188
76189         * modules/pathname: New file.
76190         * MODULES.html.sh (func_all_modules): Add it.
76191
76192 2003-04-01  Bruno Haible  <bruno@clisp.org>
76193
76194         * lib/pathname.h: New file, from GNU gettext.
76195         * lib/concatpath.c: New file, from GNU gettext.
76196
76197 2003-03-30  Bruno Haible  <bruno@clisp.org>
76198
76199         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
76200
76201 2003-03-30  Bruno Haible  <bruno@clisp.org>
76202
76203         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
76204         function chown() doesn't exist.
76205
76206 2003-03-28  Bruno Haible  <bruno@clisp.org>
76207
76208         * modules/copy-file: New file.
76209         * MODULES.html.sh (func_all_modules): Add it.
76210
76211 2003-03-28  Bruno Haible  <bruno@clisp.org>
76212
76213         * m4/copy-file.m4: New file.
76214
76215 2003-03-28  Bruno Haible  <bruno@clisp.org>
76216
76217         * lib/copy-file.h: New file, from GNU gettext.
76218         * lib/copy-file.c: New file, from GNU gettext.
76219
76220 2003-03-18  Jim Meyering  <jim@meyering.net>
76221
76222         * lib/quote.c (quote_n): Fix typo in comment.
76223
76224 2003-03-18  Bruno Haible  <bruno@clisp.org>
76225
76226         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
76227         checking.
76228         * m4/onceonly_2_57.m4: Likewise.
76229
76230 2003-03-17  Bruno Haible  <bruno@clisp.org>
76231
76232         * m4/onceonly.m4: Require autoconf 2.54 or newer.
76233         (m4_quote): Remove macro.
76234         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
76235
76236 2003-03-14  Jim Meyering  <jim@meyering.net>
76237
76238         Merge changes from Coreutils.
76239         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
76240         to be const, in order to avoid warnings.
76241         (obstack_room): Likewise.
76242         (obstack_empty_p): Likewise.
76243
76244 2003-03-14  Bruno Haible  <bruno@clisp.org>
76245
76246         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
76247         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
76248
76249 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76250
76251         Merge changes from Bison.
76252         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
76253         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
76254         when compiling Bison 1.875's `bitset bset = obstack_alloc
76255         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
76256         * lib/hash.c: Include <stdbool.h> unconditionally.
76257
76258 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76259
76260         * m4/onceonly.m4 (m4_quote): New macro.
76261         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
76262         Quote AC_FOREACH variable-expansions properly.
76263
76264 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76265
76266         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
76267
76268 2003-03-09  Paul Eggert  <eggert@twinsun.com>
76269
76270         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
76271         Reported by Bruce Becker; see:
76272         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
76273
76274 2003-03-03  Paul Eggert  <eggert@twinsun.com>
76275             Bruno Haible  <bruno@clisp.org>
76276
76277         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
76278         Reported by John Hughes, see
76279         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
76280
76281 2003-02-20  Bruno Haible  <bruno@clisp.org>
76282
76283         * MODULES.html.sh (func_all_modules): Add poll.
76284
76285 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76286
76287         * modules/poll: New file.
76288
76289 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76290
76291         * lib/poll_.h: New file.
76292         * lib/poll.c: New file.
76293
76294 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76295
76296         * m4/poll.m4: New file.
76297
76298 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76299
76300         * modules/mathl: New file.
76301
76302 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76303
76304         * lib/mathl.h: New file.
76305         * lib/acosl.c: New file.
76306         * lib/asinl.c: New file.
76307         * lib/atanl.c: New file.
76308         * lib/ceill.c: New file.
76309         * lib/cosl.c: New file.
76310         * lib/expl.c: New file.
76311         * lib/floorl.c: New file.
76312         * lib/frexpl.c: New file.
76313         * lib/ldexpl.c: New file.
76314         * lib/logl.c: New file.
76315         * lib/sincosl.c: New file.
76316         * lib/sinl.c: New file.
76317         * lib/sqrtl.c: New file.
76318         * lib/tanl.c: New file.
76319         * lib/trigl.c: New file.
76320         * lib/trigl.h: New file.
76321
76322 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76323
76324         * m4/mathl.m4: New file.
76325
76326 2003-02-18  Bruno Haible  <bruno@clisp.org>
76327
76328         * MODULES.html.sh (func_all_modules): Add mathl.
76329
76330 2003-02-17  Bruno Haible  <bruno@clisp.org>
76331
76332         * modules/mkdtemp: New module.
76333         * MODULES.html.sh (func_all_modules): Add it.
76334
76335 2003-02-17  Bruno Haible  <bruno@clisp.org>
76336
76337         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
76338
76339 2003-02-17  Bruno Haible  <bruno@clisp.org>
76340
76341         * lib/mkdtemp.h: New file, from GNU gettext.
76342         * lib/mkdtemp.c: New file, from GNU gettext.
76343
76344 2003-02-02  Jim Meyering  <jim@meyering.net>
76345
76346         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
76347         e.g. glibc-2.2.93.
76348
76349 2003-01-31  Bruno Haible  <bruno@clisp.org>
76350
76351         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
76352         'rpl_rename'.
76353         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
76354         'rpl_strnlen'.
76355         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
76356         'rpl_strtod'.
76357         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
76358         'rpl_utime'.
76359
76360 2003-01-31  Bruno Haible  <bruno@clisp.org>
76361
76362         * lib/rename.c: #undef rename before defining rpl_rename.
76363         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
76364
76365 2003-01-30  Bruno Haible  <bruno@clisp.org>
76366
76367         * modules/vasnprintf, modules/vasprintf: New modules.
76368         * MODULES.html.sh (func_all_modules): Add them.
76369
76370 2003-01-30  Bruno Haible  <bruno@clisp.org>
76371
76372         * m4/signed.m4: New file, from GNU gettext.
76373         * m4/longdouble.m4: New file, from GNU gettext.
76374         * m4/wchar_t.m4: New file, from GNU gettext.
76375         * m4/wint_t.m4: New file, from GNU gettext.
76376         * m4/vasnprintf.m4: New file.
76377         * m4/vasprintf.m4: New file.
76378
76379 2003-01-30  Bruno Haible  <bruno@clisp.org>
76380
76381         * lib/printf-args.h: New file, from GNU gettext.
76382         * lib/printf-args.c: New file, from GNU gettext.
76383         * lib/printf-parse.h: New file, from GNU gettext.
76384         * lib/printf-parse.c: New file, from GNU gettext.
76385         * lib/vasnprintf.h: New file, from GNU gettext.
76386         * lib/vasnprintf.c: New file, from GNU gettext.
76387         * lib/asnprintf.c: New file, from GNU gettext.
76388         * lib/vasprintf.h: New file, from GNU gettext with modifications.
76389         * lib/vasprintf.c: New file, from GNU gettext.
76390         * lib/asprintf.c: New file, from GNU gettext.
76391
76392 2003-01-29  Bruno Haible  <bruno@clisp.org>
76393
76394         * modules/stpncpy: New module.
76395         * MODULES.html.sh (func_all_modules): Add it.
76396
76397 2003-01-29  Bruno Haible  <bruno@clisp.org>
76398
76399         * m4/stpncpy.m4: New file.
76400
76401 2003-01-29  Bruno Haible  <bruno@clisp.org>
76402
76403         * lib/stpncpy.h: New file, from GNU gettext with modifications.
76404         * lib/stpncpy.c: New file, from GNU gettext with modifications.
76405
76406 2003-01-28  Bruno Haible  <bruno@clisp.org>
76407
76408         * modules/c-ctype: New module.
76409         * MODULES.html.sh (func_all_modules): Add it.
76410
76411 2003-01-28  Bruno Haible  <bruno@clisp.org>
76412
76413         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
76414         Paul Eggert.
76415         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
76416         Paul Eggert.
76417
76418 2003-01-27  Bruno Haible  <bruno@clisp.org>
76419
76420         * modules/xsetenv: New module.
76421         * MODULES.html.sh (func_all_modules): Add it.
76422
76423 2003-01-27  Bruno Haible  <bruno@clisp.org>
76424
76425         * lib/xsetenv.h: New file, from GNU gettext.
76426         * lib/xsetenv.c: New file, from GNU gettext.
76427
76428 2003-01-23  Jim Meyering  <jim@meyering.net>
76429
76430         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
76431         from working on systems without dirfd (at least Irix and OSF1/Tru64).
76432
76433 2003-01-23  Bruno Haible  <bruno@clisp.org>
76434
76435         * modules/minmax: New module.
76436         * MODULES.html.sh (func_all_modules): Add it.
76437
76438 2003-01-23  Bruno Haible  <bruno@clisp.org>
76439
76440         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
76441         Eggert.
76442
76443 2003-01-22  Bruno Haible  <bruno@clisp.org>
76444
76445         * modules/exit: New module.
76446         * MODULES.html.sh (func_all_modules): Add it.
76447
76448 2003-01-22  Bruno Haible  <bruno@clisp.org>
76449
76450         * lib/exit.h: New file, from GNU gettext.
76451
76452 2003-01-19  Bruno Haible  <bruno@clisp.org>
76453
76454         * gnulib-tool: Recognize option --extract-maintainer.
76455         (func_get_maintainer): New function.
76456         * modules/*: Add Maintainer entry.
76457
76458 2003-01-16  Jim Meyering  <jim@meyering.net>
76459
76460         * m4/regex.m4: The `regex' struct is both input and output.
76461         Initialize it before each use.  Patch by Tim Waugh.
76462
76463 2003-01-16  Bruno Haible  <bruno@clisp.org>
76464
76465         * MODULES.html.sh: Add a table of contents. Add the module name as
76466         leftmost column. Add hyperlinks.
76467
76468 2003-01-15  Bruno Haible  <bruno@clisp.org>
76469
76470         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
76471
76472 2003-01-15  Bruno Haible  <bruno@clisp.org>
76473
76474         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
76475         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
76476         suffix.
76477
76478 2003-01-15  Bruno Haible  <bruno@clisp.org>
76479
76480         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
76481
76482 2003-01-15  Bruno Haible  <bruno@clisp.org>
76483
76484         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
76485         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
76486
76487 2003-01-14  Jim Meyering  <jim@meyering.net>
76488
76489         * lib/same.c (same_name): Tweak a comment.
76490
76491 2003-01-14  Bruno Haible  <bruno@clisp.org>
76492
76493         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
76494         when a string comparison is sufficient.
76495
76496 2003-01-14  Bruno Haible  <bruno@clisp.org>
76497
76498         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
76499         'unsigned int'.
76500
76501 2003-01-14  Bruno Haible  <bruno@clisp.org>
76502
76503         * lib/hash-pjw.c: Add comment about low quality of this function.
76504
76505 2003-01-13  Bruno Haible  <bruno@clisp.org>
76506
76507         * modules/stpcpy: Distribute lib/stpcpy.h.
76508         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
76509
76510 2003-01-13  Bruno Haible  <bruno@clisp.org>
76511
76512         * modules/*: Add a description.
76513         * modules/strpbrk: Fix Makefile.am snippet.
76514         * modules/strtoimax: Fix dependencies.
76515         * modules/strtoumax: Likewise.
76516
76517 2003-01-13  Bruno Haible  <bruno@clisp.org>
76518
76519         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
76520         * modules/alloca (Makefile.am): All object files depend on alloca.h.
76521         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
76522
76523 2003-01-13  Bruno Haible  <bruno@clisp.org>
76524
76525         * gnulib-tool (func_create_testdir): Store config/* files in the main
76526         directory.
76527         * config.rpath: Move to ...
76528         * config/config.rpath: ... here.
76529         * modules/gettext: Contains config/config.rpath, not config.rpath.
76530         * modules/iconv: Likewise.
76531
76532 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76533
76534         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76535         to avoid collisions with libcurses and libreadline.
76536
76537         * m4/getstr.m4: Remove.
76538         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
76539
76540 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76541
76542         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76543         to avoid collisions with libcurses and libreadline.
76544
76545         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
76546         * lib/getstr.h, getstr.c: Remove.
76547         * lib/getline.c: Include "getline.h", to check interface.
76548         Move body of old getstr.c here: this defines MIN_CHUNK and
76549         declares getdelim2, which is renamed from getstr.
76550         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
76551
76552         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
76553         All uses changed.
76554         * lib/linebuffer.h: Likewise.
76555         (readline): Remove backward-compatibility macro.
76556
76557 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76558
76559         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76560         to avoid collisions with libcurses and libreadline.
76561         * getstr: Remove.
76562         * MODULES.html.sh: Remove getstr.
76563         * modules/getline: Depend on unlocked-io, not getstr.
76564
76565 2003-01-12  Jim Meyering  <jim@meyering.net>
76566
76567         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
76568
76569 2003-01-10  Bruno Haible  <bruno@clisp.org>
76570
76571         * modules/alloca: Change Makefile.am requirements. Simplify Include
76572         requirements. Add lib/alloca_.h to file list.
76573
76574 2003-01-10  Bruno Haible  <bruno@clisp.org>
76575
76576         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
76577
76578 2003-01-10  Bruno Haible  <bruno@clisp.org>
76579
76580         * lib/alloca_.h: New file.
76581         * lib/getdate.y: Unconditionally include alloca.h.
76582         * lib/makepath.c: Likewise.
76583         * lib/setenv.c: Likewise.
76584         * lib/userspec.c: Likewise.
76585
76586 2003-01-09  Karl Berry  <karl@gnu.org>
76587
76588         * MODULES.html.sh: include `dirname $0` in PATH, to find
76589         gnulib-tool.
76590
76591 2003-01-09  Bruno Haible  <bruno@clisp.org>
76592
76593         * modules/stdbool: Change configure.ac, Makefile.am requirements.
76594         Simplify Include requirements. Add lib/stdbool.h.in to file list.
76595
76596 2003-01-09  Bruno Haible  <bruno@clisp.org>
76597
76598         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
76599
76600 2003-01-09  Bruno Haible  <bruno@clisp.org>
76601
76602         * lib/stdbool.h.in: New file.
76603
76604 2003-01-09  Bruno Haible  <bruno@clisp.org>
76605
76606         * gnulib-tool (func_all_modules): Ignore files ending in ~.
76607         * MODULES.html.sh: Likewise.
76608
76609 2003-01-08  Jim Meyering  <jim@meyering.net>
76610
76611         * lib/full-write.c: Undefine and define-away `const' after inclusion
76612         of errno.h, not before.  Suggestion from Bruno Haible.
76613
76614 2003-01-08  Bruno Haible  <bruno@clisp.org>
76615
76616         * modules/full-read: Depend on full-write.
76617
76618 2003-01-08  Bruno Haible  <bruno@clisp.org>
76619
76620         * lib/safe-read.c: Include specification header first, to ensure its
76621         selfcontainedness.
76622         * lib/full-write.c: Likewise.
76623
76624 2003-01-07  Jim Meyering  <jim@meyering.net>
76625
76626         * lib/full-write.c: Rework so that it may serve to define full_read,
76627         too.
76628         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
76629
76630 2003-01-07  Bruno Haible  <bruno@clisp.org>
76631
76632         * lib/strtoimax.c: Include <stdint.h> as an alternative to
76633         <inttypes.h>.
76634         * lib/xstrtol.h: Likewise.
76635         * lib/xstrtoimax.c: Likewise.
76636         * lib/xstrtoumax.c: Likewise.
76637         * lib/human.h: Likewise.
76638
76639         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
76640         on systems that have <inttypes.h> but not <stdint.h>.
76641
76642 2003-01-07  Bruno Haible  <bruno@clisp.org>
76643
76644         * MODULES.html.sh: Add copyright notice.
76645         (missed_files): Omit CVS directory entries.
76646         (func_module): Make it work with sed-3.02.
76647         * MODULES.txt: Remove file.
76648
76649 2003-01-06  Jim Meyering  <jim@meyering.net>
76650
76651         * lib/version-etc.c: Update year in translatable copyright string.
76652
76653 2003-01-03  Karl Berry  <karl@gnu.org>
76654
76655         * config/config.{guess,sub}: update from prep.
76656
76657 2003-01-02  Karl Berry  <karl@gnu.org>
76658
76659         * doc/COPYING.DOC: belatedly updated to 1.2.
76660
76661 2003-01-01  Karl Berry  <karl@gnu.org>
76662
76663         * gnulib-tool (func_verify_module): report module name $module in
76664         error message, not $1.
76665         * gnulib-tool (create-testdir): don't complain if destdir couldn't
76666         be created, only if it doesn't exist.
76667         * gnulib-tool (last_checkin_date): don't expand the $Date here.
76668
76669 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76670
76671         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
76672
76673 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76674
76675         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
76676         memcmp if strcoll doesn't work.
76677
76678 2002-12-31  Bruno Haible  <bruno@clisp.org>
76679
76680         * lib/utime.c (utime_null): No need to call ftruncate if the file was
76681         nonempty.
76682
76683 2002-12-31  Bruno Haible  <bruno@clisp.org>
76684
76685         * lib/memcoll.c (STRCOLL): New macro.
76686         (memcoll): Use it.
76687
76688 2002-12-31  Bruno Haible  <bruno@clisp.org>
76689
76690         * lib/localcharset.h: New file.
76691         * lib/localcharset.c: Include it.
76692         * lib/unicodeio.c: Likewise.
76693
76694 2002-12-31  Bruno Haible  <bruno@clisp.org>
76695
76696         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
76697         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
76698
76699 2002-12-31  Bruno Haible  <bruno@clisp.org>
76700
76701         * lib/getline.h: Include <stddef.h>, for size_t.
76702
76703         * lib/unicodeio.h: Include <stddef.h>, for size_t.
76704         * lib/unicodeio.c: Don't include <stddef.h>.
76705
76706 2002-12-31  Bruno Haible  <bruno@clisp.org>
76707
76708         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
76709         HAVE_TM_ZONE.
76710
76711 2002-12-24  Karl Berry  <karl@gnu.org>
76712
76713         * config/config.guess: update from prep.
76714
76715 2002-12-24  Bruno Haible  <bruno@clisp.org>
76716
76717         General infrasructure.
76718         * m4/README: Rewritten.
76719         * m4/onceonly.m4: New file.
76720         * m4/onceonly_2_57.m4: New file.
76721
76722         Module atexit.
76723         * m4/atexit.m4: New file.
76724
76725         Module strtod.
76726         * m4/strtod.m4: New file.
76727
76728         Module strtol.
76729         * m4/strtol.m4: New file.
76730
76731         Module strtoul.
76732         * m4/strtoul.m4: New file.
76733
76734         Module memchr.
76735         * m4/memchr.m4: New file.
76736
76737         Module memcmp.
76738         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
76739         (jm_FUNC_MEMCMP): Invoke it.
76740
76741         Module memcpy.
76742         * m4/memcpy.m4: New file.
76743
76744         Module memmove.
76745         * m4/memmove.m4: New file.
76746
76747         Module memset.
76748         * m4/memset.m4: New file.
76749
76750         Module strcspn.
76751         * m4/strcspn.m4: New file.
76752
76753         Module strpbrk.
76754         * m4/strpbrk.m4: New file.
76755
76756         Module strstr.
76757         * m4/strstr.m4: New file.
76758
76759         Module strerror.
76760         * m4/strerror.m4: New file.
76761
76762         Module mktime.
76763         * m4/mktime.m4: Renamed from jm-mktime.m4.
76764         (gl_PREREQ_MKTIME): New macro.
76765         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
76766
76767         Module malloc.
76768         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
76769         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
76770         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
76771
76772         Module realloc.
76773         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
76774         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
76775         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
76776
76777         Module strftime.
76778         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
76779         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
76780         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
76781         gl_TM_GMTOFF.
76782         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
76783
76784         Module xalloc.
76785         * m4/xalloc.m4: New file.
76786
76787         Module alloca.
76788         * m4/alloca.m4: New file.
76789
76790         Module putenv.
76791         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
76792         (jm_FUNC_PUTENV): Invoke it.
76793
76794         Module setenv.
76795         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
76796         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
76797         when invoked twice.
76798         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
76799         gt_FUNC_SETENV.
76800
76801         Module memrchr.
76802         * m4/memrchr.m4: New file.
76803
76804         Module stpcpy.
76805         * m4/stpcpy.m4: New file.
76806
76807         Module strcase.
76808         * m4/strcase.m4: New file.
76809
76810         Module strdup.
76811         * m4/strdup.m4: New file.
76812
76813         Module strnlen.
76814         * m4/strnlen.m4: New file.
76815
76816         Module strndup.
76817         * m4/strndup.m4: New file.
76818
76819         Module xstrtod.
76820         * m4/xstrtod.m4: New file.
76821
76822         Module xstrtol.
76823         * m4/xstrtol.m4: New file.
76824
76825         Module getdate.
76826         * m4/getdate.m4: New file.
76827
76828         Module unlocked-io.
76829         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
76830         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
76831         * m4/jm-glibc-io.m4n: Remove file.
76832
76833         Module long-options.
76834         * m4/long-options.m4: New file.
76835
76836         Module md5.
76837         * m4/md5.m4: New file.
76838
76839         Module sha.
76840         * m4/sha.m4: New file.
76841
76842         Module getstr.
76843         * m4/getstr.m4: New file.
76844
76845         Module getline.
76846         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
76847         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
76848         <sys/types.h>, for size_t. Use the function name gnu_getline, not
76849         simply getline. Infoke gl_PREREQ_GETLINE.
76850
76851         Module obstack.
76852         * m4/obstack.m4: New file.
76853
76854         Module hash.
76855         * m4/hash.m4: New file.
76856
76857         Module readtokens.
76858         * m4/readtokens.m4: New file.
76859
76860         Module strverscmp.
76861         * m4/strverscmp.m4: New file.
76862
76863         Module stdbool.
76864         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
76865         OSF/1.
76866
76867         Module strtoll.
76868         * m4/strtoll.m4: New file.
76869
76870         Module strtoull.
76871         * m4/strtoull.m4: New file.
76872
76873         Module strtoimax.
76874         * m4/strtoimax.m4: New file.
76875
76876         Module strtoumax.
76877         * m4/strtoumax.m4: New file.
76878
76879         Module xstrtoimax.
76880         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
76881         jm_AC_PREREQ_XSTRTOIMAX.
76882         Moved the strtol prerequisites to strtol.m4.
76883         Moved the strtoll prerequisites to strtoll.m4.
76884         Moved the strtoimax prerequisites to strtoimax.m4.
76885
76886         Module xstrtoumax.
76887         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
76888         jm_AC_PREREQ_XSTRTOUMAX.
76889         Moved the strtoul prerequisites to strtoul.m4.
76890         Moved the strtoull prerequisites to strtoull.m4.
76891         Moved the strtoumax prerequisites to strtoumax.m4.
76892
76893         Module chown.
76894         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
76895         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
76896
76897         Module dup2.
76898         * m4/dup2.m4: New file.
76899
76900         Module ftruncate.
76901         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
76902         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
76903
76904         Module getgroups.
76905         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
76906         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
76907
76908         Module gettimeofday.
76909         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
76910         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
76911         gl_PREREQ_GETTIMEOFDAY.
76912
76913         Module mkdir.
76914         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
76915         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
76916
76917         Module mkstemp.
76918         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
76919         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
76920         jm_AC_TYPE_UINTMAX_T.
76921         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
76922
76923         Module stat.
76924         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
76925         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
76926
76927         Module lstat.
76928         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
76929         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
76930
76931         Module timespec.
76932         * m4/timespec.m4 (gl_TIMESPEC): New macro.
76933         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
76934         * m4/st_mtim.m4: Indentation.
76935
76936         Module nanosleep.
76937         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
76938         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
76939         gl_PREREQ_NANOSLEEP.
76940
76941         Module regex.
76942         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
76943         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
76944         (gl_REGEX): New macro.
76945
76946         Module rename.
76947         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
76948         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
76949
76950         Module rmdir.
76951         * m4/rmdir.m4: New file.
76952
76953         Module utime.
76954         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
76955         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
76956         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
76957
76958         Module dirname.
76959         * m4/dirname.m4: New file.
76960
76961         Module getopt.
76962         * m4/getopt.m4: New file.
76963
76964         Module unistd-safer.
76965         * m4/unistd-safer.m4: New file.
76966
76967         Module fnmatch.
76968         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
76969         declaration.
76970         (gl_PREREQ_FNMATCH_EXTRA): New macro.
76971         (gl_FUNC_FNMATCH_POSIX): New macro.
76972         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
76973         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
76974         simply fnmatch.
76975
76976         Module exclude.
76977         * m4/exclude.m4: New file.
76978
76979         Module human.
76980         * m4/human.m4: New file.
76981
76982         Module acl.
76983         * m4/acl.m4: Nop.
76984
76985         Module backupfile.
76986         * m4/backupfile.m4: New file.
76987         * m4/d-ino.m4: Indentation.
76988
76989         Module fsusage.
76990         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
76991         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
76992         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
76993
76994         Module dirfd.
76995         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
76996         requirements.
76997
76998         Module euidaccess.
76999         * m4/euidaccess.m4: New file.
77000
77001         Module file-type.
77002         * m4/file-type.m4: New file.
77003
77004         Module fileblocks.
77005         * m4/fileblocks.m4: New file.
77006
77007         Module filemode.
77008         * m4/filemode.m4: New file.
77009
77010         Module isdir.
77011         * m4/isdir.m4: New file.
77012
77013         Module lchown.
77014         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
77015         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
77016
77017         Module makepath.
77018         * m4/makepath.m4: New file.
77019
77020         Module modechange.
77021         * m4/modechange.m4: New file.
77022
77023         Module mountlist.
77024         * m4/mountlist.m4: New file.
77025         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
77026         Indentation.
77027
77028         Module path-concat.
77029         * m4/path-concat.m4: New file.
77030
77031         Module pathmax.
77032         * m4/pathmax.m4: New file.
77033
77034         Module same.
77035         * m4/same.m4: New file.
77036
77037         Module save-cwd.
77038         * m4/save-cwd.m4: New file.
77039
77040         Module savedir.
77041         * m4/savedir.m4: New file.
77042
77043         Module xgetcwd.
77044         * m4/xgetcwd.m4: New file.
77045         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
77046
77047         Module xreadlink.
77048         * m4/xreadlink.m4: New file.
77049
77050         Module safe-read.
77051         * m4/safe-read.m4: New file.
77052
77053         Module safe-write.
77054         * m4/safe-write.m4: New file.
77055
77056         Module closeout.
77057         * m4/closeout.m4: New file.
77058
77059         Module stdio-safer.
77060         * m4/stdio-safer.m4: New file.
77061
77062         Module getpass.
77063         * m4/getpass.m4: New file.
77064
77065         Module getugroups.
77066         * m4/getugroups.m4: New file.
77067
77068         Module group-member.
77069         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
77070         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
77071
77072         Module idcache.
77073         * m4/idcache.m4: New file.
77074
77075         Module userspec.
77076         * m4/userspec.m4: New file.
77077
77078         Module gettime.
77079         * m4/clock_time.m4: New file.
77080         * m4/gettime.m4: New file.
77081
77082         Module settime.
77083         * m4/settime.m4: New file.
77084
77085         Module posixtm.
77086         * m4/posixtm.m4: New file.
77087
77088         Module gethostname.
77089         * m4/gethostname.m4: New file.
77090
77091         Module canon-host.
77092         * m4/canon-host.m4: New file.
77093
77094         Module gettext.
77095         * m4/codeset.m4: New file, from gettext-0.11.5.
77096         * m4/gettext.m4: New file, from gettext-0.11.5.
77097         * m4/glibc21.m4: New file, from gettext-0.11.5.
77098         * m4/iconv.m4: New file, from gettext-0.11.5.
77099         * m4/intdiv0.m4: New file, from gettext-0.11.5.
77100         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
77101         * m4/inttypes.m4: New file, from gettext-0.11.5.
77102         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
77103         * m4/isc-posix.m4: New file, from gettext-0.11.5.
77104         * m4/lcmessage.m4: New file, from gettext-0.11.5.
77105         * m4/lib-ld.m4: New file, from gettext-0.11.5.
77106         * m4/lib-link.m4: New file, from gettext-0.11.5.
77107         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
77108         * m4/progtest.m4: New file, from gettext-0.11.5.
77109         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
77110         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
77111         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
77112
77113         Module localcharset.
77114         * m4/localcharset.m4: New file.
77115
77116         Module hard-locale.
77117         * m4/hard-locale.m4: New file.
77118
77119         Module mbswidth.
77120         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
77121         onceonly macros.
77122         * m4/mbrtowc.m4: Add comment.
77123
77124         Module memcasecmp.
77125         * m4/memcasecmp.m4: New file.
77126
77127         Module memcoll.
77128         * m4/memcoll.m4: New file.
77129
77130         Module unicodeio.
77131         * m4/unicodeio.m4: New file.
77132
77133         Module rpmatch.
77134         * m4/rpmatch.m4: New file.
77135
77136         Module yesno.
77137         * m4/yesno.m4: New file.
77138
77139         Module exitfail.
77140         * m4/exitfail.m4: New file.
77141
77142         Module c-stack.
77143         * m4/c-stack.m4 (gl_C_STACK): New macro.
77144         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
77145
77146         Module error.
77147         * m4/error.m4 (gl_ERROR): New macro.
77148         (jm_PREREQ_ERROR): Use onceonly macros.
77149
77150         Module fatal.
77151         * m4/fatal.m4: New file.
77152
77153         Module getloadavg.
77154         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
77155         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
77156
77157         Module getpagesize.
77158         * m4/getpagesize.m4: New file.
77159
77160         Module getusershell.
77161         * m4/getusershell.m4: New file.
77162
77163         Module physmem.
77164         * m4/physmem.m4: New file.
77165
77166         Module posixver.
77167         * m4/posixver.m4: New file.
77168
77169         Module quotearg.
77170         * m4/quotearg.m4: New file.
77171
77172         Module quote.
77173         * m4/quote.m4: New file.
77174
77175         Module readutmp.
77176         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
77177
77178         Module sig2str.
77179         * m4/sig2str.m4: New file.
77180
77181         Other.
77182         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
77183         ulonglong.m4.
77184         * m4/intmax_t.m4: New file.
77185         * m4/d-type.m4: Indentation.
77186         * m4/jm-macros.m4: Update.
77187         * m4/prereq.m4 (jm_PREREQ): Update.
77188         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
77189         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
77190         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
77191         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
77192         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
77193         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
77194         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
77195         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
77196         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
77197         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
77198         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
77199         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
77200         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
77201         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
77202         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
77203         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
77204         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
77205         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
77206         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
77207
77208 2002-12-24  Bruno Haible  <bruno@clisp.org>
77209
77210         * MODULES.txt: Update according to m4/ changes.
77211
77212         Module gettext.
77213         * config.rpath: New file, from gettext-0.11.5.
77214
77215         * modules/*: New module descriptions.
77216         * gnulib-tool: New file.
77217         * MODULES.html.sh: New file.
77218
77219 2002-12-21  Karl Berry  <karl@gnu.org>
77220
77221         * doc/fdl.texi: update to version 1.2.
77222
77223 2002-12-19  Karl Berry  <karl@gnu.org>
77224
77225         * config/config.guess: update from prep.
77226
77227 2002-12-18  Bruno Haible  <bruno@clisp.org>
77228
77229         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
77230         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
77231
77232 2002-12-17  Bruno Haible  <bruno@clisp.org>
77233
77234         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
77235         stdlib.h, string.h.
77236
77237 2002-12-17  Bruno Haible  <bruno@clisp.org>
77238
77239         * lib/canon-host.c (strdup): Remove unused declaration.
77240
77241         * lib/fsusage.c: Include full_read.h.
77242         (get_fs_usage): Use full_read instead of safe_read.
77243
77244         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
77245
77246 2002-12-12  Karl Berry  <karl@gnu.org>
77247
77248         * config/config.guess: update from prep.
77249
77250 2002-12-11  Bruno Haible  <bruno@clisp.org>
77251
77252         * m4/setenv.m4: New file, from gettext-0.11.5.
77253
77254 2002-12-11  Bruno Haible  <bruno@clisp.org>
77255
77256         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
77257         not unsetenv().
77258         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
77259         modifications:
77260
77261         2002-12-11  Bruno Haible  <bruno@clisp.org>
77262
77263                 * setenv.c (alloca): Fall back to malloc.
77264                 (freea): New macro.
77265                 (setenv): Use freea() to free memory allocated with alloca().
77266
77267         2002-11-13  Bruno Haible  <bruno@clisp.org>
77268
77269                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
77270                 function declarations.
77271                 * unsetenv.c (unsetenv): Likewise.
77272
77273         2002-03-04  Bruno Haible  <bruno@clisp.org>
77274
77275                 Portability to AIX 4.3.3.
77276                 * unsetenv.c: New file, extracted from setenv.c.
77277                 * setenv.c: Move the unsetenv() function to unsetenv.c.
77278
77279         2001-12-20  Bruno Haible  <bruno@clisp.org>
77280
77281                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
77282                 use malloc instead. For SunOS 4.
77283
77284         2001-12-11  Bruno Haible  <bruno@clisp.org>
77285
77286                 * setenv.c: Declare alloca.
77287                 (compar_fn_t): New typedef.
77288                 (KNOWN_VALUE, STORE_VALUE): Use it.
77289
77290         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
77291         setenv.h.
77292
77293 2002-12-10  Paul Eggert  <eggert@twinsun.com>
77294
77295         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
77296         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
77297         Choose values that are less likely to collide with system fnmatch
77298         options.
77299         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
77300         defined (e.g., a pure POSIX system).
77301         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
77302         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
77303
77304 2002-12-06  Paul Eggert  <eggert@twinsun.com>
77305
77306         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
77307         a pain in practice to deal with generated m4 files.  This change
77308         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
77309
77310         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
77311         and jm-glibc-io.m4, as they are no longer a special case.
77312         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
77313         kludge and the auto-generation stuff.  Check only whether the
77314         functions are declared, not whether they exist, since older hosts
77315         that don't declare the functions can't use the optimization anyway.
77316
77317 2002-12-06  Jim Meyering  <jim@meyering.net>
77318
77319         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
77320
77321         Merge in changes from libc's misc/error.c, in preparation
77322         for the merge of gnulib's changes back into libc.
77323
77324         * lib/error.c (_): Define only if not already defined.
77325         Move definition to follow all #include directives.
77326         Include unlocked-io.h only if !_LIBC.
77327         [_LIBC]: Include <libio/libioP.h>.
77328         [USE_IN_LIBIO]: Include <libio/iolibio.h>
77329         (fflush): Tweak definition to use INTUSE.
77330         (putc): Define.
77331
77332 2002-12-05  Paul Eggert  <eggert@twinsun.com>
77333
77334         * lib/alloca.c [defined emacs]: Include "lisp.h".
77335         (xalloc_die) [defined emacs]: New macro.
77336         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
77337         [! defined emacs]: Include <xalloc.h>.
77338         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
77339         (pointer): Typedef to POINTER_TYPE *.
77340         (malloc): Remove decl; we now always use xmalloc.
77341         (alloca): Use old-style definition, since Emacs needs this.
77342         Check for arithmetic overflow when computing combined size.
77343
77344 2002-12-04  Paul Eggert  <eggert@twinsun.com>
77345
77346         Do not generate unlocked-io.h automatically, since it's easier to
77347         maintain it by hand.
77348
77349         * lib/unlocked-io.h: New file, from GNU diffutils,
77350         but with proper copyright notice and attribution.
77351         * lib/gen-uio: Remove.
77352         * lib/Makefile.am: Add copyright notice.
77353         (libfetish_a_SOURCES): Add unlocked-io.h.
77354         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
77355         (DISTCLEANFILES, io_functions): Remove macros.
77356         (EXTRA_DIST): Remove gen_uio.
77357         (unlocked-io.h): Remove rule.
77358
77359 2002-12-04  Jim Meyering  <jim@meyering.net>
77360
77361         Reflect the fact that stat.c and lstat.c are no longer generated.
77362         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
77363         (DISTCLEANFILES): Likewise.
77364         (EXTRA_DIST): Likewise.
77365         (all_local): Don't depend on stat.c or lstat.c.
77366         (stat.c, lstat.c): Remove rules.
77367         (EXTRA_DIST): Remove xstat.in.
77368
77369         * lib/xstat.in: Remove file.  Contents moved into stat.c.
77370         * lib/stat.c: New file.  Contents mostly from xstat.in.
77371         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
77372         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
77373
77374         * lib/safe-read.c: Rework so that it may serve to define safe_write,
77375         too.
77376         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
77377
77378 2002-12-03  Jim Meyering  <jim@meyering.net>
77379
77380         * lib/safe-read.c, safe-write.c: Change variable names and comments,
77381         but not semantics, to minimize the differences between these two files.
77382         (safe_read): Change comment to mention SAFE_READ_ERROR.
77383
77384         * lib/safe-read.c (IS_EINTR): Define.
77385         (safe_read): Use IS_EINTR in place of in-function cpp directives.
77386
77387 2002-12-02  Jim Meyering  <jim@meyering.net>
77388
77389         * lib/safe-read.c (EINTR): Define.
77390         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77391         (INT_MAX): Provide fallback.
77392         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
77393
77394         * lib/safe-read.h (SAFE_READ_ERROR): Define.
77395
77396 2002-12-02  Bruno Haible  <bruno@clisp.org>
77397
77398         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
77399         Define, taken from safe-read.c.
77400         (INT_MAX): Provide fallback.
77401         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
77402         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
77403
77404         * lib/safe-read.c (EINTR): Remove definition.
77405         (safe_read): Don't use EINTR if it is absent.
77406
77407 2002-12-01  Jim Meyering  <jim@meyering.net>
77408
77409         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
77410         zero.
77411         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
77412
77413 2002-11-27  Paul Eggert  <eggert@twinsun.com>
77414
77415         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
77416         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
77417         with `if (! (value < limit)) abort ();', for readability.
77418
77419 2002-11-26  Karl Berry  <karl@gnu.org>
77420
77421         * lib/strdup.c: copy from libc again, with jim's ok.
77422         * lib/.cppi-disable: re-add strdup.c
77423
77424 2002-11-25  Karl Berry  <karl@gnu.org>
77425
77426         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
77427         instead of "strtol.c".
77428
77429 2002-11-25  Karl Berry  <karl@gnu.org>
77430
77431         * config/install-sh: update from automake for variable quoting, $0 in
77432         error msgs, etc.
77433
77434         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
77435         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
77436         entry.
77437
77438 2002-11-25  Jim Meyering  <jim@meyering.net>
77439
77440         * lib/mktime.c: Sync from libc, now that it has the latest fix.
77441
77442 2002-11-24  Karl Berry  <karl@gnu.org>
77443
77444         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
77445         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
77446
77447 2002-11-24  Jim Meyering  <jim@meyering.net>
77448
77449         Update from coreutils:
77450
77451         * lib/mktime.c: Merge in changes from libc.
77452
77453         Avoid a link-time failure on some Linux systems.
77454         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
77455         (otherwise).
77456         (__mon_yday): Declare with the STATIC attribute.
77457         (__mktime_internal): Likewise.
77458         Based on a report from Greg Schafer.
77459
77460 2002-11-23  Jim Meyering  <jim@meyering.net>
77461
77462         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
77463         Use `unsigned', not `int', as type of index.
77464
77465         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
77466
77467         * lib/fsusage.c: Remove unneeded parentheses around operands of
77468         `defined'.
77469
77470 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77471
77472         * lib/quotearg.h: Allow multiple inclusion by surrounding with
77473         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
77474         so that we can be included first.
77475         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
77476         * lib/quotearg.c: Include quotearg.h immediately after config.h.
77477         No need to include stddef.h or sys/types.h any more.
77478         Surround local include files with "", not "<>".
77479         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
77480         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
77481         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
77482         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
77483         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
77484         (ISPRINT): Remove; no longer needed now that we assume C89.
77485
77486         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
77487         Preserve errno.
77488
77489         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
77490         quotearg_char): Use SIZE_MAX rather than
77491         (size_t) -1 when we are talking about "infinity".
77492
77493         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
77494
77495 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77496
77497         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
77498         hint that one should use `if (! x) abort ();' rather than `assert
77499         (x);', and anyway it's one less thing to worry about configuring.
77500         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
77501         hash_rehash, hash_insert): Use abort rather than assert.
77502
77503 2002-11-22  Bruno Haible  <bruno@clisp.org>
77504
77505         * lib/safe-read.h: Assume C89. Add comments.
77506         (safe_read): Change return type to size_t.
77507         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
77508         byte counts > SSIZE_MAX correctly.
77509         * lib/safe-write.h: New file.
77510         * lib/safe-write.c: New file.
77511         * lib/full-read.h: New file.
77512         * lib/full-read.c: New file.
77513         * lib/full-write.h: Assume C89. Add comments.
77514         * lib/full-write.c: Include safe-write.h.
77515         (full_write): Rewritten to use safe_write.
77516         Suggested by Jim Meyering and Paul Eggert.
77517
77518 2002-11-21  Jim Meyering  <jim@meyering.net>
77519
77520         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
77521
77522         Merge in changes from the coreutils.
77523
77524         2002-09-25  Paul Eggert  <eggert@twinsun.com>
77525         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
77526         <stdint.h>.
77527         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
77528         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
77529         int.  Work more efficiently if X is the same width as uintmax_t.
77530         Do not compare X to -1, to avoid bogus compiler warning.
77531         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
77532         Don't assume that f_frsize and f_bsize are the same type.
77533
77534         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
77535         warning on FreeBSD.
77536
77537         * lib/makepath.c (make_path): Restore umask *before* creating the final
77538         component.
77539         (make_path): Minor reformatting.
77540
77541         * lib/xmalloc.c: Adjust to work with new autoconf macros,
77542         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
77543         HAVE_MALLOC/HAVE_REALLOC.
77544
77545         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
77546         dummy ones.  At least on GNU/Linux systems, `auto' means something
77547         else.
77548         From Michael Stone.
77549
77550 2002-11-21  Bruno Haible  <bruno@clisp.org>
77551
77552         Remove case insensitive option matching.
77553         * lib/argmatch.h (argcasematch): Remove declaration.
77554         (ARGCASEMATCH): Remove macro.
77555         (__xargmatch_internal): Remove case_sensitive argument.
77556         (XARGMATCH): Update.
77557         (XARGCASEMATCH): Remove macro.
77558         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
77559         case_sensitive argument.
77560         (argcasematch): Remove function.
77561         (__xargmatch_internal): Remove case_sensitive argument.
77562         (main): Use XARGMATCH instead of XARGCASEMATCH.
77563
77564         * lib/xmalloc.c: Change compile-time error message. Add comment about
77565         required autoconf version.
77566
77567 2002-11-20  Paul Eggert  <eggert@twinsun.com>
77568
77569         Merge argmatch cleanups from Bison.  Assume C89.
77570
77571         * lib/argmatch.c: Include config.h here, not in argmatch.h.
77572         Include stdlib.h, for EXIT_FAILURE.
77573         Always include <string.h>, since we assume C89.
77574         (EXIT_FAILURE): Remove pre-C89 bug workaround.
77575         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
77576         Include <stddef.h> instead, since it's all we need for size_t.
77577         (PARAMS): Remove.  All uses removed.
77578         (ARRAY_CARDINALITY): Do not bother to #undef.
77579         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
77580         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77581         Remove unnecessary parentheses.
77582         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77583         Insert necessary parentheses.
77584         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
77585         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
77586
77587 2002-11-19  Bruno Haible  <bruno@clisp.org>
77588
77589         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
77590         * lib/mbswidth.h: Include <stddef.h>, for size_t.
77591
77592         * lib/mbswidth.h (PARAMS): Remove macro.
77593         (mbswidth, mbsnwidth): Use ANSI C function declarations.
77594         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
77595
77596         * lib/gcd.h (PARAMS): Remove macro.
77597         (gcd): Use ANSI C function declarations.
77598         * lib/gcd.c (gcd): Likewise.
77599
77600 2002-11-15  Bruno Haible  <bruno@clisp.org>
77601
77602         * lib/strcspn.c: Include <stddef.h>.
77603         (strcspn): Use ANSI C function declaration. Change return type to
77604         size_t. Use NULL.
77605         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
77606         (strpbrk): Use NULL.
77607         * lib/strpbrk.h (PARAMS): Remove macro.
77608         (strpbrk): Use ANSI C function declaration.
77609         * lib/strstr.c: Don't include <sys/types.h>.
77610         * lib/strstr.h (PARAMS): Remove macro.
77611         (strstr): Use ANSI C function declarations.
77612
77613 2002-11-14  Karl Berry  <karl@gnu.org>
77614
77615         * config/mkinstalldirs: `do' on separate line, instead of
77616         `for var; do'.
77617
77618 2002-11-06  Bruno Haible  <bruno@clisp.org>
77619
77620         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
77621         * lib/gcd.c (gcd): Likewise.
77622
77623 2002-11-05  Bruno Haible  <bruno@clisp.org>
77624
77625         * lib/gcd.h: New file, from gettext-0.11.5.
77626         * lib/gcd.c: New file, from gettext-0.11.5.
77627
77628 2002-11-05  Bruno Haible  <bruno@clisp.org>
77629
77630         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77631         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77632         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77633         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77634
77635         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
77636         <libintl.h>.
77637         * lib/makepath.c: Include gettext.h instead of <locale.h> and
77638         <libintl.h>.
77639
77640         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
77641         * lib/human.c: Include gettext.h instead of <libintl.h>.
77642         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
77643         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
77644         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
77645         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
77646         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
77647         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
77648         (textdomain): Remove definition.
77649         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
77650
77651         * lib/long-options.c: Remove include of <libintl.h> and definition of
77652         _.
77653         * lib/same.c: Remove include of <libintl.h> and definition of _.
77654
77655 2002-11-04  Owen Taylor  <otaylor@redhat.com>
77656
77657         * lib/config.charset: A few additions for Solaris.
77658
77659 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77660
77661         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
77662         * lib/localcharset.c (locale_charset): Declare as extern "C".
77663
77664 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77665
77666         * lib/config.charset: msdos in uk_UA uses CP1125.
77667
77668 2002-11-04  Bruno Haible  <bruno@clisp.org>
77669
77670         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
77671         * lib/strcase.h: New file, from GNU gettext-0.11.5.
77672         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
77673         * lib/strstr.h: New file, from GNU gettext-0.11.5.
77674         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
77675
77676 2002-11-04  Bruno Haible  <bruno@clisp.org>
77677
77678         * lib/localcharset.c (locale_charset): Don't return an empty string.
77679
77680 2002-11-04  Bruno Haible  <bruno@clisp.org>
77681
77682         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
77683         aliases.
77684
77685 2002-11-04  Bruno Haible  <bruno@clisp.org>
77686
77687         * lib/config.charset: Update for newest glibc. Add canonical names
77688         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
77689
77690 2002-11-04  Bruno Haible  <bruno@clisp.org>
77691
77692         * lib/config.charset: Add support for NetBSD.
77693
77694 2002-11-04  Bruno Haible  <bruno@clisp.org>
77695
77696         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
77697
77698 2002-11-01  Bruno Haible  <bruno@clisp.org>
77699
77700         * configure.in: Add AC_CONFIG_AUX_DIR call.
77701         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
77702         test/Makefile.
77703         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
77704
77705 2002-09-28  Karl Berry  <karl@gnu.org>
77706
77707         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
77708         installed automake until the next release, since changes have been
77709         made.
77710
77711 2002-09-25  Karl Berry  <karl@gnu.org>
77712
77713         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
77714         * lib/getopt*: copy from libc/posix.
77715         * lib/gettext.h: copy from gettext.
77716         * lib/.cppi-disable: add strdup.c, gettext.h.
77717
77718 2002-09-25  Karl Berry  <karl@gnu.org>
77719
77720         * config/srclist.txt: enable gettext.h check.
77721         * config/config.{guess,sub}: update from prep.
77722         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
77723                 from automake 1.6.3.
77724         See srclist*.
77725
77726 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
77727
77728         * regex.c (PATFETCH): Remove the translating fetch.
77729         (PATFETCH_RAW): Rename to PATFETCH.
77730         (set_image_of_range): New fun.
77731         (SET_RANGE_TABLE_WORK_AREA): Use it.
77732         (regex_compile): Don't translate the pattern chars so eagerly.
77733         Only do it when inserting an `exactn' bytecode or when handling
77734         a char-range.
77735         (mutually_exclusive_p): Avoid empty statement.
77736
77737 2002-07-06  Jim Meyering  <meyering@lucent.com>
77738
77739         * m4/README: Don't mention Makefile.am.in.
77740         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
77741
77742 2002-07-01  Jim Meyering  <meyering@lucent.com>
77743
77744         * lib/c-stack.c: Include sys/time.h.
77745         From Volker Borchert.
77746
77747 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77748
77749         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
77750
77751 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77752
77753         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
77754         New macro.  Use it uniformly instead of
77755         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
77756         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
77757         reported by Vin Shelton.
77758
77759 2002-06-22  Paul Eggert  <eggert@twinsun.com>
77760
77761         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
77762         Do not assume SA_SIGINFO behavior.
77763         Bug reported by Jim Meyering on NetBSD 1.5.2.
77764
77765 2002-06-22  Jim Meyering  <meyering@lucent.com>
77766
77767         * m4/c-stack.m4: New file, from diffutils-2.8.2.
77768         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
77769
77770         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
77771         now that configure.ac uses AC_GNU_SOURCE.
77772         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
77773         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
77774
77775         Update to latest tools.  Suggestions from Paul Eggert.
77776         * m4/stdbool.m4: New file, from diffutils-2.8.2.
77777         * m4/gnu-source.m4: Update from diffutils-2.8.2.
77778         * m4/fnmatch.m4: Likewise.
77779         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
77780         to AC_HEADER_STDBOOL
77781
77782 2002-06-22  Jim Meyering  <meyering@lucent.com>
77783
77784         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
77785         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
77786
77787 2002-06-22  Jim Meyering  <meyering@lucent.com>
77788
77789         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
77790
77791         * lib/exitfail.c, exitfail.h: Likewise.
77792         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
77793
77794         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
77795         of fnmatch.h.
77796         (EXTRA_DIST): Add fnmatch_loop.c.
77797         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
77798
77799         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
77800         * lib/fnmatch.c: Update from diffutils-2.8.2.
77801         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
77802         * lib/fnmatch.h: Remove file.
77803
77804 2002-06-21  Jim Meyering  <meyering@lucent.com>
77805
77806         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
77807         * m4/mbrtowc.m4: Likewise.
77808
77809         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
77810         * m4/mbswidth.m4: Reflect name change:
77811         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
77812         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77813
77814         * m4/lib-link.m4: Update from gettext-0.11.2.
77815         * m4/gettext.m4: Likewise.
77816
77817         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
77818         From Alfred M. Szmidt.
77819
77820 2002-06-18  Paul Eggert  <eggert@twinsun.com>
77821
77822         * lib/file-type.h: Report an error if neither S_ISREG nor
77823         S_IFREG is defined, instead of using a test specific to glibc
77824         2.2.  This should be safe, since POSIX requires S_ISREG and
77825         Unix Version 7 had S_IFREG.  We don't need to check for
77826         <sys/types.h> since we don't use any symbols that it defines.
77827
77828 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
77829
77830         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
77831         $@-t, so that each temporary file name is unique and valid in the first
77832         8 characters, for operation under DOS.
77833
77834 2002-06-15  Paul Eggert  <eggert@twinsun.com>
77835
77836         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
77837
77838 2002-06-15  Jim Meyering  <meyering@lucent.com>
77839
77840         Work even with DJGPP 2.03, which lacks support for symlinks.
77841         From Richard Dawe.
77842         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
77843         is defined.
77844         * lib/lchown.c (S_ISLNK): Likewise.
77845
77846 2002-06-15  Jim Meyering  <meyering@lucent.com>
77847
77848         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
77849         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
77850         have been included before this file.
77851
77852 2002-06-14  Jim Meyering  <meyering@lucent.com>
77853
77854         * lib/file-type.h: Use the version from diffutils-2.8.2.
77855         * lib/file-type.c: Likewise.
77856
77857 2002-06-07  Jim Meyering  <meyering@lucent.com>
77858
77859         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
77860         They're needed at least for NetBSD 1.5.2.
77861         ($statxfs_includes): Include those same headers.
77862         ($statxfs_includes): Include sys/vfs.h if available.
77863         ($statxfs_includes): Likewise for sys/statvfs.h.
77864         Check for the following members in both structs statfs and statvfs:
77865         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
77866
77867 2002-06-01  Jim Meyering  <meyering@lucent.com>
77868
77869         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
77870         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
77871
77872 2002-05-28  Jim Meyering  <meyering@lucent.com>
77873
77874         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
77875         Reported by Volker Borchert.
77876
77877 2002-05-27  Jim Meyering  <meyering@lucent.com>
77878
77879         Fix a problem seen only on nonconforming systems whereby ls.c's
77880         use of localtime, and then of gettimeofday would cause trouble:
77881         the localtime call used to initialize rpl_gettimeofday's save
77882         mechanism would clobber ls's current local time information so
77883         that in any long listing the first file would always be listed
77884         with date 1970-01-01.  Analysis by Volker Borchert.
77885
77886         * lib/gettimeofday.c (localtime): Undefine.
77887         (rpl_localtime): New function.
77888
77889 2002-05-27  Jim Meyering  <meyering@lucent.com>
77890
77891         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
77892         localtime.
77893
77894         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
77895         use the replacement function; it wouldn't resolve at link time.
77896         Reported by Volker Borchert.
77897
77898 2002-05-22  Jim Meyering  <meyering@lucent.com>
77899
77900         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
77901         file-type.h.
77902         * lib/file-type.h: New file.
77903         * lib/file-type.c (file_type): New file/function.  Extracted from
77904         diffutils.
77905
77906 2002-04-30  Jim Meyering  <meyering@lucent.com>
77907
77908         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
77909
77910 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77911
77912         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
77913
77914 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77915
77916         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
77917         Do not check for alloca.h (no longer used) or stdbool.h (was never
77918         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
77919
77920 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77921
77922         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
77923
77924 2002-04-29  Jim Meyering  <meyering@lucent.com>
77925
77926         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
77927         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
77928         Use AC_FUNC_STRNLEN here instead.
77929
77930         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
77931         With autoconf-2.53a, it's part of AC_PROG_CC.
77932
77933 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77934
77935         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
77936         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
77937
77938 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77939
77940         * lib/sig2str.h, lib/sig2str.c: New files.
77941         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
77942
77943 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77944
77945         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
77946         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
77947         of 127, since 64 is the largest conceivable number for ancient
77948         nonstandard hosts.
77949         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
77950
77951 2002-04-28  Jim Meyering  <meyering@lucent.com>
77952
77953         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
77954
77955 2002-04-24  Jim Meyering  <meyering@lucent.com>
77956
77957         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
77958         (jm_PREREQ): Use it.
77959
77960         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
77961         mach/mach.h fcntl.h.
77962         Check for this function: setlocale.
77963
77964 2002-04-24  Jim Meyering  <meyering@lucent.com>
77965
77966         * lib/gettext.h: New file, from Gettext.
77967         * lib/Makefile.am (INCLUDES): Remove -I../intl.
77968         (libfetish_a_SOURCES): Add gettext.h.
77969
77970 2002-04-16  Jim Meyering  <meyering@lucent.com>
77971
77972         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
77973         ut_pid, ut_id, ut_exit.
77974
77975 2002-04-16  Jim Meyering  <meyering@lucent.com>
77976
77977         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
77978         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
77979         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
77980
77981 2002-04-12  Jim Meyering  <meyering@lucent.com>
77982
77983         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
77984         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
77985         existence of the getmntinfo function.  Needed for Darwin 5.3.
77986
77987         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
77988         This is necessary at least on Darwin 5.3.
77989
77990         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
77991         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
77992         strnlen.o in the library, and that makes some versions of ranlib
77993         object.
77994
77995 2002-04-12  Jim Meyering  <meyering@lucent.com>
77996
77997         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
77998
77999 2002-04-09  Jim Meyering  <meyering@lucent.com>
78000
78001         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
78002         to be more precise.  Rather than saying we're checking whether the
78003         function `works', say what we're testing.
78004         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
78005         Reported by Bruno Haible.
78006
78007 2002-03-10  Jim Meyering  <meyering@lucent.com>
78008
78009         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
78010         Suggestion from Santiago Vila.
78011
78012 2002-03-08  Jim Meyering  <meyering@lucent.com>
78013
78014         * lib/rename.c: Mention that this wrapper is needed also on
78015         mips-dec-ultrix4.4 systems.
78016
78017 2002-03-02  Jim Meyering  <meyering@lucent.com>
78018
78019         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
78020         not HAVE_CLOCK_SETTIME.
78021
78022 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78023
78024         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
78025         Check for clock_settime.
78026
78027 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78028
78029         * lib/nanosleep.h: Rename to....
78030         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
78031
78032         * lib/gettime.c: New file.
78033         * lib/settime.c: New file.
78034         * lib/stime.c: Remove.
78035
78036         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
78037         timespec.h.  Remove nanosleep.h.
78038
78039 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78040
78041         * m4/acl.m4: New file.
78042         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
78043         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
78044
78045 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78046
78047         * lib/acl.c, lib/acl.h: New files.
78048         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
78049
78050 2002-02-24  Jim Meyering  <meyering@lucent.com>
78051
78052         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
78053         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
78054         cause trouble.  Reported by Nelson Beebe.
78055
78056 2002-02-23  Paul Eggert  <eggert@twinsun.com>
78057
78058         * lib/path-concat.c (xpath_concat): Reorder code to pacify
78059         compilers that don't know that xalloc_die never returns.
78060
78061 2002-02-20  Jim Meyering  <meyering@lucent.com>
78062
78063         * lib/getdate.c: Regenerate using bison-1.33.
78064
78065 2002-02-17  Jim Meyering  <meyering@lucent.com>
78066
78067         * config/config.guess (main): Don't use `head -1'; it's no longer
78068         portable. Use `sed 1q' instead.
78069
78070 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
78071
78072         * m4/codeset.m4: Upgrade to gettext-0.11.
78073         * m4/gettext.m4: Upgrade to gettext-0.11.
78074         * m4/glibc21.m4: Upgrade to gettext-0.11.
78075         * m4/iconv.m4: Upgrade to gettext-0.11.
78076         * m4/isc-posix.m4: Upgrade to gettext-0.11.
78077         * m4/lcmessage.m4: Upgrade to gettext-0.11.
78078         * m4/lib-ld.m4: New file, from gettext-0.11.
78079         * m4/lib-link.m4: New file, from gettext-0.11.
78080         * m4/lib-prefix.m4: New file, from gettext-0.11.
78081         * m4/progtest.m4: Upgrade to gettext-0.11.
78082
78083 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78084
78085         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
78086         (jm_PREREQ): Use it.
78087
78088 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78089
78090         * lib/posixver.c, lib/posixver.h: New files.
78091         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78092
78093 2002-02-02  Paul Eggert  <eggert@twinsun.com>
78094             Bruno Haible  <bruno@clisp.org>
78095
78096         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
78097         (fwrite_success_callback): New declaration.
78098         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
78099         print_unicode_char. Call failure callback instead of error.
78100         (fwrite_success_callback): New function.
78101         (exit_failure_callback): New function.
78102         (fallback_failure_callback): New function.
78103         (print_unicode_char): Call unicode_to_mb.
78104
78105 2002-01-26  Jim Meyering  <meyering@lucent.com>
78106
78107         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
78108         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
78109
78110 2002-01-26  Jim Meyering  <meyering@lucent.com>
78111
78112         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
78113
78114 2002-01-22  Paul Eggert  <eggert@twinsun.com>
78115
78116         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
78117
78118 2002-01-22  Jim Meyering  <meyering@lucent.com>
78119
78120         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
78121         Otherwise, some versions of automake would omit the rule that makes
78122         Makefile from Makefile.in.
78123
78124 2002-01-21  Paul Eggert  <eggert@twinsun.com>
78125
78126         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
78127         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78128         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
78129         (memcoll): Set errno to zero if there is no error.
78130
78131         * lib/quotearg.c (quotearg_buffer_restyled):
78132         Fix bug with quoting buffers containing NUL when backslashing escapes.
78133         This bug was exposed by the other changes in this patch.
78134         (quotearg_n_options): New arg ARGSIZE.
78135         All callers changed.
78136         (quoting_options_from_style): New function.
78137         (quotearg_n_style): Use it.
78138         (quotearg_n_style_mem): New function.
78139
78140         * lib/quotearg.h (quotearg_n_style_mem): New function.
78141
78142 2002-01-19  Jim Meyering  <meyering@lucent.com>
78143
78144         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
78145         Remove useless quotes: DF_PROG="df".
78146         * m4/strnlen.m4: New file.
78147
78148 2002-01-16  Paul Eggert  <eggert@twinsun.com>
78149
78150         * lib/backupfile.c (ISDIGIT): Comment fix.
78151         * lib/getdate.y (ISDIGIT): Likewise.
78152         * lib/posixtm.c (ISDIGIT, year): Likewise.
78153         * lib/strverscmp.c (ISDIGIT): Likewise.
78154         * lib/userspec.c (ISDIGIT): Likewise.
78155
78156 2002-01-16  Jim Meyering  <meyering@lucent.com>
78157
78158         * lib/getdate.y: Add three semicolons, each just before a closing
78159         brace. Bison (as of version 1.31) no longer papers over that mistake.
78160
78161 2002-01-05  Jim Meyering  <meyering@lucent.com>
78162
78163         * lib/version-etc.c (version_etc_copyright): Update copyright year.
78164
78165 2001-12-19  Paul Eggert  <eggert@twinsun.com>
78166
78167         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
78168         not silently exit merely because the output buffer happens to
78169         have nothing pending.
78170
78171 2001-12-18  Paul Eggert  <eggert@twinsun.com>
78172
78173         See the big note in ../ChangeLog.
78174         * lib/human.c (suffixes): Prefer K to k for 1024.
78175         (generate_suffix_backwards): New function.
78176         (human_readable_inexact): Use it.
78177         * lib/xstrtol.c (__xstrtol): If there is no number but there
78178         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
78179         Accept 'K' as well as 'k'.
78180
78181 2001-12-15  Jim Meyering  <meyering@lucent.com>
78182
78183         * lib/regex.h (__restrict_arr): Update from libc.
78184
78185         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
78186         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
78187         (STREQ): Define.
78188
78189 2001-12-14  Jim Meyering  <meyering@lucent.com>
78190
78191         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
78192         Suggestion from Bruno Haible.
78193
78194 2001-12-10  Jim Meyering  <meyering@lucent.com>
78195
78196         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
78197         xrealloc, Instead, include "xalloc.h".
78198         (initbuffer): Don't cast xmalloc return value to char*.
78199         (readline): Reword comment.
78200         Don't cast xrealloc return value to char*
78201         Return NULL, not 0.
78202
78203 2001-12-09  Jim Meyering  <meyering@lucent.com>
78204
78205         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
78206         about `signed and unsigned type in conditional expression'.
78207         * lib/posixtm.c (posix_time_parse): Likewise.
78208
78209         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
78210
78211         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
78212         to avoid a pedantic warning.
78213
78214         * lib/getstr.c: Don't include assert.h.
78215         (getstr): Remove warning-evoking assertions.
78216         Return -1 if offset parameter is out of bounds.
78217         Change the type of a local from int to size_t.
78218
78219         * lib/strftime.c (my_strftime_localtime_r): Include this function
78220         definition in the `#if ! HAVE_TM_GMTOFF' block.
78221
78222         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
78223         Include xalloc.h instead.
78224
78225 2001-12-02  Jim Meyering  <meyering@lucent.com>
78226
78227         * lib/tempname.c: Don't declare getenv, thus reverting the change of
78228         2001-11-18.  It's no longer necessary, now that stdlib.h is always
78229         included.
78230
78231         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
78232         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
78233
78234 2001-11-30  Akim Demaille  <akim@epita.fr>
78235
78236         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
78237         before being defined.
78238
78239 2001-11-27  Paul Eggert  <eggert@twinsun.com>
78240
78241         * lib/quotearg.h (quotearg_n, quotearg_n_style):
78242         First arg is int, not unsigned.
78243         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
78244         (SIZE_MAX, UINT_MAX): New macros.
78245         (quotearg_n_options): Abort if N is negative.
78246         Avoid overflow check on hosts where size_t is 64 bits and int
78247         is 32 bits, as overflow is impossible there.
78248         Fix off-by-one typo that caused unnecessary reallocation.
78249
78250 2001-11-27  Jim Meyering  <meyering@lucent.com>
78251
78252         * lib/tempname.c: Merge with version from libc.
78253         * lib/regex.c: Likewise.
78254
78255         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
78256         systems for which STDC_HEADERS is 0, it was not included, resulting in
78257         a warning about an integer-to-pointer conversion problem with getenv.
78258         Reported by Volker Borchert.
78259
78260 2001-11-26  Jim Meyering  <meyering@lucent.com>
78261
78262         * lib/gtod.h: Remove file.
78263         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
78264         * lib/gettimeofday.c: Don't include gtod.h.
78265         (GTOD_init): Remove function.
78266         (rpl_gettimeofday): Do its job here instead, rather than aborting.
78267         Suggestion from Volker Borchert.
78268
78269 2001-11-23  Jim Meyering  <meyering@lucent.com>
78270
78271         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
78272         it.
78273         * lib/hash.c (struct hash_table): Define it here instead.
78274
78275 2001-11-22  Jim Meyering  <meyering@lucent.com>
78276
78277         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
78278
78279 2001-11-20  Jim Meyering  <meyering@lucent.com>
78280
78281         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
78282         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
78283
78284 2001-11-19  Jim Meyering  <meyering@lucent.com>
78285
78286         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
78287         directory.  Use "conftestXXXXXX" as the template.
78288         Suggestion from Paul Eggert.
78289
78290         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
78291         immediately, so the test doesn't mistakenly hit the max-open-files
78292         limit.
78293
78294 2001-11-18  Paul Eggert  <eggert@twinsun.com>
78295
78296         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
78297         (TEMPORARIES): New macro.
78298         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
78299         removes an artificial limitation (e.g. HP-UX 10.20, where
78300         TMP_MAX is 17576).
78301
78302 2001-11-18  Jim Meyering  <meyering@lucent.com>
78303
78304         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
78305
78306 2001-11-18  Jim Meyering  <meyering@lucent.com>
78307
78308         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
78309         on SunOS 4.
78310
78311         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
78312         files will be created before anything else.
78313
78314 2001-11-17  Paul Eggert  <eggert@twinsun.com>
78315
78316         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
78317         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
78318
78319 2001-11-17  Jim Meyering  <meyering@lucent.com>
78320
78321         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
78322         Prompted by a report from Bob Proulx.
78323
78324         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
78325         Instead, require UTILS_FUNC_MKSTEMP.
78326
78327 2001-11-17  Jim Meyering  <meyering@lucent.com>
78328
78329         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
78330         Now, that's done as part of AC_FUNC_STRTOD.
78331
78332 2001-11-17  Jim Meyering  <meyering@lucent.com>
78333
78334         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
78335         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
78336         rather than group writable.  Patch by Juan F. Codagnone.
78337
78338         * lib/readtokens.c: Remove explicit declarations of xmalloc and
78339         xrealloc, Instead, include "xalloc.h".
78340
78341         * lib/mountlist.c: Include unlocked-io.h after all system headers.
78342         Remove explicit declarations of xmalloc, xrealloc,
78343         and xstrdup.  Instead, include "xalloc.h".
78344
78345         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
78346         unlocked-io.h.
78347         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
78348         Likewise.
78349         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
78350
78351         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
78352         Reported by Padraig Brady.
78353
78354         * lib/mkstemp.c: #undef mkstemp.
78355         Include config.h.
78356         (rpl_mkstemp): Rename from mkstemp.
78357         Protoize.
78358
78359 2001-11-16  Jim Meyering  <meyering@lucent.com>
78360
78361         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
78362         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
78363         determine the amount of total physical memory, use pstat_getstatic.
78364         HPUX-11 doesn't define _SC_PHYS_PAGES.
78365         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
78366         If sysconf couldn't be used to determine the amount of available
78367         physical memory, use both pstat_getstatic and pstat_getdynamic.
78368         Based on a patch from Bob Proulx.
78369
78370 2001-11-10  Jim Meyering  <meyering@lucent.com>
78371
78372         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
78373         (jm_PREREQ): Use it.
78374
78375 2001-11-09  Jim Meyering  <meyering@lucent.com>
78376
78377         * m4/jm-macros.m4: Require autoconf-2.52f.
78378         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
78379         Use these AC_-prefixed names, not the AM_-prefixed ones.
78380
78381         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
78382
78383 2001-11-05  Jim Meyering  <meyering@lucent.com>
78384
78385         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
78386
78387 2001-11-04  Jim Meyering  <meyering@lucent.com>
78388
78389         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
78390         $DEFS.
78391
78392 2001-11-03  Jim Meyering  <meyering@lucent.com>
78393
78394         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
78395         of AC_DEFUN.
78396
78397         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
78398         know the name of the variable in the macro definition.
78399
78400 2001-11-03  Jim Meyering  <meyering@lucent.com>
78401
78402         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
78403         in argmatch_to_argument call.
78404
78405         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
78406         argument.
78407
78408         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
78409         e.g., a fault due to an attempt to free a NULL pointer.
78410
78411 2001-11-01  Jim Meyering  <meyering@lucent.com>
78412
78413         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
78414         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
78415
78416 2001-11-01  Jim Meyering  <meyering@lucent.com>
78417
78418         * lib/dirfd.c, lib/dirfd.h: New files.
78419         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
78420
78421         * lib/hash.c (hash_print) [TESTING]: Clean up.
78422
78423 2001-10-22  Paul Eggert  <eggert@twinsun.com>
78424
78425         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
78426         to avoid a warning if -Wall.
78427
78428 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
78429
78430         * README: New file
78431         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
78432         (per RMS's instructions, this is now the canonical source)
78433         * lgpl/, gpl/: New directories.
78434
78435 2001-10-21  Paul Eggert  <eggert@twinsun.com>
78436
78437         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
78438
78439 2001-10-21  Jim Meyering  <meyering@lucent.com>
78440
78441         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
78442         this code would end up calling gettext even in packages built
78443         with --disable-nls.
78444         * lib/getopt.c (_): Likewise.
78445         * lib/regex.c (_): Likewise.
78446
78447 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78448
78449         * m4/error.m4 (jm_PREREQ_ERROR):
78450         Do not invoke AC_CHECK_FUNCS with strerror_r, as
78451         AC_FUNC_STRERROR_R does that.
78452         Check for strerror declaration.
78453
78454         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
78455         are supposed to have them these days.
78456         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
78457         Merge changes from latest Autoconf CVS.
78458         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
78459         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
78460         POSIX decided to standardize on the int flavor of strerror_r.
78461
78462 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78463
78464         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
78465         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
78466         Use strerror_r that is only a macro, even if it is not a function.
78467         (strerror): Check for HAVE_DECL_STRERROR before declaring.
78468         (private_strerror): Use prototypes, not old-style function definition.
78469         (print_errno_message): New function.
78470         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
78471         char*-flavored one.
78472         (error_tail, error, error_at_line): Use it.
78473
78474 2001-10-11  Jim Meyering  <meyering@lucent.com>
78475
78476         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
78477         and quote_n (1, ... to avoid clobbering a buffer.
78478
78479 2001-10-05  Jim Meyering  <meyering@lucent.com>
78480
78481         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
78482         hash-pjw.h.
78483         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
78484         * lib/hash-pjw.h: New file.
78485
78486 2001-09-30  Jim Meyering  <meyering@lucent.com>
78487
78488         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
78489         `struct fsstat' has the `f_fstypename' member.
78490         Use that to define FS_TYPE, which is now used to make
78491         the getfsstat link test tighter.
78492
78493 2001-09-30  Jim Meyering  <meyering@lucent.com>
78494
78495         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
78496         Include <sys/ucred.h>, for Apple Darwin.
78497         Include sys/mount.h and sys/fs_types.h only if available.
78498         (FS_TYPE): Define.
78499         (read_filesystem_list): Use FS_TYPE.
78500
78501 2001-09-29  Paul Eggert  <eggert@twinsun.com>
78502
78503         * lib/exclude.c (excluded_filename): 0 -> false, since it's
78504         a boolean context.
78505
78506 2001-09-29  Jim Meyering  <meyering@lucent.com>
78507
78508         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78509         [one-argument getmntent function]): Include stdio.h before mntent.h.
78510         SunOS 4.1.x needs it for the declaration of `FILE'.
78511         Patch by Volker Borchert.
78512
78513         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78514         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
78515         sys/fs_types.h, and make the link-test for getfsstat guard #include
78516         directives with appropriate #if HAVE_*_H tests so that we can
78517         detect getfsstat on Apple Darwin1.3.7 systems.
78518         Reported by Nelson Beebe.
78519         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
78520
78521 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78522
78523         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78524         #defines strtoimax.  Also treat the other strto* functions
78525         like strtoimax.
78526
78527         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78528         Check for strtoul and strtoumax,
78529         as those declarations are made even in the signed case.
78530         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
78531         Likewise, for strtol and strtoimax.
78532
78533 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78534
78535         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78536         #defines strtoimax.  Also treat the other strto* functions
78537         like strtoimax.
78538
78539         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
78540         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
78541         (strtoimax, strtoumax): Do not declare if already defined as a macro.
78542
78543 2001-09-26  Jim Meyering  <meyering@lucent.com>
78544
78545         Most macros in unlocked-io.h had the wrong number of arguments.
78546         * lib/gen-uio: New script.
78547         (USE_UNLOCKED_IO): Define to 1 if not already defined.
78548         * lib/unlocked-io.hin: Remove file.
78549         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
78550         rather than trying to embed it here.
78551         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
78552         Reported by Padraig Brady.
78553
78554 2001-09-25  Volker Borchert  <bt@teknon.de>
78555
78556         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
78557         `result'.
78558
78559 2001-09-24  Jim Meyering  <meyering@lucent.com>
78560
78561         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
78562
78563 2001-09-23  Jim Meyering  <meyering@lucent.com>
78564
78565         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
78566         instead of the mere test for existence of mntent.h.  The latter
78567         would get a false-positive on AIX 3.4 systems.
78568         In the outer getmntent if-block, don't die if neither of the getmntent
78569         tests succeeds.  Instead, just fall through and continue with the
78570         remaining tests.
78571
78572 2001-09-23  Jim Meyering  <meyering@lucent.com>
78573
78574         * lib/mountlist.c: Remove useless parentheses in #if directives.
78575         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
78576         the deprecated MOUNTED symbol is no longer defined in mntent.h.
78577
78578 2001-09-22  Jim Meyering  <meyering@lucent.com>
78579
78580         * m4/gettext.m4: New file.  From gettext.
78581         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
78582         * m4/progtest.m4: Likewise
78583         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
78584         * m4/glibc21.m4: Likewise.
78585
78586         * m4/libintl.m4: Remove.  No longer used.
78587
78588 2001-09-22  Jim Meyering  <meyering@lucent.com>
78589
78590         * lib/localcharset.c: Update from latest gettext.
78591         * lib/config.charset: Likewise.
78592
78593 2001-09-20  Jim Meyering  <meyering@lucent.com>
78594
78595         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
78596         strtoimax.
78597         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
78598         strtoumax.
78599
78600 2001-09-20  Jim Meyering  <meyering@lucent.com>
78601
78602         * lib/xstrtol.c (strtoimax): Guard declaration with
78603         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
78604         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
78605         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
78606         (strtoumax): Likewise, for completeness (it wasn't necessary).
78607
78608 2001-09-17  Paul Eggert  <eggert@twinsun.com>
78609
78610         * lib/strtoimax.c (HAVE_LONG_LONG):
78611         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
78612         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
78613         to work around bug in IBM C compiler.
78614
78615 2001-09-17  Jim Meyering  <meyering@lucent.com>
78616
78617         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
78618         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
78619         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
78620         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
78621         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
78622         whenever the right hand side need not be expanded by the shell.
78623
78624 2001-09-16  Paul Eggert  <eggert@twinsun.com>
78625
78626         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
78627         library.  It's not correct, as some older glibcs are buggy.
78628         fnmatch wasn't fixed until glibc 2.2.
78629
78630         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
78631         special shell magic here.
78632
78633 2001-09-16  Jim Meyering  <meyering@lucent.com>
78634
78635         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
78636         * m4/jm-macros.m4: Require it.
78637
78638 2001-09-16  Jim Meyering  <meyering@lucent.com>
78639
78640         * lib/mkdir.c: New file.
78641
78642 2001-09-15  Jim Meyering  <meyering@lucent.com>
78643
78644         * m4/jm-macros.m4: Check for help2man.
78645
78646 2001-09-11  Jim Meyering  <meyering@lucent.com>
78647
78648         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
78649         The body, by Paul Eggert, was moved here from configure.in.
78650         * m4/jm-macros.m4: Require UTILS_HOST_OS.
78651
78652 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78653
78654         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
78655         (jm_PREREQ): Use it.
78656
78657 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78658
78659         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
78660         Use ssize_t, not int, to store result of readlink.
78661         Check for ssize_t overflow as well as size_t overflow,
78662         as POSIX says the result of readlink is implementation-defined
78663         when ssize_t overflows.
78664         Remove unnecessary cast to char*.
78665         Use free+malloc instead of realloc, as the storage doesn't need
78666         to be preserved and it's clearer and can be more efficient that way.
78667         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
78668         * lib/xreadlink.h (xreadlink): Update prototype.
78669
78670 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78671
78672         * lib/xgetcwd.c: Revert some of the previous change; intead,
78673         fix the HAVE_GETCWD_NULL code to behave more like the
78674         !HAVE_GETCWD_NULL code used to.
78675
78676         Include "xalloc.h".
78677         (xgetcwd): Do not return NULL when memory is exhausted; instead,
78678         invoke xalloc_die.
78679
78680 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78681
78682         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
78683         sys/param.h, as pathmax.h includes them.
78684
78685 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78686
78687         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
78688         (jm_PREREQ_XGETCWD): New macro.
78689
78690         * m4/getcwd.m4: New file.
78691
78692 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78693
78694         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
78695         like the HAVE_GETCWD_NULL code.
78696         Include pathmax.h if not HAVE_GETCWD.
78697         Do not include xalloc.h.
78698         (INITIAL_BUFFER_SIZE): New symbol.
78699         Do not use xmalloc / xrealloc, since the caller is responsible for
78700         handling errors.  Preserve errno around `free' during failure.
78701         Do not overrun buffer when using getwd.
78702
78703 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78704
78705         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
78706         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
78707         getcwd (NULL, 0).
78708
78709 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78710
78711         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
78712         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
78713         spotted by Jim Meyering.
78714
78715 2001-09-03  Jim Meyering  <meyering@lucent.com>
78716
78717         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
78718         failure.
78719
78720 2001-09-02  Jim Meyering  <meyering@lucent.com>
78721
78722         * lib/error.c: Update from GNU libc.
78723
78724 2001-09-01  Jim Meyering  <meyering@lucent.com>
78725
78726         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
78727         Used by df.
78728
78729 2001-09-01  Jim Meyering  <meyering@lucent.com>
78730
78731         * lib/xreadlink.c: New file.
78732         * lib/xreadlink.h: New file.
78733         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
78734         xreadlink.h.
78735
78736         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
78737         doesn't conflict with sparc Solaris 7's definition in
78738         /usr/include/sys/int_types.h.
78739
78740         * lib/exclude.c: Use `""', not `<>' to #include non-system header
78741         files.
78742         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
78743         and strncasecmp as r-values.  Unixware didn't have declarations.
78744
78745 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78746
78747         * lib/xstrtol.h: Add copyright notice.
78748         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
78749         LONGINT_INVALID_SUFFIX_CHAR.
78750
78751 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78752
78753         * lib/xstrtol.c (strtoimax): New decl.
78754
78755 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78756
78757         * lib/xgetcwd.c: Don't include pathmax.h.
78758         Include stdlib.h and unistd.h if available.
78759         Include xalloc.h.
78760         (xmalloc, xstrdup, free): Remove decls.
78761         (xgetcwd): Don't assume sizes fit in unsigned.
78762         Check for overflow when computing sizes.
78763         Simplify reallocation code.
78764
78765 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78766
78767         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
78768         a directory's st_size can have an arbitrary value, so the old
78769         usage could waste an arbitrary amount of memory.  All uses
78770         changed.
78771         * lib/savedir.h: Update prototype.
78772
78773 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78774
78775         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
78776
78777         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
78778         old strtoimax.c.
78779
78780         Also, make the following further changes to make this file's
78781         configuration more similar to that of strtol.c:
78782         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
78783         (strtoumax, uintmax_t, strtoull, strtol): Remove.
78784         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
78785         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
78786         changed to signed values.
78787
78788         And make the following changes as well:
78789         Fix copyright notice, as 1999 was missing.
78790         (verify): New macro.
78791         (strtoimax): Check sizes at compile-time, not run-time.
78792         Prefer strtol to strtoll if both work.
78793         (main): Remove; it was not that useful and was a pain to maintain.
78794
78795         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
78796
78797 2001-08-31  Jim Meyering  <meyering@lucent.com>
78798
78799         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
78800         Use an initial, malloc'd, buffer of length 128 rather than
78801         a statically allocated one of length 1024.
78802
78803 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78804
78805         Simplify code, partly by assuming autoconf 2.52 semantics.
78806
78807         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
78808
78809         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
78810         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
78811         All uses removed.
78812         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
78813         Move AC_REQUIRE to next-to-top level, to avoid confusion.
78814         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
78815         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
78816         jm_AC_HEADER_INTTYPES_H.
78817         * m4/jm-macros.m4 (jm_MACROS): Likewise.
78818
78819         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
78820
78821         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78822         Quote first arg of AC_DEFUN.
78823         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
78824         since they are needed to parse the include file even if we need
78825         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
78826         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
78827         but with opposite signedness.
78828
78829 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78830
78831         Merge 'exclude' changes from tar 1.13.22.
78832         This fixes one or two unlikely storage allocation overflow bugs,
78833         but doesn't change user-visible behavior otherwise.
78834
78835 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78836
78837         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
78838         (jm_PREREQ_EXCLUDE): New macro.
78839
78840 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78841
78842         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
78843         tm to be declared.
78844
78845 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78846
78847         * lib/hash.c: Remove '2001' from copyright notice.
78848
78849 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78850
78851         * lib/full-write.h: New file.
78852         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
78853         * lib/full-write.c: Correct credits, as cccp.c no longer
78854         exists and anyway it was so heavily changed from the old cccp
78855         code as to be unrecognizable.  Include full-write.h.
78856         (full_write): Return size_t, with short writes meaning failure.
78857         All callers changed.  This fixes a bug with large buffers
78858         on 64-bit hosts.
78859         * lib/utime.c: Include full-write.h.
78860
78861 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78862
78863         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
78864         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
78865         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
78866         Include if available.
78867         (<xalloc.h>): Include
78868         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
78869         (verify): New macro.  Use it to verify that EXCLUDE macros do not
78870         collide with FNM macros.
78871         (struct patopts): New struct.
78872         (struct exclude): Use it, as exclude patterns now come with options.
78873         (new_exclude): Support above changes.
78874         (new_exclude, add_exclude_file):
78875         Initial size must now be a power of two to simplify overflow checking.
78876         (free_exclude, fnmatch_no_wildcards): New function.
78877         (excluded_filename): No longer requires options arg, as the options
78878         are determined by add_exclude.  Now returns bool, not int.
78879         (excluded_filename, add_exclude):
78880         Add support for the fancy new exclusion options.
78881         (add_exclude, add_exclude_file): Now takes int options arg.
78882         Check for arithmetic overflow when computing sizes.
78883         (add_exclude_file): xrealloc might modify errno, so don't
78884         realloc until after errno might be used.
78885
78886         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
78887         New macros.
78888         (free_exclude): New decl.
78889         (add_exclude, add_exclude_file): Now takes int options arg.
78890         (excluded_filename): No longer requires options arg, as the options
78891         are determined by add_exclude.  Now returns bool, not int.
78892
78893 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78894
78895         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
78896
78897 2001-08-27  Jim Meyering  <meyering@lucent.com>
78898
78899         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
78900
78901         * lib/version-etc.c (N_): Remove definition.
78902         Revert most of last change.
78903         Instead, simply don't mark the `Copyright...' string for translation.
78904         Based on advice from Paul Eggert.
78905
78906         * lib/strtoxmax.c: Tweak comment.
78907
78908 2001-08-26  Jim Meyering  <meyering@lucent.com>
78909
78910         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
78911
78912         * m4/xstrtoimax.m4: New file.
78913         * m4/xstrtoumax.m4: Add comments explaining why we
78914         AC_REPLACE_FUNCS(strtol).
78915
78916 2001-08-26  Jim Meyering  <meyering@lucent.com>
78917
78918         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
78919         of copyright with `%s' so translators don't get an untranslated
78920         message in 2002.
78921         (COPYRIGHT_YEAR): Define.
78922         (version_etc): Use fprintf rather than fputs.
78923         Suggestion from Ulrich Drepper.
78924
78925         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
78926
78927         * lib/strtoll.c: New file, from GNU libc.
78928         * lib/xstrtoimax.c: New file.
78929
78930         * lib/xstrtol.h: Add xstrtoimax.
78931         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
78932         * lib/strtoimax.c: New file.  Likewise, but first define
78933         STRTOUXMAX_SIGNED.
78934
78935         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
78936         ...
78937         * lib/strtoxmax.c: ... then renamed to this.
78938
78939 2001-08-18  Paul Eggert  <eggert@twinsun.com>
78940
78941         * m4/inttypes.m4: Add AC_PREREQ(2.13).
78942         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
78943         (jm_AC_TYPE_INTMAX_T): New macro.
78944         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
78945
78946         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
78947
78948         * m4/longlong.m4: Renamed from ulonglong.m4.
78949         * m4/inttypes.m4: Renamed from inttypes_h.m4.
78950         * m4/uintmax_t.m4: Removed.
78951
78952 2001-08-13  Paul Eggert  <eggert@twinsun.com>
78953
78954         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
78955         Port to Solaris 8, where 'sed' requires a space after the 'r'
78956         command, and where sh dislikes "$/".  Clean up the spacing a bit.
78957         Redirect output to $tmp just once.
78958
78959 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
78960
78961         * lib/addext.c (<errno.h>): Include.
78962         (errno): Declare if not defined.
78963         (addext): Work correctly when pathconf returns -1 and leaves
78964         errno alone because there is no limit.  Also, work even if
78965         pathconf returns a value greater than SIZE_MAX.
78966
78967 2001-08-12  Jim Meyering  <meyering@lucent.com>
78968
78969         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
78970         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
78971         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
78972         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
78973         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
78974         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
78975         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
78976         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
78977         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
78978         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
78979         utime.m4, utimes.m4, xstrtoumax.m4:
78980         Quote the first argument in each use of AC_DEFUN.
78981
78982 2001-08-12  Jim Meyering  <meyering@lucent.com>
78983
78984         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
78985         Simply `return getcwd (NULL, 0);'.
78986         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
78987         Use 1300 as initial value for length, not PATH_MAX.
78988
78989         * lib/pathmax.h: Clean up cpp syntax.
78990
78991 2001-08-12  Jim Meyering  <meyering@lucent.com>
78992
78993         * lib/gettimeofday.c: New file.
78994         * lib/gtod.h: New file.
78995         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
78996
78997 2001-08-05  Jim Meyering  <meyering@lucent.com>
78998
78999         * m4/jm-macros.m4: Require autoconf-2.52.
79000
79001 2001-08-04  Jim Meyering  <meyering@lucent.com>
79002
79003         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
79004         stmt, to get in sync with glibc.
79005
79006 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79007
79008         The following changes are from gettext 0.10.39 as maintained by
79009         Bruno Haible.
79010
79011         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
79012         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
79013         with inverted sense.  All uses changed.
79014
79015         * lib/mbswidth.c: Don't include <limits.h>.
79016         Include <stdlib.h> and <string.h> unconditionally.
79017         (iswcntrl, mbsinit, ISCNTRL): New macros.
79018         (mbsnwidth): Use K&R style function declarations.
79019         Don't bother checking for MB_LEN_MAX == 1, since the compiler
79020         can optimize it when MB_CUR_MAX == 1.
79021         The width of control characters is zero, not 1.
79022
79023 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79024
79025         The following changes are from gettext 0.10.39 as maintained by
79026         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
79027
79028         * m4/codeset.m4: Upgrade to serial AM1.
79029         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
79030         all uses changed.  Quote first arg of AC_DEFUN.
79031         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
79032
79033         * m4/iconv.m4: Upgrade to serial AM2.
79034         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
79035         Add --with-libconv-prefix.
79036         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
79037         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
79038         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
79039         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
79040         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
79041
79042         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
79043         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
79044         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
79045         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
79046         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
79047         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
79048         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79049         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
79050         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79051
79052         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
79053         string.h any more.
79054
79055         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
79056         not the default value.
79057
79058         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
79059         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
79060         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
79061         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
79062         Also check for iswcntrl, used for wcwidth fallback.
79063         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
79064         to Autoconf 2.13.
79065
79066 2001-08-03  Jim Meyering  <meyering@lucent.com>
79067
79068         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
79069         as it was in the original.  Reported by Paul Eggert.
79070
79071 2001-07-16  Jim Meyering  <meyering@lucent.com>
79072
79073         * m4/gettimeofday.m4: New file.
79074         Prompted by a report from Bernhard Baehr.
79075
79076 2001-07-15  Jim Meyering  <meyering@lucent.com>
79077
79078         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
79079         stuff. Now it's in ../Makefile.cfg.
79080
79081 2001-07-15  Jim Meyering  <meyering@lucent.com>
79082
79083         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
79084         (BUILT_SOURCES): Add unlocked-io.h.
79085         (io_functions): Define.
79086         (unlocked-io.h): New rule.
79087         (DISTCLEANFILES): Add unlocked-io.h.
79088         (all-local): Depend on unlocked-io.h, to ensure it is created.
79089
79090         * lib/unlocked-io.hin: New file
79091
79092         * lib/regex.c: Update from glibc.
79093
79094 2001-07-05  Jim Meyering  <meyering@lucent.com>
79095
79096         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
79097         recommendation.
79098         (libfetish_a_SOURCES): Put all .h files here instead.
79099         Remove a thus-exposed (better checks in automake) duplicate and
79100         two unnecessary .h files.
79101
79102 2001-07-04  Jim Meyering  <meyering@lucent.com>
79103
79104         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
79105         that generates jm-glibc-io.m4 so that it doesn't trigger any make
79106         distcheck failure.
79107
79108 2001-07-02  Jim Meyering  <meyering@lucent.com>
79109
79110         The following changes were prompted by suggestions from Bruno Haible.
79111
79112         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
79113         is now generated.
79114         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
79115         definition of EXTRA_DIST.
79116         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
79117         ensure that the generated file is created/updated whenever the list
79118         of $(unlocked_functions) is changed.
79119         (jm-glibc-io.m4): New rule.
79120         (unlocked-io.h): New rule -- currently unused.
79121
79122 2001-06-24  Jim Meyering  <meyering@lucent.com>
79123
79124         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
79125         unmatched right bracket, rather than kludging it with an extra,
79126         falsely-matching quote in a comment.  Patch by Akim Demaille.
79127
79128 2001-06-11  Jim Meyering  <meyering@lucent.com>
79129
79130         * lib/regex.c: Update from GNU libc.
79131
79132 2001-05-27  Jim Meyering  <meyering@lucent.com>
79133
79134         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
79135         Check for ut_type in struct utmp.
79136
79137 2001-05-27  Jim Meyering  <meyering@lucent.com>
79138
79139         * lib/readutmp.h (UT_TYPE): Define.
79140
79141 2001-05-24  Jim Meyering  <meyering@lucent.com>
79142
79143         * lib/argmatch.c: Include "quote.h".
79144         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
79145         quote function.  Reported by Göran Uddeborg.
79146
79147 2001-05-22  Jim Meyering  <meyering@lucent.com>
79148
79149         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
79150         now that we use the package-supplied version unconditionally.
79151         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
79152
79153 2001-05-21  Jim Meyering  <meyering@lucent.com>
79154
79155         * m4/regex.m4: Change a couple backticks to single quotes to avoid
79156         shell syntax errors.
79157
79158 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79159
79160         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
79161
79162 2001-05-20  Paul Eggert  <eggert@twinsun.com>
79163
79164         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
79165         Don't bother to check library strftime, since
79166         we'll be using our own my_strftime function anyway.
79167         Define my_strftime instead of strftime.
79168
79169 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
79170
79171         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
79172         which is not yet declared.
79173
79174 2001-05-15  Jim Meyering  <meyering@lucent.com>
79175
79176         * m4/regex.m4: Use proper quoting so brackets appear in the test
79177         program.
79178         Reported by, and with help from, Bruno Haible.
79179
79180 2001-05-13  Jim Meyering  <meyering@lucent.com>
79181
79182         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
79183         undefined.
79184
79185 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79186
79187         dirname code cleanup.  base_name now behaves more compatibly
79188         with POSIX basename when given file names that have trailing
79189         slashes, and similarly for dir_name.  Add new primitives
79190         base_len and dir_len.  Put the directory-name-related decls
79191         into dirname.h.
79192
79193         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
79194         * lib/backupfile.c (base_name): Likewise.
79195         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
79196         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
79197         * lib/makepath.c (strip_trailing_slashes): Likewise.
79198         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
79199         ISSLASH): Likewise.
79200         * lib/rename.c (strip_trailing_slashes): Likewise.
79201         * lib/same.c (base_name): Likewise.
79202         * lib/stripslash.c (ISSLASH): Likewise.
79203
79204         * lib/addext.c: Include <dirname.h> after size_t is defined.
79205         * lib/backupfile.c: Likewise.
79206
79207         * lib/addext.c (addext): Use base_len to trim redundant
79208         trailing slashes instead of doing it ourselves.
79209         But do not trim the last slash if it is not redundant.
79210
79211         * lib/backupfile.c (find_backup_file_name,
79212         max_backup_version): Use base_len instead of rolling it ourselves.
79213         Handle the case of "" and (on DOS) "C:" correctly.
79214
79215         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
79216         needed. Include <string.h>, <dirname.h>.
79217         (base_name): Allow file names ending in slashes, other than names
79218         that are all slashes.  In this case, return the basename followed
79219         by the slashes.  This is more general, and can be used in places
79220         where the original base_name purposely had an assertion failure.
79221         (base_len): New function.
79222
79223         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
79224         Do not include <assert.h>; no longer needed.
79225         Include xalloc.h.
79226         (memrchr): Remove decl.
79227         (dir_name_r): Remove.
79228         (dir_len): Renamed from dirlen.  All callers changed.
79229         Rewrite in terms of base_name, for simplicity and consistency.
79230         (dir_name): Never return NULL.  All callers changed.
79231         Do not include <stdlib.h> in test program; no longer needed.
79232         return 0; is fine for test program.
79233
79234         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
79235         New macros.
79236         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
79237
79238         * lib/path-concat.c (path_concat): Use base_len to compute
79239         base length, not strlen; this means we cannot rely on memcpy
79240         to null-terminate.
79241
79242         * lib/same.c (STREQ): Remove.
79243         (same_name): Handle the case where the basename ends in trailing '/'.
79244
79245         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
79246         a slash was stripped.  Do not strip the last slash after a
79247         file system prefix.
79248
79249 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79250
79251         * lib/Makefile.am (libfetish_a_SOURCES):
79252         Add strftime.c, since we now compile it on all hosts.
79253
79254         * lib/strftime.c (my_strftime):
79255         Define to nstrftime if emacs, but only if my_strftime is not defined.
79256         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
79257         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
79258         Add one more extra argument: a nanoseconds value.
79259         All uses changed.
79260         (ns): New macro.
79261         (my_strftime function): Add %N format.
79262         (emacs_strftimeu): Renamed from emacs_strftime,
79263         with extra ut argument.
79264
79265 2001-05-09  Paul Eggert  <eggert@twinsun.com>
79266
79267         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
79268
79269 2001-04-21  Jim Meyering  <meyering@lucent.com>
79270
79271         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
79272         doesn't interfere.
79273
79274 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79275
79276         * m4/ftruncate.m4: Check for chsize.
79277         Link with ftruncate.o unconditionally if ftruncate is missing.
79278         This was required when cross-compiling to i586-mingw32msvc.
79279
79280 2001-04-08  Jim Meyering  <meyering@lucent.com>
79281
79282         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
79283         recomputed; that's necessary when the offset spans a DST transition.
79284         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
79285
79286 2001-04-02  Jim Meyering  <meyering@lucent.com>
79287
79288         * lib/regex.h, regex.c: Update from GNU libc.
79289
79290 2001-03-24  Jim Meyering  <meyering@lucent.com>
79291
79292         * m4/jm-macros.m4: Require autoconf-2.49d.
79293
79294 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
79295
79296         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
79297
79298 2001-03-19  Paul Eggert  <eggert@twinsun.com>
79299
79300         * lib/version-etc.c (version_etc_copyright): Update to 2001.
79301
79302 2001-03-17  Jim Meyering  <meyering@lucent.com>
79303
79304         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
79305         now that the version in autoconf is equivalent.
79306         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
79307
79308         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
79309         Suggestion from Akim Demaille.
79310
79311         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
79312         (jm_PREREQ_TEMPNAME): New function.
79313
79314 2001-03-16  Paul Eggert  <eggert@twinsun.com>
79315
79316         * lib/tempname.c (uint64_t): Define to uintmax_t if
79317         not defined, and if UINT64_MAX is not defined.
79318         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
79319         Reported by John David Anglin.
79320
79321 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
79322
79323         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
79324         resolve alias if codeset is empty.
79325         * lib/config.charset (BeOS): Use wildcard syntax.
79326
79327 2001-03-13  Jim Meyering  <meyering@lucent.com>
79328
79329         * lib/path-concat.c (path_concat)
79330         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
79331         concatenating e.g., `C:' and `foo'.
79332         From Bruno Haible.
79333
79334 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79335
79336         * lib/localcharset.c (locale_charset): Don't use
79337         setlocale(LC_CTYPE,NULL). Don't return NULL.
79338         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
79339
79340 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79341
79342         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
79343         support for DOS/DJGPP.
79344
79345 2001-03-01  Paul Eggert  <eggert@twinsun.com>
79346
79347         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
79348         lacks mkstemp.  Compile our own tempname.c if we compile our own
79349         mkstemp.c, as mkstemp relies on tempname.
79350
79351 2001-03-01  Jim Meyering  <meyering@lucent.com>
79352
79353         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
79354         AH_VERBATIM really does output its argument verbatim.
79355
79356 2001-02-28  Paul Eggert  <eggert@twinsun.com>
79357
79358         * lib/Makefile.am (libfetish_a_SOURCES):
79359         Add dup-safer.c, fopen-safer.c.
79360         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
79361
79362         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
79363         * lib/unistd-safer.h: New files.
79364
79365 2001-02-25  Paul Eggert  <eggert@twinsun.com>
79366
79367         The mkstemp replacement is taken from glibc 2.2.2, with some
79368         portability fixes for use outside glibc, as follows:
79369
79370         * lib/tempname.c (struct_stat64): New macro.
79371         (direxists, __gen_tempname): Use it.
79372         This avoids a portability problem with Solaris 8.
79373
79374         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
79375         (<stddef.h>, <stdint.h>, <string.h>):
79376         Include only if STDC_HEADERS || _LIBC.
79377         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
79378         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
79379         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
79380         (__set_errno): Define this macro if <errno.h> doesn't.
79381         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
79382         Define these macros if <stdio.h> doesn't.
79383         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
79384         Define these macros if <sys/stat.h>
79385         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
79386         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
79387         __xstat64): Define if not _LIBC.
79388         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
79389         (__gen_tempname): Invoke gettimeofday only if
79390         HAVE_GETTIMEOFDAY || _LIBC;
79391         otherwise, fall back on plain "time".
79392         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
79393
79394         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
79395
79396         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
79397
79398 2001-02-18  Paul Eggert  <eggert@twinsun.com>
79399
79400         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
79401
79402 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79403
79404         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
79405         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
79406         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
79407         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79408
79409 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79410
79411         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
79412         Remove workaround macros for hosts that have mbrtowc but not
79413         mbstate_t, as we now insist on proper declarations for both
79414         before using mbrtowc.
79415
79416 2001-02-17  Jim Meyering  <meyering@lucent.com>
79417
79418         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
79419         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
79420         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
79421         UnixWare 7.1.1.
79422
79423         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
79424         rather than AC_CACHE_VAL.
79425
79426 2001-02-17  Jim Meyering  <meyering@lucent.com>
79427
79428         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
79429         around included file name.
79430
79431         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
79432
79433         * lib/strftime.c: Update from GNU libc (the only changes were to
79434         comments).
79435
79436 2001-02-17  Jim Meyering  <meyering@lucent.com>
79437
79438         * lib/regex.c: Update from libc.
79439
79440 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
79441
79442         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
79443         clash.
79444
79445 2001-02-16  Paul Eggert  <eggert@twinsun.com>
79446
79447         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
79448         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
79449         Reported by Mark Hounschell via Paul Eggert.
79450
79451 2001-02-07  Jim Meyering  <meyering@lucent.com>
79452
79453         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
79454
79455 2001-02-05  Jim Meyering  <meyering@lucent.com>
79456
79457         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
79458         it includes the patch required for `large file' support with at least
79459         HP-UX's 10.20 /bin/cc.
79460
79461 2001-02-03  Jim Meyering  <meyering@lucent.com>
79462
79463         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
79464         AS_IF, now that it works once again (mysteriously).
79465         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79466
79467 2001-01-30  Jim Meyering  <meyering@lucent.com>
79468
79469         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
79470         * m4/chown.m4: Rename conftestchown to conftest.chown.
79471         * m4/rename.m4: s/conftestdir/conftest.d1/ and
79472         s/conftestdir2/conftest.d2/.
79473         * m4/utimes.m4: s/conftestdata/conftest.data/
79474         Inspired by Pavel Roskin's change in autoconf.
79475
79476 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
79477
79478         * lib/config.charset: Update for FreeBSD 4.2.
79479
79480 2001-01-27  Jim Meyering  <meyering@lucent.com>
79481
79482         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
79483         a use of AS_IF.
79484         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79485
79486 2001-01-26  Jim Meyering  <meyering@lucent.com>
79487
79488         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
79489         quotearg.c includes it.
79490
79491 2001-01-26  Jim Meyering  <meyering@lucent.com>
79492
79493         * lib/quotearg.c: Include stddef.h.
79494         * lib/quote.c: Include stddef.h.
79495         Reported by Axel Kittenberger.
79496
79497         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
79498         line in double quotes so that it evokes a better diagnostic.
79499         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
79500         Reported by Axel Kittenberger.
79501
79502 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
79503
79504         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
79505         as if it was a `charset'.
79506
79507 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79508
79509         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
79510         has const.
79511
79512 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79513
79514         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
79515         to avoid a warning.  Add back 'const' to inptr.
79516
79517 2001-01-20  Jim Meyering  <meyering@lucent.com>
79518
79519         Be sure that headers are checked before used in code compiled
79520         for the type checks.
79521         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
79522         In place of that, invoke jm_CHECK_ALL_TYPES.
79523         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
79524         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
79525         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
79526         The check for ssize_t was mistakenly run before the test for unistd.h.
79527
79528         The configure-time check for stdbool.h was missing.
79529         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
79530         (jm_PREREQ_HASH): New function.
79531
79532 2001-01-17  Jim Meyering  <meyering@lucent.com>
79533
79534         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
79535         for autoconf-2.49c.
79536         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
79537
79538 2001-01-16  Jim Meyering  <meyering@lucent.com>
79539
79540         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
79541         From Bruno Haible.
79542
79543 2001-01-14  Jim Meyering  <meyering@lucent.com>
79544
79545         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
79546         foo and bar.  Create conftestdir/ in the script, not in the C code.
79547         Remove directories in the script, not in the C code.
79548         Remove conftestdir{,2} before trying to create the directory.
79549         Make the entire configure script fail if the mkdir fails.
79550
79551 2001-01-14  Jim Meyering  <meyering@lucent.com>
79552
79553         * lib/rename.c: New file.  From Volker Borchert.
79554         Include stdlib.h, string.h or strings.h, and xalloc.h.
79555         Use strip_trailing_slashes rather than open-coding it.
79556
79557 2001-01-03  Paul Eggert  <eggert@twinsun.com>
79558
79559         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
79560
79561 2001-01-03  Jim Meyering  <meyering@lucent.com>
79562
79563         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
79564         of local `inptr' to avoid warning with some system declarations of
79565         iconv.
79566
79567 2001-01-02  Volker Borchert  <bt@teknon.de>
79568
79569         * m4/rename.m4: New file.
79570         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
79571
79572 2001-01-01  Jim Meyering  <meyering@lucent.com>
79573
79574         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
79575         even on systems with utmpx.h.  It's necessary for the declaration of
79576         utmp's ut_user member.  Reported by Andreas Jaeger.
79577
79578         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
79579         available. They are required for the declarations of getgrgid and
79580         getpwuid resp.
79581         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
79582         Reported by Andreas Jaeger.
79583
79584 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
79585
79586         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
79587         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
79588         so `make install' also works in VPATH builds.
79589
79590 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
79591
79592         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
79593         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
79594         can be used in subdirectories.
79595
79596 2000-12-29  Paul Eggert  <eggert@twinsun.com>
79597
79598         * lib/modechange.c: Do not assume that mode_t uses the
79599         traditional octal encoding.  E.g. "chmod 1 FOO" should set
79600         the other-execute bit of FOO even if S_IXOTH != 1.
79601
79602         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
79603         WOTH, XOTH, ALLM): New macros.
79604         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
79605          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
79606         Use them.
79607         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
79608         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
79609         (mode_compile):
79610         No need to use uintmax_t; unsigned long is long enough.
79611         Don't bother to get suffix since we don't use it.
79612
79613 2000-12-26  Jim Meyering  <meyering@lucent.com>
79614
79615         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
79616         better with autoheader.
79617
79618 2000-12-24  Jim Meyering  <meyering@lucent.com>
79619
79620         * lib/hash.c (is_prime): Return explicit boolean values.
79621         (hash_get_first): Return NULL to appease Irix5.6's 89.
79622         Reported by Nelson Beebe.
79623
79624 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
79625
79626         * lib/localcharset.c (locale_charset): Add support for Win32.
79627
79628 2000-12-18  Paul Eggert  <eggert@twinsun.com>
79629
79630         * lib/physmem.h, lib/physmem.c: New files.
79631
79632         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
79633         (noinst_HEADERS): Add physmem.h.
79634
79635         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
79636         't' for compatibility with Solaris 8 sort.
79637
79638 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
79639
79640         * lib/config.charset: Add support for BeOS.
79641
79642 2000-12-17  Jim Meyering  <meyering@lucent.com>
79643
79644         * m4/dos.m4 (jm_AC_DOS): New file and macro.
79645         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
79646
79647 2000-12-16  Jim Meyering  <meyering@lucent.com>
79648
79649         This bug had a serious impact on chown: `chown N:M FILE' (for integer
79650         N and M) would have treated it like `chown N:N FILE'.
79651
79652         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
79653
79654 2000-12-16  Jim Meyering  <meyering@lucent.com>
79655
79656         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
79657         SHELLS_FILE to a file name that's useful on djgpp systems.
79658         Include stdlib.h.
79659         (ADDITIONAL_DEFAULT_SHELLS): Define.
79660         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
79661         Based mostly on a patch from Prashant TR.
79662
79663 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
79664
79665         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
79666         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
79667         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
79668
79669 2000-12-08  Andreas Schwab  <schwab@suse.de>
79670
79671         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
79672         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
79673
79674 2000-12-07  Jim Meyering  <meyering@lucent.com>
79675
79676         * lib/stripslash.c (ISSLASH): Define.
79677         (strip_trailing_slashes): Use ISSLASH rather than comparing against
79678         `/'.
79679         From Prashant TR.
79680
79681         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
79682         (dir_name_r): Declare this function as static.
79683         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
79684         manifest itself on a name containing a mix of slashes and
79685         backslashes.
79686         Make this function work with names starting with a DOS-style
79687         drive letter and colon prefix.
79688         (dir_name): Append `.' if necessary.
79689         Based mostly on patches from Prashant TR and Eli Zaretskii.
79690
79691         * lib/dirname.h (dir_name_r): Remove prototype.
79692
79693 2000-12-06  Paul Eggert  <eggert@twinsun.com>
79694
79695         * m4/off_t-format.m4: Remove this file.
79696         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
79697
79698 2000-12-06  Jim Meyering  <meyering@lucent.com>
79699
79700         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
79701         replacement strtoull, we may well need the replacement strtoul, too.
79702         Check for declarations of strtoul and strtoull.
79703         Check for strtol.  Mainly as a cue to cause automake to include
79704         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
79705         Check for limits.h -- strtol.c needs it.
79706
79707 2000-12-05  Jim Meyering  <meyering@lucent.com>
79708
79709         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
79710
79711 2000-12-04  Jim Meyering  <meyering@lucent.com>
79712
79713         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
79714         Also include memory.h, stdlib.h, unistd.h if appropriate.
79715         Reported by Andreas Jaeger (conflicting declaration of malloc).
79716
79717 2000-12-02  Jim Meyering  <meyering@lucent.com>
79718
79719         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
79720         * m4/jm-macros.m4 (jm_MACROS): require it.
79721
79722 2000-12-02  Jim Meyering  <meyering@lucent.com>
79723
79724         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
79725
79726 2000-12-01  Paul Eggert  <eggert@twinsun.com>
79727
79728         * lib/memrchr.c: Include <config.h> before any system include file.
79729
79730 2000-11-30  Jim Meyering  <meyering@lucent.com>
79731
79732         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
79733
79734 2000-11-30  Jim Meyering  <meyering@lucent.com>
79735
79736         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
79737
79738 2000-11-29  Paul Eggert  <eggert@twinsun.com>
79739
79740         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
79741
79742 2000-11-26  Jim Meyering  <meyering@lucent.com>
79743
79744         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
79745
79746 2000-11-22  Paul Eggert  <eggert@twinsun.com>
79747
79748         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
79749         size of (size_t) -1; it's not portable.
79750
79751 2000-11-17  Jim Meyering  <meyering@lucent.com>
79752
79753         * lib/strstr.c: Update from GNU libc.
79754
79755 2000-11-17  Akim Demaille  <akim@epita.fr>
79756
79757         * lib/obstack.h: Formatting changes.
79758         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
79759         prevent type checking.
79760         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
79761         cast the value to (void *): assigning a `foo *' to a `void *'
79762         variable is valid.
79763         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
79764
79765 2000-11-16  Jim Meyering  <meyering@lucent.com>
79766
79767         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
79768
79769 2000-11-11  Jim Meyering  <meyering@lucent.com>
79770
79771         * lib/error.c: Add a couple #includes, merging from GNU libc version.
79772
79773 2000-11-10  Jim Meyering  <meyering@lucent.com>
79774
79775         * lib/obstack.h: Update from GNU libc.
79776         * lib/obstack.c: Likewise.
79777
79778 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
79779
79780         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
79781
79782 2000-11-06  Paul Eggert  <eggert@twinsun.com>
79783
79784         * lib/getusershell.c (setusershell): Use rewind rather than
79785         fseek/fseeko, to avoid configuration hassles with fseeko.
79786         Don't bother opening SHELLS_FILE if shellstream is NULL;
79787         it's not necessary.
79788
79789 2000-11-05  Jim Meyering  <meyering@lucent.com>
79790
79791         * lib/makepath.h (make_dir): Declare.
79792         * lib/makepath.c (make_dir): Remove `static' attribute.
79793         Tweak a comment.
79794
79795 2000-11-04  Jim Meyering  <meyering@lucent.com>
79796
79797         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
79798
79799 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
79800
79801         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
79802         last one in a bucket, advance to the next bucket.
79803
79804 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
79805
79806         * lib/fnmatch.c: Do not comment out all the code if we are using
79807         the GNU C library, because in some cases we are replacing buggy
79808         code in the GNU C library itself.
79809
79810 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
79811
79812         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
79813         (regex_compile): Catch bogus \(\1\).
79814
79815 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79816
79817         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
79818         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
79819         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
79820
79821 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79822
79823         * lib/error.h, getline.h, modechange.h:
79824         Remove "2000" from Copyright line, as the file hasn't been
79825         changed this year other than in the copyright notice.
79826
79827         * lib/xalloc.h: Add "2000" to Copyright line, as this file
79828         was changed this year.
79829
79830 2000-10-29  Jim Meyering  <meyering@lucent.com>
79831
79832         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
79833         renaming.
79834         * m4/ls-mntd-fs.m4: Likewise
79835
79836 2000-10-29  Jim Meyering  <meyering@lucent.com>
79837
79838         * lib/xstat.in: Fix grammar in comment.
79839
79840 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
79841
79842         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
79843         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
79844         doesn't define __restrict_arr.
79845
79846 2000-10-28  Jim Meyering  <meyering@lucent.com>
79847
79848         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
79849         (jm_PREREQ_MEMCHR): New function.
79850
79851 2000-10-28  Jim Meyering  <meyering@lucent.com>
79852
79853         * lib/memchr.c: Update from libc.
79854         Adjust for portability:
79855         [HAVE_STDLIB_H]: Include stdlib.h.
79856         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
79857         Undef __memchr, too.
79858         [!weak_alias]: Define __memchr to memchr.
79859
79860         * lib/regex.c: Update from libc.
79861         * lib/regex.h: Likewise.
79862         * lib/getopt1.c: Likewise.
79863         * lib/memcmp.c: Likewise.
79864
79865         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
79866         Avoid using fseek, when possible -- it's broken by design.
79867         Patch by Ulrich Drepper.
79868
79869 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
79870
79871         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
79872         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
79873         Giving in to popular pressure to shut up the compiler with casts.
79874
79875 2000-10-26  Jim Meyering  <meyering@lucent.com>
79876
79877         * lib/strftime.c: Update from libc.
79878
79879 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
79880
79881         * regex.c: More `unsigned char' -> `re_char' changes.
79882         Also change several `int' into `re_wchar_t'.
79883         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
79884         (PUSH_FAILURE_POINTER): Don't cast any more.
79885         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
79886         We want GCC to complain, since this piece of code makes
79887         re_match non-reentrant, which *should* be fixed.
79888         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
79889         (EXTEND_BUFFER): Use RETALLOC.
79890         (SET_LIST_BIT): Don't cast.
79891         (re_wchar_t): New type.
79892         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
79893         that those two functions will always properly return.
79894         (IMMEDIATE_QUIT_CHECK): Cast to void.
79895         (analyse_first): Use recursion rather than an explicit stack.
79896         (re_compile_fastmap): Can't fail anymore.
79897         (re_search_2): Don't check re_compile_fastmap for failure.
79898         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
79899         Now also sets the new value (passed in a new argument).
79900         (re_match_2_internal): Use it.
79901         Also, use a new var `reg' of type size_t when looping through regs
79902         rather than reuse the inappropriate `mcnt'.
79903
79904 2000-10-25  Jim Meyering  <meyering@lucent.com>
79905
79906         * lib/obstack.c: Update from libc.
79907
79908 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
79909
79910         * regex.c (regex_compile): Change the way of handling a range from
79911         a char less than 256 to a char not less than 256.
79912
79913 2000-10-24  Andrew Innes  <andrewi@gnu.org>
79914
79915         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
79916         NT-Emacs only.
79917         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
79918         so that re_search functions only quit when callers expect them to.
79919
79920 2000-10-23  Jim Meyering  <meyering@lucent.com>
79921
79922         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
79923         wrong.  That set_locale call must not have any side effects.
79924         From Paul Eggert.
79925
79926 2000-10-22  Jim Meyering  <meyering@lucent.com>
79927
79928         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
79929         [CYCLIC]: Remove now-unused definition.
79930
79931         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
79932         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
79933         Suggestion from Ulrich Drepper.
79934
79935 2000-10-21  Jim Meyering  <meyering@lucent.com>
79936
79937         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
79938         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
79939         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
79940
79941 2000-10-21  Jim Meyering  <meyering@lucent.com>
79942
79943         * lib/dirname.c (memrchr): Declare if necessary.
79944         (dir_name): Remove the restriction that there be no
79945         trailing slashes.  Now, this code skips past them, effectively
79946         ignoring them.
79947         [TEST_DIRNAME] (main): New unit tests.
79948
79949         * lib/memrchr.c: New file from GNU libc.
79950         Undef __memrchr, too.
79951         [!weak_alias]: Define __memrchr to memrchr.
79952         Guard weak_alias use with `#ifdef weak_alias'.
79953
79954 2000-10-21  Jim Meyering  <meyering@lucent.com>
79955
79956         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
79957         (dir_name): Use dir_name_r.
79958         * lib/dirname.h (dir_name_r): Declare it.
79959
79960 2000-10-17  Jim Meyering  <meyering@lucent.com>
79961
79962         * lib/quote.h (PARAMS): Define and use.
79963         Reported by Akim Demaille.
79964
79965         * lib/getopt.c: Update from libc.
79966
79967 2000-10-16  Jim Meyering  <meyering@lucent.com>
79968
79969         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
79970         setlocale.
79971         From Jan Fedak.
79972
79973 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
79974
79975         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
79976
79977 2000-09-25  Jim Meyering  <meyering@lucent.com>
79978
79979         * lib/md5.h (rol): Define (from GnuPG).
79980
79981         * lib/sha.c: Give credit (GnuPG) where due.
79982         (M): Use rol rather than open-coding it.
79983         Add a FIXME comment.
79984
79985 2000-09-21  Jim Meyering  <meyering@lucent.com>
79986
79987         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
79988         Reported by Michael Stone.
79989
79990 2000-09-20  Jim Meyering  <meyering@lucent.com>
79991
79992         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
79993         (noinst_HEADERS): Add sha.h.
79994         Based on code from Scott G. Miller and from GnuPG.
79995
79996 2000-09-18  Jim Meyering  <meyering@lucent.com>
79997
79998         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
79999         LIBS. Otherwise, everyone ends up linking with -lelf for some
80000         configurations.
80001         Reported by Mike Stone.
80002
80003 2000-09-15  Jim Meyering  <meyering@lucent.com>
80004
80005         * lib/regex.c: Update from libc.
80006
80007 2000-09-10  Jim Meyering  <meyering@lucent.com>
80008
80009         * lib/getopt.c (_getopt_internal): Update from glibc.
80010
80011 2000-09-09  Jim Meyering  <meyering@lucent.com>
80012
80013         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
80014         think it should be used as a general replacement for isascii.
80015         * lib/fnmatch.c: Likewise.
80016         * lib/mbswidth.c: Likewise
80017         * lib/regex.c: Likewise.
80018
80019         Don't use atoi.
80020         * lib/userspec.c: Include sys/param.h and limits.h.
80021         Include xstrtol.h.
80022         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80023         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
80024         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
80025         UID, GID.  Check range.
80026
80027 2000-09-06  Jim Meyering  <meyering@lucent.com>
80028
80029         * lib/getopt.c (_getopt_internal): Update from glibc.
80030
80031 2000-08-30  Jim Meyering  <meyering@lucent.com>
80032
80033         * lib/strftime.c: Merge in changes from GNU libc.
80034
80035 2000-08-26  Jim Meyering  <meyering@lucent.com>
80036
80037         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
80038         * m4/fpending.m4: New file.
80039
80040 2000-08-26  Jim Meyering  <meyering@lucent.com>
80041
80042         * lib/closeout.c: Include "__fpending.h".
80043         (close_stdout_status): Return right away if there's nothing to flush.
80044
80045         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
80046         * lib/__fpending.c: New file.
80047         * lib/__fpending.h: New file.
80048
80049 2000-08-20  Jim Meyering  <meyering@lucent.com>
80050
80051         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
80052         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
80053         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
80054
80055 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
80056
80057         Improve fileutils installation on systems where running
80058         programs (like install) can't be unlinked.
80059         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
80060         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
80061
80062 2000-08-07  Paul Eggert  <eggert@twinsun.com>
80063
80064         Standardize on "memory exhausted" instead of "Memory exhausted"
80065         or "virtual memory exhausted".
80066         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
80067         "virtual memory exhausted".
80068         * lib/same.c (same_name): Invoke xalloc_die instead of printing
80069         our own message.
80070         * lib/userspec.c (parse_user_spec): Likewise.
80071         * lib/bumpalloc.h: comment fix
80072         * lib/same.c, userspec.c: Include xalloc.h.
80073
80074         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
80075         not char *const and pointing to a constant array.
80076         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
80077         (xrealloc): Comment fix.
80078
80079         * lib/userspec.c (parse_user_spec):
80080         Don't translate a message until just before returning,
80081         to avoid unnecessary translation.
80082
80083 2000-08-07  Jim Meyering  <meyering@lucent.com>
80084
80085         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
80086         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
80087         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
80088         getgroups.c, gethostname.c, getopt.h, group-member.c,
80089         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
80090         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
80091         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
80092         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
80093         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
80094         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
80095         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
80096         yesno.c: Back out Copyright date changes for each file with no change
80097         this year.  This eases coordination with other programs using the same
80098         source code modules.  From Paul Eggert.
80099
80100 2000-08-06  Paul Eggert  <eggert@twinsun.com>
80101
80102         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
80103         not char, for compatibility with glibc 2.1.3 strftime.c.
80104
80105 2000-08-03  Greg McGary  <greg@mcgary.org>
80106
80107         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
80108         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
80109         (EXTEND_BUFFER): Use them.
80110
80111 2000-08-01  Jim Meyering  <meyering@lucent.com>
80112
80113         * lib/dirname.c (ISSLASH): Define.
80114         (BACKSLASH_IS_PATH_SEPARATOR): Define.
80115         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
80116         both `\' and `/' may be use as path separators.
80117         Based on a patch from Prashant TR.
80118
80119 2000-07-31  Paul Eggert  <eggert@twinsun.com>
80120
80121         * lib/quotearg.c (quotearg_n_options): Don't make the initial
80122         slot vector a constant, since it might get modified.
80123
80124 2000-07-31  Jim Meyering  <meyering@lucent.com>
80125
80126         * lib/xmalloc.c: Use `virtual memory exhausted', not
80127         `Memory exhausted'.
80128         * lib/obstack.c (print_and_abort): Likewise.
80129
80130 2000-07-30  Paul Eggert  <eggert@twinsun.com>
80131
80132         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
80133         buffer, so that the caller can always quote one small
80134         component of a "memory exhausted" message in slot 0.
80135         From a suggestion by Jim Meyering.
80136
80137 2000-07-30  Jim Meyering  <meyering@lucent.com>
80138
80139         * lib/makepath.c (make_path): Quote the other instance, too.
80140
80141         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
80142         (STATIC_BUF_SIZE): Define.
80143         (quotearg_n_options): Use only statically allocated storage when
80144         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
80145         than STATIC_BUF_SIZE.
80146
80147 2000-07-29  Jim Meyering  <meyering@lucent.com>
80148
80149         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
80150         * lib/dirname.c (dir_name): Likewise.
80151
80152         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
80153         `/'.
80154
80155         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
80156         (dir_name): Assert that there are no trailing slashes.
80157
80158 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
80159
80160         * lib/mbswidth.h (mbswidth): Add a flags argument.
80161         (mbswidth): New declaration.
80162         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
80163         * lib/mbswidth.c (mbswidth): Add a flags argument.
80164         (mbsnwidth): New function.
80165
80166 2000-07-24  Jim Meyering  <meyering@lucent.com>
80167
80168         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
80169
80170 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80171
80172         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
80173
80174 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80175
80176         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
80177         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
80178         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
80179         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
80180         invoke multibyte primitives.
80181
80182 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80183
80184         * lib/quotearg.c:
80185         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
80186         so that mbstate_t is always defined.
80187
80188         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
80189         be 1 in at least one GCC installation, and this configuration
80190         error is likely to be common.  Ignoring MB_LEN_MAX hurts
80191         performance on hosts that have mbrtowc but have only unibyte
80192         locales, but I assume these hosts are rare.
80193
80194 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80195
80196         * lib/mbswidth.c (_XOPEN_SOURCE):
80197         Don't define; this causes problems on Solaris 7.
80198         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
80199
80200 2000-07-23  Jim Meyering  <meyering@lucent.com>
80201
80202         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
80203         too: getgrgid, getpwuid, getuid.
80204
80205 2000-07-23  Jim Meyering  <meyering@lucent.com>
80206
80207         * lib/basename.c (base_name): Add an assertion.
80208
80209 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
80210
80211         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
80212         shadow its mbsinit function.
80213
80214 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80215
80216         * lib/mbswidth.h: New file.
80217         * lib/mbswidth.c: New file.
80218         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
80219         (noinst_HEADERS): Add mbswidth.h.
80220
80221 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80222
80223         * lib/config.charset: Add support for FreeBSD. Improve support for
80224         HP-UX and IRIX 6.
80225
80226 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
80227
80228         * m4/mbswidth.m4: New file.
80229         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
80230
80231 2000-07-15  Jim Meyering  <meyering@lucent.com>
80232
80233         * lib/makepath.c: Include quote.h.
80234         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
80235         corresponding argument in a `quote (...)' call.
80236         Give better diagnostics.
80237
80238         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
80239         (noinst_HEADERS): Add quote.h.
80240
80241         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
80242         from tar's src/misc.c.
80243         * lib/quote.h: New file.  Prototypes for same.
80244
80245 2000-07-14  Paul Eggert  <eggert@twinsun.com>
80246
80247         From a suggestion by Bruno Haible.
80248         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
80249         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
80250         to decide whether to define the BeOS workaround macro;
80251         this adjusts to the change to AC_MBSTATE_T.
80252
80253 2000-07-14  Jim Meyering  <meyering@lucent.com>
80254
80255         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
80256         jm_AC_TYPE_UINTMAX_T.
80257
80258 2000-07-13  Paul Eggert  <eggert@twinsun.com>
80259
80260         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
80261
80262         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
80263         quotearg_buffer_restyled): Add support for
80264         clocale_quoting_style.  Undo previous change to
80265         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
80266         and "{RIGHT QUOTATION MARK}" msgids.
80267
80268 2000-07-10  Paul Eggert  <eggert@twinsun.com>
80269
80270         From a suggestion by Bruno Haible.
80271         * m4/mbstate_t.m4 (AC_MBSTATE_T):
80272         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
80273         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
80274         and mbstate_t, to a single-part test that simply defines mbstate_t.
80275         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
80276         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
80277
80278 2000-07-10  Jim Meyering  <meyering@lucent.com>
80279
80280         * m4/strerror_r.m4: Mirror the correction made in autoconf.
80281
80282         * m4/gnu-source.m4: Output to confdefs.h directly.
80283         Suggestion from Akim Demaille.
80284
80285 2000-07-09  Paul Eggert  <eggert@twinsun.com>
80286
80287         The old behavior of quoting `like this' doesn't look good with
80288         newer, ISO-style fonts.  See:
80289         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
80290
80291         Instead, quote "like this" by default.  Let the translator
80292         tailor the locale-specific quoting behavior by providing
80293         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
80294
80295         * lib/quotearg.c (N_): New macro.
80296         (gettext_default): New function.
80297         (quotearg_buffer_restyled): Use
80298         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
80299         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
80300
80301 2000-07-09  Jim Meyering  <meyering@lucent.com>
80302
80303         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
80304         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
80305
80306         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
80307         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
80308
80309 2000-07-09  Jim Meyering  <meyering@lucent.com>
80310
80311         * lib/Most files: Update copyright dates to include 2000.
80312
80313 2000-07-08  Jim Meyering  <meyering@lucent.com>
80314
80315         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
80316         if not defined.
80317         (xgethostname): Remove now-unnecessary #ifdef.
80318         Move declaration of `err' into loop where it's used.
80319
80320 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80321         and Bruno Haible  <haible@clisp.cons.org>
80322
80323         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
80324         only if the test for an object-type mbstate_t fails.  This
80325         prevents us from mistakenly reporting that mbstate_t is a
80326         system object type after we "#define mbstate_t int" to work
80327         around its lack.
80328
80329 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80330         and Bruno Haible  <haible@clisp.cons.org>
80331
80332         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
80333
80334 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80335
80336         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
80337         to strerror_r.
80338         Include <ctype.h> for use of isalpha.
80339
80340 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80341
80342         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
80343         by allocating a larger buffer. Test the gethostname return value for
80344         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
80345         returns an error and ENAMETOOLONG isn't defined.
80346
80347 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80348
80349         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
80350         dimension.
80351
80352 2000-07-04  Jim Meyering  <meyering@lucent.com>
80353
80354         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
80355         of the deprecated AC_CHECKING.
80356
80357 2000-07-04  Jim Meyering  <meyering@lucent.com>
80358
80359         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
80360         Reported by Bruno Haible.
80361
80362 2000-07-04  Jim Meyering  <meyering@lucent.com>
80363
80364         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
80365         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
80366         lacks mbrtowc.
80367
80368 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80369
80370         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
80371         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
80372
80373 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80374         and Bruno Haible  <haible@clisp.cons.org>
80375
80376         * lib/quotearg.c (mbrtowc):
80377         Assign to *pwc, and return 1 only if result is nonzero.
80378         (iswprint): Use ISPRINT when substituting our own mbrtowc.
80379
80380 2000-07-03  Jim Meyering  <meyering@lucent.com>
80381
80382         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
80383
80384 2000-07-03  Jim Meyering  <meyering@lucent.com>
80385
80386         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
80387         This is necessary to get a definition of e.g., UTMP_FILE on
80388         HP-UX 10.20.
80389         From Bob Proulx.
80390
80391 2000-07-02  Jim Meyering  <meyering@lucent.com>
80392
80393         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
80394
80395         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
80396         AC_LIBOBJ(function_name).
80397         * m4/chown.m4: Likewise.
80398         * m4/fnmatch.m4: Likewise.
80399         * m4/ftruncate.m4: Likewise.
80400         * m4/getgroups.m4: Likewise.
80401         * m4/getline.m4: Likewise.
80402         * m4/group-member.m4: Likewise.
80403         * m4/jm-macros.m4: Likewise.
80404         * m4/lstat.m4: Likewise.
80405         * m4/malloc.m4: Likewise.
80406         * m4/memcmp.m4: Likewise.
80407         * m4/nanosleep.m4: Likewise.
80408         * m4/putenv.m4: Likewise.
80409         * m4/realloc.m4: Likewise.
80410         * m4/regex.m4: Likewise.
80411         * m4/stat.m4: Likewise.
80412         * m4/strftime.m4: Likewise.
80413
80414 2000-07-02  Jim Meyering  <meyering@lucent.com>
80415
80416         * lib/quotearg.c (mbstate_t): Don't define here.
80417
80418 2000-07-02  Jim Meyering  <meyering@lucent.com>
80419
80420         * lib/nanosleep.c (SIGCONT): Define if not already defined.
80421
80422 2000-07-01  Jim Meyering  <meyering@lucent.com>
80423
80424         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
80425
80426 2000-07-01  Jim Meyering  <meyering@lucent.com>
80427
80428         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
80429         problem.
80430
80431 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80432
80433         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
80434         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
80435
80436 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80437
80438         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
80439         per change in ../m4/ls-mntd-fs.m4.
80440         (read_filesystem_list): Ignore symbolic links.
80441
80442 2000-06-29  Jim Meyering  <meyering@lucent.com>
80443
80444         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
80445         for declaration of strcmp.
80446
80447         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
80448
80449         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
80450         Avoid warning by casting result to `char *' to remove `const'.
80451
80452 2000-06-28  Jim Meyering  <meyering@lucent.com>
80453
80454         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
80455         included by quotearg.c, for which we perform this test.  From
80456         Bruno Haible.
80457
80458 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80459
80460         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
80461         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
80462         <utmpx.h> exists, put readutmp.o into LIBOBJS.
80463
80464 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80465
80466         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
80467
80468 2000-06-26  Paul Eggert  <eggert@twinsun.com>
80469
80470         savedir now sets errno on failure and invokes xmalloc to get memory.
80471         Fix a couple of other minor bugs while we're at it.
80472
80473         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
80474         (NAMLEN): Remove macro.
80475         (malloc, realloc): Remove decls.
80476         (stpcpy): Likewise.
80477         ("xalloc.h"): Include.
80478         (NAME_SIZE_DEFAULT): New macro.
80479         (savedir): Use xmalloc / xrealloc to allocate memory.
80480         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
80481         Skip "" directory entries.
80482         Use strlen to calculate directory entry length, since the old method
80483         is rarely used these days and isn't worth supporting.
80484         Don't use a pointer after freeing it.
80485         Check for integer overflow when calculating allocation size.
80486         Use memcpy to copy entries, instead of stpcpy.
80487         Set errno properly when returning NULL.
80488         Check for readdir error.
80489
80490 2000-06-26  Jim Meyering  <meyering@lucent.com>
80491
80492         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
80493
80494 2000-06-25  Jim Meyering  <meyering@lucent.com>
80495
80496         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
80497         Linux header bug when _XOPEN_SOURCE is defined to 500.
80498
80499 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80500
80501         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
80502         deficiency.
80503
80504 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80505
80506         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
80507         Include xalloc.h.
80508         Don't include <stdlib.h>.  Don't declare malloc, realloc.
80509
80510 2000-06-24  Jim Meyering  <meyering@lucent.com>
80511
80512         * m4/strerror_r.m4: Revive this file -- to try out an experimental
80513         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
80514         for which strerror does return char*, but which lacks a conveniently
80515         accessible declaration of the function.  If the compile-test says
80516         strerror_r doesn't work, then resort to a `run'-test that works on
80517         BeOS and segfaults on DEC Unix.
80518
80519 2000-06-24  Jim Meyering  <meyering@lucent.com>
80520
80521         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
80522
80523 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80524
80525         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
80526         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
80527
80528 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80529
80530         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
80531         (mbrtowc, mbstate_t): Define substitutes if
80532         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
80533         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
80534         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
80535
80536 2000-06-23  Jim Meyering  <meyering@lucent.com>
80537
80538         * m4/afs.m4: Add missing AC_MSG_RESULT.
80539         Reported by Bruno Haible.
80540
80541         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
80542         Suggestion from Bruno Haible.
80543
80544 2000-06-23  Jim Meyering  <meyering@lucent.com>
80545
80546         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
80547
80548 2000-06-21  Jim Meyering  <meyering@lucent.com>
80549
80550         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
80551
80552 2000-06-21  Jim Meyering  <meyering@lucent.com>
80553
80554         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
80555         (noinst_HEADERS): Add getstr.h.
80556
80557         * lib/getline.c (getstr): Move into a separate file.
80558         * lib/getstr.c (getstr): New file, extracted from getline.c, with
80559         the following changes: new parameter, delim2; both delim[12]
80560         parameters have type `int', not `char'.  The latter would lose
80561         with 8-bit delimiters.
80562         * lib/getstr.h: New file.
80563
80564 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80565
80566         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
80567         than 1024, return a memory chunk of least possible size, instead
80568         of size PATH_MAX + 2. In the loop, increment the size proportionally.
80569         Use free/xmalloc instead of xrealloc to avoid copying for very long
80570         paths.
80571
80572 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80573
80574         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
80575         the empty string.
80576
80577 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80578
80579         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
80580         address, not strdup.  Include <stdlib.h> and don't declare free().
80581
80582 2000-06-19  Jim Meyering  <meyering@lucent.com>
80583
80584         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
80585
80586 2000-06-18  Jim Meyering  <meyering@lucent.com>
80587
80588         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
80589
80590         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
80591         `checking whether...' message to be consistent with that of the
80592         lstat test.
80593
80594 2000-06-18  Jim Meyering  <meyering@lucent.com>
80595
80596         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
80597         Besides, these days every porting target provides a mkdir function.
80598
80599         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
80600         needed. (this snippet comes from src/system.h).
80601
80602 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
80603
80604         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
80605
80606 2000-06-15  Paul Eggert  <eggert@twinsun.com>
80607
80608         * lib/human.c (adjust_value): New function.
80609         (human_readable_inexact): Apply rounding style even when
80610         printing approximate values.
80611
80612 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80613
80614         * lib/human.c (human_readable_inexact): Allow an input block
80615         size that is not a multiple of the output block size, and vice versa.
80616         Reported by Piergiorgio Sartor.
80617
80618 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80619
80620         * lib/getdate.y (get_date): Apply relative times after time
80621         zone indicator, not before.  Reported by Todd A. Jacobs.
80622
80623 2000-06-13  Jim Meyering  <meyering@lucent.com>
80624
80625         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
80626
80627         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
80628
80629 2000-06-12  Paul Eggert  <eggert@twinsun.com>
80630
80631         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
80632
80633 2000-06-12  Jim Meyering  <meyering@lucent.com>
80634
80635         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
80636         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
80637         optional argument.
80638         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
80639         the optional argument, `lib'.
80640
80641 2000-06-08  Jim Meyering  <meyering@lucent.com>
80642
80643         * m4/largefile.m4: Remove file (now that it's part of autoconf).
80644
80645 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80646
80647         Rewrite largefile configuration so that we don't need to run
80648         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
80649         AC_CANONICAL_HOST in configure.in -- jmm]
80650
80651         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
80652         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
80653         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
80654         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
80655         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
80656         All uses changed.
80657         Instead of inspecting the output of getconf, try to compile the
80658         test program without and with the macro definition.
80659         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
80660         for getconf.  Instead, check for the needed flags by compiling
80661         test programs.
80662
80663 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80664
80665         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
80666
80667 2000-06-04  Jim Meyering  <meyering@lucent.com>
80668
80669         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
80670         SunOS 4.1.4 for which gid_t is an unsigned type.
80671
80672 2000-06-03  Jim Meyering  <meyering@lucent.com>
80673
80674         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
80675         now that autoconf requires that.
80676
80677         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
80678         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
80679         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
80680
80681 2000-06-03  Jim Meyering  <meyering@lucent.com>
80682
80683         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
80684
80685 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80686
80687         * m4/glibc21.m4: New file.
80688         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
80689
80690 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80691
80692         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
80693         newer, don't install charset.alias.
80694         * lib/config.charset: Change the Linux/glibc rules so they become empty
80695         on glibc-2.1 or newer.
80696
80697 2000-06-02  Jim Meyering  <meyering@lucent.com>
80698
80699         * lib/mountlist.c: Back out last change.  Instead, do this...
80700         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
80701         me_dummy member using the same `ignore'-testing code.
80702         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
80703         fs_type strings.
80704         From Mark D. Roth.
80705
80706 2000-05-29  Jim Meyering  <meyering@lucent.com>
80707
80708         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
80709         mounts with the `ignore' attribute.  Based on a patch from
80710         Mark D. Roth.
80711
80712 2000-05-28  Jim Meyering  <meyering@lucent.com>
80713
80714         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
80715         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80716         * m4/stat.m4: Likewise.
80717         * m4/lstat.m4: Likewise.
80718         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
80719
80720         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
80721         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
80722
80723 2000-05-26  Jim Meyering  <meyering@lucent.com>
80724
80725         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
80726
80727 2000-05-24  Jim Meyering  <meyering@lucent.com>
80728
80729         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
80730         autoconf requires that.
80731         * m4/lib-check.m4: Likewise.
80732         * m4/jm-macros.m4: Likewise.
80733         * m4/strftime.m4: Likewise.
80734
80735         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
80736         AC_CHECK_DECLS, now that autoconf requires that.
80737
80738 2000-05-22  Jim Meyering  <meyering@lucent.com>
80739
80740         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80741         * m4/lstat.m4: Likewise.
80742
80743 2000-05-22  Jim Meyering  <meyering@lucent.com>
80744
80745         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
80746
80747 2000-05-20  Jim Meyering  <meyering@lucent.com>
80748
80749         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
80750         (jm_PREREQ): Use it.
80751
80752 2000-05-18  Jim Meyering  <meyering@lucent.com>
80753
80754         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
80755         back, too, since it may have been modified by allocate_entry.
80756         (hash_delete): Rewrite to use neither the assignment operator
80757         nor the comma operator in an if-expression.
80758
80759 2000-05-15  Paul Eggert  <eggert@twinsun.com>
80760
80761         * lib/closeout.c:
80762         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
80763         Remove; no longer needed.
80764         "quotearg.h": Add include.
80765         (file_name): Do not bother to explicitly initialize to NULL; it's less
80766         efficient on some hosts.
80767         (close_stdout_status): Remove test as to whether stdout was already
80768         closed; it breaks for the case "echo x | sort >&-".
80769         Quote file name colons.
80770         Do not assume that _("write error") lacks format strings.
80771
80772 2000-05-15  Jim Meyering  <meyering@lucent.com>
80773
80774         * lib/version-etc.c (version_etc_copyright): Update the copyright
80775         string used in all --version output.
80776
80777 2000-05-14  Jim Meyering  <meyering@lucent.com>
80778
80779         * lib/closeout.c (close_stdout_set_file_name): New function.
80780         (close_stdout_status): Use new file-scoped global.
80781         Return right away if fstat says the stdout file descriptor is invalid.
80782         * lib/closeout.h (close_stdout_set_file_name): Declare.
80783
80784 2000-05-10  Jim Meyering  <meyering@lucent.com>
80785
80786         * lib/closeout.c [default_exit_status]: New file-scoped variable.
80787         (close_stdout_set_status): New function.
80788         * lib/closeout.h (close_stdout_set_status): Declare.
80789
80790 2000-05-09  Jim Meyering  <meyering@lucent.com>
80791
80792         * m4/gettext.m4: Rename this...
80793         * m4/libintl.m4: ...to this.
80794
80795 2000-05-08  Jim Meyering  <meyering@lucent.com>
80796
80797         * lib/long-options.c: Don't include closeout.h.
80798         (parse_long_options): Don't call close_stdout for --version.
80799
80800 2000-05-06  Paul Eggert  <eggert@twinsun.com>
80801
80802         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
80803         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
80804         2.1.3 bug.  This avoids a clash when files like regex.c define
80805         _GNU_SOURCE.
80806
80807 2000-05-06  Jim Meyering  <meyering@lucent.com>
80808
80809         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
80810         (AC_REPLACE_FUNCS): Add strnlen.
80811
80812         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
80813         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
80814
80815         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
80816         AC_SEARCH_LIBS call for nanosleep.
80817         (LIB_NANOSLEEP): Set and AC_SUBST.
80818
80819 2000-05-06  Jim Meyering  <meyering@lucent.com>
80820
80821         * lib/strnlen.c: Undefine __strnlen and strnlen.
80822         [!weak_alias]: Define __strnlen to strnlen.
80823
80824         * lib/atexit.c: New file, from libiberty.
80825
80826 2000-05-06  Jim Meyering  <meyering@lucent.com>
80827
80828         * lib/closeout.c (close_stdout_status): Also check for errors on the
80829         stderr stream.
80830
80831 2000-05-05  Jim Meyering  <meyering@lucent.com>
80832
80833         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
80834         AC_SEARCH_LIBS call for clock_gettime.
80835         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
80836
80837         * m4/search-libs.m4: Update from autoconf.
80838
80839         su doesn't work on Solaris 2.6.
80840         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
80841         <shadow.h>.  Reported by Dragos Harabor.
80842
80843 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
80844
80845         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
80846         memcpy instead of xmalloc, xrealloc, path_concat.
80847         (locale_charset): Treat empty environment variables as absent.
80848         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
80849
80850 2000-05-04  Jim Meyering  <meyering@lucent.com>
80851
80852         * lib/getopt.c: Update from glibc.
80853         * lib/obstack.c: Likewise.
80854         * lib/obstack.h: Likewise.
80855         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
80856         file
80857
80858         * lib/regex.h: Likewise.
80859         * lib/strndup.c: Likewise.
80860         * lib/strnlen.c: New file, from glibc.
80861
80862 2000-05-03  Jim Meyering  <meyering@lucent.com>
80863
80864         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
80865
80866 2000-05-02  Paul Eggert  <eggert@twinsun.com>
80867
80868         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
80869         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
80870         compile-time test, rather than inspecting host and OS, to
80871         decide whether to define _LARGEFILE_SOURCE.
80872
80873 2000-05-01  Jim Meyering  <meyering@lucent.com>
80874
80875         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
80876
80877         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
80878         Based on a patch from Bruno Haible.
80879
80880 2000-05-01  Jim Meyering  <meyering@lucent.com>
80881
80882         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
80883
80884 2000-04-29  Jim Meyering  <meyering@lucent.com>
80885
80886         * lib/path-concat.c: Declare strdup only if it's not defined.
80887         * lib/canon-host.c: Likewise.
80888
80889 2000-04-28  Jim Meyering  <meyering@lucent.com>
80890
80891         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
80892         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
80893         is included first, then limits.h is included by locale.h by libintl.h.
80894         From John David Anglin.
80895
80896 2000-04-25  Jim Meyering  <meyering@lucent.com>
80897
80898         * lib/makepath.c (S_IRWXUGO): Define.
80899         (make_path): Always perform explicit chmod if MODE specifies any
80900         of the `special' permission bits.  Prompted by a bug report against
80901         install from Mate Wierdl and Joost van Baal.
80902
80903 2000-04-18  Jim Meyering  <meyering@lucent.com>
80904
80905         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
80906         (jm_PREREQ): Use it.
80907
80908 2000-04-18  Jim Meyering  <meyering@lucent.com>
80909
80910         * lib/README: New file.
80911
80912         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
80913         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
80914
80915 2000-04-17  Jim Meyering  <meyering@lucent.com>
80916
80917         Get it right :-)
80918         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
80919         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
80920         Suggestion from Akim Demaille.
80921
80922 2000-04-17  Jim Meyering  <meyering@lucent.com>
80923
80924         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
80925         the definition of it to rpl_strftime also defined-away the system's
80926         declaration.
80927
80928 2000-04-15  Jim Meyering  <meyering@lucent.com>
80929
80930         Use `C' to denote so-called `contiguous' files, the same way
80931         that tar does.
80932         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
80933         (ftypelet): Use S_ISCTG.
80934         From Michael Deutschmann.
80935
80936 2000-04-14  Jim Meyering  <meyering@lucent.com>
80937
80938         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
80939         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
80940         clobbered.
80941
80942 2000-04-14  Jim Meyering  <meyering@lucent.com>
80943
80944         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
80945
80946 2000-04-13  Jim Meyering  <meyering@lucent.com>
80947
80948         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
80949         AH_VERBATIM to insert required #ifndef into config.h.in.
80950         Suggestion from Akim Demaille.
80951
80952 2000-04-12  Jim Meyering  <meyering@lucent.com>
80953
80954         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
80955         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
80956         Christian Krackowizer.
80957
80958         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
80959         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
80960         (AC_SYS_LARGEFILE): Require.
80961         (AM_C_PROTOTYPES): Require.
80962
80963 2000-04-08  Jim Meyering  <meyering@lucent.com>
80964
80965         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
80966         names don't conflict.  Reported by Eli Zaretskii.
80967
80968 2000-04-07  Jim Meyering  <meyering@lucent.com>
80969
80970         * lib/putenv.c: Move inclusion of errno.h so it follows that of
80971         sys/types.h, to work around system header problems on AIX 3.2.5.
80972         From Bruno Haible.
80973
80974 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
80975
80976         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
80977         bug.  Deal with the different error behavior of Irix iconv.
80978
80979 2000-04-05  Paul Eggert  <eggert@twinsun.com>
80980
80981         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
80982         IRIX if the installer said otherwise.
80983
80984 2000-04-05  Jim Meyering  <meyering@lucent.com>
80985
80986         Portability tweaks required for ultrix4.3.
80987         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
80988         (jm_CHECK_DECLS): Add getutent to the list of functions.
80989         (_jm_DECL_HEADERS): Add utmpx.h.
80990         From John David Anglin.
80991
80992         * m4/strftime.m4: Back out the 2000-04-02 change.
80993         Instead of that change, simply undefine putenv in the test program.
80994
80995 2000-04-05  Jim Meyering  <meyering@lucent.com>
80996
80997         Portability tweaks required for ultrix4.3.
80998         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
80999         getutent.
81000         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
81001         * lib/canon-host.c: Declare strdup.
81002         * lib/path-concat.c: Likewise.
81003         From John David Anglin.
81004
81005 2000-04-04  Jim Meyering  <meyering@lucent.com>
81006
81007         Be more DOS 8.3-friendly.
81008         * lib/ref-add.sin: Renamed from ref-add.sed.in.
81009         * lib/ref-del.sin: Renamed from ref-del.sed.in.
81010         * lib/Makefile.am: Reflect renaming.
81011         Reported by Eli Zaretskii.
81012
81013         Use a temporary file name that won't clash with `charset.alias'
81014         in the DOS 8.3 name space.
81015         * lib/Makefile.am (charset_tmp): Define.
81016         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
81017         (uninstall-local): Likewise.
81018         Reported by Eli Zaretskii.
81019
81020 2000-04-03  Jim Meyering  <meyering@lucent.com>
81021
81022         * m4/gettext.m4: Fix typo in comment.
81023
81024         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
81025         textutils/configure.in).  Suggestion from Paul Eggert.
81026         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
81027
81028 2000-04-02  Paul Eggert  <eggert@twinsun.com>
81029
81030         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
81031         variable in the shell rather than using putenv, which isn't
81032         portable.  This avoids the configure-time inter-test dependency
81033         on the potentially-renamed putenv function.
81034
81035 2000-03-30  Paul Eggert  <eggert@twinsun.com>
81036
81037         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
81038         before checking struct stat.st_blksize, so that
81039         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
81040
81041 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81042
81043         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
81044         since strftime.c uses HAVE_STRFTIME to decide whether to use
81045         the underlying strftime.
81046
81047 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81048
81049         * lib/time/strftime.c (my_strftime): Make sure we call the system
81050         strftime, not ourselves, when invoking the underlying strftime.
81051
81052 2000-03-24  Jim Meyering  <meyering@lucent.com>
81053
81054         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
81055         (charset_alias): Define.
81056         (install-exec-local): Factor out common code.
81057         (uninstall-local): Split lines longer than 80.
81058         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
81059         (SUFFIXES): Define.
81060         (.sed.in.sed): New rule.  Don't redirect directly to $@.
81061         (CLEANFILES): Add ref-add.sed and ref-del.sed.
81062
81063 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
81064
81065         * lib/config.charset: Output a line containing "Packages using this
81066         file".
81067         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
81068         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
81069         ref-del.sed): New rules.
81070
81071 2000-03-17  Jim Meyering  <meyering@lucent.com>
81072
81073         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
81074         Otherwise, include <strings.h>
81075
81076 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
81077
81078         * lib/unicodeio.c (utf8_wctomb): New function.
81079         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
81080         format instead of in UCS-4 with platform dependent endianness.
81081
81082 2000-03-10  Jim Meyering  <meyering@lucent.com>
81083
81084         * m4/lib-check.m4: Look for getspnam in -lgen, too.
81085         From Marco Franzen.
81086
81087 2000-03-07  Paul Eggert  <eggert@twinsun.com>
81088
81089         * lib/savedir.c (savedir): Work even if directory size is
81090         negative; this can happen with some screwy NFS configurations.
81091
81092 2000-03-06  Jim Meyering  <meyering@lucent.com>
81093
81094         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
81095         if it's NULL (because we ran out of memory).  From Bruno Haible.
81096
81097 2000-03-05  Jim Meyering  <meyering@lucent.com>
81098
81099         * lib/localcharset.c ("path-concat.h"): Include.
81100         (get_charset_aliases): Use path_concat instead of ANSI string
81101         concatenation.
81102
81103         * lib/unicodeio.h (PARAMS): Define.
81104         Use it to guard prototype.
81105
81106 2000-03-04  Jim Meyering  <meyering@lucent.com>
81107
81108         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
81109         for lib/localcharset.c.
81110
81111 2000-03-04  Jim Meyering  <meyering@lucent.com>
81112
81113         * lib/Makefile.am (install-exec-local): Create $(libdir) before
81114         installing into it.
81115         (uninstall-local): Uncomment this rule so `make distcheck' works
81116         once again.
81117
81118         * lib/unicodeio.c (<errno.h>): Include it.
81119         (errno): Declare if not defined.
81120
81121         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
81122
81123         * lib/config.charset: New version, incorporating remarks from a linux
81124         i18n mailing list.  From Bruno Haible.
81125
81126 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
81127
81128         * m4/codeset.m4: New file.
81129         * m4/iconv.m4: New file.
81130         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
81131
81132 2000-03-03  Jim Meyering  <meyering@lucent.com>
81133
81134         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
81135
81136 2000-03-02  Jim Meyering  <meyering@lucent.com>
81137
81138         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
81139         the messages come out on separate lines.
81140
81141         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
81142         rather than jm_CHECK_DECLARATIONS.
81143         * m4/decl.m4: Remove now-unused file.
81144
81145         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
81146         geteuid.
81147
81148 2000-03-02  Jim Meyering  <meyering@lucent.com>
81149
81150         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
81151
81152 2000-03-01  Jim Meyering  <meyering@lucent.com>
81153
81154         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
81155         * lib/unicodeio.c: Likewise.
81156
81157 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
81158
81159         * lib/config.charset: New file.
81160         * lib/localcharset.c: New file.
81161         * lib/unicodeio.h, lib/unicodeio.c: New files.
81162         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
81163         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
81164         (noinst_HEADERS): Add unicodeio.h.
81165         (all-local, install-exec-local, charset.alias): New targets.
81166
81167 2000-02-28  Paul Eggert  <eggert@twinsun.com>
81168
81169         * lib/quotearg.c (ALERT_CHAR): New macro.
81170         (quotearg_buffer_restyled): Use it.
81171
81172 2000-02-27  Jim Meyering  <meyering@lucent.com>
81173
81174         * m4/check-decl.m4: Add getenv to the list.
81175
81176 2000-02-27  Jim Meyering  <meyering@lucent.com>
81177
81178         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
81179         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
81180
81181         * lib/backupfile.c: Guard inclusion of stdlib.h with
81182         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
81183         Declare malloc if needed.
81184
81185         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
81186         `#ifndef HAVE_DECL..'
81187         now that autoconf always defines the HAVE_DECL_ symbols.
81188         * lib/human.c: Likewise.
81189         * lib/same.c: Likewise.
81190         * lib/strtoumax.c: Likewise.
81191
81192         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
81193         declaration check was not run.
81194         * lib/hash.c: Likewise.
81195         * lib/human.c: Likewise.
81196         * lib/same.c: Likewise.
81197         * lib/strtoumax.c: Likewise.
81198
81199         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
81200         `.', then first look up the entire `.'-containing string as a login
81201         name.
81202
81203 2000-02-23  Jim Meyering  <meyering@lucent.com>
81204
81205         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
81206         in place of my hack.
81207
81208 2000-02-18  Paul Eggert  <eggert@twinsun.com>
81209
81210         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
81211         (textint): New typedef.
81212         (parser_control): Member year changed from int to textint.
81213         All uses changed.
81214         (YYSTYPE): Removed; replaced by %union with int and textint members.
81215         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
81216         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
81217         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
81218         (tSNUMBER, tUNUMBER): Now of type <textintval>.
81219         (date, number, to_year): Use width of number in digits, not its value,
81220         to determine whether it's a 2-digit year, or a 2-digit time.
81221         (yylex): Store number of digits of numeric tokens.
81222         Reported by John Kendall.
81223
81224         (parser_control): Changed from struct parser_control to typedef (for
81225         consistency).  All uses changed.
81226
81227         (tID): Removed; not used.
81228         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
81229
81230 2000-02-14  Paul Eggert  <eggert@twinsun.com>
81231
81232         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
81233         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
81234
81235 2000-02-12  Jim Meyering  <meyering@lucent.com>
81236
81237         * lib/userspec.c (ISDIGIT): Define it.
81238         (isdigit): Remove definition.
81239         (is_number): Use ISDIGIT, not isdigit.
81240         <libintl.h>: Include.
81241         (_ and N_): Define.
81242         (parse_user_spec): Mark translatable strings.
81243
81244 2000-02-10  Jim Meyering  <meyering@lucent.com>
81245
81246         With these changes, nanosleep.[ch] are finally enough like the other
81247         lib/* replacement files to compile on a few more losing systems.
81248
81249         * lib/nanosleep.h: Don't include config.h.
81250         Remove prototype from declaration of nanosleep.
81251         (PARAMS): Remove now-unneeded definition.
81252         * lib/nanosleep.c: #undef nanosleep.
81253         (rpl_nanosleep): Rename from nanosleep.
81254
81255 2000-02-10  Jim Meyering  <meyering@lucent.com>
81256
81257         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
81258         gnu_nanosleep to rpl_nanosleep.
81259
81260 2000-02-09  Jim Meyering  <meyering@lucent.com>
81261
81262         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
81263         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
81264
81265 2000-02-08  Akim Demaille  <akim@epita.fr>
81266
81267         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
81268         `[' and `]' and remove uses of `changequote'.
81269         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
81270         (AC_SYS_LARGEFILE): Likewise.
81271         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
81272         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
81273         of changequote.
81274         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
81275         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
81276         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
81277         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
81278
81279 2000-02-05  Jim Meyering  <meyering@lucent.com>
81280
81281         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
81282         Remove explicit use of AC_HEADER_TIME.  It is required by
81283         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
81284         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
81285         in autoconf whereby the expansion of the latter ended up preceding
81286         the expansion of its prerequisite, AC_HEADER_TIME.
81287         Reported by Volker Borchert.
81288
81289 2000-02-03  Jim Meyering  <meyering@lucent.com>
81290
81291         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
81292
81293 2000-02-03  Jim Meyering  <meyering@lucent.com>
81294
81295         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
81296         rather than with `#if HAVE_UTMPNAME'.
81297
81298 2000-02-02  Jim Meyering  <meyering@lucent.com>
81299
81300         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
81301         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
81302         Reported by Eli Zaretskii.
81303
81304 2000-02-01  Jim Meyering  <meyering@lucent.com>
81305
81306         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
81307
81308 2000-01-31  Jim Meyering  <meyering@lucent.com>
81309
81310         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
81311         functions.  Add the time.h and sys/time.h headers along with the
81312         AC_REQUIRE'ment of AC_HEADER_TIME.
81313
81314 2000-01-31  Jim Meyering  <meyering@lucent.com>
81315
81316         * lib/nanosleep.h (nanosleep): Guard declaration with
81317         `#if ! HAVE_DECL_NANOSLEEP'.
81318         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
81319         the declaration in that vendor's sys/timers.h.
81320         Reported by Christian Krackowizer.
81321
81322         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
81323         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
81324         (ISPRINT): Likewise.
81325         Reported by Tom Tromey.
81326
81327 2000-01-30  Jim Meyering  <meyering@lucent.com>
81328
81329         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
81330
81331         * m4/prereq.m4 (utmp_includes): Define.
81332         Check for ut_user and ut_name members in both struct utmpx
81333         and struct utmp.
81334
81335 2000-01-30  Jim Meyering  <meyering@lucent.com>
81336
81337         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
81338         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
81339         header files where only utmpx.ut_user is declared.
81340
81341         * lib/readutmp.h (UT_USER): Define.
81342
81343 2000-01-29  Jim Meyering  <meyering@lucent.com>
81344
81345         * m4/lib-check.m4: New file containing library-related checks from
81346         fileutils and sh-utils (textutils had none).
81347
81348 2000-01-28  Jim Meyering  <meyering@lucent.com>
81349
81350         * m4/perl.m4: Change format of warning message to look more like that
81351         from the missing script.  Suggestion from François Pinard.
81352
81353 2000-01-25  Jim Meyering  <meyering@lucent.com>
81354
81355         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
81356         well as time.h in the compile check.
81357         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
81358         Fix typo in cross-compiling case: s/yes/no/.
81359
81360 2000-01-23  Jim Meyering  <meyering@lucent.com>
81361
81362         * m4/jm-macros.m4: Move df-related tests here from
81363         fileutils/configure.in
81364
81365         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
81366         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
81367
81368         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
81369         s/space/ac_fsusage_space/.
81370         (jm_FILE_SYSTEM_USAGE): Take two parameters.
81371
81372         * m4/ftruncate.m4: New file (derived from part of
81373         fileutils/configure.in).
81374         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
81375         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
81376
81377         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
81378         AC_SUBST these here, rather than just in sh-util/configure.in, so
81379         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
81380         all the same.
81381         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
81382         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
81383         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
81384         (AC_SUBST(POW_LIBM)): Likewise.
81385         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
81386
81387 2000-01-23  Jim Meyering  <meyering@lucent.com>
81388
81389         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
81390         obstack.c.
81391
81392 2000-01-22  Jim Meyering  <meyering@lucent.com>
81393
81394         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
81395
81396         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
81397
81398         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
81399         configure.in
81400         (AC_CHECK_HEADERS): Likewise for sh-utils.
81401         (AC_CHECK_HEADERS): Likewise for textutils.
81402         Merge the three lists of headers.
81403
81404         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
81405         from fileutils' configure.in.
81406
81407         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
81408         code. Moved tests into their own function (_jm_DECL_HEADERS) in
81409         check-decl.m4.
81410
81411         * m4/check-decl.m4: Use #if rather than #ifdef.
81412         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
81413         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
81414         (_jm_DECL_HEADERS): Define new function.
81415         (jm_CHECK_DECLARATIONS): Require it.
81416
81417 2000-01-22  Jim Meyering  <meyering@lucent.com>
81418
81419         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
81420         [! HAVE_DECL_STRTOULL]: Declare strtoull.
81421         Required for some AIX systems.  Reported by Christian Krackowizer.
81422         [TESTING] (main): New function.
81423
81424         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
81425         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
81426         letters.
81427
81428         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
81429         iswprint.
81430
81431         * lib/strverscmp.c (ISDIGIT): Define.
81432         (strverscmp): Use ISDIGIT, not isdigit.
81433
81434 2000-01-19  Jim Meyering  <meyering@lucent.com>
81435
81436         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
81437         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
81438         defines `struct timespec' in <sys/time.h>
81439
81440         * m4/c-bs-a.m4: Remove uses of changequote altogether.
81441         Thanks to Akim for explaining.
81442
81443 2000-01-17  Paul Eggert  <eggert@twinsun.com>
81444
81445         * lib/nanosleep.c (nanosleep):
81446         Don't use SA_INTERRUPT to decide whether to call sigaction, as
81447         POSIX.1 doesn't require SA_INTERRUPT and some systems
81448         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
81449         it's been part of POSIX.1 since day 1 (in 1988).
81450
81451 2000-01-17  Jim Meyering  <meyering@lucent.com>
81452
81453         * lib/interlock: Remove unused file.  Reported by François Pinard.
81454
81455 2000-01-16  Paul Eggert  <eggert@twinsun.com>
81456
81457         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
81458         alert, backslash, formfeed, and vertical tab unnecessarily in
81459         shell quoting style.
81460
81461 2000-01-16  Jim Meyering  <meyering@lucent.com>
81462
81463         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
81464         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
81465         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
81466         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
81467
81468 2000-01-16  Jim Meyering  <meyering@lucent.com>
81469
81470         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
81471         because the latter didn't work.
81472
81473 2000-01-15  Jim Meyering  <meyering@lucent.com>
81474
81475         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
81476         (AC_REPLACE_FUNCS): Add memcpy and memset.
81477         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
81478         Add strpbrk.
81479         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
81480
81481 2000-01-12  Jim Meyering  <meyering@lucent.com>
81482
81483         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
81484         (jm_PREREQ): Use it.
81485         (jm_PREREQ_READUTMP): New macro.
81486         (jm_PREREQ): Use it.
81487
81488 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81489
81490         Quote multibyte characters correctly.
81491         * m4/c-bs-a.m4: New file.
81492         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
81493         (jm_PREREQ): Use it.
81494
81495 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81496
81497         * m4/uintmax_t.m4: Port to autoconf 2.13.
81498
81499 2000-01-08  Jim Meyering  <meyering@ascend.com>
81500
81501         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
81502         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
81503
81504 2000-01-04  Jim Meyering  <meyering@ascend.com>
81505
81506         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
81507         jm_STRUCT_DIRENT_D_TYPE.
81508         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
81509         jm_STRUCT_DIRENT_D_INO.
81510         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
81511         jm_STRUCT_UTIMBUF.
81512         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
81513         renamings.
81514         * m4/utime.m4: Likewise.
81515
81516         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
81517         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
81518
81519 2000-01-03  Paul Eggert  <eggert@twinsun.com>
81520
81521         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
81522         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
81523
81524 2000-01-02  Jim Meyering  <meyering@ascend.com>
81525
81526         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
81527         remember if this is necessary.
81528
81529 1999-12-26  Jim Meyering  <meyering@ascend.com>
81530
81531         * m4/jm-macros.m4: Use it here.
81532         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
81533
81534 1999-12-23  Jim Meyering  <meyering@ascend.com>
81535
81536         * m4/jm-macros.m4: Check for clock_gettime (moved from
81537         fileutils/configure.in)
81538         Check for gettimeofday.
81539
81540 1999-12-20  Jim Meyering  <meyering@ascend.com>
81541
81542         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
81543         autoconf-2.14a-1999-12-20.
81544
81545 1999-12-19  Jim Meyering  <meyering@ascend.com>
81546
81547         * m4/lstat-slash.m4: New file.
81548         * m4/jm-macros.m4: Use the new macro:
81549         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81550
81551 1999-12-07  Jim Meyering  <meyering@ascend.com>
81552
81553         * m4/perl.m4: Require that File::Compare be available, too.
81554         Too many systems seem to lack it.
81555
81556         * m4/strftime.m4: Add checks for most of the cpp macros tested in
81557         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
81558
81559 1999-11-18  Paul Eggert  <eggert@twinsun.com>
81560
81561         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
81562         problem with the QNX 4.25 shell, which doesn't propagate exit
81563         status of failed commands inside shell assignments.
81564
81565 1999-11-17  Jim Meyering  <meyering@ascend.com>
81566
81567         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
81568
81569 1999-11-07  Jim Meyering  <meyering@ascend.com>
81570
81571         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
81572
81573 1999-11-06  Jim Meyering  <meyering@ascend.com>
81574
81575         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
81576         * m4/jm-macros.m4 (jm_MACROS): Use it here.
81577
81578 1999-11-05  Jim Meyering  <meyering@ascend.com>
81579
81580         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
81581         configure.in of textutils, fileutils, and sh-utils into this one
81582         (shared between those packages) file.
81583         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
81584         AC_STRUCT_ST_BLKSIZE.
81585
81586 1999-11-03  Jim Meyering  <meyering@ascend.com>
81587
81588         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
81589         of AC_CHECK_TYPE checks includes unistd.h.
81590         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
81591         Suggestion from Akim Demaille.
81592
81593 1999-10-30  Jim Meyering  <meyering@ascend.com>
81594
81595         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
81596         m4-quoted string.
81597         * m4/ls-mntd-fs.m4: Likewise.
81598         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
81599         * m4/jm-winsz1.m4: Likewise.
81600
81601         * m4/const.m4: Remove file, since the fix made it into the experimental
81602         version of autoconf.
81603         * m4/mktime.m4: Likewise.
81604
81605         * m4/check-type.m4: Remove file, now that the latest version of
81606         AC_CHECK_TYPE takes a third arg to specify additional #includes.
81607
81608         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
81609         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
81610         AC_CHECK_TYPE.
81611
81612 1999-10-04  Jim Meyering  <meyering@ascend.com>
81613
81614         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
81615
81616 1999-09-22  Paul Eggert  <eggert@twinsun.com>
81617
81618         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
81619         2.95.1 bug with HP-UX 10.20.
81620
81621 1999-09-17  Jim Meyering  <meyering@ascend.com>
81622
81623         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
81624         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
81625         due to missing strdup (against sh-utils-2.0).
81626
81627 1999-08-29  Jim Meyering  <meyering@ascend.com>
81628
81629         * m4/jm-macros.m4: Require jm_BISON.
81630         * m4/bison.m4: New file.
81631
81632 1999-08-17  Paul Eggert  <eggert@twinsun.com>
81633
81634         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
81635         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
81636
81637 1999-08-05  Jim Meyering  <meyering@ascend.com>
81638
81639         * m4/getline.m4: Rename test file from conftestdata to conftest.data
81640         to avoid conflicts with `conftest' on 8+3 filesystems.
81641         Suggestion from Eli Zaretskii.
81642
81643 1999-08-04  Jim Meyering  <meyering@ascend.com>
81644
81645         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
81646         fileutils and sh-utils (textutils's getline test was inadequate).
81647         (AM_FUNC_GETLINE): Run this test.
81648         (AC_CHECK_FUNCS): Check for getdelim.
81649         Reported by Bob Proulx.
81650
81651 1999-08-02  Jim Meyering  <meyering@ascend.com>
81652
81653         * m4/jm-macros.m4: Add a comment.
81654
81655 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81656
81657         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
81658         <inttypes.h> defines strtoumax as a macro (and not as a
81659         function).
81660
81661 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81662
81663         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
81664         that we can shift, multiply and divide unsigned long long
81665         values; Ultrix cc can't do it.
81666
81667 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81668
81669         * m4/mktime.m4: New file, which is a preview of what should appear
81670         in the next public autoconf release.
81671
81672 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81673
81674         * m4/lfs.m4: Remove this file.
81675         * m4/largefile.m4: New file.  It contains the old contents of
81676         lfs.m4, except that all names with prefix AC_LFS have been
81677         changed to use the prefix AC_SYS_LARGEFILE instead, to be
81678         compatible with future autoconf versions.  Also, some minor m4
81679         quoting problems have been fixed.
81680
81681 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81682
81683         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
81684         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
81685         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
81686         and simplify the shell code.
81687
81688 1999-08-01  Jim Meyering  <meyering@ascend.com>
81689
81690         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
81691         m4.
81692
81693 1999-07-20  Jim Meyering  <meyering@ascend.com>
81694
81695         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
81696
81697 1999-07-15  Jim Meyering  <meyering@ascend.com>
81698
81699         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
81700
81701 1999-05-22  Jim Meyering  <meyering@ascend.com>
81702
81703         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
81704
81705 1999-05-20  Jim Meyering  <meyering@ascend.com>
81706
81707         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
81708         Add a colon after each `then' in case $4 is empty.
81709
81710 1999-05-16  Jim Meyering  <meyering@ascend.com>
81711
81712         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
81713
81714 1999-05-10  Jim Meyering  <meyering@ascend.com>
81715
81716         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
81717
81718         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
81719         AC_FUNC_MKTIME.
81720
81721 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
81722
81723         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
81724
81725 1999-05-04  Paul Eggert  <eggert@twinsun.com>
81726
81727         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
81728         not CPPFLAGS, so that linking works correctly in IRIX.
81729
81730 1999-04-30  Paul Eggert  <eggert@twinsun.com>
81731
81732         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
81733
81734 1999-04-20  Paul Eggert  <eggert@twinsun.com>
81735
81736         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
81737         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
81738         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
81739         jm_AC_TYPE_UNSIGNED_LONG_LONG.
81740         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
81741
81742         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
81743
81744 1999-04-20  Jim Meyering  <meyering@ascend.com>
81745
81746         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
81747         AC_REPLACE xstroull if necessary.  From Paul Eggert.
81748         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
81749
81750 1999-04-18  Jim Meyering  <meyering@ascend.com>
81751
81752         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
81753         * m4/jm-macros.m4: Use it.
81754
81755 1999-04-06  Jim Meyering  <meyering@ascend.com>
81756
81757         * m4/strftime.m4: Remove test for %f.
81758
81759 1999-03-29  Jim Meyering  <meyering@ascend.com>
81760
81761         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
81762         superset of the AC_TYPE_* checks in the textutils, fileutils,
81763         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
81764         AC_TYPE_PID_T.
81765
81766 1999-03-28  Jim Meyering  <meyering@ascend.com>
81767
81768         * m4/jm-macros.m4: Define GNU_PACKAGE here.
81769         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
81770         replaced e.g., in the *.sh files of the sh-utils.
81771
81772 1999-03-20  Jim Meyering  <meyering@ascend.com>
81773
81774         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
81775         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
81776         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
81777
81778 1999-03-19  Jim Meyering  <meyering@ascend.com>
81779
81780         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
81781
81782 1999-03-12  Jim Meyering  <meyering@ascend.com>
81783
81784         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
81785
81786 1999-03-07  Jim Meyering  <meyering@ascend.com>
81787
81788         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
81789         declared.
81790
81791 1999-02-17  Jim Meyering  <meyering@ascend.com>
81792
81793         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
81794         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
81795
81796 1999-02-07  Jim Meyering  <meyering@ascend.com>
81797
81798         * m4/group-member.m4: New file -- extracted from sh-utils'
81799         configure.in.
81800
81801         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
81802         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
81803
81804 1999-02-06  Jim Meyering  <meyering@ascend.com>
81805
81806         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
81807         * m4/fnmatch.m4: Likewise.
81808         * m4/getgroups.m4: Likewise.
81809         * m4/lstat.m4: Likewise.
81810         * m4/malloc.m4: Likewise.
81811         * m4/putenv.m4: Likewise.
81812         * m4/realloc.m4: Likewise.
81813         * m4/regex.m4: Likewise.
81814         * m4/stat.m4: Likewise.
81815         * m4/strftime.m4: Likewise.
81816         Suggestion from Alain Magloire.
81817
81818         * m4/chown.m4: Use `.$ac_objext', not `.o'.
81819         * m4/fnmatch.m4: Likewise.
81820         * m4/getgroups.m4: Likewise.
81821         * m4/getline.m4: Likewise.
81822         * m4/lstat.m4: Likewise.
81823         * m4/malloc.m4: Likewise.
81824         * m4/memcmp.m4: Likewise.
81825         * m4/putenv.m4: Likewise.
81826         * m4/realloc.m4: Likewise.
81827         * m4/regex.m4: Likewise.
81828         * m4/stat.m4: Likewise.
81829         * m4/strftime.m4: Likewise.
81830         Suggestion from Alain Magloire.
81831
81832         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
81833         an argument.
81834
81835         * m4/regex.m4: Add a run-time Test for proper operation of
81836         re_compile_pattern.
81837
81838 1999-01-31  Jim Meyering  <meyering@ascend.com>
81839
81840         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
81841
81842 1999-01-30  Jim Meyering  <meyering@ascend.com>
81843
81844         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
81845
81846         * m4/jm-mktime.m4: Make this a wrapper around the official
81847         AM_FUNC_MKTIME rather than my private copy, now that the official one
81848         is up to date.
81849         * m4/mktime.m4: Remove file.
81850
81851         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
81852         * m4/uptime.m4: Likewise.
81853         * m4/uintmax_t.m4: Likewise.
81854
81855 1999-01-28  Jim Meyering  <meyering@ascend.com>
81856
81857         * m4/jm-macros.m4: Use jm_AFS.
81858         * m4/afs.m4: New file (from fileutils' configure.in).
81859
81860         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
81861         * m4/chown.m4: Likewise.
81862         * m4/d-ino.m4: Likewise.
81863         * m4/d-type.m4: Likewise.
81864         * m4/fnmatch.m4: Likewise.
81865         * m4/getgroups.m4: Likewise.
81866         * m4/gettext.m4: Likewise.
81867         * m4/jm-mktime.m4: Likewise.
81868         * m4/jm-winsz2.m4: Likewise.
81869         * m4/lcmessage.m4: Likewise.
81870         * m4/ls-mntd-fs.m4: Likewise.
81871         * m4/malloc.m4: Likewise.
81872         * m4/memcmp.m4: Likewise.
81873         * m4/putenv.m4: Likewise.
81874         * m4/realloc.m4: Likewise.
81875         * m4/st_mtim.m4: Likewise.
81876         * m4/strftime.m4: Likewise.
81877
81878 1999-01-16  Jim Meyering  <meyering@ascend.com>
81879
81880         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
81881         (ARGMATCH_DIE_DECL): Define.
81882
81883 1999-01-12  Jim Meyering  <meyering@ascend.com>
81884
81885         * m4/Makefile.am.in: Rewrite to avoid using fmt.
81886         Reported by Lars Hecking.
81887
81888 1999-01-10  Jim Meyering  <meyering@ascend.com>
81889
81890         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
81891         gross kludge.
81892         * m4/inttypes_h.m4: Likewise.
81893         * m4/lstat.m4: Likewise.
81894         * m4/malloc.m4: Likewise.
81895         * m4/readdir.m4: Likewise.
81896         * m4/realloc.m4: Likewise.
81897         * m4/st_dm_mode.m4: Likewise.
81898         * m4/stat.m4: Likewise.
81899         * m4/utimbuf.m4: Likewise.
81900         * m4/utimes.m4: Likewise.
81901
81902         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
81903         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
81904         comments in config.h.in are meaningful.
81905
81906         * m4/jm-macros.m4: Require autoconf-2.13 here.
81907
81908         * m4/regex.m4: By default, don't use the included regex.c on systems
81909         with glibc 2.  Suggestion from Uli Drepper.
81910
81911 1999-01-02  Jim Meyering  <meyering@ascend.com>
81912
81913         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
81914
81915 1998-12-18  Jim Meyering  <meyering@ascend.com>
81916
81917         * m4/Makefile.am.in (Makefile.am): Simplify rule.
81918         Based on a suggestion from Lars Hecking.
81919
81920 1998-11-16  Paul Eggert  <eggert@twinsun.com>
81921
81922         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
81923
81924 1998-11-16  Jim Meyering  <meyering@ascend.com>
81925
81926         * m4/lfs.m4: Double-quote the `uname...` expression.
81927
81928 1998-11-14  Jim Meyering  <meyering@ascend.com>
81929
81930         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
81931         * m4/stat.m4: Likewise.
81932
81933 1998-11-03  Jim Meyering  <meyering@ascend.com>
81934
81935         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
81936         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
81937
81938 1998-10-18  Jim Meyering  <meyering@ascend.com>
81939
81940         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
81941
81942 1998-10-17  Jim Meyering  <meyering@ascend.com>
81943
81944         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
81945         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
81946         calls for those previously hard-coded headers.  Instead, take a new
81947         parameter.
81948         (jm_CHECK_DECLARATIONS): Reflect interface change.
81949         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
81950         (jm_CHECK_DECL_LOCALTIME_R): New macro.
81951
81952         * m4/mktime.m4: Test for spring-forward gap before long-running test.
81953
81954 1998-10-14  Jim Meyering  <meyering@ascend.com>
81955
81956         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
81957         instead of "TZ=America/Vancouver".  From Paul Eggert.
81958
81959 1998-10-11  Jim Meyering  <meyering@ascend.com>
81960
81961         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
81962         This adds a test for a recently added compatibility fix for mktime.c.
81963         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
81964
81965 1998-09-27  Jim Meyering  <meyering@ascend.com>
81966
81967         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
81968
81969         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
81970         ../configure.in, including a change from Gordon Matzigkeit to allow
81971         cross-compiling for the Hurd.
81972
81973         * m4/glibc.m4: New file/macro to test for the GNU C Library
81974         versions 1 and 2.  From Gordon Matzigkeit.
81975         Indent.
81976
81977 1998-09-21  Jim Meyering  <meyering@ascend.com>
81978
81979         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
81980
81981 1998-08-18  Paul Eggert  <eggert@twinsun.com>
81982
81983         Port nanosecond-resolution times to UnixWare 2.1.2 and
81984         pedantic Solaris 2.6.
81985
81986         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
81987         AC_STRUCT_ST_MTIM.
81988         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
81989         Generate name of ns member, instead of just 1 or undef.
81990         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
81991
81992 1998-08-15  Jim Meyering  <meyering@ascend.com>
81993
81994         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
81995         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
81996         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
81997         instead of jm_TYPE_SSIZE_T.
81998
81999 1998-08-12  Jim Meyering  <meyering@ascend.com>
82000
82001         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
82002
82003 1998-08-02  Jim Meyering  <meyering@ascend.com>
82004
82005         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
82006         in acconfig.h manually.
82007
82008 1998-07-31  Paul Eggert  <eggert@twinsun.com>
82009
82010         * m4/st_mtim.m4: New file.
82011
82012 1998-07-28  Jim Meyering  <meyering@ascend.com>
82013
82014         * m4/utimes.m4: Undef stat.
82015
82016 1998-07-25  Jim Meyering  <meyering@ascend.com>
82017
82018         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
82019         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
82020
82021 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
82022
82023         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
82024         uid and gid actually remain unchanged.
82025
82026 1998-07-07  Jim Meyering  <meyering@ascend.com>
82027
82028         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
82029
82030 1998-07-04  Jim Meyering  <meyering@ascend.com>
82031
82032         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
82033         to prove that this macro can be used in packages without regex.c.
82034
82035 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
82036
82037         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
82038         is to be used.
82039
82040 1998-07-03  Jim Meyering  <meyering@ascend.com>
82041
82042         * m4/gettext.m4: Add -lintl if it's found to be necessary.
82043
82044         * m4/gettext.m4: New file -- from gettext-0.10.35.
82045         * m4/lcmessage.m4: Likewise.
82046         * m4/progtest.m4: Likewise.
82047
82048         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
82049         * m4/jm-macros.m4: Require the new macro.
82050
82051 1998-06-29  Jim Meyering  <meyering@ascend.com>
82052
82053         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
82054         for the definition of NGROUPS (used in a system header included
82055         by sys/mount.h).
82056
82057 1998-06-28  Jim Meyering  <meyering@ascend.com>
82058
82059         * m4/ls-mntd-fs.m4: New file.
82060         * m4/fstypename.m4: New file.
82061
82062         * m4/jm-macros.m4: Require the new macro.
82063         * m4/jm-glibc-io.m4: New file.
82064
82065 1998-05-19  Jim Meyering  <meyering@ascend.com>
82066
82067         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
82068         * m4/lchown.m4: New file.
82069
82070         * m4/Makefile.am.in: New file.
82071         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
82072
82073 1998-05-14  Jim Meyering  <meyering@ascend.com>
82074
82075         * m4/Makefile.am (EXTRA_DIST): Add them.
82076         * m4/jm-macros.m4: New file.
82077         * m4/utimbuf.m4: New file.
82078
82079 1998-05-12  Jim Meyering  <meyering@ascend.com>
82080
82081         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
82082
82083 1998-05-11  Jim Meyering  <meyering@ascend.com>
82084
82085         * m4/isc-posix.m4: New file.
82086
82087 1998-05-10  Jim Meyering  <meyering@ascend.com>
82088
82089         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
82090
82091 1998-05-09  Jim Meyering  <meyering@ascend.com>
82092
82093         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
82094         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
82095         with automake.
82096
82097         * m4/ssize_t.m4: New file.
82098         * m4/mktime.m4: Remove file -- the new automake has this now.
82099
82100 1998-04-26  Jim Meyering  <meyering@ascend.com>
82101
82102         * m4/assert.m4: New file.
82103         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
82104
82105 1998-04-05  Jim Meyering  <meyering@ascend.com>
82106
82107         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
82108         (jm_PREREQ): Use it here.
82109
82110 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
82111
82112         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
82113         in acconfig.h.
82114
82115 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
82116
82117         * m4/prereq.m4: New file.
82118         * m4/error.m4: New file.
82119         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
82120
82121 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
82122
82123         * m4/getline.m4: Don't set am_cv_func_working_getline before the
82124         cache-check for the same variable -- that defeated the purpose of
82125         the test; the test program was never run.  This was a problem only
82126         on systems with losing getline functions -- HP-UX 10.20 is one.
82127         Reported by Bjorn Helgaas.
82128
82129 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
82130
82131         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
82132
82133 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
82134
82135         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
82136
82137         * m4/const.m4: New file.  Use an initializer in this declaration
82138         typedef int charset[2]; const charset x;
82139         Reported by Bob Glickstein.
82140
82141 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
82142
82143         * m4/chown.m4: Fix reversed types on -1 args to chown.
82144         From Kaveh Ghazi.
82145
82146 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
82147
82148         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
82149         Add lseek and memchr.
82150
82151         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
82152         T.E.Dickey <dickey@clark.net> said that some older preprocessors
82153         have a 20-character limit on names.
82154
82155 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
82156
82157         * m4/inttypes_h.m4: New file.
82158         * m4/uintmax_t.m4: New file.
82159         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
82160
82161
82162         -----
82163
82164         Local Variables:
82165         coding: utf-8
82166         End:
82167
82168         Copyright (C) 1997-2011 Free Software Foundation, Inc.
82169
82170         Copying and distribution of this file, with or without
82171         modification, are permitted provided the copyright notice
82172         and this notice are preserved.