1 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
3 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
4 READ_UTMP_USER_PROCESS.
5 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
7 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
9 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
10 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
12 2006-10-17 Eric Blake <ebb9@byu.net>
14 * lib/sigprocmask.c (sigprocmask): Fix typo.
16 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
18 * modules/clean-temp (Makefile.am): Don't add to make output...
19 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
22 2006-10-17 Bruno Haible <bruno@clisp.org>
24 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
25 differently if DEFAULT_TEXT_DOMAIN is set.
27 2006-10-16 Bruno Haible <bruno@clisp.org>
29 * lib/clean-temp.c: Include fwriteerror.h.
31 2006-10-16 Bruno Haible <bruno@clisp.org>
33 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
35 2006-10-16 Bruno Haible <bruno@clisp.org>
37 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
38 * lib/sigprocmask.h: Include <sys/types.h>.
39 (sigset_t): Use the system's definition if present.
41 2006-10-17 Eric Blake <ebb9@byu.net>
43 * lib/xvasprintf.c (includes): Assume config.h.
44 * lib/xasprintf.c (includes): Likewise.
46 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
48 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
49 at least as wide as intmax_t.
51 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
53 (Imported from Automake.)
54 * build-aux/gnupload: Update to version 1.1 of directive file.
56 2006-10-16 Eric Blake <ebb9@byu.net>
58 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
61 2006-10-14 Bruno Haible <bruno@clisp.org>
63 * modules/sigprocmask: New file.
64 * lib/sigprocmask.h: New file.
65 * lib/sigprocmask.c: New file.
66 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68 request sigprocmask.o.
69 (gl_PREREQ_SIGPROCMASK): New macro.
70 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71 (Depends-on): Add sigprocmask.
72 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73 gt_SIGNALBLOCKING. Test for 'raise' only once.
74 * lib/fatal-signal.c: Include sigprocmask.h.
75 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
76 unblock_fatal_signals): Define always.
77 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
83 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
84 which incorrectly sets the mode of an existing destination
85 directory. In some cases the unpatched install-sh could do the
86 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
87 system. We hope this is rare in practice, but it's clearly worth
88 fixing. Problem reported by Alex Unleashed in
89 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
90 Also, don't bother to check for -m bugs unless we're using -m;
91 suggested by Stepan Kasal.
93 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
96 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
97 `-c' flag, so they appear at the same position as in %FASTDEP%
98 mode in depend2.am. Fixes build failure for FreeBSD's c89,
99 which ignores unknown options only after the first non-option.
100 Bug report against M4 by Nelson H. F. Beebe.
102 2006-10-13 Jim Meyering <jim@meyering.net>
104 Fix a bug in yesterday's change.
105 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
106 p->fts_statp->st_dev would be used uninitialized.
107 Ensures that we always call fts_stat on the very first entry.
108 Miklos Szeredi reported that find -xdev stopped working.
110 2006-10-12 Bruno Haible <bruno@clisp.org>
112 * gnulib-tool (func_get_automake_snippet): Append an automatically
113 computed EXTRA_DIST augmentation.
114 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
115 * modules/alloca-opt (Makefile.am): Likewise.
116 * modules/allocsa (Makefile.am): Likewise.
117 * modules/arcfour (Makefile.am): Likewise.
118 * modules/arctwo (Makefile.am): Likewise.
119 * modules/argmatch (Makefile.am): Likewise.
120 * modules/argz (Makefile.am): Likewise.
121 * modules/atexit (Makefile.am): Likewise.
122 * modules/backupfile (Makefile.am): Likewise.
123 * modules/byteswap (Makefile.am): Likewise.
124 * modules/c-strtod (Makefile.am): Likewise.
125 * modules/c-strtold (Makefile.am): Likewise.
126 * modules/calloc (Makefile.am): Likewise.
127 * modules/canon-host (Makefile.am): Likewise.
128 * modules/canonicalize (Makefile.am): Likewise.
129 * modules/chdir-long (Makefile.am): Likewise.
130 * modules/chdir-safer (Makefile.am): Likewise.
131 * modules/check-version (Makefile.am): Likewise.
132 * modules/chown (Makefile.am): Likewise.
133 * modules/cloexec (Makefile.am): Likewise.
134 * modules/close-stream (Makefile.am): Likewise.
135 * modules/closeout (Makefile.am): Likewise.
136 * modules/crc (Makefile.am): Likewise.
137 * modules/csharpexec (Makefile.am): Likewise.
138 * modules/cycle-check (Makefile.am): Likewise.
139 * modules/des (Makefile.am): Likewise.
140 * modules/dev-ino (Makefile.am): Likewise.
141 * modules/dirfd (Makefile.am): Likewise.
142 * modules/dirname (Makefile.am): Likewise.
143 * modules/dup2 (Makefile.am): Likewise.
144 * modules/eealloc (Makefile.am): Likewise.
145 * modules/error (Makefile.am): Likewise.
146 * modules/euidaccess (Makefile.am): Likewise.
147 * modules/exclude (Makefile.am): Likewise.
148 * modules/exitfail (Makefile.am): Likewise.
149 * modules/fcntl-safer (Makefile.am): Likewise.
150 * modules/fcntl (Makefile.am): Likewise.
151 * modules/file-type (Makefile.am): Likewise.
152 * modules/fileblocks (Makefile.am): Likewise.
153 * modules/filemode (Makefile.am): Likewise.
154 * modules/filenamecat (Makefile.am): Likewise.
155 * modules/fnmatch (Makefile.am): Likewise.
156 * modules/fopen-safer (Makefile.am): Likewise.
157 * modules/fpending (Makefile.am): Likewise.
158 * modules/fprintftime (Makefile.am): Likewise.
159 * modules/free (Makefile.am): Likewise.
160 * modules/fsusage (Makefile.am): Likewise.
161 * modules/ftruncate (Makefile.am): Likewise.
162 * modules/fts (Makefile.am): Likewise.
163 * modules/gc-arcfour (Makefile.am): Likewise.
164 * modules/gc-des (Makefile.am): Likewise.
165 * modules/gc-hmac-md5 (Makefile.am): Likewise.
166 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
167 * modules/gc-md4 (Makefile.am): Likewise.
168 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
169 * modules/gc-sha1 (Makefile.am): Likewise.
170 * modules/gc (Makefile.am): Likewise.
171 * modules/getaddrinfo (Makefile.am): Likewise.
172 * modules/getcwd (Makefile.am): Likewise.
173 * modules/getdelim (Makefile.am): Likewise.
174 * modules/getdomainname (Makefile.am): Likewise.
175 * modules/getgroups (Makefile.am): Likewise.
176 * modules/gethostname (Makefile.am): Likewise.
177 * modules/gethrxtime (Makefile.am): Likewise.
178 * modules/getline (Makefile.am): Likewise.
179 * modules/getloadavg (Makefile.am): Likewise.
180 * modules/getlogin_r (Makefile.am): Likewise.
181 * modules/getndelim2 (Makefile.am): Likewise.
182 * modules/getopt (Makefile.am): Likewise.
183 * modules/getpagesize (Makefile.am): Likewise.
184 * modules/getpass-gnu (Makefile.am): Likewise.
185 * modules/getpass (Makefile.am): Likewise.
186 * modules/getsubopt (Makefile.am): Likewise.
187 * modules/gettime (Makefile.am): Likewise.
188 * modules/gettimeofday (Makefile.am): Likewise.
189 * modules/getugroups (Makefile.am): Likewise.
190 * modules/getusershell (Makefile.am): Likewise.
191 * modules/glob (Makefile.am): Likewise.
192 * modules/group-member (Makefile.am): Likewise.
193 * modules/hard-locale (Makefile.am): Likewise.
194 * modules/hash (Makefile.am): Likewise.
195 * modules/hmac-md5 (Makefile.am): Likewise.
196 * modules/hmac-sha1 (Makefile.am): Likewise.
197 * modules/human (Makefile.am): Likewise.
198 * modules/idcache (Makefile.am): Likewise.
199 * modules/imaxabs (Makefile.am): Likewise.
200 * modules/imaxdiv (Makefile.am): Likewise.
201 * modules/inet_ntop (Makefile.am): Likewise.
202 * modules/inet_pton (Makefile.am): Likewise.
203 * modules/intprops (Makefile.am): Likewise.
204 * modules/inttostr (Makefile.am): Likewise.
205 * modules/inttypes (Makefile.am): Likewise.
206 * modules/isapipe (Makefile.am): Likewise.
207 * modules/javaversion (Makefile.am): Likewise.
208 * modules/lchmod (Makefile.am): Likewise.
209 * modules/lchown (Makefile.am): Likewise.
210 * modules/localcharset (Makefile.am): Likewise.
211 * modules/long-options (Makefile.am): Likewise.
212 * modules/lstat (Makefile.am): Likewise.
213 * modules/malloc (Makefile.am): Likewise.
214 * modules/mathl (Makefile.am): Likewise.
215 * modules/mbchar (Makefile.am): Likewise.
216 * modules/md2 (Makefile.am): Likewise.
217 * modules/md4 (Makefile.am): Likewise.
218 * modules/md5 (Makefile.am): Likewise.
219 * modules/memcasecmp (Makefile.am): Likewise.
220 * modules/memchr (Makefile.am): Likewise.
221 * modules/memcmp (Makefile.am): Likewise.
222 * modules/memcoll (Makefile.am): Likewise.
223 * modules/memcpy (Makefile.am): Likewise.
224 * modules/memmem (Makefile.am): Likewise.
225 * modules/memmove (Makefile.am): Likewise.
226 * modules/mempcpy (Makefile.am): Likewise.
227 * modules/memrchr (Makefile.am): Likewise.
228 * modules/memset (Makefile.am): Likewise.
229 * modules/memxor (Makefile.am): Likewise.
230 * modules/mkancesdirs (Makefile.am): Likewise.
231 * modules/mkdir-p (Makefile.am): Likewise.
232 * modules/mkdir (Makefile.am): Likewise.
233 * modules/mkdtemp (Makefile.am): Likewise.
234 * modules/mkstemp (Makefile.am): Likewise.
235 * modules/mktime (Makefile.am): Likewise.
236 * modules/modechange (Makefile.am): Likewise.
237 * modules/mountlist (Makefile.am): Likewise.
238 * modules/nanosleep (Makefile.am): Likewise.
239 * modules/obstack (Makefile.am): Likewise.
240 * modules/openat (Makefile.am): Likewise.
241 * modules/pagealign_alloc (Makefile.am): Likewise.
242 * modules/pathmax (Makefile.am): Likewise.
243 * modules/physmem (Makefile.am): Likewise.
244 * modules/poll (Makefile.am): Likewise.
245 * modules/posixtm (Makefile.am): Likewise.
246 * modules/posixver (Makefile.am): Likewise.
247 * modules/putenv (Makefile.am): Likewise.
248 * modules/quote (Makefile.am): Likewise.
249 * modules/quotearg (Makefile.am): Likewise.
250 * modules/raise (Makefile.am): Likewise.
251 * modules/read-file (Makefile.am): Likewise.
252 * modules/readline (Makefile.am): Likewise.
253 * modules/readlink (Makefile.am): Likewise.
254 * modules/readtokens (Makefile.am): Likewise.
255 * modules/readutmp (Makefile.am): Likewise.
256 * modules/realloc (Makefile.am): Likewise.
257 * modules/regex (Makefile.am): Likewise.
258 * modules/rename-dest-slash (Makefile.am): Likewise.
259 * modules/rename (Makefile.am): Likewise.
260 * modules/rijndael (Makefile.am): Likewise.
261 * modules/rmdir (Makefile.am): Likewise.
262 * modules/rpmatch (Makefile.am): Likewise.
263 * modules/safe-read (Makefile.am): Likewise.
264 * modules/safe-write (Makefile.am): Likewise.
265 * modules/same-inode (Makefile.am): Likewise.
266 * modules/same (Makefile.am): Likewise.
267 * modules/save-cwd (Makefile.am): Likewise.
268 * modules/savedir (Makefile.am): Likewise.
269 * modules/setenv (Makefile.am): Likewise.
270 * modules/settime (Makefile.am): Likewise.
271 * modules/sha1 (Makefile.am): Likewise.
272 * modules/sig2str (Makefile.am): Likewise.
273 * modules/snprintf (Makefile.am): Likewise.
274 * modules/stat-macros (Makefile.am): Likewise.
275 * modules/stat-time (Makefile.am): Likewise.
276 * modules/stdbool (Makefile.am): Likewise.
277 * modules/stdint (Makefile.am): Likewise.
278 * modules/stdlib-safer (Makefile.am): Likewise.
279 * modules/stpcpy (Makefile.am): Likewise.
280 * modules/stpncpy (Makefile.am): Likewise.
281 * modules/strcase (Makefile.am): Likewise.
282 * modules/strcasestr (Makefile.am): Likewise.
283 * modules/strchrnul (Makefile.am): Likewise.
284 * modules/strcspn (Makefile.am): Likewise.
285 * modules/strdup (Makefile.am): Likewise.
286 * modules/strerror (Makefile.am): Likewise.
287 * modules/strftime (Makefile.am): Likewise.
288 * modules/strndup (Makefile.am): Likewise.
289 * modules/strnlen (Makefile.am): Likewise.
290 * modules/strpbrk (Makefile.am): Likewise.
291 * modules/strsep (Makefile.am): Likewise.
292 * modules/strstr (Makefile.am): Likewise.
293 * modules/strtod (Makefile.am): Likewise.
294 * modules/strtoimax (Makefile.am): Likewise.
295 * modules/strtok_r (Makefile.am): Likewise.
296 * modules/strtol (Makefile.am): Likewise.
297 * modules/strtoll (Makefile.am): Likewise.
298 * modules/strtoul (Makefile.am): Likewise.
299 * modules/strtoull (Makefile.am): Likewise.
300 * modules/strtoumax (Makefile.am): Likewise.
301 * modules/strverscmp (Makefile.am): Likewise.
302 * modules/sys_socket (Makefile.am): Likewise.
303 * modules/sys_stat (Makefile.am): Likewise.
304 * modules/sysexits (Makefile.am): Likewise.
305 * modules/time_r (Makefile.am): Likewise.
306 * modules/timegm (Makefile.am): Likewise.
307 * modules/timespec (Makefile.am): Likewise.
308 * modules/tmpfile-safer (Makefile.am): Likewise.
309 * modules/trim (Makefile.am): Likewise.
310 * modules/unistd-safer (Makefile.am): Likewise.
311 * modules/unlinkdir (Makefile.am): Likewise.
312 * modules/unlocked-io (Makefile.am): Likewise.
313 * modules/userspec (Makefile.am): Likewise.
314 * modules/utime (Makefile.am): Likewise.
315 * modules/utimecmp (Makefile.am): Likewise.
316 * modules/utimens (Makefile.am): Likewise.
317 * modules/vasnprintf (Makefile.am): Likewise.
318 * modules/vasprintf (Makefile.am): Likewise.
319 * modules/vsnprintf (Makefile.am): Likewise.
320 * modules/xalloc (Makefile.am): Likewise.
321 * modules/xgetcwd (Makefile.am): Likewise.
322 * modules/xnanosleep (Makefile.am): Likewise.
323 * modules/xreadlink (Makefile.am): Likewise.
324 * modules/xstrtod (Makefile.am): Likewise.
325 * modules/xstrtol (Makefile.am): Likewise.
326 * modules/xstrtold (Makefile.am): Likewise.
327 * modules/yesno (Makefile.am): Likewise.
328 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
330 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
332 * modules/error (Makefile.am): Distribute files through
333 EXTRA_DIST, not lib_SOURCES.
335 2006-10-12 Eric Blake <ebb9@byu.net>
337 * modules/error (Makefile.am): Distribute files in /lib.
338 * modules/obstack (Makefile.am): Likewise.
340 2006-10-12 Bruno Haible <bruno@clisp.org>
342 * modules/acl (Makefile.am): Distribute all files in lib/ through
344 * modules/arcfour (Makefile.am): Likewise.
345 * modules/arctwo (Makefile.am): Likewise.
346 * modules/argmatch (Makefile.am): Likewise.
347 * modules/argz (Makefile.am): Likewise.
348 * modules/atexit (Makefile.am): Likewise.
349 * modules/backupfile (Makefile.am): Likewise.
350 * modules/c-strtod (Makefile.am): Likewise.
351 * modules/c-strtold (Makefile.am): Likewise.
352 * modules/calloc (Makefile.am): Likewise.
353 * modules/canon-host (Makefile.am): Likewise.
354 * modules/canonicalize (Makefile.am): Likewise.
355 * modules/chdir-long (Makefile.am): Likewise.
356 * modules/chdir-safer (Makefile.am): Likewise.
357 * modules/check-version (Makefile.am): Likewise.
358 * modules/chown (Makefile.am): Likewise.
359 * modules/cloexec (Makefile.am): Likewise.
360 * modules/close-stream (Makefile.am): Likewise.
361 * modules/closeout (Makefile.am): Likewise.
362 * modules/crc (Makefile.am): Likewise.
363 * modules/cycle-check (Makefile.am): Likewise.
364 * modules/des (Makefile.am): Likewise.
365 * modules/dirfd (Makefile.am): Likewise.
366 * modules/dirname (Makefile.am): Likewise.
367 * modules/dup2 (Makefile.am): Likewise.
368 * modules/euidaccess (Makefile.am): Likewise.
369 * modules/exclude (Makefile.am): Likewise.
370 * modules/exitfail (Makefile.am): Likewise.
371 * modules/fcntl-safer (Makefile.am): Likewise.
372 * modules/file-type (Makefile.am): Likewise.
373 * modules/fileblocks (Makefile.am): Likewise.
374 * modules/filemode (Makefile.am): Likewise.
375 * modules/filenamecat (Makefile.am): Likewise.
376 * modules/fnmatch (Makefile.am): Likewise.
377 * modules/fopen-safer (Makefile.am): Likewise.
378 * modules/fpending (Makefile.am): Likewise.
379 * modules/fprintftime (Makefile.am): Likewise.
380 * modules/free (Makefile.am): Likewise.
381 * modules/fsusage (Makefile.am): Likewise.
382 * modules/ftruncate (Makefile.am): Likewise.
383 * modules/fts (Makefile.am): Likewise.
384 * modules/gc (Makefile.am): Likewise.
385 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
386 * modules/getaddrinfo (Makefile.am): Likewise.
387 * modules/getcwd (Makefile.am): Likewise.
388 * modules/getdelim (Makefile.am): Likewise.
389 * modules/getdomainname (Makefile.am): Likewise.
390 * modules/getgroups (Makefile.am): Likewise.
391 * modules/gethostname (Makefile.am): Likewise.
392 * modules/gethrxtime (Makefile.am): Likewise.
393 * modules/getline (Makefile.am): Likewise.
394 * modules/getloadavg (Makefile.am): Likewise.
395 * modules/getlogin_r (Makefile.am): Likewise.
396 * modules/getopt (Makefile.am): Likewise.
397 * modules/getpass (Makefile.am): Likewise.
398 * modules/getpass-gnu (Makefile.am): Likewise.
399 * modules/getsubopt (Makefile.am): Likewise.
400 * modules/gettime (Makefile.am): Likewise.
401 * modules/gettimeofday (Makefile.am): Likewise.
402 * modules/getugroups (Makefile.am): Likewise.
403 * modules/getusershell (Makefile.am): Likewise.
404 * modules/glob (Makefile.am): Likewise.
405 * modules/group-member (Makefile.am): Likewise.
406 * modules/hard-locale (Makefile.am): Likewise.
407 * modules/hash (Makefile.am): Likewise.
408 * modules/hmac-md5 (Makefile.am): Likewise.
409 * modules/hmac-sha1 (Makefile.am): Likewise.
410 * modules/human (Makefile.am): Likewise.
411 * modules/idcache (Makefile.am): Likewise.
412 * modules/imaxabs (Makefile.am): Likewise.
413 * modules/imaxdiv (Makefile.am): Likewise.
414 * modules/inet_ntop (Makefile.am): Likewise.
415 * modules/inet_pton (Makefile.am): Likewise.
416 * modules/inttostr (Makefile.am): Likewise.
417 * modules/isapipe (Makefile.am): Likewise.
418 * modules/lchown (Makefile.am): Likewise.
419 * modules/long-options (Makefile.am): Likewise.
420 * modules/lstat (Makefile.am): Likewise.
421 * modules/malloc (Makefile.am): Likewise.
422 * modules/mathl (Makefile.am): Likewise.
423 * modules/mbchar (Makefile.am): Likewise.
424 * modules/md2 (Makefile.am): Likewise.
425 * modules/md4 (Makefile.am): Likewise.
426 * modules/md5 (Makefile.am): Likewise.
427 * modules/memcasecmp (Makefile.am): Likewise.
428 * modules/memchr (Makefile.am): Likewise.
429 * modules/memcmp (Makefile.am): Likewise.
430 * modules/memcoll (Makefile.am): Likewise.
431 * modules/memcpy (Makefile.am): Likewise.
432 * modules/memmem (Makefile.am): Likewise.
433 * modules/memmove (Makefile.am): Likewise.
434 * modules/mempcpy (Makefile.am): Likewise.
435 * modules/memrchr (Makefile.am): Likewise.
436 * modules/memset (Makefile.am): Likewise.
437 * modules/memxor (Makefile.am): Likewise.
438 * modules/mkancesdirs (Makefile.am): Likewise.
439 * modules/mkdir (Makefile.am): Likewise.
440 * modules/mkdir-p (Makefile.am): Likewise.
441 * modules/mkdtemp (Makefile.am): Likewise.
442 * modules/mkstemp (Makefile.am): Likewise.
443 * modules/mktime (Makefile.am): Likewise.
444 * modules/modechange (Makefile.am): Likewise.
445 * modules/mountlist (Makefile.am): Likewise.
446 * modules/nanosleep (Makefile.am): Likewise.
447 * modules/openat (Makefile.am): Likewise.
448 * modules/pagealign_alloc (Makefile.am): Likewise.
449 * modules/physmem (Makefile.am): Likewise.
450 * modules/poll (Makefile.am): Likewise.
451 * modules/posixtm (Makefile.am): Likewise.
452 * modules/posixver (Makefile.am): Likewise.
453 * modules/putenv (Makefile.am): Likewise.
454 * modules/quote (Makefile.am): Likewise.
455 * modules/quotearg (Makefile.am): Likewise.
456 * modules/raise (Makefile.am): Likewise.
457 * modules/read-file (Makefile.am): Likewise.
458 * modules/readline (Makefile.am): Likewise.
459 * modules/readlink (Makefile.am): Likewise.
460 * modules/readtokens (Makefile.am): Likewise.
461 * modules/readutmp (Makefile.am): Likewise.
462 * modules/realloc (Makefile.am): Likewise.
463 * modules/regex (Makefile.am): Likewise.
464 * modules/rename (Makefile.am): Likewise.
465 * modules/rename-dest-slash (Makefile.am): Likewise.
466 * modules/rijndael (Makefile.am): Likewise.
467 * modules/rmdir (Makefile.am): Likewise.
468 * modules/rpmatch (Makefile.am): Likewise.
469 * modules/safe-read (Makefile.am): Likewise.
470 * modules/safe-write (Makefile.am): Likewise.
471 * modules/same (Makefile.am): Likewise.
472 * modules/save-cwd (Makefile.am): Likewise.
473 * modules/savedir (Makefile.am): Likewise.
474 * modules/setenv (Makefile.am): Likewise.
475 * modules/settime (Makefile.am): Likewise.
476 * modules/sha1 (Makefile.am): Likewise.
477 * modules/sig2str (Makefile.am): Likewise.
478 * modules/snprintf (Makefile.am): Likewise.
479 * modules/stdlib-safer (Makefile.am): Likewise.
480 * modules/stpcpy (Makefile.am): Likewise.
481 * modules/stpncpy (Makefile.am): Likewise.
482 * modules/strcase (Makefile.am): Likewise.
483 * modules/strcasestr (Makefile.am): Likewise.
484 * modules/strchrnul (Makefile.am): Likewise.
485 * modules/strcspn (Makefile.am): Likewise.
486 * modules/strdup (Makefile.am): Likewise.
487 * modules/strerror (Makefile.am): Likewise.
488 * modules/strftime (Makefile.am): Likewise.
489 * modules/strndup (Makefile.am): Likewise.
490 * modules/strnlen (Makefile.am): Likewise.
491 * modules/strpbrk (Makefile.am): Likewise.
492 * modules/strsep (Makefile.am): Likewise.
493 * modules/strstr (Makefile.am): Likewise.
494 * modules/strtod (Makefile.am): Likewise.
495 * modules/strtoimax (Makefile.am): Likewise.
496 * modules/strtok_r (Makefile.am): Likewise.
497 * modules/strtol (Makefile.am): Likewise.
498 * modules/strtoll (Makefile.am): Likewise.
499 * modules/strtoul (Makefile.am): Likewise.
500 * modules/strtoull (Makefile.am): Likewise.
501 * modules/strtoumax (Makefile.am): Likewise.
502 * modules/strverscmp (Makefile.am): Likewise.
503 * modules/time_r (Makefile.am): Likewise.
504 * modules/timegm (Makefile.am): Likewise.
505 * modules/tmpfile-safer (Makefile.am): Likewise.
506 * modules/unistd-safer (Makefile.am): Likewise.
507 * modules/unlinkdir (Makefile.am): Likewise.
508 * modules/userspec (Makefile.am): Likewise.
509 * modules/utime (Makefile.am): Likewise.
510 * modules/utimecmp (Makefile.am): Likewise.
511 * modules/utimens (Makefile.am): Likewise.
512 * modules/vasnprintf (Makefile.am): Likewise.
513 * modules/vasprintf (Makefile.am): Likewise.
514 * modules/vsnprintf (Makefile.am): Likewise.
515 * modules/xalloc (Makefile.am): Likewise.
516 * modules/xgetcwd (Makefile.am): Likewise.
517 * modules/xnanosleep (Makefile.am): Likewise.
518 * modules/xreadlink (Makefile.am): Likewise.
519 * modules/xstrtod (Makefile.am): Likewise.
520 * modules/xstrtol (Makefile.am): Likewise.
521 * modules/xstrtold (Makefile.am): Likewise.
522 * modules/yesno (Makefile.am): Likewise.
524 2006-10-12 Jim Meyering <jim@meyering.net>
526 * m4/getloadavg.m4: Revert the change below.
528 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
529 lib/getloadavg.c using "ls -L", not "test -f". The latter would
530 fail with a symlink, which is what coreutils' ./bootstrap now
533 2006-10-12 Bruno Haible <bruno@clisp.org>
535 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
537 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
538 MSVC and mingw explicitly.
540 2006-10-11 Simon Josefsson <jas@extundo.com>
541 Bruno Haible <bruno@clisp.org>
543 Add support for multiple gnulib-tool invocations in the scope of a
544 single configure.ac file.
545 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
546 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
547 with the same contents as the _LIBADD variable.
548 (func_emit_initmacro_start, func_emit_initmacro_end,
549 func_emit_initmacro_done): New functions.
550 (func_import, func_create_testdir): Invoke them. Allow the identifiers
551 gl_LIBOBJS and gl_LTLIBOBJS.
553 2006-10-11 Bruno Haible <bruno@clisp.org>
555 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
556 (func_create_testdir): Don't create po/Makefile.am, don't invoke
557 autoreconf. Instead, invoke autopoint explicitly but move back the
558 *.m4 files from gnulib.
560 2006-10-11 Bruno Haible <bruno@clisp.org>
562 * gnulib-tool (func_usage): Make module names after --create-testdir
564 (func_create_testdir): If no module was specified, use nearly all
567 2006-10-12 Jim Meyering <jim@meyering.net>
569 Big performance improvement for fts-based tools that use FTS_NOSTAT.
570 Avoid spurious inode-mismatch problems on non-POSIX file systems.
571 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
572 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
573 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
574 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
575 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
576 (fts_set_stat_required): New function.
577 (fts_open): Defer the calls to fts_stat, if possible or requested.
578 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
579 into fts_stat itself.
580 (fts_read): Perform any required (deferred) fts_stat call.
581 (fts_build): Likewise, for the directory we're about to open and read.
582 In the readdir loop, carefully decide whether each entry will require
583 an eventual call to fts_stat, using dirent.d_type info if available.
584 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
585 a command line argument into this function. Update all callers.
586 Map a return value of FTS_DOT to FTS_D for a command line argument.
587 * modules/fts (Depends-on): Add d-type. Alphabetize.
588 Thanks to Miklos Szeredi for his tenacity and for the initial
589 bug report about "find" failing on a FUSE-based file system.
591 * lib/fts.c (fts_open): Use consistent indentation.
593 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
595 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
596 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
597 reported by Jim Meyering. All uses of cache variables renamed
599 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
602 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
603 Fix misspelling in diagnostic.
605 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
607 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
608 defined. Problem reported by Matthew Woehlke.
610 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
611 Add support for Tandem NonStop R series.
612 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
615 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
616 (has_trailing_slash): Omit size arg; all callers changed.
617 Omit 'inline', since it doesn't help performance and we'd
618 need to configure it.
619 Don't count //, ///, etc. as having a trailing slash.
620 As a side effect, this removes a C99ism reported by Matthew Woehlke.
621 (rpl_rename_dest_slash): On failure, use rename's errno rather
622 than (in some cases) an incorrect or junk errno.
623 Simplify code by removing need to compute length; this does
624 cause it to make two passes instead of one over the file name,
627 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
628 change, since Autoconf's version may no longer be appropriate now
629 that we are using CVS Autoconf's version. Add support for Tandem.
631 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
632 Bruno Haible <bruno@clisp.org>
634 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
635 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
636 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
637 gl_AC_TYPE_LONG_LONG.
639 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
640 instead of HAVE_LONG_LONG.
641 * lib/printf-args.c (printf_fetchargs): Likewise.
642 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
643 * lib/vasnprintf.c (VASNPRINTF): Likewise.
644 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
645 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
646 gl_AC_TYPE_LONG_LONG.
648 2006-10-11 Bruno Haible <bruno@clisp.org>
650 * m4/longlong.m4: Add comments.
651 * m4/ulonglong.m4: Likewise.
653 2006-10-10 Bruno Haible <bruno@clisp.org>
655 Make it possible to #define stpcpy, strdup to aliases.
656 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
657 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
659 2006-10-10 Bruno Haible <bruno@clisp.org>
661 Make it possible to #define gcd to an alias.
662 * lib/gcd.c: Include config.h.
664 2006-10-10 Bruno Haible <bruno@clisp.org>
666 Make it possible to #define c_isascii to an alias.
667 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
668 defined. Undefine the macros before defining them, to avoid gcc
670 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
671 define NO_C_CTYPE_MACROS early.
673 2006-10-10 Bruno Haible <bruno@clisp.org>
675 Make it possible to #define set_program_name to an alias.
676 * lib/progname.c: Don't undefine set_program_name; instead, undefine
677 ENABLE_RELOCATABLE early.
679 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
681 Port to Tandem NSK OSS, which has 64-bit signed int but at most
682 32-bit unsigned int. Problem reported by Matthew Woehlke in:
683 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
684 More generally, don't assume that 64-bit signed int is available
685 if unsigned int is, and vice versa.
686 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
687 unsigned symbols, not on their signed counterparts.
688 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
689 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
690 (UINT64_C, UINTMAX_C):
692 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
693 unsigned counterparts.
694 (Have_long_long, Unsigned): New macros.
695 (Int): Renamed from INT.
696 (strtoimax): Use the new macros.
697 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
698 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
699 * modules/inttypes (inttypes.h): Substitute
700 HAVE_UNSIGNED_LONG_LONG_INT.
701 * modules/stdint (stdint.h): Likewise.
702 (Files): Add m4/ulonglong.m4.
704 2006-10-10 Bruno Haible <bruno@clisp.org>
706 Fix a gcc -Wshadow warning.
707 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
709 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
710 gl_linked_indexof_from_to): Likewise.
711 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
713 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
715 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
716 Reported by Eric Blake.
718 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
720 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
721 for NetBSD. Problem reported by Bruno Haible.
723 2006-10-09 Jim Meyering <jim@meyering.net>
725 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
726 Patch from Bruno Haible.
728 2006-10-09 Jim Meyering <jim@meyering.net>
730 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
731 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
732 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
734 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
736 Don't include <config.h> twice; this doesn't work in some cases,
737 e.g., when config.h has "#define intmax_t long long int" and
738 we include <config.h>, <inttypes.h>, <config.h> in that order.
739 Problem reported by Matthew Woehlke in:
740 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
741 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
742 * lib/fts-cycle.c: Don't include config.h.
743 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
744 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
745 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
746 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
748 * lib/xstrtoumax.c: Likewise.
749 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
750 __strtol and the like, so that this module is more like its siblings.
751 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
752 Remove; no longer needed now that we assume gnulib inttypes.h.
754 2006-10-08 Bruno Haible <bruno@clisp.org>
756 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
759 2006-10-07 Jim Meyering <jim@meyering.net>
761 * modules/inttypes (inttypes.h): Revert what seems to have been
762 an inadvertent part of today's change: use "|", not "/" in the
763 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
765 2006-10-07 Bruno Haible <bruno@clisp.org>
767 * modules/sublist: New file.
769 2006-10-07 Bruno Haible <bruno@clisp.org>
771 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
772 * modules/argz (argz.h): Likewise.
773 * modules/arpa_inet (arpa/inet.h): Likewise.
774 * modules/byteswap (byteswap.h): Likewise.
775 * modules/configmake (configmake.h): Likewise.
776 * modules/fcntl (fcntl.h): Likewise.
777 * modules/fnmatch (fnmatch.h): Likewise.
778 * modules/getopt (getopt.h): Likewise.
779 * modules/glob (glob.h): Likewise.
780 * modules/inttypes (inttypes.h): Likewise.
781 * modules/netinet_in (netinet/in.h): Likewise.
782 * modules/poll (poll.h): Likewise.
783 * modules/stdbool (stdbool.h): Likewise.
784 * modules/stdint (stdint.h): Likewise.
785 * modules/sys_select (sys/select.h): Likewise.
786 * modules/sys_socket (sys/socket.h): Likewise.
787 * modules/sys_stat (sys/stat.h): Likewise.
788 * modules/sysexits (sysexits.h): Likewise.
789 * modules/unistd (unistd.h): Likewise.
790 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
791 Add a "DO NOT EDIT" comment to the generated file.
792 (func_import): Likewise for gnulib-comp.m4.
794 2006-10-07 Bruno Haible <bruno@clisp.org>
796 * lib/gl_sublist.h: New file.
797 * lib/gl_sublist.c: New file.
799 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
801 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
802 name (relative to the original working directory) and the file
803 name component (relative to the temporary working directory). All
805 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
806 * lib/mkdir-p.c (make_dir_parents): Likewise.
807 * lib/mkdir-p.h (make_dir_parents): Likewise.
809 2006-10-06 Eric Blake <ebb9@byu.net>
811 Define several macros for use by the clean-temp module.
812 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
813 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
814 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
816 * lib/clean-temp.h (close_stream_temp): New declaration.
817 * lib/clean-temp.c (includes): Pull in headers according to what
818 other modules are in use.
819 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
821 2006-10-06 Bruno Haible <bruno@clisp.org>
823 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
824 instead of fopen, fwriteerror.
826 2006-10-06 Bruno Haible <bruno@clisp.org>
828 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
829 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
831 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
832 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
833 Return an error indicator.
834 Suggested by Eric Blake.
836 2006-10-06 Bruno Haible <bruno@clisp.org>
838 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
839 Reported by Eric Blake.
841 2006-10-06 Bruno Haible <bruno@clisp.org>
843 * modules/closeout (Description): Mention stderr too.
845 2006-10-06 Bruno Haible <bruno@clisp.org>
846 and Paul Eggert <eggert@cs.ucla.edu>
848 * lib/closeout.c (close_stdout): Also close stderr.
849 * lib/closeout.h: Update comment.
851 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
853 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
854 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
855 * lib/dirchownmod.c: Include lchown.h.
856 * lib/lchown.c: Don't include files that lchown.h now includes.
857 Don't declare chown, since lchown.h now does that.
858 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
859 (lchown): Define to rpl_chown if lchown is declared but
860 does not exist. Declare using a prototype if lchown is not
861 declared. Add a copyright notice.
862 * lib/mkstemp.h: Include <unistd.h>.
863 * lib/openat.c: Include lchown.h.
865 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
866 we now test for that separately.
867 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
868 rather than O_NOFOLLOW, when testing whether it's possible to
869 avoid a race condition reliably.
870 * lib/savewd.c (savewd_chdir): Likewise.
872 Remove macros that are no longer needed now that stdint.h is
874 * lib/fsusage.c (UINTMAX_MAX): Remove.
875 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
876 * lib/utimecmp.c (SIZE_MAX): Remove.
878 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
880 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
881 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
884 2006-10-05 Bruno Haible <bruno@clisp.org>
886 * lib/gl_list.h (gl_sortedlist_search_from_to,
887 gl_sortedlist_indexof_from_to): New declarations.
888 (gl_list_implementation): New fields sortedlist_search_from_to,
889 sortedlist_indexof_from_to.
890 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
892 * lib/gl_list.c (gl_sortedlist_search_from_to,
893 gl_sortedlist_indexof_from_to): New functions.
894 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
896 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
897 (gl_array_sortedlist_search_from_to): New function.
898 (gl_array_list_implementation): Update.
899 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
901 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
902 (gl_carray_sortedlist_search_from_to): New function.
903 (gl_carray_list_implementation): Update.
904 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
905 gl_linked_sortedlist_indexof_from_to): New functions.
906 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
907 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
908 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
909 gl_tree_sortedlist_indexof_from_to): New functions.
910 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
911 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
913 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
914 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
917 2006-10-05 Bruno Haible <bruno@clisp.org>
919 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
920 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
921 (struct gl_list_implementation): Add fields search_from_to,
922 indexof_from_to. Remove fields search, indexof.
923 (gl_list_search): Use the search_from_to method.
924 (gl_list_search_from, gl_list_search_from_to): New functions.
925 (gl_list_indexof): Use the indexof_from_to method.
926 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
927 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
928 (gl_list_search_from, gl_list_search_from_to): New functions.
929 (gl_list_indexof): Use the indexof_from_to method.
930 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
931 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
932 gl_array_indexof. Add start_index, end_index arguments.
933 (gl_array_search_from_to): Renamed from gl_array_search. Add
934 start_index, end_index arguments.
935 (gl_array_remove, gl_array_list_implementation): Update.
936 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
937 gl_carray_indexof. Add start_index, end_index arguments.
938 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
939 start_index, end_index arguments.
940 (gl_carray_remove, gl_carray_list_implementation): Update.
941 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
942 gl_linked_search. Add start_index, end_index arguments.
943 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
944 start_index, end_index arguments.
945 (gl_linked_remove): Update.
946 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
947 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
948 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
950 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
951 gl_tree_search. Add start_index, end_index arguments.
952 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
953 start_index, end_index arguments.
954 (gl_tree_remove): Update.
955 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
956 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
957 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
959 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
960 gl_tree_search. Add start_index, end_index arguments.
961 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
962 start_index, end_index arguments.
963 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
965 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
967 2006-10-05 Bruno Haible <bruno@clisp.org>
969 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
971 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
972 fwriteerror_temp): New declarations.
973 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
974 (descriptors): New variable.
975 (cleanup): First, close the descriptors.
976 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
977 fclose_temp, fwriteerror_temp): New functions.
979 2006-10-04 Jim Meyering <jim@meyering.net>
981 * lib/fts.c (fts_open): Tiny comment change.
983 2006-10-04 Bruno Haible <bruno@clisp.org>
985 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
986 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
988 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
989 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
991 (gl_LOCK): Require gl_LOCK_BODY.
993 2006-10-04 Bruno Haible <bruno@clisp.org>
995 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
996 (gl_oset_search_atleast): New declaration.
997 (struct gl_oset_implementation): Add field 'search_atleast'.
998 (gl_oset_search_atleast): New inline function.
999 * lib/gl_oset.c (gl_oset_search_atleast): New function.
1000 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
1001 (gl_array_oset_implementation): Update.
1002 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
1003 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
1004 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
1006 2006-10-04 Bruno Haible <bruno@clisp.org>
1008 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
1010 2006-10-03 Bruno Haible <bruno@clisp.org>
1012 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
1013 from gl_avltreehash_list_implementation.
1015 2006-10-03 Bruno Haible <bruno@clisp.org>
1017 * lib/gl_oset.c (gl_oset_add): Fix return type.
1019 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
1021 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
1023 2006-10-02 Eric Blake <ebb9@byu.net>
1025 * modules/strnlen (Depends-on): Add extensions.
1027 2006-10-02 Eric Blake <ebb9@byu.net>
1029 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
1030 definition in 2.60+.
1032 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
1034 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
1037 2006-10-02 Bruno Haible <bruno@clisp.org>
1039 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
1040 to the AUTOMAKE_OPTIONS.
1041 Reported by Jim Meyering.
1043 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
1045 Work around bug in Solaris 10 /proc file system:
1046 /proc/self/fd/NNN/.. isn't the parent directory of
1047 the directory whose file descriptor is NNN. This needs to
1048 be worked around at run time, not compile time, since a
1049 program might be built on Solaris 8, where things work, and
1051 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
1052 to use the following interface instead:
1053 (OPENAT_BUFFER_SIZE): New macro.
1054 (openat_proc_name): New function.
1055 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
1056 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
1058 * lib/openat-proc.c: New file.
1059 * modules/openat (Files): Add lib/openat-proc.c.
1060 (Depends-on): Add same-inode, stdbool.
1061 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
1063 2006-09-29 Bruno Haible <bruno@clisp.org>
1065 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
1066 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
1067 argument. Set stdout_closed before testing for ferror, not after.
1068 (fwriteerror, fwriteerror_no_ebadf): New functions.
1070 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1072 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
1074 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
1076 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
1077 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
1079 2006-09-28 Jim Meyering <jim@meyering.net>
1081 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
1084 2006-09-28 Bruno Haible <bruno@clisp.org>
1086 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
1087 * modules/linkedhash-list (Depends-on): Likewise.
1088 * modules/rbtreehash-list (Depends-on): Likewise.
1090 2006-09-28 Bruno Haible <bruno@clisp.org>
1092 * lib/strndup.h: Simplify the redefinition of strndup.
1093 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
1094 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
1096 2006-09-28 Bruno Haible <bruno@clisp.org>
1098 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
1099 * lib/gl_linkedhash_list.c: Likewise.
1100 * lib/gl_rbtreehash_list.c: Likewise.
1102 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
1104 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
1107 * lib/__fpending.h: Don't include <stdio_ext.h> unless
1108 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
1109 it causes <stdio_ext.h> to cause a compile-time error.
1110 Problem reported by Nelson H. F. Beebe.
1111 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
1112 of HAVE_DECL___PENDING.
1114 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
1115 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
1118 2006-09-27 Jim Meyering <jim@meyering.net>
1120 This file could end up with a definition for a function
1121 named __strndup, rather than rpl_strndup on a system with
1122 incomplete weak_alias support.
1123 * lib/strndup.c (strndup): Rename from __strndup.
1124 Remove #defines that used to map __strndup to strndup.
1125 Don't use K&R prototypes.
1126 Remove LIBC-related code, since this file is not sync'd with glibc.
1127 * lib/strndup.h: Revamp, accordingly.
1128 * m4/strndup.m4: Modernize.
1130 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
1132 * modules/savewd (Depends-on): Add 'raise'.
1133 * lib/savewd.c: Include <signal.h>, for 'raise'.
1135 2006-09-26 Jim Meyering <jim@meyering.net>
1137 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
1138 when we detect Darwin 8.7.0's acl_get_file bug.
1139 Rearrange to perform the new (below) run-test while $LIBS
1140 contains any acl-related library. Set USE_ACL at the end.
1141 (gl_ACL_GET_FILE): New function.
1143 2006-09-26 Eric Blake <ebb9@byu.net>
1145 * lib/verror.c: Include <config.h> unconditionally.
1147 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
1149 * modules/clock-time (Maintainer): Add self.
1150 * modules/getlogin_r (Depends-on): Add extensions.
1152 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1154 * modules/clock-time: New module.
1155 * modules/nanosleep (Depends-on): Add clock-time.
1156 * modules/gethrxtime (Depends-on): Likewise.
1157 * modules/gettime (Depends-on): Likewise.
1158 * modules/settime (Depends-on): Likewise.
1160 * modules/fts-lgpl: Depend on openat.
1161 * modules/mkancesdirs: Depend on savewd.
1162 * modules/mkdir-p: Likewise.
1164 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1166 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
1168 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
1169 `gl_have_arbitrary_file_name_length_limit' to
1170 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
1171 actually works between configure runs.
1173 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1174 Bruno Haible <bruno@clisp.org>
1176 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
1178 2006-09-25 Jim Meyering <jim@meyering.net>
1180 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
1181 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
1183 2006-09-25 Eric Blake <ebb9@byu.net>
1185 * gnulib-tool (func_import, func_create_testdir): Fix typos in
1186 exec's in 2006-09-18 patch when shuffling fds.
1188 2006-09-25 Bruno Haible <bruno@clisp.org>
1190 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
1191 Reported by Jim Meyering.
1193 2006-09-24 Jim Meyering <jim@meyering.net>
1195 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
1196 compare a pointer against a literal "0". That caused failures with
1197 at least HP-UX's hpcc.
1199 2006-09-22 Simon Josefsson <jas@extundo.com>
1203 * modules/gc-hmac-sha1:
1204 * modules/gc-hmac-md5:
1206 * modules/gc-arcfour: Distribute more files.
1208 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1210 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
1211 (gl_linked_iterator_from_to): Initialize struct completely.
1212 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
1213 (gl_tree_iterator_from_to): Likewise
1214 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
1215 * lib/gl_array_list.c [lint] (gl_array_iterator)
1216 (gl_array_iterator_from_to): Likewise.
1217 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
1218 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
1219 (gl_carray_iterator_from_to): Likewise.
1221 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
1222 * lib/md4.c (md4_process_block): Remove unused variable.
1223 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
1224 parentheses for clarity.
1226 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1228 * modules/bison-i18n (Depends-on): Add gettext.
1230 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1232 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
1233 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
1234 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
1235 also add missing comma that caused broken test.
1236 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
1237 stdlib.h, for `abort'.
1238 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
1240 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
1241 include unistd.h if present, for `rmdir'.
1242 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
1244 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
1245 in the process include standard headers for prototypes.
1246 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
1247 gets declared on GNU/Linux.
1248 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
1249 unistd.h, for `rmdir'.
1250 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
1252 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
1254 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
1256 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
1258 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1260 * gnulib-tool (func_version): Create output all at once. This
1261 may help avoid triggering unnecessary SIGPIPEs, and at any
1262 rate it doesn't hurt.
1264 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1265 Bruno Haible <bruno@clisp.org>
1267 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
1268 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1269 * m4/signed.m4 (bh_C_SIGNED): Likewise.
1271 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
1272 (gl_FUNC_VASPRINTF): Invoke it.
1274 2006-09-22 Bruno Haible <bruno@clisp.org>
1276 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
1277 getloadavg.c as first argument.
1279 2006-09-22 Bruno Haible <bruno@clisp.org>
1281 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
1282 at the beginning of the gl_INIT macro.
1283 * modules/getloadavg (configure.ac): Pass $gl_source_base to
1286 2006-09-22 Bruno Haible <bruno@clisp.org>
1288 * gnulib-tool (func_create_megatestdir): Don't include the config-h
1290 Suggested by Ralf Wildenhues.
1292 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
1294 Import this patch from libc:
1296 2006-09-06 Jakub Jelinek <jakub@redhat.com>
1298 * lib/regex_internal.c (re_string_reconstruct): Handle
1299 offset < pstr->valid_raw_len && pstr->offsets_needed case.
1300 Ensure no bytes read before raw_mbs array. Pass a saved copy of
1301 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
1302 re_string_context_at.
1304 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
1306 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
1307 gl_REGEX now does it for us.
1308 (gl_REGEX): Add test taken from
1309 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
1311 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
1312 Check that large offsets work. Modernize Autoconf usages.
1313 Prefer "yes" to mean a good thing rather than a bad.
1314 Don't put "#define mkstemp" in config.h, as this might interfere
1315 with standard system headers that "#define mkstemp mkstemp64".
1317 * modules/mkstemp (Depends-on): Add extensions, so that
1318 mkstemp is visible on some platforms.
1319 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
1320 (Include): Change to "mkstemp.h" from <stdlib.h>.
1321 (Files): Add mkstemp.h.
1323 * lib/mkstemp.h: New file, since some standard headers
1325 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
1326 Include "mkstemp.h".
1327 Make the _LIBC code resemble glibc original more,
1328 e.g., use K&R style.
1329 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
1330 (mkstemp): Remove, since mkstemp.h does this for us.
1331 * lib/stdlib--.h: Include mkstemp.h.
1333 Import this patch from libc:
1335 2006-04-07 Ulrich Drepper <drepper@redhat.com>
1337 * lib/tempname.c (__gen_tempname): Change attempts_min
1338 into a macro. Use preprocessor to decide how to initialize
1339 attempts [Coverity CID 67].
1341 2006-09-20 Bruno Haible <bruno@clisp.org>
1343 * lib/mkdtemp.c: Import from libc.
1344 2006-04-07 Ulrich Drepper <drepper@redhat.com>
1345 * sysdeps/posix/tempname.c (__gen_tempname): Change
1346 attempts_min into a macro. Use preprocessor to decide how to
1347 initialize attempts [Coverity CID 67].
1348 2001-11-27 Paul Eggert <eggert@twinsun.com>
1349 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1350 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1352 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1354 * gnulib-tool (func_exit): New function, to allow to pass the
1355 exit status portably through the trap. Use everywhere.
1356 (--help, --version): Signal a write error.
1357 (trap): catch SIGPIPE, for write errors.
1358 Exit at the end of the trap, with the correct exit status.
1360 2006-09-19 Karl Berry <karl@gnu.org>
1362 * doc/gnulib.texi: note about the license texinfo files.
1364 2006-09-19 Eric Blake <ebb9@byu.net>
1366 * gnulib-tool: Avoid space-tab.
1368 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
1370 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
1371 that prevented coreutils 6.1 from building. Problem reported
1372 by Petter Reinholdtsen.
1374 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
1376 * gnulib-tool (avoidlist): Fix typo that broke options like
1377 --avoid=lock that are used by coreutils bootstrap.
1379 2006-09-18 Mark D. Baushke <mdb@gnu.org>
1381 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
1382 more systematically.
1384 2006-09-18 Jim Meyering <jim@meyering.net>
1386 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
1388 2006-09-18 Bruno Haible <bruno@clisp.org>
1390 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
1392 2006-09-18 Bruno Haible <bruno@clisp.org>
1394 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
1395 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
1396 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
1397 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
1398 * m4/gettext.m4: Require autoconf >= 2.52.
1399 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
1400 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
1401 of gl_cv_header_inttypes_h.
1403 2006-09-18 Bruno Haible <bruno@clisp.org>
1405 * lib/javaversion.c: Include configmake.h.
1407 2006-09-18 Bruno Haible <bruno@clisp.org>
1409 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
1410 avoid that the while loops be executed in a subshell.
1412 2006-09-18 Bruno Haible <bruno@clisp.org>
1414 * MODULES.html.sh (func_module): Break long lines.
1415 Suggested by Bruce Korb <bkorb@gnu.org>.
1417 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1419 Speed up by a factor of 1.12.
1420 * gnulib-tool (nl): New variable.
1421 (func_import): Rewrite include directive extraction to only read each
1424 2006-09-17 Bruno Haible <bruno@clisp.org>
1426 * modules/javaversion (Makefile.am): Remove DEFS setting.
1427 (Depends-on): Add configmake, for PKGDATADIR definition.
1429 2006-09-17 Bruno Haible <bruno@clisp.org>
1431 * gnulib-tool (func_create_testdir): Rewrite all files at once.
1433 2006-09-17 Bruno Haible <bruno@clisp.org>
1435 * gnulib-tool (func_append): New function, stolen from libtool.m4.
1436 (func_modules_transitive_closure, func_modules_add_dummy,
1437 func_modules_to_filelist, func_import, func_create_testdir,
1438 func_create_megatestdir, ...): Use it wherever possible.
1439 Suggested by Ralf Wildenhues.
1441 2006-09-16 Karl Berry <karl@gnu.org>
1443 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
1444 to avoid sectioning errors.
1445 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
1446 [ifinfo]: blank line after @center-ed titles.
1447 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
1448 Spell FSF address consistently with others.
1449 (These changes approved by rms.)
1451 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1453 Speed up by a factor of 1.61.
1454 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
1455 already checked module names again.
1457 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1459 Speed up by a factor of 1.13.
1460 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
1461 for new_files, and the input to func_add_or_update.
1463 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1465 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
1466 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
1468 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
1470 * modules/mkancesdirs (Depends-on): Add fcntl.
1471 * modules/savewd: New file.
1472 * MODULES.html.sh (File system functions): Add savewd.
1474 * modules/configmake (Makefile.am): Add support for the
1475 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
1477 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
1479 * m4/savewd.m4: New file.
1481 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
1483 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
1484 (dirchownmod): New arg FD. All callers changed.
1485 Use FD rather than opening the directory ourself, as opening is
1486 now the caller's responsibility.
1487 * lib/dirchownmod.h: Likewise.
1488 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
1489 hosts that require <sys/types.h> before <sys/stat.h>. Include
1490 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
1492 (mkancesdirs): Return length of prefix of FILE that has already
1493 been made, or -2 if there is a child doing the work. Redo
1494 algorithm so that it is O(N) rather than O(N**2). Optimize away
1495 ".", and treat ".." specially since it might stray back into
1496 already-created areas. Use a subprocess if necessary. New arg
1497 WD; all users changed. MAKE_DIR function should now return 1
1498 if it creates a directory that is not readable. Return -2 if
1499 a child process is spun off.
1500 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
1501 Adjust signature to match code.
1502 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
1503 (make_dir_parents): Use a subprocess if necessary. New arg WD;
1505 * lib/savewd.c, savewd.h: New files.
1507 2006-09-15 Jim Meyering <jim@meyering.net>
1509 * modules/rename-dest-slash: New module.
1510 * MODULES.html.sh (posix_compat): Add it here.
1512 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
1514 2006-09-15 Jim Meyering <jim@meyering.net>
1516 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
1519 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
1521 2006-09-15 Jim Meyering <jim@meyering.net>
1523 * lib/rename-dest-slash.c (has_trailing_slash): Use
1524 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
1525 (rpl_rename_dest_slash): Perform the cheaper trailing slash
1526 test before testing whether SRC is a directory.
1527 Suggestions from Bruno Haible.
1529 Avoid a warning about an unused variable.
1530 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
1531 into the #ifdef block where it's used.
1533 * lib/rename-dest-slash.c: New file.
1535 2006-09-14 Bruno Haible <bruno@clisp.org>
1537 * lib/allocsa.c: Include <config.h> unconditionally.
1538 * lib/asnprintf.c: Likewise.
1539 * lib/asprintf.c: Likewise.
1540 * lib/c-strcasecmp.c: Likewise.
1541 * lib/c-strcasestr.c: Likewise.
1542 * lib/c-strncasecmp.c: Likewise.
1543 * lib/c-strstr.c: Likewise.
1544 * lib/classpath.c: Likewise.
1545 * lib/clean-temp.c: Likewise.
1546 * lib/concatpath.c: Likewise.
1547 * lib/copy-file.c: Likewise.
1548 * lib/csharpcomp.c: Likewise.
1549 * lib/csharpexec.c: Likewise.
1550 * lib/execute.c: Likewise.
1551 * lib/fatal-signal.c: Likewise.
1552 * lib/findprog.c: Likewise.
1553 * lib/fwriteerror.c: Likewise.
1554 * lib/gl_array_list.c: Likewise.
1555 * lib/gl_array_oset.c: Likewise.
1556 * lib/gl_avltree_list.c: Likewise.
1557 * lib/gl_avltree_oset.c: Likewise.
1558 * lib/gl_avltreehash_list.c: Likewise.
1559 * lib/gl_carray_list.c: Likewise.
1560 * lib/gl_linked_list.c: Likewise.
1561 * lib/gl_linkedhash_list.c: Likewise.
1562 * lib/gl_list.c: Likewise.
1563 * lib/gl_oset.c: Likewise.
1564 * lib/gl_rbtree_list.c: Likewise.
1565 * lib/gl_rbtree_oset.c: Likewise.
1566 * lib/gl_rbtreehash_list.c: Likewise.
1567 * lib/imaxabs.c: Likewise.
1568 * lib/imaxdiv.c: Likewise.
1569 * lib/javacomp.c: Likewise.
1570 * lib/javaexec.c: Likewise.
1571 * lib/javaversion.c: Likewise.
1572 * lib/linebreak.c: Likewise.
1573 * lib/localcharset.c: Likewise.
1574 * lib/lock.c: Likewise.
1575 * lib/mbchar.c: Likewise.
1576 * lib/mbswidth.c: Likewise.
1577 * lib/mkdtemp.c: Likewise.
1578 * lib/pipe.c: Likewise.
1579 * lib/printf-args.c: Likewise.
1580 * lib/printf-parse.c: Likewise.
1581 * lib/progname.c: Likewise.
1582 * lib/progreloc.c: Likewise.
1583 * lib/readlink.c: Likewise.
1584 * lib/sh-quote.c: Likewise.
1585 * lib/stpcpy.c: Likewise.
1586 * lib/stpncpy.c: Likewise.
1587 * lib/strcasecmp.c: Likewise.
1588 * lib/strcasestr.c: Likewise.
1589 * lib/strcspn.c: Likewise.
1590 * lib/striconv.c: Likewise.
1591 * lib/strncasecmp.c: Likewise.
1592 * lib/strnlen1.c: Likewise.
1593 * lib/strstr.c: Likewise.
1594 * lib/strtok_r.c: Likewise.
1595 * lib/tls.c: Likewise.
1596 * lib/tmpdir.c: Likewise.
1597 * lib/unicodeio.c: Likewise.
1598 * lib/unsetenv.c: Likewise.
1599 * lib/vasnprintf.c: Likewise.
1600 * lib/vasprintf.c: Likewise.
1601 * lib/wait-process.c: Likewise.
1602 * lib/xallocsa.c: Likewise.
1603 * lib/xsetenv.c: Likewise.
1604 * lib/xstriconv.c: Likewise.
1606 2006-09-13 Simon Josefsson <jas@extundo.com>
1608 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
1609 that internally, suggested by Ralf Wildenhues
1610 <Ralf.Wildenhues@gmx.de>.
1612 2006-09-13 Simon Josefsson <jas@extundo.com>
1614 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
1616 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1618 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
1620 * lib/_fpending.c: Include <config.h> unconditionally, since we no
1621 longer worry about uses that don't define HAVE_CONFIG_H.
1622 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
1623 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
1624 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
1625 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
1626 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
1627 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
1628 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
1629 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
1630 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
1631 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
1632 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
1633 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
1634 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
1635 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
1636 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
1637 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
1638 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
1639 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
1640 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
1641 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
1642 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
1643 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
1644 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
1645 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
1646 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
1647 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
1648 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
1649 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
1650 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
1651 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
1652 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
1653 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
1654 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
1655 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
1656 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
1657 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
1658 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
1659 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
1660 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
1661 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
1662 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
1665 2006-09-13 Eric Blake <ebb9@byu.net>
1667 * lib/getopt.c: Fix typo in last commit.
1669 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
1671 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
1674 2006-09-12 Jim Meyering <jim@meyering.net>
1676 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
1677 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
1678 Reported by Nelson H. F. Beebe.
1680 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
1682 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
1683 program_invocation_name and program_invocation_short_name are
1685 * lib/argp-namefrob.h: Move declarations of program_invocation_name
1686 and program_invocation_short_name to argp.h, so they are visible
1688 * lib/argp.h: Likewise
1690 2006-09-10 Bruno Haible <bruno@clisp.org>
1692 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
1693 m4/inttypes_h.m4, m4/uintmax_t.m4.
1695 2006-09-10 Bruno Haible <bruno@clisp.org>
1697 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
1698 gl_AC_TYPE_UINTMAX_T.
1700 2006-09-10 Bruno Haible <bruno@clisp.org>
1702 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
1704 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
1706 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
1707 convention. Text proposed by Bruno Haible.
1708 (struct argp_option): Document the use of N_() wrappers.
1710 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
1711 '\v', and translate the two parts separately, instead of feeding
1712 the whole string to gettext. This allows to exclude
1713 '\v' from the strings visible to the translator by writing doc
1714 strings as N_("..") "\v" N_("..").
1716 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
1718 * config/srclist.txt: Undo latest change; the bug was fixed.
1720 2006-09-09 Bruno Haible <bruno@clisp.org>
1722 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
1723 assignments if building a library without libtool.
1724 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
1725 in func_emit_lib_Makefile_am.
1726 (func_import): When building a static library libfoo.a, arrange to
1727 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
1728 (func_create_testdir): Likewise.
1729 * modules/gc (configure.ac, Makefile.am): If building statically,
1730 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
1731 * modules/iconvme (configure.ac, Makefile.am): Likewise.
1732 * modules/striconv (configure.ac, Makefile.am): Likewise.
1733 Based on a suggestion by Ralf Wildenhues.
1735 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1737 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
1738 Check for unistd.h too, since Autoconf doesn't assume POSIX.
1741 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1742 Add year_2050_test to catch glibc bug 2821
1743 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
1745 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
1746 Prefer #ifdef to #if.
1748 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
1749 Return from 'main' instead of calling 'exit'.
1751 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1753 * lib/mktime.c (guess_time_tm): Fix bug where mktime
1754 returned the maximum time_t value rather than (time_t) -1.
1755 Problem originally reported by William Bardwell
1756 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
1758 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
1760 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
1763 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1765 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
1768 2006-09-08 Jim Meyering <jim@meyering.net>
1770 Don't make generated files read-only. That would bother too many
1771 people. However, do retain the ability to work when targets are
1772 read-only: remove the destination and temporary files before writing
1773 them (when generated via sed or echo), or by using the -f option for
1774 both cp and mv commands. Suggestion to use -f from Paul Eggert.
1775 * modules/alloca-opt, modules/argz, modules/arpa_inet:
1776 * modules/byteswap, modules/configmake, modules/fcntl:
1777 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
1778 * modules/localcharset, modules/netinet_in, modules/poll:
1779 * modules/stdbool, modules/stdint, modules/sys_select:
1780 * modules/sys_socket, modules/sys_stat, modules/sysexits:
1782 2006-09-08 Jim Meyering <jim@meyering.net>
1784 Avoid new build failure on FreeBSD 6.0.
1785 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
1786 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
1787 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
1789 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1791 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
1793 2006-09-07 Jim Meyering <jim@meyering.net>
1795 Fix global typo in last change: use chmod u-w, not chmod u-x.
1796 Spotted by Paul Eggert and Bruce Korb.
1797 * modules/alloca-opt, modules/argz, modules/arpa_inet:
1798 * modules/byteswap, modules/configmake, modules/fcntl:
1799 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
1800 * modules/localcharset, modules/netinet_in, modules/poll:
1801 * modules/stdbool, modules/stdint, modules/sys_select:
1802 * modules/sys_socket, modules/sys_stat, modules/sysexits:
1804 2006-09-06 Jim Meyering <jim@meyering.net>
1806 Make generated files be read-only.
1807 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
1808 Ensure that each generated file is now read-only.
1809 * modules/argz: Likewise.
1810 * modules/arpa_inet: Likewise.
1811 * modules/byteswap: Likewise.
1812 * modules/configmake: Likewise.
1813 * modules/fcntl: Likewise.
1814 * modules/fnmatch: Likewise.
1815 * modules/getopt: Likewise.
1816 * modules/glob: Likewise.
1817 * modules/inttypes: Likewise.
1818 * modules/netinet_in: Likewise.
1819 * modules/poll: Likewise.
1820 * modules/stdbool: Likewise.
1821 * modules/stdint: Likewise.
1822 * modules/sys_select: Likewise.
1823 * modules/sys_socket: Likewise.
1824 * modules/sys_stat: Likewise.
1825 * modules/sysexits: Likewise.
1826 * modules/localcharset: Same as above, but continue using temporary
1827 file named "t-$@" (why different?) rather than the "$@-t" used
1830 * modules/sysexits (Makefile.am): Replace literal occurrences
1831 of "sysexit.h" more readable, and more consistent, "$@".
1833 2006-09-06 Bruno Haible <bruno@clisp.org>
1835 * modules/striconv: New file.
1836 * modules/xstriconv: New file.
1837 * MODULES.html.sh (Internationalization functions): Add striconv,
1840 2006-09-06 Bruno Haible <bruno@clisp.org>
1842 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
1843 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
1844 not using libtool correctly.
1846 2006-09-06 Bruno Haible <bruno@clisp.org>
1848 * lib/striconv.h: New file.
1849 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
1851 * lib/xstriconv.h: New file.
1852 * lib/xstriconv.c: New file.
1854 2006-09-06 Bruno Haible <bruno@clisp.org>
1856 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1859 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1861 * lib/argz_.h: Sync from Libtool.
1863 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
1864 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1866 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
1868 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
1870 * modules/trim: New file.
1872 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
1874 * lib/trim.h: New file.
1875 * lib/trim.c: New file.
1877 2006-09-05 Bruno Haible <bruno@clisp.org>
1879 * MODULES.html.sh (String handling): Add trim.
1881 2006-09-04 Karl Berry <karl@gnu.org>
1883 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
1886 2006-09-03 Bruno Haible <bruno@clisp.org>
1888 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
1891 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
1893 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
1894 not gl_GETLOADAVG. Omit unneeded semicolons.
1895 Problems reported by Ralf Wildenhues in
1896 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
1897 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
1898 at the end, which is the usual gnulib style.
1900 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
1901 of doing all the work ourselves.
1902 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
1903 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
1905 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
1907 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
1908 Problem reported by Ralf Wildenhues in
1909 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
1911 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
1912 HAVE_STRUCT_STATFS_F_FSTYPENAME.
1914 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
1916 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
1917 yesterday's patch by changing test -n to test -z.
1919 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
1921 * modules/getloadavg (Files): Add m4/getloadavg.m4.
1922 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
1923 the former is now obsolescent.
1925 * modules/chdir-long (Depends-on): Add fcntl.
1927 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
1929 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
1930 obsolescent, and programs should use gnulib instead.
1931 * m4/getloadavg.m4: New file, with contents taken from Autoconf
1932 but with prefixes changed.
1934 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
1936 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
1937 or stdbool.h, because they might not exist while configuring.
1939 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
1940 Don't include unistd.h or limits.h; not needed, since chdir-long.h
1942 (O_DIRECTORY): Remove.
1944 2006-08-31 Eric Blake <ebb9@byu.net>
1946 * gnulib-tool: Don't let emacs change spaces to TAB.
1948 2006-08-31 Bruno Haible <bruno@clisp.org>
1950 * gnulib-tool: When calling func_import more than once, do it in a
1952 Reported by Eric Blake <ebb9@byu.net>.
1954 2006-08-31 Bruno Haible <bruno@clisp.org>
1956 * gnulib-tool (nl): Remove variable.
1957 (sed_transform_lib_file): Use more robust test for config-h module.
1958 (func_import): Fix typo in 2006-08-25 patch.
1960 2006-08-31 Bruno Haible <bruno@clisp.org>
1962 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
1963 specified, augment Makefile.am variables instead of assigning them.
1965 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1967 Work around a bug in both the Linux and SunOS 64-bit kernels:
1968 nanosleep mishandles sleeps for longer than 2**31 seconds.
1969 Problem reported by Frank v Waveren in
1970 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
1971 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
1972 Check for nanosleep bug.
1973 (LIB_NANOSLEEP): Append clock_gettime library if needed.
1975 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1977 Work around a bug in both the Linux and SunOS 64-bit kernels:
1978 nanosleep mishandles sleeps for longer than 2**31 seconds.
1979 Problem reported by Frank v Waveren in
1980 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
1981 * lib/nanosleep.c (BILLION): New constant.
1982 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
1983 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
1986 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1988 * modules/nanosleep (Depends-on): Add gettime.
1990 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1991 and Simon Josefsson <jas@extundo.com>
1992 and Oskar Liljeblad <oskar@osk.mine.nu>
1994 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
1995 * gnulib-tool (func_import): New license type 'unmodifiable license
1997 * modules/fdl: Use it. Longer description.
1998 * module/gpl, module/lgpl: New files.
2000 2006-08-30 Jim Meyering <jim@meyering.net>
2002 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
2003 shadowing the parameter.
2005 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
2012 sharing with gnulib. Report by Eric Blake.
2014 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
2016 * modules/isapipe: New file.
2017 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
2019 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
2021 * modules/configmake (Makefile.am): Add a comment, and omit
2022 the CONFIGMAKE_ prefix from generated macro names. Suggested
2025 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
2027 * m4/isapipe.m4: New file.
2029 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
2031 * lib/isapipe.c, isapipe.h: New files.
2033 2006-08-29 Jim Meyering <jim@meyering.net>
2035 * modules/configmake (Makefile.am): Make configmake.h depend on
2036 Makefile. Otherwise, a stale configmake.h could hang around.
2038 2006-08-29 Eric Blake <ebb9@byu.net>
2040 * lib/error.c (error_at_line, print_errno_message): Match libc, after
2041 resolution of upstream bug 3044.
2043 2006-08-29 Bruno Haible <bruno@clisp.org>
2045 * modules/localcharset (Depends-on): Add configmake.
2046 (Makefile.am): Remove setting of LIBDIR through DEFS.
2048 2006-08-29 Bruno Haible <bruno@clisp.org>
2050 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
2053 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
2055 * modules/fcntl: New file.
2056 * modules/chdir-safer (Depends-on): Add fcntl.
2057 * modules/fts: Likewise.
2058 * modules/mkdir-p: Likewise.
2060 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
2061 This undoes the most recent change, since we're now addressing the
2062 problem in a different way.
2064 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
2065 into output, since the output might be called Makefile.am even
2066 if $makefile_name is something different.
2067 (func_import): Use $makefile_am rather than
2068 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
2071 * modules/inttypes (Files): Add m4/inttypes-h.m4.
2073 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
2075 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
2076 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
2077 recent change to stdint.m4, since we're now addressing the problem in a
2080 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
2082 * m4/fcntl_h.m4: New file.
2084 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
2086 * lib/fcntl_.h: New file.
2087 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
2089 * lib/dirchownmod.c: Likewise.
2090 * lib/fts.c: Likewise.
2092 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
2093 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
2094 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
2095 just before including <inttypes.h>, to avoid circular inclusion.
2097 2006-08-28 Jim Meyering <jim@meyering.net>
2099 * doc/visibility.texi: Actually read and correct the grammar of the
2100 sentence affected by yesterday's change.
2102 2006-08-28 Eric Blake <ebb9@byu.net>
2104 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
2107 2006-08-28 Eric Blake <ebb9@byu.net>
2109 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
2111 2006-08-28 Eric Blake <ebb9@byu.net>
2113 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
2115 2006-08-28 Bruno Haible <bruno@clisp.org>
2117 * modules/c-strstr: New file, from GNU gettext.
2118 * MODULES.html.sh (String handling): Add c-strstr.
2120 2006-08-28 Bruno Haible <bruno@clisp.org>
2122 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
2124 Reported by Eric Blake.
2126 2006-08-28 Bruno Haible <bruno@clisp.org>
2128 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
2129 (VASNPRINTF): Return a string of length > INT_MAX without failing.
2130 * lib/vasprintf.c: Include errno.h, limits.h.
2131 (EOVERFLOW): New fallback definition.
2132 (vasprintf): Test here whether the string length is > INT_MAX.
2133 * lib/vsnprintf.c: Include errno.h, limits.h.
2134 (EOVERFLOW): New fallback definition.
2135 (vsnprintf): Fix bug when generated string was too long for the buffer.
2136 Test here whether the string length is > INT_MAX.
2138 2006-08-28 Bruno Haible <bruno@clisp.org>
2140 * lib/inttypes_.h (SCNX*): Remove definitions.
2141 Reported by Eric Blake.
2143 2006-08-28 Bruno Haible <bruno@clisp.org>
2145 * lib/c-strstr.h: New file, from GNU gettext.
2146 * lib/c-strstr.c: New file, from GNU gettext.
2148 2006-08-28 Bruno Haible <bruno@clisp.org>
2150 * gnulib-tool: Reorder some statements.
2152 2006-08-28 Bruno Haible <bruno@clisp.org>
2154 * gnulib-tool: New option --makefile-name.
2155 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
2157 (func_import): Write $makefile_name to the cache file, and read it from
2158 there unless explicitly specified. Use $makefile_name as file name
2159 instead of Makefile.am. Adjust the recommendations accordingly.
2161 2006-08-28 Bruno Haible <bruno@clisp.org>
2163 * gnulib-tool (func_verify_module): Check against misapplying patch.
2165 2006-08-28 Bruno Haible <bruno@clisp.org>
2167 * gnulib-tool (func_relativize, func_relconcat): New functions.
2168 Give an error if --local-dir is given with --update.
2169 Remove trailing slashes from $local_gnulib_dir.
2170 (func_import): Store the relativized $local_gnulib_dir in
2171 gnulib-cache.m4, and read it from there if not specified explicitly.
2173 2006-08-28 Bruno Haible <bruno@clisp.org>
2175 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
2176 is the current directory. Respect also $local_gnulib_dir.
2178 2006-08-28 Bruno Haible <bruno@clisp.org>
2179 Simon Josefsson <jas@extundo.com>
2182 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
2184 2006-08-27 Jim Meyering <jim@meyering.net>
2186 * doc/visibility.texi: Remove duplicate word: "pointer".
2188 2006-08-26 Bruno Haible <bruno@clisp.org>
2190 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
2191 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
2192 (Makefile.am): Create inttypes.h from inttypes_.h.
2193 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
2195 * modules/imaxabs: New file.
2197 * modules/imaxdiv: New file.
2199 2006-08-26 Bruno Haible <bruno@clisp.org>
2201 * m4/inttypes.m4: New file.
2202 * m4/_inttypes_h.m4: Remove file.
2203 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
2205 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
2207 * m4/imaxabs.m4: New file.
2209 * m4/imaxdiv.m4: New file.
2211 2006-08-26 Bruno Haible <bruno@clisp.org>
2213 * lib/inttypes_.h: New file.
2214 * lib/inttypes.h: Remove file.
2215 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
2217 * lib/imaxabs.c: New file.
2219 * lib/imaxdiv.c: New file.
2221 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
2223 New config-h module, so that "make" output needn't be cluttered
2225 * MODULES.html.sh (Support for building libraries and executables):
2227 * modules/config-h: New file.
2228 * gnulib-tool (nl, sed_transform_lib_file): New vars.
2229 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
2230 the config-h module is used.
2232 New configmake module, so that "make" output needn't be cluttered
2233 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
2234 * MODULES.html.sh (Support for building libraries and executables):
2236 * modules/configmake: New file.
2238 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
2240 * m4/config-h.m4: New file.
2242 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
2244 * config/srclist.txt: Add elisp-comp.
2246 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
2248 * MODULES.html.sh (Support for building libraries and executables):
2250 * build-aux/elisp-comp: New file.
2251 * modules/elisp-comp: New file.
2253 2006-08-24 Bruno Haible <bruno@clisp.org>
2255 * gnulib-tool (func_create_testdir): Use non-default values of
2256 sourcebase and m4base.
2258 2006-08-24 Bruno Haible <bruno@clisp.org>
2260 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
2263 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
2265 * modules/openat (Depends-on): Add lchown.
2267 2006-08-23 Bruno Haible <bruno@clisp.org>
2269 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
2270 of gl_LOCK_EARLY instead of gl_LOCK.
2272 2006-08-23 Bruno Haible <bruno@clisp.org>
2274 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
2276 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
2278 2006-08-23 Bruno Haible <bruno@clisp.org>
2280 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
2283 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
2284 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
2285 (gl_LOCK): New macro.
2287 2006-08-22 Simon Josefsson <jas@extundo.com>
2289 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
2292 2006-08-22 Simon Josefsson <jas@extundo.com>
2294 * MODULES.html.sh: Add "Support for maintaining and release
2297 * build-aux/gnupload: New file, from coreutils.
2299 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
2301 Avoid the need for AC_LIBSOURCES in m4 macros.
2302 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
2303 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
2304 * modules/check-version (EXTRA_DIST): Add check-version.h.
2305 * modules/crc (EXTRA_DIST): Add crc.h.
2306 * modules/des (EXTRA_DIST): Add des.h.
2307 * modules/gc (EXTRA_DIST): Add gc.h.
2308 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
2309 * modules/getline (EXTRA_DIST): Add getline.h.
2310 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
2311 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
2312 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
2313 * modules/md2 (EXTRA_DIST): Add md2.h.
2314 * modules/md4 (EXTRA_DIST): Add md4.h.
2315 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
2316 * modules/read-file (EXTRA_DIST): Add read-file.h.
2317 * modules/readline (EXTRA_DIST): Add readline.h.
2318 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
2321 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
2323 * m4/rijndael.m4 (gl_ARCFOUR):
2324 * m4/arctwo.m4 (gl_ARCTWO):
2325 * m4/check-version.m4 (gl_CHECK_VERSION):
2326 * m4/crc.m4 (gl_CRC):
2327 * m4/des.m4 (gl_DES):
2328 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
2330 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
2331 * m4/getline.m4 (gl_FUNC_GETLINE):
2332 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
2333 * m4/hmac-md5.m4 (gl_HMAC_MD5):
2334 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
2335 * m4/md2.m4 (gl_MD2):
2336 * m4/md4.m4 (gl_MD4):
2337 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
2338 * m4/read-file.m4 (gl_FUNC_READ_FILE):
2339 * m4/readline.m4 (gl_FUNC_READLINE):
2340 * m4/rijndael.m4 (gl_RIJNDAEL):
2341 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
2342 to get the necessary .h files and whatnot.
2344 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
2346 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
2347 gnulib rather than the other way around.
2348 * config/srclistvars.sh (COREUTILS): Remove.
2350 2006-08-22 Jim Meyering <jim@meyering.net>
2352 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
2354 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
2356 2006-08-22 Eric Blake <ebb9@byu.net>
2358 * modules/regexprops-generic: New file.
2359 * MODULES.html.sh (Support for building documentation): List it.
2361 2006-08-22 Eric Blake <ebb9@byu.net>
2363 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
2364 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
2365 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
2366 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
2368 2006-08-22 Bruno Haible <bruno@clisp.org>
2370 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
2371 and lib_LTLIBRARIES like the other lib_* variables.
2373 2006-08-22 Bruno Haible <bruno@clisp.org>
2375 * build-aux/x-to-1.in: New file, from GNU gettext.
2377 2006-08-22 Bruno Haible <bruno@clisp.org>
2379 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
2382 2006-08-22 Bruno Haible <bruno@clisp.org>
2384 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
2387 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
2390 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
2392 Problem reported by Bruno Haible.
2394 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
2396 Avoid the need for AC_LIBSOURCES in m4 macros.
2397 * modules/acl (EXTRA_DIST): Add acl.h.
2398 * modules/argmatch (Files): Add m4/argmatch.m4.
2399 (configure.ac): Add gl_ARGMATCH.
2400 (EXTRA_DIST): Renamed from lib_SOURCES, for
2401 consistency with the other modules. Remove argmatch.c.
2402 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
2403 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
2404 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
2405 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
2406 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
2407 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
2408 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
2409 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
2410 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
2411 * modules/closeout (EXTRA_DIST): Add closeout.h.
2412 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
2413 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
2414 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
2415 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
2416 dirname.h; remove basename.c and stripslash.c.
2417 * modules/exclude (EXTRA_DIST): Add exclude.h.
2418 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
2419 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
2420 * modules/file-type (EXTRA_DIST): Add file-type.h.
2421 * modules/filemode (EXTRA_DIST): Add filemode.h.
2422 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
2423 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
2424 * modules/fpending (EXTRA_DIST): Add __fpending.h.
2425 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
2426 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
2427 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
2428 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
2429 * modules/getdate (EXTRA_DIST): Add getdate.c.
2430 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
2431 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
2432 * modules/getpass (EXTRA_DIST): Add getpass.h.
2433 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
2434 * modules/group-member (EXTRA_DIST): Add group-member.h.
2435 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
2436 * modules/hash (EXTRA_DIST): Add hash.h.
2437 * modules/human (EXTRA_DIST): Add human.h.
2438 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
2439 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
2440 * modules/lchown (EXTRA_DIST): Add lchown.h.
2441 * modules/long-options (EXTRA_DIST): Add long-options.h.
2442 * modules/lstat (EXTRA_DIST): Add lstat.h.
2443 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
2444 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
2445 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
2446 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
2447 * modules/memxor (EXTRA_DIST): Add memxor.h.
2448 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
2449 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
2450 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
2451 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
2452 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
2453 * modules/physmem (EXTRA_DIST): Add physmem.h.
2454 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
2455 * modules/posixver (EXTRA_DIST): Add posixver.h.
2456 * modules/quote (EXTRA_DIST): Add quote.h.
2457 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
2458 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
2459 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
2460 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
2461 regex_internal.h regexec.c.
2462 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
2463 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
2464 * modules/same (EXTRA_DIST): Add same.h.
2465 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
2466 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
2467 * modules/savedir (EXTRA_DIST): Add savedir.h.
2468 * modules/sha1 (EXTRA_DIST): Add sha1.h.
2469 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
2470 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
2471 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
2472 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
2473 * modules/strdup (EXTRA_DIST): Add strdup.h.
2474 * modules/strftime (EXTRA_DIST): Add strftime.h.
2475 * modules/strndup (EXTRA_DIST): Add strndup.h.
2476 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
2477 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
2478 * modules/time_r (EXTRA_DIST): Add time_r.h.
2479 * modules/timespec (EXTRA_DIST): Add timespec.h.
2480 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
2481 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
2482 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
2483 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
2484 * modules/userspec (EXTRA_DIST): Add userspec.h.
2485 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
2486 * modules/utimens (EXTRA_DIST): Add utimens.h.
2487 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
2488 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
2489 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
2490 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
2491 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
2492 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
2493 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
2494 * modules/yesno (EXTRA_DIST): Add yesno.h.
2496 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
2498 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
2500 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
2501 * m4/dev-ino.m4, same-inode.m4: Remove.
2503 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
2504 * m4/acl.m4 (AC_FUNC_ACL):
2505 * m4/backupfile.m4 (gl_BACKUPFILE):
2506 * m4/c-strtod.m4 (gl_C99_STRTOLD):
2507 * m4/canon-host.m4 (gl_CANON_HOST):
2508 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
2509 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
2510 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
2511 * m4/cloexec.m4 (gl_CLOEXEC):
2512 * m4/close-stream.m4 (gl_CLOSE_STREAM):
2513 * m4/closeout.m4 (gl_CLOSEOUT):
2514 * m4/dirfd.m4 (gl_FUNC_DIRFD):
2515 * m4/dirname.m4 (gl_DIRNAME):
2516 * m4/exclude.m4 (gl_EXCLUDE):
2517 * m4/exitfail.m4 (gl_EXITFAIL):
2518 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
2519 * m4/file-type.m4 (gl_FILE_TYPE):
2520 * m4/filemode.m4 (gl_FILEMODE):
2521 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
2522 * m4/fpending.m4 (gl_FUNC_FPENDING):
2523 * m4/fprintftime.m4 (gl_FPRINTFTIME):
2524 * m4/fts.m4 (gl_FUNC_FTS):
2525 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
2526 * m4/getdate.m4 (gl_GETDATE):
2527 * m4/gethrxtime.m4 (gl_GETHRXTIME):
2528 * m4/getpagesize.m4 (gl_GETPAGESIZE):
2529 * m4/getpass.m4 (gl_FUNC_GETPASS):
2530 * m4/gettime.m4 (gl_GETTIME):
2531 * m4/getugroups.m4 (gl_GETUGROUPS):
2532 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
2533 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
2534 * m4/hard-locale.m4 (gl_HARD_LOCALE):
2535 * m4/hash.m4 (gl_HASH):
2536 * m4/idcache.m4 (gl_IDCACHE):
2537 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
2538 * m4/lchown.m4 (gl_FUNC_LCHOWN):
2539 * m4/long-options.m4 (gl_LONG_OPTIONS):
2540 * m4/lstat.m4 (gl_FUNC_LSTAT):
2541 * m4/md5.m4 (gl_MD5):
2542 * m4/memcasecmp.m4 (gl_MEMCASECMP):
2543 * m4/memcoll.m4 (gl_MEMCOLL):
2544 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
2545 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
2546 * m4/memxor.m4 (gl_MEMXOR):
2547 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
2548 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
2549 * m4/modechange.m4 (gl_MODECHANGE):
2550 * m4/mountlist.m4 (gl_MOUNTLIST):
2551 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
2552 * m4/openat.m4 (gl_FUNC_OPENAT):
2553 * m4/pathmax.m4 (gl_PATHMAX):
2554 * m4/physmem.m4 (gl_PHYSMEM):
2555 * m4/posixtm.m4 (gl_POSIXTM):
2556 * m4/posixver.m4 (gl_POSIXVER):
2557 * m4/quote.m4 (gl_QUOTE):
2558 * m4/quotearg.m4 (gl_QUOTEARG):
2559 * m4/readtokens.m4 (gl_READTOKENS):
2560 * m4/readutmp.m4 (gl_READUTMP):
2561 * m4/regex.m4 (gl_REGEX):
2562 * m4/safe-read.m4 (gl_SAFE_READ):
2563 * m4/safe-write.m4 (gl_SAFE_WRITE):
2564 * m4/same.m4 (gl_SAME):
2565 * m4/save-cwd.m4 (gl_SAVE_CWD):
2566 * m4/savedir.m4 (gl_SAVEDIR):
2567 * m4/settime.m4 (gl_SETTIME):
2568 * m4/sha1.m4 (gl_SHA1):
2569 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
2570 * m4/stat-macros.m4 (gl_STAT_MACROS):
2571 * m4/stat-time.m4 (gl_STAT_TIME):
2572 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
2573 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
2574 * m4/strdup.m4 (gl_FUNC_STRDUP):
2575 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
2576 * m4/strndup.m4 (gl_FUNC_STRNDUP):
2577 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
2578 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
2579 * m4/time_r.m4 (gl_TIME_R):
2580 * m4/timespec.m4 (gl_TIMESPEC):
2581 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
2582 * m4/unlinkdir.m4 (gl_UNLINKDIR):
2583 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
2584 * m4/userspec.m4 (gl_USERSPEC):
2585 * m4/utimecmp.m4 (gl_UTIMECMP):
2586 * m4/utimens.m4 (gl_UTIMENS):
2587 * m4/xalloc.m4 (gl_XALLOC):
2588 * m4/xgetcwd.m4 (gl_XGETCWD):
2589 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
2590 * m4/xreadlink.m4 (gl_XREADLINK):
2591 * m4/xstrtod.m4 (gl_XSTRTOD):
2592 * m4/yesno.m4 (gl_YESNO):
2593 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
2594 to get the necessary .h files and whatnot.
2596 2006-08-21 Mark D. Baushke <mdb@gnu.org>
2597 Bruno Haible <bruno@clisp.org>
2599 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
2600 /bin/sh understanding of '!' conditional negation.
2602 2006-08-21 Jim Meyering <jim@meyering.net>
2604 * modules/openat (Depends-on): Really alphabetize.
2606 * modules/acl (Depends-on): Add error and quote.
2608 * check-module (find_included_lib_files): Add at-func.c to the
2609 ok-to-include-more-than-once white list.
2611 * modules/openat (Depends-on): Add lstat. Alphabetize.
2613 2006-08-21 Bruno Haible <bruno@clisp.org>
2615 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2616 Emit a pkgdata_DATA variable only if some snippets add contents to it.
2617 Reported by Martin Lambers <marlam@marlam.de>.
2619 2006-08-21 Bruno Haible <bruno@clisp.org>
2621 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
2622 specify an installation location, don't emit a noinst_LIBRARIES or
2623 noinst_LTLIBRARIES assignment.
2625 2006-08-21 Bruno Haible <bruno@clisp.org>
2628 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
2629 BeOS has mbrtowc() but no <wctype.h>.
2631 2006-08-21 Bruno Haible <bruno@clisp.org>
2634 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
2637 2006-08-21 Bruno Haible <bruno@clisp.org>
2640 * lib/mbchar.h: Include <wctype.h> only if it exists.
2642 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
2644 Remove files that are no longer needed by their respective modules.
2645 * m4/obstack.m4: Remove.
2646 * m4/strerror_r.m4: Remove.
2647 * m4/uint32_t.m4: Remove.
2648 * m4/uintptr_t.m4: Remove.
2649 * m4/ullong_max.m4: Remove.
2650 * m4/xstrtoimax.m4: Remove.
2651 * m4/xstrtoumax.m4: Remove.
2653 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
2654 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
2655 dependencies now capture this.
2657 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2658 Do not use AC_LIBSOURCES, since gnulib modules now do this.
2659 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
2660 * m4/human.m4 (gl_HUMAN): Likewise.
2661 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
2662 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
2664 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
2666 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
2667 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
2669 * m4/human.m4 (gl_HUMAN): Likewise.
2670 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
2671 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
2672 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
2673 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
2674 * m4/xstrtol (gl_XSTRTOL): Likewise.
2676 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
2677 AC_TYPE_LONG_LONG_INT.
2678 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
2679 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
2680 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
2681 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
2683 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
2686 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
2687 (gl_PREREQ_XSTRTOUL): Remove.
2689 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
2691 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
2694 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
2696 Add and change modules to make it easier for coreutils to use
2698 * modules/backupfile (Files): Remove m4/d-ino.m4.
2699 (Depends-on): Add d-ino.
2700 * modules/cycle-check (Depends-on): Add stdint.
2701 (lib_SOURCES): Add cycle-check.h.
2702 * modules/d-ino: New module.
2703 * modules/d-type: New module.
2704 * modules/error (Files): Remove m4/strerror_r.m4.
2705 * modules/filemode (Files): Add m4/st_dm_mode.m4.
2706 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
2707 m4/inttypes_h.m4, m4/uintmax_t.m4.
2708 (Depends-on): Add stdint.
2709 (lib_SOURCES): Add fsusage.h.
2710 * modules/getcwd (Files): Remove d-ino.m4.
2711 (Depends-on): Add d-ino.
2712 * modules/getndelim2 (Depends-on): Add stdint.
2713 * modules/glob (Files): Remove m4/d-type.m4.
2714 (Depends-on): Add d-type.
2715 * modules/host-os: New module.
2716 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
2717 m4/inttypes_h.m4, m4/uintmax_t.m4.
2718 * Depends-on: Add stdint.
2719 (lib_SOURCES): Add human.h.
2720 * modules/inttostr (Files): Remove m4/intmax_t.m4,
2721 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
2722 m4/uintmax_t.m4, m4/ulonglong.m4.
2723 (Depends-on): Add stdint.
2724 (EXTRA_DIST): Add inttostr.h.
2725 * modules/lchmod: New module.
2726 * modules/link-follow: New module.
2727 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
2728 (Depends-on): Add lchmod.
2729 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
2730 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
2731 (Depends-on): Add stdint.
2732 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
2733 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
2734 (Depends-on): Add stdint.
2735 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
2736 * modules/perl: New module.
2737 * modules/regex (Depends-on): Add stdint.
2738 * modules/rmdir-errno: New module.
2739 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
2741 (Depends-on): Add stdint.
2742 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
2744 (Depends-on): Add stdint.
2745 * modules/unlink-busy: New module.
2746 * modules/utimecmp (Depends-on): Add stdint.
2747 * modules/uptime: New module.
2748 * modules/winsz-ioctl: New module.
2749 * modules/winsz-termios: New module.
2750 * modules/xnanosleep (Depends-on): Add nanosleep.
2751 * modules/ullong_max: Remove.
2752 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
2753 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
2754 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
2755 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
2756 (Depends-on): Add inttypes.
2757 (lib_SOURCES): Add xstrtol.h.
2758 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
2759 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
2760 * MODULES.html.sh: Move 'assert' into the assert section.
2761 Move 'dummy' into the linking section.
2763 Add section for compatibility checks for POSIX:2001 functions,
2764 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
2765 winsz-ioctl, and winsz-termios into it.
2767 Add top-level Misc section and put host-os, perl, and uptime
2770 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
2772 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
2773 now assume the stdint module. Do not include inttypes.h.
2774 * lib/fsusage.h: Likewise.
2775 * lib/getndelim2.c: Likewise.
2776 * lib/human.h: Likewise.
2777 * lib/inttostr.h: Likewise.
2778 * lib/obstack.c: Likewise.
2779 * lib/regex_internal.h: Likewise.
2780 * lib/tempname.c: Likewise.
2781 * lib/utimecmp.c: Likewise.
2782 * lib/xstrtol.h: Likewise.
2784 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
2786 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
2787 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
2788 * lib/xtime.h: Likewise.
2790 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
2792 * modules/openat (Files): Add lib/fchmodat.c.
2793 Fixes problem reported by Jay Youngman.
2795 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
2797 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
2798 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
2800 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
2801 Bruno Haible <bruno@clisp.org>
2803 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
2804 and is a script that invokes bison. Tighten the code. Add comments.
2806 2006-08-18 Jim Meyering <jim@meyering.net>
2808 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
2809 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
2810 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
2811 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
2813 2006-08-18 Bruno Haible <bruno@clisp.org>
2815 * modules/bison-i18n: New file.
2816 * MODULES.html.sh (Internationalization functions): Add it.
2818 2006-08-18 Bruno Haible <bruno@clisp.org>
2820 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
2821 sys/statvfs.h. When getmntinfo was found, check its declaration and
2822 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
2824 2006-08-18 Bruno Haible <bruno@clisp.org>
2826 * m4/bison-i18n.m4: New file, from bison.
2828 2006-08-18 Bruno Haible <bruno@clisp.org>
2830 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
2831 (ME_DUMMY): Treat "kernfs" as a dummy.
2832 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
2834 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
2836 Update from coreutils.
2838 2006-08-15 Jim Meyering <jim@meyering.net>
2840 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
2842 2006-01-17 Jim Meyering <jim@meyering.net>
2844 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
2846 2006-01-11 Jim Meyering <jim@meyering.net>
2848 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
2849 Check for the lchmod function.
2851 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
2853 Update from coreutils.
2855 * lib/__fpending.h: Add copyright notice.
2856 * lib/fprintftime.h: Likewise.
2857 * lib/savedir.c: Use (C) in copyright notice.
2858 * lib/savedir.h: Likewise.
2860 2006-08-15 Jim Meyering <jim@meyering.net>
2862 * lib/at-func.c: New file, with the logic of all emulated at-functions.
2863 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
2864 in support of the EXPECTED_ERRNO macro.
2865 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
2866 definitions. Instead, define the appropriate symbols and include
2868 * lib/mkdirat.c (mkdirat): Likewise.
2869 * lib/fchmodat.c (fchmodat): Likewise.
2870 (ENOSYS): Remove definition.
2871 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
2872 it. Don't include "unistd--.h" -- it wasn't ever used.
2874 2006-01-17 Jim Meyering <jim@meyering.net>
2876 Rewrite fts.c not to change the current working directory,
2877 by using openat, fstatat, fdopendir, etc..
2879 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
2880 (HAVE_OPENAT_SUPPORT): Define.
2881 [_LIBC] (fchdir): Don't undef or define; no longer used.
2882 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
2883 Now, this `function' always succeeds, and consumes its file descriptor
2884 parameter -- so callers must not close such FDs. Update callers.
2885 (diropen_fd, opendirat, cwd_advance_fd): New functions.
2886 (diropen): Add parameter, SP. Adjust all callers.
2887 Implement using diropen_fd, rather than open.
2888 (fts_open): Initialize new member, fts_cwd_fd.
2889 Remove fts_rft-setting code.
2890 (fts_close): Close fts_cwd_fd, if necessary.
2891 (__opendir2): Define in terms of opendir or opendirat,
2892 depending on whether the FST_NOCHDIR flag is set.
2893 (fts_build): Since fts_safe_changedir consumes its FD, and since
2894 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
2895 and close the dup'd file descriptor upon failure.
2896 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
2897 (fts_safe_changedir): Tweak semantics to reflect that this function
2898 now calls cwd_advance_fd and hence consumes its FD argument.
2899 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
2900 [struct FTS] (fts_rft): Remove now-unused member.
2901 [struct FTS] (fts_cycle.state): Improve comment.
2903 * lib/openat.c (openat_needs_fchdir): New function.
2904 * lib/openat.h (openat_needs_fchdir): Declare it.
2906 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
2908 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
2909 Problem and fix reported by Pádraig Brady in
2910 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
2912 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2914 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
2916 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2918 * lib/memcoll.c (memcoll): Optimize for the common case where the
2919 arguments are bytewise equal.
2921 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2923 * doc/regexprops-generic.texi: Add a copyright notice.
2925 2006-08-15 Bruno Haible <bruno@clisp.org>
2927 * modules/tmpdir (License): Change to LGPL.
2929 2006-08-15 Bruno Haible <bruno@clisp.org>
2931 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
2934 2006-08-14 Simon Josefsson <jas@extundo.com>
2936 * config/srclist.txt: Add gnupload.
2938 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2940 Change copyright notice from LGPL 2 to GPL 2, since that's the
2941 standard form used in the gnulib repository.
2942 * tests/test-lock.c: Likewise.
2943 * tests/test-stdint.c: Likewise.
2944 * tests/test-tls.c: Likewise.
2946 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
2947 prelude-manager. User shorter URLs for GNU projects, without '?'.
2948 Add copyright notice.
2950 * check-module: Add copyright notice. Output a copyright
2951 notice if "--version" is specified.
2952 * modules/COPYING: New file.
2953 * tests/test-getaddrinfo.c: Add copyright notice.
2954 * tests/test-verify.c: Likewise.
2956 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2958 Change copyright notice from LGPL 2 to GPL 2, since that's the
2959 standard form used in the gnulib repository.
2960 * lib/lock.c: LGPL -> GPL.
2961 * lib/lock.h: Likewise.
2962 * lib/strnlen1.c: Likewise.
2963 * lib/strnlen1.h: Likewise.
2964 * lib/tls.c: Likewise.
2965 * lib/tls.h: Likewise.
2966 * lib/tmpdir.c: Likewise.
2968 * lib/TODO: Remove; this belongs only in coreutils.
2970 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2972 Add copyright notices to long-enough files that lack them, since
2973 otherwise the files aren't clearly free. Use the same notice that
2974 getdate.texi already uses.
2975 * doc/alloca-opt.texi: Add copyright notice.
2976 * doc/alloca.texi: Likewise.
2977 * doc/ctime.texi: Likewise.
2978 * doc/functions.texi: Likewise.
2979 * doc/gcd.texi: Likewise.
2980 * doc/gnulib-tool.texi: Likewise.
2981 * doc/inet_ntoa.texi: Likewise.
2982 * doc/visibility.texi: Likewise.
2984 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
2985 * doc/quote.texi: Add copyright notice.
2987 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
2988 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
2989 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
2990 Mention SunOS 5.11. Mention that everything before SunOS 5.7
2991 is now obsolete, and give a pointer to the Sun list.
2992 Add copyright notice.
2994 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2996 * config/srclistvars.sh: Add copyright notice.
2998 2006-08-14 Eric Blake <ebb9@byu.net>
3000 Import the following change from libc:
3002 2006-08-12 Ulrich Drepper <drepper@redhat.com>
3005 * lib/misc/error.c: Add space between program name and message if file
3008 2006-08-12 Karl Berry <karl@gnu.org>
3010 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
3011 remove, these originate in gnulib now.
3013 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3015 * doc/Makefile (standards.info standards.html standards.dvi):
3016 Also depend on make-stds.texi.
3018 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
3020 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
3021 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
3023 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
3024 in wchar_t. Problem reported by Eric Blake.
3026 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
3027 LEN is smaller than SIZE. Suggested by Bruno Haible.
3028 Also, help the compiler to keep LEN in a register.
3030 2006-08-11 Eric Blake <ebb9@byu.net>
3032 * users.txt: Sort. Add tar.
3034 2006-08-11 Bruno Haible <bruno@clisp.org>
3036 * users.txt: New file.
3038 2006-08-11 Bruno Haible <bruno@clisp.org>
3040 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
3041 before <wchar.h>. Needed for OSF/1 and BSD/OS.
3043 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
3045 * modules/snprintf (Depends-on): Remove minmax.
3046 (Maintainer): Add self and Bruno.
3048 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
3050 * lib/.cppi-disable: Add snprintf.h, socket_.h.
3051 * lib/snprintf.c: Include <errno.h> and <limits.h>.
3052 (EOVERFLOW): Define if the system does not.
3053 Do not include "minmax.h"; it wasn't used.
3054 (snprintf): Don't assume size_t promotes to an unsigned type.
3055 Fix bug when generated string was too long for the buffer: the
3056 buffer's contents are supposed to be the initial prefix of the
3057 output. Don't assume vasnprintf returns EOVERFLOW if the size
3058 exceeds INT_MAX; do the check ourselves.
3060 Import the following changes from libc:
3062 2006-06-02 Jakub Jelinek <jakub@redhat.com>
3064 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
3065 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
3066 set wc to the byte which couldn't be converted.
3067 (re_string_reconstruct): Don't clear valid_raw_len before calling
3068 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
3069 tip_context using re_string_context_at.
3071 2006-05-02 Ulrich Drepper <drepper@redhat.com>
3073 * lib/posix/regex.h: g++ still cannot handled [restrict].
3075 2006-04-21 Ulrich Drepper <drepper@redhat.com>
3077 * lib/posix/regex.h: Remove special handling for VMS.
3079 2006-08-10 Jim Meyering <jim@meyering.net>
3081 * modules/same-inode: New module.
3082 * modules/dev-ino: New module.
3083 * modules/cycle-check: Depend on these modules, rather than simply
3084 including their .h files.
3085 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
3086 required via m4/cycle-check.m4.
3087 * modules/same: Depend on new same-inode module, rather than
3088 including same-inode.h.
3089 * modules/chdir-safer: New file.
3091 * modules/chown (Depends-on): Add stat-macros.
3093 2006-08-10 Jim Meyering <jim@meyering.net>
3095 * m4/cycle-check.m4: New file.
3096 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
3097 * m4/dev-ino.m4, same-inode.m4: New files.
3099 2006-08-10 Eric Blake <ebb9@byu.net>
3101 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
3102 in from original proposal.
3104 2006-08-10 Eric Blake <ebb9@byu.net>
3105 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3107 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
3110 2006-08-10 Bruno Haible <bruno@clisp.org>
3112 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
3115 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
3117 Sync from coreutils.
3119 2006-07-19 Mike Frysinger <vapier@gentoo.org>
3121 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
3122 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
3124 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
3126 * modules/restrict: Remove; no longer needed now that we assume
3127 Autoconf 2.59 or later.
3128 * MODULES.html.sh: Remove 'restrict'.
3129 * modules/argp (Depends-on): Remove 'restrict'.
3130 * modules/base64 (Depends-on): Likewise.
3131 * modules/gc (Depends-on): Likewise.
3132 * modules/getaddrinfo (Depends-on): Likewise.
3133 * modules/glob (Depends-on): Likewise.
3134 * modules/inet_ntop (Depends-on): Likewise.
3135 * modules/inet_pton (Depends-on): Likewise.
3136 * modules/memxor (Depends-on): Likewise.
3137 * modules/regex (Depends-on): Likewise.
3138 * modules/strtok_r (Depends-on): Likewise.
3139 * modules/time_r (Depends-on): Likewise.
3141 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
3143 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
3144 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
3145 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
3146 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
3147 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
3148 * m4/memxor.m4 (gl_MEMXOR): Likewise.
3149 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
3150 gl_C_RESTRICT replaced by AC_C_RESTRICT.
3152 Merge from coreutils.
3153 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
3154 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
3155 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
3156 * m4/time_r.m4 (gl_TIME_R): Likewise.
3158 2006-08-09 Karl Berry <karl@gnu.org>
3160 * config/srclist.txt: no more gettext-tools, per Bruno.
3162 2006-08-08 Eric Blake <ebb9@byu.net>
3164 * modules/verror: New module.
3165 * MODULES.html.sh: Document it.
3167 2006-08-08 Eric Blake <ebb9@byu.net>
3169 * lib/verror.h, verror.c: New files.
3171 2006-08-08 Eric Blake <ebb9@byu.net>
3173 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
3174 verror_at_line output complies with GNU Coding Standards even when
3177 2006-08-07 Bruno Haible <bruno@clisp.org>
3179 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
3181 Reported by Ralf Wildenhues.
3183 2006-08-07 Bruno Haible <bruno@clisp.org>
3185 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
3186 in an AC_DEFUN. Needed so that the autoconf snippets can use
3189 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3191 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3192 Initialize pkgdata_DATA.
3193 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
3196 2006-08-06 Eric Blake <ebb9@byu.net>
3198 * lib/error.h: Fold in some upstream changes from glibc.
3199 * lib/error.c: Likewise.
3201 2006-08-04 Bruno Haible <bruno@clisp.org>
3203 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3204 Make the mostlyclean-local rule depend on mostlyclean-generic.
3205 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
3207 2006-07-31 Bruno Haible <bruno@clisp.org>
3209 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
3210 <stdlib.h>, <string.h>.
3212 2006-07-30 Bruno Haible <bruno@clisp.org>
3214 * modules/readlink (License): Change to LGPL.
3216 2006-07-30 Bruno Haible <bruno@clisp.org>
3218 * modules/javaversion (Makefile.am): Distribute javaversion.java and
3219 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
3220 set PKGDATADIR to point to it.
3222 2006-07-30 Bruno Haible <bruno@clisp.org>
3224 * modules/csharpexec (configure.ac): Comment out macro invocation.
3225 * modules/javaexec (configure.ac): Likewise.
3226 * modules/javacomp-script (configure.ac): Likewise.
3228 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
3230 2006-07-30 Bruno Haible <bruno@clisp.org>
3232 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
3235 2006-07-30 Bruno Haible <bruno@clisp.org>
3237 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
3239 2006-07-30 Bruno Haible <bruno@clisp.org>
3241 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3242 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
3245 2006-07-29 Bruno Haible <bruno@clisp.org>
3247 Make it possible for gnulib-tool to work with locally modified or
3248 augmented gnulib repositories.
3249 * gnulib-tool (func_usage): Document --local-dir option.
3250 (local_gnulib_dir): New variable.
3251 Handle --local-dir option.
3252 (func_lookup_file): New function.
3253 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
3254 (func_get_description, func_get_filelist, func_get_description,
3255 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
3256 func_get_automake_snippet, func_get_include_directive,
3257 func_get_license, func_get_maintainer): Use func_lookup_file.
3258 (func_import, func_create_testdir): Use func_lookup_file.
3260 2006-07-29 Bruno Haible <bruno@clisp.org>
3262 * modules/setenv (Depends-on): Add unistd.
3264 2006-07-29 Bruno Haible <bruno@clisp.org>
3266 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
3268 2006-07-29 Bruno Haible <bruno@clisp.org>
3270 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
3272 2006-07-29 Bruno Haible <bruno@clisp.org>
3274 * gnulib-tool (import, update): If there is no Makefile.am, look at
3275 aclocal.m4, instead of bailing out.
3277 2006-07-29 Bruno Haible <bruno@clisp.org>
3279 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
3280 Categorize the options by when they are useful.
3282 2006-07-29 Bruno Haible <bruno@clisp.org>
3284 * gnulib-tool (func_usage): Document option --no-libtool.
3285 Handle option --no-libtool.
3286 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
3287 for changed semantics of $libtool variable.
3288 (func_import): Likewise. If libtool is not used, show this through
3289 an option --no-libtool.
3290 (func_create_testdir): Update.
3292 2006-07-29 Bruno Haible <bruno@clisp.org>
3294 * gnulib-tool (func_import): Extend error message about missing
3297 2006-07-29 Bruno Haible <bruno@clisp.org>
3299 * gnulib-tool (func_import): Don't create the $docbase directory if
3300 there is no file to store there.
3302 2006-07-29 Bruno Haible <bruno@clisp.org>
3304 * gnulib-tool (autoconf_minversion): If a --dir option is given and
3305 relevant, look for configure.ac there, not in the current directory.
3306 Also use a simple search for AC_PREREQ, not "autoconf --trace".
3308 2006-07-29 Bruno Haible <bruno@clisp.org>
3310 * gnulib-tool (SORT): New variable.
3311 (func_usage): Undocument --assume-autoconf option.
3312 Remove --assume-autoconf option handling.
3313 (autoconf_minversion): Determine from the contents of configure.ac.
3314 (func_import): Remove autoconf_minversion handling.
3315 Suggested by Eric Blake.
3317 2006-07-29 Bruno Haible <bruno@clisp.org>
3319 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
3321 2006-07-29 Bruno Haible <bruno@clisp.org>
3323 * config/srclist.txt (*setenv.[ch]): Remove rules.
3325 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3327 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
3329 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3331 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
3334 2006-07-28 Simon Josefsson <jas@extundo.com>
3336 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
3337 * modules/inet_pton (Depends-on): Likewise.
3339 2006-07-28 Simon Josefsson <jas@extundo.com>
3341 * m4/netinet_in_h.m4: New file.
3343 2006-07-28 Simon Josefsson <jas@extundo.com>
3345 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
3348 2006-07-28 Simon Josefsson <jas@extundo.com>
3350 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
3353 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
3355 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
3356 setgid on directories only if they set these bits.
3357 * lib/modechange.h: Remove obsolete comment about masks.
3359 2006-07-28 Eric Blake <ebb9@byu.net>
3361 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
3364 2006-07-28 Bruno Haible <bruno@clisp.org>
3366 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
3368 2006-07-28 Bruno Haible <bruno@clisp.org>
3370 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
3372 2006-07-28 Bruno Haible <bruno@clisp.org>
3374 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3375 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
3377 Avoids link error on FreeBSD 4.x.
3378 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
3380 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
3382 * lib/mbswidth.c (iswcntrl): Likewise.
3384 2006-07-27 Bruno Haible <bruno@clisp.org>
3386 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
3389 2006-07-27 Bruno Haible <bruno@clisp.org>
3391 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
3392 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
3395 2006-07-26 Eric Blake <ebb9@byu.net>
3397 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
3399 2006-07-26 Eric Blake <ebb9@byu.net>
3401 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
3402 like mingw that lack mkstemp.
3403 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
3404 avoid compilation warning on mingw.
3406 2006-07-26 Bruno Haible <bruno@clisp.org>
3408 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
3409 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
3410 INT_FAST*_MIN, INTPTR_MIN.
3412 2006-07-25 Bruno Haible <bruno@clisp.org>
3414 * modules/version-etc (Depends-on): Add stdarg.
3416 2006-07-25 Bruno Haible <bruno@clisp.org>
3418 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
3421 2006-07-25 Bruno Haible <bruno@clisp.org>
3423 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
3424 defined in <stdarg.h> or config.h.
3426 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
3428 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
3429 (gl_STDIO_SAFER): Remove.
3431 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
3433 * MODULES.html.sh (File stream based Input/Output):
3434 Add fopen-safer, tmpfile-safer; remove stdio-safer.
3435 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
3436 * modules/fopen-safer, modules/tmpfile-safer: New files.
3437 * modules/stdio-safer: Remove.
3439 2006-07-24 Bruno Haible <bruno@clisp.org>
3441 * modules/tmpdir: New file.
3442 * MODULES.html.sh (File system functions): Add it.
3444 2006-07-24 Bruno Haible <bruno@clisp.org>
3446 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
3447 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
3449 2006-07-24 Bruno Haible <bruno@clisp.org>
3451 * modules/clean-temp: New file.
3453 2006-07-24 Bruno Haible <bruno@clisp.org>
3455 * m4/tmpdir.m4: New file, from GNU gettext.
3457 2006-07-24 Bruno Haible <bruno@clisp.org>
3459 * lib/tmpdir.h: New file, from GNU gettext.
3460 * lib/tmpdir.c: New file, from GNU gettext.
3462 2006-07-24 Bruno Haible <bruno@clisp.org>
3464 * lib/clean-temp.h: New file, from GNU gettext.
3465 * lib/clean-temp.c: New file, from GNU gettext.
3467 2006-07-23 Eric Blake <ebb9@byu.net>
3469 * modules/stdio-safer (Files): Add tmpfile-safer.c.
3470 (Depends-on): Add binary-io.
3472 2006-07-23 Eric Blake <ebb9@byu.net>
3474 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
3476 2006-07-23 Eric Blake <ebb9@byu.net>
3478 * lib/tmpfile-safer.c: New file.
3479 * lib/stdio-safer.h (fopen_safer): Add prototype.
3480 * lib/stdio--.h (tmpfile): Make safer.
3482 2006-07-23 Bruno Haible <bruno@clisp.org>
3484 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
3485 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
3486 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
3487 gl_linked_remove_at): Use it.
3489 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3490 and Simon Josefsson <jas@extundo.com>
3492 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
3494 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
3496 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
3498 * modules/close-stream: New file.
3499 * modules/closeout (Description): Make it clear that it exits
3500 with a diagnostic on error.
3501 (Depends-on): Add close-stream. Remove fpending, stdbool.
3502 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
3504 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
3506 * m4/close-stream.m4: New file.
3508 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
3510 * lib/close-stream.c, close-stream.h: New files.
3512 2006-07-22 Bruno Haible <bruno@clisp.org>
3514 Merge from GNU gettext 0.15.
3516 2006-05-01 Bruno Haible <bruno@clisp.org>
3518 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
3520 2006-07-22 Bruno Haible <bruno@clisp.org>
3522 * modules/javaversion: New file.
3523 * MODULES.html.sh (Java): Add javaversion.
3525 2006-03-12 Bruno Haible <bruno@clisp.org>
3527 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
3529 2005-12-04 Bruno Haible <bruno@clisp.org>
3531 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
3534 2006-06-21 Bruno Haible <bruno@clisp.org>
3536 Avoid warnings from recent versions of mcs.
3537 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
3538 -o, -L, -r any more. Use options documented since mcs-1.0
3539 instead. Similarly for -g.
3541 2005-12-04 Bruno Haible <bruno@clisp.org>
3543 * build-aux/csharpcomp.sh.in: Suffix for resources is
3544 .resources, not .resource.
3546 2005-07-09 Bruno Haible <bruno@clisp.org>
3548 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
3550 Reported by Mark Junker <mjscod@gmx.de>.
3552 2006-07-22 Bruno Haible <bruno@clisp.org>
3554 * modules/gettext: Upgrade to gettext-0.15.
3555 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
3557 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
3559 2006-07-22 Bruno Haible <bruno@clisp.org>
3561 Merge from GNU gettext 0.15.
3563 2006-03-25 Bruno Haible <bruno@clisp.org>
3565 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
3567 2006-07-21 Bruno Haible <bruno@clisp.org>
3569 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
3572 2006-05-09 Bruno Haible <bruno@clisp.org>
3574 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
3575 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
3576 for the conftestver execution.
3578 2006-05-01 Bruno Haible <bruno@clisp.org>
3580 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
3581 optional target-version argument. Verify that the compiler
3582 groks source of the specified source-version, or add -source
3583 option as necessary. Verify that the compiler produces
3584 bytecode in the specified target-version, or add -target and
3585 -source options as necessary. Make the result of the test
3586 available as variable CONF_JAVAC. Also log error output in
3589 2006-03-11 Bruno Haible <bruno@clisp.org>
3591 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
3593 2006-05-09 Bruno Haible <bruno@clisp.org>
3595 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
3596 CLASSPATH_SEPARATOR to a semicolon.
3598 2006-03-12 Bruno Haible <bruno@clisp.org>
3600 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
3601 available as variable CONF_JAVA, for subsequent autoconf
3602 tests. Also log error output in config.log.
3604 2006-07-19 Bruno Haible <bruno@clisp.org>
3606 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
3607 that getline works on glibc2 systems. Needed to avoid trouble
3609 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
3611 2005-12-04 Bruno Haible <bruno@clisp.org>
3613 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
3614 launcher (untested).
3616 2005-12-04 Bruno Haible <bruno@clisp.org>
3618 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
3620 2006-07-22 Bruno Haible <bruno@clisp.org>
3622 * gettext.m4: Update from GNU gettext-0.15.
3625 * inttypes-pri.m4: Likewise.
3626 * inttypes-h.m4: Renamed from inttypes.m4.
3627 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
3629 2006-07-22 Bruno Haible <bruno@clisp.org>
3631 Merge from GNU gettext 0.15.
3633 2005-07-05 Bruno Haible <bruno@clisp.org>
3635 * printf-args.c (printf_fetchargs): Work around broken
3636 definition of wint_t on mingw.
3638 2005-02-12 Bruno Haible <bruno@clisp.org>
3640 * xallocsa.h: Add extern "C" for C++.
3642 2006-05-17 Bruno Haible <bruno@clisp.org>
3645 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
3647 2006-04-30 Bruno Haible <bruno@clisp.org>
3649 * progreloc.c: Include <mach-o/dyld.h> if available.
3650 (find_executable): Use _NSGetExecutablePath when possible.
3652 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
3654 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
3657 2005-12-29 Bruno Haible <bruno@clisp.org>
3659 * progreloc.c (set_program_name_and_installdir): Fix
3662 2005-12-04 Bruno Haible <bruno@clisp.org>
3665 * progreloc.c: Include <windows.h> also on Cygwin.
3666 (find_executable): Add support for Cygwin.
3667 (set_program_name_and_installdir): Handle also platforms with
3670 2006-07-11 Bruno Haible <bruno@clisp.org>
3672 * javacomp.c: Fix a comment.
3673 Reported by Jim Meyering.
3675 2006-04-30 Bruno Haible <bruno@clisp.org>
3677 * javacomp.h (compile_java_class): Add source_version,
3678 target_version arguments.
3679 * javacomp.c: Rewritten to choose only a compiler that
3680 respects the specified source_version and target_version.
3682 2006-06-27 Bruno Haible <bruno@clisp.org>
3684 Assume correct S_ISDIR macro.
3685 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
3687 2006-07-22 Bruno Haible <bruno@clisp.org>
3689 * javaversion.h: New file, from GNU gettext.
3690 * javaversion.c: New file, from GNU gettext.
3691 * javaversion.java: New file, from GNU gettext.
3692 * javaversion.class: New file, from GNU gettext.
3694 2006-05-17 Bruno Haible <bruno@clisp.org>
3697 * javaexec.c (execute_java_class): Test for jview program
3700 2006-04-09 Bruno Haible <bruno@clisp.org>
3702 * fatal-signal.c: Don't include string.h.
3703 (at_fatal_signal): Use a copying loop instead of memcpy.
3705 2005-12-04 Bruno Haible <bruno@clisp.org>
3707 * csharpexec.c: Add support for 'clix' launcher (untested).
3708 (execute_csharp_using_sscli): New function.
3709 (execute_csharp_program): Call it.
3711 2006-06-21 Bruno Haible <bruno@clisp.org>
3713 Avoid warnings from recent versions of mcs.
3714 * csharpcomp.c (compile_csharp_using_mono): Don't use options
3715 -o, -L, -r any more. Use options documented since mcs-1.0
3716 instead. Similarly for -g.
3718 2005-07-09 Bruno Haible <bruno@clisp.org>
3720 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
3722 Reported by Mark Junker <mjscod@gmx.de>.
3724 2006-06-17 Bruno Haible <bruno@clisp.org>
3726 * config.charset: Update for NetBSD 3.0.
3728 2006-05-17 Bruno Haible <bruno@clisp.org>
3731 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
3733 2006-05-16 Bruno Haible <bruno@clisp.org>
3735 * localcharset.c [CYGWIN]: Include <windows.h>.
3736 (get_charset_aliases): For Cygwin, return the same CPxxx
3737 aliases list as under WIN32.
3738 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
3739 the environment variables. Fall back to GetACP().
3741 2006-04-05 Bruno Haible <bruno@clisp.org>
3743 * config.charset: Update Juan Manuel Guerrero's address.
3745 2005-02-12 Bruno Haible <bruno@clisp.org>
3747 * allocsa.h: Add extern "C" for C++.
3749 2005-02-10 Bruno Haible <bruno@clisp.org>
3751 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
3752 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
3754 2006-07-22 Bruno Haible <bruno@clisp.org>
3756 * gettext.h: Update to GNU gettext-0.15.
3758 2006-07-22 Bruno Haible <bruno@clisp.org>
3760 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
3761 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
3762 lib-prefix.m4, longdouble.m4, ssize_t.m4.
3764 2006-07-21 Eric Blake <ebb9@byu.net>
3766 * modules/stdlib-safer: New file.
3767 * MODULES.html.sh (File stream based Input/Output): Add
3770 2006-07-21 Eric Blake <ebb9@byu.net>
3772 * lib/stdlib-safer.h: New file from coreutils, required by
3775 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
3777 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
3779 2006-07-20 Bruno Haible <bruno@clisp.org>
3781 * gnulib-tool: Recognize new option --assume-autoconf.
3782 (autoconf_minversion): New variable.
3783 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
3785 2006-07-20 Bruno Haible <bruno@clisp.org>
3787 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
3789 2006-07-19 Derek R. Price <derek@ximbiot.com>
3791 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
3792 Reindent and repaginate.
3794 2006-07-19 Derek Price <derek@ximbiot.com>
3796 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
3799 2006-07-17 Bruno Haible <bruno@clisp.org>
3801 * modules/list: New file.
3802 * modules/array-list: New file.
3803 * modules/carray-list, modules/carray-list-tests: New files.
3804 * modules/linked-list, modules/linked-list-tests: New files.
3805 * modules/avltree-list, modules/avltree-list-tests: New files.
3806 * modules/rbtree-list, modules/rbtree-list-tests: New files.
3807 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
3808 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
3809 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
3810 * modules/oset: New file.
3811 * modules/array-oset: New file.
3812 * modules/avltree-oset, modules/avltree-oset-tests: New files.
3813 * modules/rbtree-oset, rbtree-oset-tests: New files.
3814 * tests/test-carray_list.c: New file.
3815 * tests/test-linked_list.c: New file.
3816 * tests/test-avltree_list.c: New file.
3817 * tests/test-rbtree_list.c: New file.
3818 * tests/test-linkedhash_list.c: New file.
3819 * tests/test-avltreehash_list.c: New file.
3820 * tests/test-rbtreehash_list.c: New file.
3821 * tests/test-avltree_oset.c: New file.
3822 * tests/test-rbtree_oset.c: New file.
3823 * MODULES.html.sh (Container data structures): New section.
3825 2006-07-17 Bruno Haible <bruno@clisp.org>
3827 * m4/gl_list.m4: New file.
3829 2006-07-17 Bruno Haible <bruno@clisp.org>
3831 * lib/gl_list.h: New file.
3832 * lib/gl_list.c: New file.
3833 * lib/gl_array_list.h: New file.
3834 * lib/gl_array_list.c: New file.
3835 * lib/gl_carray_list.h: New file.
3836 * lib/gl_carray_list.c: New file.
3837 * lib/gl_linked_list.h: New file.
3838 * lib/gl_linked_list.c: New file.
3839 * lib/gl_anylinked_list1.h: New file.
3840 * lib/gl_anylinked_list2.h: New file.
3841 * lib/gl_avltree_list.h: New file.
3842 * lib/gl_avltree_list.c: New file.
3843 * lib/gl_anyavltree_list1.h: New file.
3844 * lib/gl_anyavltree_list2.h: New file.
3845 * lib/gl_rbtree_list.h: New file.
3846 * lib/gl_rbtree_list.c: New file.
3847 * lib/gl_anyrbtree_list1.h: New file.
3848 * lib/gl_anyrbtree_list2.h: New file.
3849 * lib/gl_anytree_list1.h: New file.
3850 * lib/gl_anytree_list2.h: New file.
3851 * lib/gl_linkedhash_list.h: New file.
3852 * lib/gl_linkedhash_list.c: New file.
3853 * lib/gl_anyhash_list1.h: New file.
3854 * lib/gl_anyhash_list2.h: New file.
3855 * lib/gl_avltreehash_list.h: New file.
3856 * lib/gl_avltreehash_list.c: New file.
3857 * lib/gl_rbtreehash_list.h: New file.
3858 * lib/gl_rbtreehash_list.c: New file.
3859 * lib/gl_anytreehash_list1.h: New file.
3860 * lib/gl_anytreehash_list2.h: New file.
3862 * lib/gl_oset.h: New file.
3863 * lib/gl_oset.c: New file.
3864 * lib/gl_array_oset.h: New file.
3865 * lib/gl_array_oset.c: New file.
3866 * lib/gl_avltree_oset.h: New file.
3867 * lib/gl_avltree_oset.c: New file.
3868 * lib/gl_rbtree_oset.h: New file.
3869 * lib/gl_rbtree_oset.c: New file.
3870 * lib/gl_anytree_oset.h: New file.
3872 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
3874 * m4/mkancesdirs.m4: New file.
3875 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
3876 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
3877 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
3880 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
3882 * lib/dirchownmod.c, dirchownmod.h, mkancesdirs.c, mkancesdirs.h:
3884 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
3885 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
3886 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
3887 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
3888 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
3889 callers changed. Revamp internals significantly, by not
3890 attempting to create directories that are temporarily more
3891 permissive than the final results. Do not attempt to use
3892 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
3893 This removes some race conditions, fixes some bugs, and simplifies
3894 things. Use new dirchownmod function to do owner and mode changes.
3895 * lib/mkdir-p.h: Likewise.
3896 * lib/modechange.c (octal_to_mode): New function.
3897 (struct mode_change): New member mentioned.
3898 (make_node_op_equals): New arg mentioned. All callers changed.
3899 (mode_compile): Keep track of which mode bits the user has explicitly
3901 (mode_adjust): New arg DIR, so that we implement the X op correctly.
3902 New arg PMODE_BITS, to keep track of which mode bits the user
3903 mentioned; it treats S_ISUID and S_ISGID speciall.
3904 All callers changed.
3905 * lib/modechange.h: Likewise.
3907 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
3909 * MODULES.html.sh: Add mkancestors.
3910 * modules/mkancesdirs: New module.
3911 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
3912 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
3913 The chdir-safer and afs files are now orphans; I'll remove them
3914 unless someone speaks up.
3915 Add lib/dirchownmod.c, lib/dirchownmod.h.
3916 (Depends-on): Remove alloca, chown, save-cwd, dirname.
3917 Add lchown, mkancesdirs.
3918 (Maintainer): Add self.
3920 2006-07-15 Karl Berry <karl@gnu.org>
3922 * gnulib-tool: help message wording/arrangement.
3924 2006-07-14 Simon Josefsson <jas@extundo.com>
3926 * doc/gnulib.texi (Libtool and Windows): New section.
3928 2006-07-12 Simon Josefsson <jas@extundo.com>
3930 * modules/gendocs (License): Fix license, approved by Karl.
3932 2006-07-12 Eric Blake <ebb9@byu.net>
3934 * MODULES.html.sh: Add gendocs.
3936 2006-07-11 Eric Blake <ebb9@byu.net>
3938 * modules/fdl: New module, to install doc/fdl.texi.
3939 * MODULES.html.sh: Add new section for documentation modules.
3940 * gnulib-tool: Avoid space-tab.
3941 (--doc-base): New option, to manage files from doc.
3943 2006-07-11 Eric Blake <ebb9@byu.net>
3945 * m4/absolute-header.m4: Fix comments to match recent change.
3947 2006-07-11 Eric Blake <ebb9@byu.net>
3949 * gnulib-tool: List --doc-base before --tests-base.
3951 2006-07-11 Derek R. Price <derek@ximbiot.com>
3953 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
3955 2006-07-11 Bruno Haible <bruno@clisp.org>
3957 * README: Mention where to put documentation.
3959 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3961 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
3963 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
3965 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
3968 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
3970 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
3971 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
3972 "no/such/file/stdint.h" when there is no such file, so that
3973 the resulting C code can be parsed by dodgy compilers.
3974 Problems reported by Bob Proulx.
3976 2006-07-10 Derek R. Price <derek@ximbiot.com>
3978 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
3979 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
3980 macros into the GNU _D_EXACT_NAMLEN.
3981 * lib/savedir.c: Likewise.
3982 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
3984 2006-07-10 Derek R. Price <derek@ximbiot.com>
3985 and Paul Eggert <eggert@cs.ucla.edu>
3987 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
3989 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
3990 macros into the GNU _D_EXACT_NAMLEN.
3992 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
3994 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
3995 around the absolute name, to work around a problem with the HP-UX
3996 11.23 native C compiler, reported by Bob Proulx.
3998 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
4000 * doc/maintain.texi, make-stds.texi: Sync from
4001 <http://savannah.gnu.org/projects/gnustandards>.
4003 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
4005 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
4007 2006-07-09 Jim Meyering <jim@meyering.net>
4009 * m4/glob.m4: Remove a doubled word in a comment.
4011 2006-07-09 Jim Meyering <jim@meyering.net>
4013 * lib/argp-pv.c: Remove a doubled word in a comment.
4014 * lib/check-version.c (check_version): Likewise.
4015 * lib/javacomp.c (compile_java_class): Likewise.
4017 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
4019 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
4020 for the benefit of people using Autoconf 2.60. If you want to
4021 support older Autoconf versions you can copy m4/onceonly_2_57.m4
4022 (or m4/onceonly.m4, if pre-2.57) manually.
4024 2006-07-08 Jim Meyering <jim@meyering.net>
4026 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
4028 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
4029 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
4032 2006-07-08 Jim Meyering <jim@meyering.net>
4034 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
4036 2006-07-07 Simon Josefsson <jas@extundo.com>
4038 * tests/test-crc.c: Change expected crc value, the test vector
4039 were probably computed using the old broken crc.c?
4041 2006-07-06 Simon Josefsson <jas@extundo.com>
4043 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
4044 now the canonical place for the M4 file).
4046 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
4047 from the sys_socket dependency now.
4049 * modules/inet_pton (Files): Ditto.
4051 * modules/inet_ntop (Files): Ditto.
4053 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
4055 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
4056 not gl_PREREQ_GETUSERSHELL.
4058 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4060 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
4061 with only one argument, for Autoconf 2.60.
4062 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
4063 expand to nothing, so add a shell command to avoid syntax error.
4064 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4066 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4068 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
4070 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
4072 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
4073 no longer needed. Check for isblank decl.
4074 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
4075 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
4078 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
4080 * lib/getloadavg.c: Use __VMS, not VMS.
4081 * lib/getopt.c: Likewise.
4082 * lib/getpagesize.h: Likewise.
4083 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
4084 and probably does not work.
4086 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
4088 * lib/.cppi-disable: Add wcwidth.
4089 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
4090 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
4091 (ISGRAPH): Remove. All uses changed to isgraph.
4092 (FOLD) [!defined _LIBC]: Remove special case.
4093 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
4094 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
4096 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
4099 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
4101 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
4102 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
4103 brackets. Other minor changes to suppress some compiler
4106 2006-07-06 Derek R. Price <derek@ximbiot.com>
4107 and Paul Eggert <eggert@cs.ucla.edu>
4109 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
4110 of invoking obsolescent AC_HEADER_DIRENT macro.
4111 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4112 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
4113 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4114 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4115 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
4116 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
4117 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
4118 * m4/readdir.m4: Remove; no longer needed.
4120 2006-07-06 Derek R. Price <derek@ximbiot.com>
4121 and Paul Eggert <eggert@cs.ucla.edu>
4123 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
4124 Don't worry about this obsolete case any more.
4125 (HAVE_DIR): Remove. All uses removed; we now assume you can read
4127 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
4128 worry about this obsolete case any more.
4129 * lib/fts.c: Likewise.
4130 * lib/getcwd.c: Likewise.
4131 * lib/glob.h: Likewise.
4132 * lib/savedir.c: Likewise.
4134 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
4136 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
4137 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
4138 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
4141 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
4142 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
4143 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
4145 * m4/getdate.m4 (gl_GETDATE): Likewise.
4146 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
4147 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
4148 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4149 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
4150 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
4151 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
4152 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
4155 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
4157 * lib/memcasecmp.c: Include <limits.h>.
4158 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
4159 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
4160 Don't assume isdigit succeeds only on '0' through '9'.
4162 2006-07-05 Eric Blake <ebb9@byu.net>
4164 * modules/getaddrinfo (Depends-on): Add snprintf.
4166 2006-07-05 Eric Blake <ebb9@byu.net>
4168 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
4169 to avoid 'header present but could not be compiled' on cygwin.
4171 2006-07-05 Eric Blake <ebb9@byu.net>
4173 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
4174 missing from netdb.h.
4175 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
4177 2006-07-05 Derek R. Price <derek@ximbiot.com>
4179 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
4181 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
4182 * m4/getdate.m4 (gl_GETDATE): Likewise.
4183 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
4184 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
4185 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4186 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
4187 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
4189 2006-07-05 Derek R. Price <derek@ximbiot.com>
4191 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
4192 All uses of is_space replaced by isspace.
4193 * lib/exit.h: Don't talk about STDC_HEADERS.
4194 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
4195 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
4196 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
4197 replaced by isprint etc.
4198 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
4199 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
4200 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
4201 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
4202 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
4203 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
4205 2006-07-05 Bruno Haible <bruno@clisp.org>
4207 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
4208 the function exists, before testing against AIX.
4209 Reported by Martin Lambers <marlam@marlam.de>.
4211 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
4213 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
4214 From Mark D. Baushke.
4216 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
4218 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
4219 to the absolute name, not just one, to bypass Sun C 5.8's
4220 "warning: #include of /usr/include/... may be non-portable".
4222 2006-07-04 Eric Blake <ebb9@byu.net>
4224 * modules/dirname-tests: New test module.
4225 * tests/test-dirname.c: New file, replacing dirname.c
4226 TEST_DIRNAME section that was recently deleted.
4228 2006-07-04 Bruno Haible <bruno@clisp.org>
4230 Assume ANSI C header files and <ctype.h> functions.
4231 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
4232 (mbsnwidth): Use isprint, iscntrl instead.
4234 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
4236 Merge from coreutils.
4237 * MODULES.html.sh: Add xstrtold.
4238 * modules/xstrtold: New file.
4239 * modules/cycle-check (Files): Add lib/same-inode.h.
4240 * modules/dirname (Files): Add m4/double-slash-root.m4.
4241 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
4242 * modules/mkdir-p (Files): Add lib/same-inode.h.
4243 * modules/same (Files): Add lib/same-inode.h.
4245 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
4247 * m4/absolute-header.m4: Renamed from full-header-path.m4.
4248 This is to keep the terminology clean; POSIX talks about
4249 "absolute pathnames", not "full pathnames", but the GNU
4250 Coding Standards say to use "path" for something else;
4251 so use "absolute" to keep both sides happy.
4252 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
4253 Set gl_absolute_header, not gl_full_header_path.
4254 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
4255 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
4258 Merge from coreutils.
4260 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
4262 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
4263 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
4264 want to require the building of c-strtod.o.
4265 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
4267 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
4269 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
4271 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
4272 --as-needed option if available. Problem reported by Albert Chin in
4273 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
4274 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
4275 cc merely issues a bunch of annoying warnings for --as-needed
4276 (this problem was reported by Bob Proulx). Also, try linking with
4277 -lm to detect a bug in binutils 2.16 (this problem was reported
4278 by Ralf Wildenhues).
4280 2006-06-18 Jim Meyering <jim@meyering.net>
4282 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
4283 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
4285 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
4286 also check for glibc-2.4's abort-inducing bug.
4288 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
4289 Low-probability clean-up should be to use rmdir to get rid of
4290 the just-created directory, not unlink.
4292 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
4293 configure fail, and request a bug report to inform us about it.
4294 Add a comment that, barring reports to the contrary, in 2007 we'll
4295 assume ftruncate is universally available.
4297 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
4299 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
4301 2006-03-12 Jim Meyering <jim@meyering.net>
4303 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
4304 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
4305 * m4/same.m4 (gl_SAME): Likewise.
4306 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
4308 2006-03-11 Eric Blake <ebb9@byu.net>
4310 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
4311 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
4312 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
4313 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
4315 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
4317 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
4318 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
4319 reported by Mark D. Baushke, one in
4320 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
4322 Merge from coreutils.
4324 * lib/.cppi-disable: Add stdint_.h.
4325 * lib/.cvsignore: Add stdint.h.
4327 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
4329 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
4330 both double and long double versions.
4331 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
4332 * lib/xstrtold.c: New file.
4333 * lib/xstrtod.h (xstrtold): New decl.
4335 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
4337 * lib/filemode.c (setst): Remove.
4338 (strmode): Rewrite to avoid setst. This makes the code shorter,
4339 (arguably) clearer, and the generated code is a bit smaller on my
4340 Debian GNU/Linux stable x86 host.
4342 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
4344 * lib/filemode.c: Include "filemode.h" first, to test the interface.
4345 Assume that filemode.h includes sys/types.h and sys/stat.h.
4346 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
4347 (ftypelet): Reorder to put common cases first, for efficiency.
4348 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
4350 (strmode): Renamed from mode_string, and now stores 12 bytes instead
4351 of 10, for compatibility with FreeBSD. All callers changed.
4352 (filemodestring): Now stores 12 bytes instead of 10, and sets file
4353 types that can't be deduced solely from st_mode. First arg is now a
4355 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
4356 (strmode): Renamed from mode_string.
4357 (filemodestring): New decl.
4358 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
4359 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
4361 (S_ISPORT, S_ISWHT): New macros, if not already defined.
4363 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
4365 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
4366 fsusage.h now does that. Include fsusage.h first, to test interface.
4367 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
4368 at most one method (the old code could have generated decls that
4369 didn't conform to C89, not that this was ever exercised).
4370 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
4372 2006-03-19 Jim Meyering <jim@meyering.net>
4374 Work even in a chroot where d_ino values for entries in "/"
4375 don't match the stat.st_ino values for the same names.
4376 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
4377 number, iterate through all entries again, using lstat instead.
4378 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
4379 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
4381 * lib/getcwd.c (__getcwd): Clarify a comment.
4382 Use memcpy in place of a call to strcpy.
4384 2006-03-12 Jim Meyering <jim@meyering.net>
4386 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
4387 matches that of the current directory (which we're about to chdir ".."
4388 out of), then save the dev-ino of the parent, instead.
4390 * lib/same-inode.h (SAME_INODE): New file/macro.
4391 * lib/chdir-safer.c (SAME_INODE): Remove definition.
4392 Include "same-inode.h", instead.
4393 * lib/same.c: Likewise.
4394 * lib/cycle-check.h: Include "same-inode.h".
4395 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
4396 * lib/cycle-check.c (SAME_INODE): Remove definition.
4397 * lib/root-dev-ino.h: Include "same-inode.h".
4399 2006-03-11 Eric Blake <ebb9@byu.net>
4401 * lib/same.c (same_name): s/base_name/last_component/
4402 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
4403 * lib/filenamecat.c (file_name_concat): Likewise.
4405 2006-03-11 Eric Blake <ebb9@byu.net>,
4406 Paul Eggert <eggert@cs.ucla.edu>
4408 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
4409 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
4411 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
4412 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
4413 (last_component): New method.
4414 * lib/dirname.c (dir_len): Determine when drive letters need a
4415 subsequent slash. Preserve // when it is special.
4416 (dir_name): Don't append dot when drive letter is absolute.
4417 [TEST_DIRNAME]: Move into a full-blown gnulib test.
4418 * lib/basename.c (base_name): New semantics - malloc the result.
4419 Preserve // when it is special. Preserve relative files that look
4421 (base_len): Preserve // when it is special.
4422 (last_component): New method, similar to old base_name semantics.
4423 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
4424 base_name. Strip redundant slashes from ///.
4426 2006-07-03 Jim Meyering <jim@meyering.net>
4428 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
4429 macro is used before the first cycle_check call.
4431 2006-07-03 Eric Blake <ebb9@byu.net>
4433 * modules/dirname (Depends-on): Add xstrndup.
4435 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
4437 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
4438 test cases, so that config.log is a bit easier to follow.
4440 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
4442 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
4443 both are 64 bits, since this seems to be the tradition, and this
4444 prevents gcc -Wformat from warning about usages with PRIuMAX. If
4445 we ever run into a host that prefers long long to long in this
4446 case, we'll need another configure-time test. Problem reported by
4449 2006-07-02 Eric Blake <ebb9@byu.net>
4451 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
4453 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
4455 * modules/inttypes (Depends-on): No longer depends on stdint.
4456 * modules/stdint (Description): Say more about assumptions.
4457 Say that the fast types might differ. Say macros are used.
4458 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
4459 (Makefile.am): Revise list of substituted symbols to match
4461 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
4462 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
4463 * tests/test-stdint.c (verify_same_types)
4464 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
4465 the code conforms to C99/C89.
4466 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
4467 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
4469 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
4471 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
4472 but fix a bug, by requiring at least 64 bits.
4473 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
4474 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
4475 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
4476 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
4478 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
4479 changes. Make 2.59 a prerequisite. Check and substitute for
4480 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
4481 inttypes.h. Do not use special include files; just use the
4482 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
4483 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
4484 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
4485 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
4486 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
4487 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
4488 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
4489 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
4490 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
4491 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
4492 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
4493 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
4494 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
4495 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
4496 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
4497 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
4498 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
4499 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
4500 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
4501 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
4502 WINT_MAX. Check for C99 conformance more strictly, by detecting
4503 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
4504 not check for things that C99 does not require, e.g., int8_t. If
4505 a test isn't needed unless <stdint.h> isn't working, and is
4506 unlikely to be needed for any other reason, then don't do it
4507 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
4508 size_t, since we assume C89 freestanding at least. Do not check
4509 for sig_atomic_t, wchar_t, or wint_t, since the code now does
4510 the right thing even if the types are not defined. Instead use:
4511 (gl_STDINT_TYPE_PROPERTIES): New macro.
4512 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
4513 testing whether <sys/types.h> clashes, as Autoconf does this for
4514 us now. All uses removed.
4515 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
4516 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
4517 (gl_CHECK_TYPE_SAME):
4518 Remove; no longer needed.
4519 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
4520 exists, since we'll return 0 anyway in that case.
4521 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
4523 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
4525 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
4526 possible collision with system files.
4527 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
4528 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
4529 WCHAR_MIN and WCHAR_MAX in this case.
4530 (<stddef.h>): Do not include; no longer needed.
4531 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
4532 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
4533 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
4534 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
4535 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
4536 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
4537 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
4538 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
4539 !defined(__c99))]: Include in this case too, since it's harmless
4541 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
4543 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
4544 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
4545 (_STDINT_MIN, _STDINT_MAX): New macros.
4546 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
4547 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
4548 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
4549 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
4550 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
4551 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
4552 macros, not typedefs; this simplifies things quite a bit.
4553 Use long int for all types narrower than int64_t.
4554 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
4555 Define in terms of long long int or int64_t or long int,
4556 not int64_t or int32_t. This saves some compile-time testing.
4557 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
4558 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
4559 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
4560 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
4561 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
4562 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
4563 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
4564 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4565 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
4566 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
4567 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
4568 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
4569 undef any previous version and define our own version, for
4570 simplicity and consistency with the new macros for types.
4571 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
4572 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
4573 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
4574 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
4575 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
4576 @WINT_T_SUFFIX@ to keep things simple here.
4577 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
4578 Simplify by assuming typical 8/16/32/64 host, since we're
4579 already doing that elsewhere anyway.
4580 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
4581 and assume long long int is 64 bits if available. This
4582 speeds up 'configure'.
4584 2006-07-01 Eric Blake <ebb9@byu.net>
4586 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
4587 Reported by Andreas Buening.
4589 2006-07-01 Eric Blake <ebb9@byu.net>
4591 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
4593 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
4595 * lib/getaddrinfo.c: fixed typo
4597 2006-06-29 Jim Meyering <jim@meyering.net>
4599 * modules/strftime (Maintainer): Add my name, since with the
4600 FPRINTFTIME changes strftime.c has forked from glibc.
4602 2006-06-29 Eric Blake <ebb9@byu.net>
4604 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
4606 2006-06-29 Eric Blake <ebb9@byu.net>
4608 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
4610 2006-06-29 Eric Blake <ebb9@byu.net>
4612 * lib/stat_.h: New file.
4614 2006-06-29 Eric Blake <ebb9@byu.net>
4616 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
4617 unused static function.
4619 2006-06-29 Eric Blake <ebb9@byu.net>
4621 * doc/functions.texi (Function Portability): Document missing lstat
4624 2006-06-29 Eric Blake <ebb9@byu.net>
4626 * MODULES.html.sh: Add sys_stat.
4627 * modules/sys_stat: New module.
4628 * modules/mkstemp (Depends-on): Add sys_stat.
4630 2006-06-29 Derek R. Price <derek@ximbiot.com>
4632 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
4634 2006-06-29 Derek R. Price <derek@ximbiot.com>
4636 * m4/c-bs-a.m4: Removed.
4638 2006-06-29 Derek R. Price <derek@ximbiot.com>
4640 * lib/strftime.c: Assume strftime() exists.
4642 2006-06-29 Derek Price <derek@ximbiot.com>
4644 * modules/c-bs-a: Removed - \a is C89.
4645 * MODULES.html.sh: Remove c-bs-a.
4647 2006-06-29 Bruno Haible <bruno@clisp.org>
4649 * modules/wcwidth (License): Change to LGPL.
4651 2006-06-28 Simon Josefsson <jas@extundo.com>
4653 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
4656 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
4659 2006-06-28 Simon Josefsson <jas@extundo.com>
4661 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
4663 2006-06-28 Simon Josefsson <jas@extundo.com>
4665 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
4666 functions there. It will succeed on Windows XP, but on Windows
4667 2000 and (presumably) earlier, it will fail, and use the internal
4669 (use_win32_p): New function.
4670 (getaddrinfo): Use strtoul on servname, to support numeric ports.
4671 Support AI_NUMERICSERV to disable getservbyname.
4672 (getnameinfo): New function, only supports
4673 NI_NUMERICHOST|NI_NUMERICSERV for now.
4675 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
4676 only have some of them. Add AI_NUMERICSERV. Add prototype for
4679 2006-06-28 Eric Blake <ebb9@byu.net>
4681 * modules/wcwidth: New file.
4682 * modules/mbchar (Depends-on): Add wcwidth.
4683 * modules/mbswidth (Depends-on): Add wcwidth.
4684 * MODULES.html.sh: Add wcwidth.
4686 2006-06-28 Eric Blake <ebb9@byu.net>
4688 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
4689 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
4691 2006-06-28 Eric Blake <ebb9@byu.net>
4693 * lib/xvasprintf.h: Fix comments.
4695 2006-06-28 Eric Blake <ebb9@byu.net>
4697 * lib/mbchar.h (wcwidth): Include wcwidth.h.
4698 * lib/mbswidth.c (wcwidth): Move from here...
4699 * lib/wcwidth.h: ...to this new file.
4701 2006-06-28 Derek R. Price <derek@ximbiot.com>
4703 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
4705 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
4707 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
4709 2006-06-28 Derek R. Price <derek@ximbiot.com>
4711 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
4712 Autoconf 2.60 says this stuff was obsolete.
4714 2006-06-28 Bruno Haible <bruno@clisp.org>
4716 * modules/wcwidth (Files): Add m4/wchar_t.m4.
4718 2006-06-28 Bruno Haible <bruno@clisp.org>
4720 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
4723 2006-06-28 Bruno Haible <bruno@clisp.org>
4725 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
4726 declaration for wcwidth.
4727 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
4729 2006-06-28 Bruno Haible <bruno@clisp.org>
4731 * lib/mkdtemp.c [MINGW]: Include <io.h>.
4732 (mkdir): Define using _mkdir.
4734 2006-06-28 Bruno Haible <bruno@clisp.org>
4736 * lib/getaddrinfo.h: Fix POSIX URL.
4737 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
4739 (use_win32_p): Make static.
4740 (getaddrinfo): Reject service name if it is empty or does not consist
4741 solely of decimal digits, or if its value is > 65535.
4742 (getnameinfo): Remove useless casts.
4744 2006-06-27 Simon Josefsson <jas@extundo.com>
4746 * modules/sys_select: New file, suggested by Bruno Haible, Paul
4747 Eggert and Martin Lambers.
4749 2006-06-27 Simon Josefsson <jas@extundo.com>
4751 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
4752 Eggert and Martin Lambers.
4754 2006-06-27 Bruno Haible <bruno@clisp.org>
4756 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
4757 result to 0, not to empty.
4758 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
4760 2006-06-27 Bruno Haible <bruno@clisp.org>
4762 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
4764 2006-06-26 Simon Josefsson <jas@extundo.com>
4766 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
4769 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
4771 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
4772 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
4773 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
4775 2006-06-26 Mark D. Baushke <mdb@gnu.org>
4777 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
4779 2006-06-26 Bruno Haible <bruno@clisp.org>
4781 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
4783 2006-06-26 Bruno Haible <bruno@clisp.org>
4785 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
4787 2006-06-26 Bruno Haible <bruno@clisp.org>
4789 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
4790 SGI C compiler in pre-C99 mode.
4791 Suggested by Mark D. Baushke and Larry Jones.
4793 2006-06-26 Bruno Haible <bruno@clisp.org>
4795 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
4797 Reported by Mark D. Baushke and Larry Jones.
4799 2006-06-26 Bruno Haible <bruno@clisp.org>
4801 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
4803 Suggested by Mark D. Baushke and Larry Jones.
4805 2006-06-23 Simon Josefsson <jas@extundo.com>
4806 Bruno Haible <bruno@clisp.org>
4808 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
4809 Emit mostlyclean-local rule.
4810 (func_emit_tests_Makefile_am): Likewise.
4811 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
4813 2006-06-23 Mark D. Baushke <mdb@gnu.org>
4815 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
4817 2006-06-23 Bruno Haible <bruno@clisp.org>
4819 * tests/test-stdint.c: Update to match ISO C 99 Technical
4822 2006-06-23 Bruno Haible <bruno@clisp.org>
4824 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
4826 2006-06-23 Bruno Haible <bruno@clisp.org>
4828 * lib/stdint_.h: Treat IRIX like OpenBSD.
4830 2006-06-23 Bruno Haible <bruno@clisp.org>
4832 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
4833 ISO C 99 Technical Corrigendum 1.
4835 2006-06-22 Simon Josefsson <jas@extundo.com>
4837 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
4840 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
4842 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
4843 needed. Some compiler complained about some of them. Problem reported
4845 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
4847 2006-06-21 Simon Josefsson <jas@extundo.com>
4849 * tests/test-getaddrinfo.c: New file.
4851 * modules/getaddrinfo-tests: New file.
4853 * MODULES.html.sh: Add inet_pton.
4855 * modules/inet_pton: New file.
4857 2006-06-21 Simon Josefsson <jas@extundo.com>
4859 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
4860 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
4861 of using the (limited) gnulib implementation on Windows XP.
4863 * m4/inet_pton.m4: New file.
4865 2006-06-21 Simon Josefsson <jas@extundo.com>
4867 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
4870 * lib/socket_.h: Don't define WINVER.
4872 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
4873 slightly modified to work in gnulib.
4875 2006-06-21 Simon Josefsson <jas@extundo.com>
4877 * doc/gnulib.texi (Windows sockets): Add.
4879 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
4881 * lib/read-file.c (fread_file): Start with buffer allocation of
4882 0 bytes rather than 1 byte; this simplifies the code.
4883 Don't invoke feof; it's not needed. Refactor to avoid duplicate
4884 code to free buffer and save/restore errno.
4885 (internal_read_file): Remove unused local.
4887 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
4889 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
4890 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
4891 Problem reported by Denis Excoffier in
4892 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
4894 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4896 * modules/sys_socket, modules/socklen: Include sys/types since
4897 FreeBSD 4.x's sys/socket.h needs it.
4899 2006-06-19 Simon Josefsson <jas@extundo.com>
4901 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
4903 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
4905 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
4907 2006-06-19 Bruno Haible <bruno@clisp.org>
4909 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
4910 and FULL_PATH_INTTYPES_H in angle brackets.
4911 Reported by Mark D. Baushke <mdb@gnu.org>.
4913 2006-06-17 Eric Blake <ebb9@byu.net>
4915 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
4918 2006-06-17 Bruno Haible <bruno@clisp.org>
4920 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
4923 2006-06-17 Bruno Haible <bruno@clisp.org>
4925 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
4926 whether errno is declared. Assume <errno.h> declares errno.
4928 2006-06-17 Bruno Haible <bruno@clisp.org>
4930 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
4932 2006-06-17 Bruno Haible <bruno@clisp.org>
4934 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
4935 problem on Solaris 2.5.1.
4937 2006-06-16 Eric Blake <ebb9@byu.net>
4939 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
4940 * lib/unicodeio.c [!defined errno]: Likewise.
4941 * lib/strtol.c [!defined errno]: Likewise.
4942 * lib/strtod.c [!defined errno]: Likewise.
4944 2006-06-15 Eric Blake <ebb9@byu.net>
4946 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
4948 2006-06-15 Eric Blake <ebb9@byu.net>
4950 * config/srclist.txt (ssize_t.m4): Lose sync.
4952 2006-06-15 Bruno Haible <bruno@clisp.org>
4954 * modules/stdint (Files): Include m4/full-header-path.m4,
4955 m4/size_max.m4, m4/wchar_t.m4.
4956 (Makefile.am): Many more substitutions.
4957 * modules/stdint-tests: New file.
4958 * tests/test-stdint.c: New file.
4960 2006-06-15 Bruno Haible <bruno@clisp.org>
4962 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
4963 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
4964 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
4965 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
4966 gl_CHECK_TYPE_SAME): New macros.
4968 2006-06-15 Bruno Haible <bruno@clisp.org>
4970 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
4972 2006-06-15 Bruno Haible <bruno@clisp.org>
4974 * lib/stdint_.h: Rewritten to be fully auto-configured.
4975 Fixes bug on HP-UX/IA64.
4977 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
4979 * lib/getdate.y (__attribute__): Don't define if already defined.
4980 Problem reported by Larry Jones.
4981 * lib/utimens.c (__attribute__): Likewise.
4983 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
4985 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
4986 reported by Andreas Schwab.
4988 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4989 Bruno Haible <bruno@clisp.org>
4991 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
4992 check for the declaration of strnlen and a run test that exposes the
4993 AIX 5.1 strnlen bug. In the failure case, #define strndup to
4996 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4997 Bruno Haible <bruno@clisp.org>
4999 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
5001 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5003 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
5004 compile test, for Tru64 4.0D.
5006 2006-05-28 Karl Berry <karl@gnu.org>
5008 * config/srclist.txt (printf-args.c): lose sync.
5010 2006-05-26 Martin Lambers <marlam@marlam.de>
5012 * lib/getpass.c: Updates the test for the native W32 API, and adds
5013 missing includes, thus fixing compilation warnings.
5015 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
5017 * lib/exclude.c (exclude_fnmatch): New function.
5018 (excluded_file_name): Call exclude_fnmatch.
5019 * lib/exclude.h (excluded_file_name): New prototype
5021 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
5023 * lib/tempname.c (small_open, large_open): New macros.
5024 (__open, __open64) [!_LIBC]: Remove.
5025 (__gen_tempname): Use small_open and large_open instead of __open
5026 and __open64. This fixes a portability bug on HP-UX 11.11i
5027 reported by Simon Wing-Tang in
5028 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
5030 2006-05-24 Bruno Haible <bruno@clisp.org>
5032 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
5033 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
5034 Reported by Thorsten Maerz <torte@netztorte.de> via
5035 Aaron Stone <aaron@serendipity.cx>.
5037 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
5039 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
5040 gl_ rather than jm_. Link, don't run, so that cross-compiles are
5041 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
5042 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
5043 not really conditional on the cache.
5044 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
5046 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
5048 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
5049 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
5050 (my_usleep): Don't mishandle maximum value.
5052 2006-05-19 Jim Meyering <jim@meyering.net>
5054 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
5056 2006-05-17 Bruno Haible <bruno@clisp.org>
5059 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
5061 2006-05-17 Bruno Haible <bruno@clisp.org>
5063 * lib/stdint_.h: Fix recognition of Cygwin.
5065 2006-05-15 Bruno Haible <bruno@clisp.org>
5067 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
5068 on libtool patch by Ralf Wildenhues.
5070 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
5072 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
5073 test for C99 conformance; (bool) 0.5 is an integer constant
5074 expression, but (bool) -0.5 is not. Problem reported by Fedor
5075 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
5077 2006-05-11 Simon Josefsson <jas@extundo.com>
5079 * m4/xvasprintf.m4: Fix obvious typo.
5081 2006-05-11 Jim Meyering <jim@meyering.net>
5083 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
5086 2006-05-10 Simon Josefsson <jas@extundo.com>
5088 * lib/md4.c: Typo fix, update copyright years.
5089 (K1, K2): Don't use L because it turn computations into 64-bit on
5092 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
5094 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
5095 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
5096 unwanted sign propagation, e.g., on hosts with 64-bit int.
5097 There still are some problems with reeelly weird theoretical hosts
5098 (e.g., 33-bit int) but it's not worth worrying about now.
5099 * lib/sha1.c (rol): Likewise.
5100 (K1, K2, K3, K4): Remove unnecessary L suffix.
5102 2006-05-10 Bruno Haible <bruno@clisp.org>
5104 * lib/des.c: Cast to avoid warnings.
5106 2006-05-09 Bruno Haible <bruno@clisp.org>
5108 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
5109 (Depends-on): Depend also on xsize, stdarg.
5110 (configure.ac): Add gl_XVASPRINTF.
5112 2006-05-09 Bruno Haible <bruno@clisp.org>
5114 * m4/xvasprintf.m4: New file.
5116 2006-05-09 Bruno Haible <bruno@clisp.org>
5118 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
5119 (EOVERFLOW): Define fallback value.
5120 (xstrcat): New function.
5121 (xvasprintf): Recognize the special case of a string concatenation.
5123 2006-05-08 Eric Blake <ebb9@byu.net>
5125 * gnulib-tool (func_version): Base copyright year on CVS date.
5126 (func_emit_copyright_notice): New function.
5127 (func_emit_lib_Makefile_am): Use it.
5128 (func_emit_tests_Makefile_am): Likewise.
5129 (func_import): Likewise.
5131 2006-05-08 Bruno Haible <bruno@clisp.org>
5133 * modules/stdarg: New file.
5134 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
5136 2006-05-08 Bruno Haible <bruno@clisp.org>
5138 * m4/stdarg.m4: New file, from GNU gettext.
5140 2006-05-08 Bruno Haible <bruno@clisp.org>
5142 * config/srclist.txt (build-aux/config.rpath): different from latest
5145 2006-05-08 Bruno Haible <bruno@clisp.org>
5147 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
5149 2006-05-05 Jim Meyering <jim@meyering.net>
5151 * m4/warning.m4: New file, derived from bison's file by the same name.
5153 2006-05-03 Bruno Haible <bruno@clisp.org>
5155 * lib/stdint_.h: Shorter URL.
5156 * lib/inttypes.h: Likewise.
5158 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
5160 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
5162 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
5164 * lib/verify.h: Document the internals better. Most of this change
5165 was written by Bruno Haible.
5167 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
5169 * doc/verify.texi: New file, partly based on a proposal by
5172 2006-05-02 Bruno Haible <bruno@clisp.org>
5174 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
5176 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
5178 2006-04-29 Bruno Haible <bruno@clisp.org>
5180 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
5181 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
5183 2006-04-29 Bruno Haible <bruno@clisp.org>
5185 * gnulib-tool: Make --update option actually work.
5187 2006-04-29 Bruno Haible <bruno@clisp.org>
5189 * doc/gcd.texi: New file.
5190 * doc/gnulib.texi: Include it.
5192 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
5194 * lib/getdate.y (get_date): When adding relative date, start with the
5195 initial time, not with the result of the first mktime call.
5197 2006-04-25 Bruno Haible <bruno@clisp.org>
5199 * gnulib-tool (func_import): Output the include directives in three
5200 blocks, sorted separately.
5201 Reported by Ben Pfaff <blp@cs.stanford.edu>.
5203 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
5205 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
5206 to define main with arguments, for C++. Reported by Eric Blake.
5207 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5208 Prefer 'int main ()' to 'int main (void)', for C++.
5209 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5210 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
5211 for 'main', for C99 and C++.
5213 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
5215 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
5216 Don't assume that exit status -1 is valid.
5217 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5218 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5219 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
5220 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
5221 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
5222 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
5223 not AC_TRY_RUN. Use return, not exit. Don't assume that
5224 functions can be used without declaring them, or that you can
5225 exit with status -1.
5226 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
5228 2006-04-24 Karl Berry <karl@gnu.org>
5230 * config/srclist.txt (longdouble.m4): sync lost.
5232 2006-04-24 Eric Blake <ebb9@byu.net>
5234 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
5236 2006-04-24 Bruno Haible <bruno@clisp.org>
5238 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
5239 poll() implementation in AIX.
5240 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5242 2006-04-24 Bruno Haible <bruno@clisp.org>
5244 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
5245 assigned exactly once.
5247 2006-04-23 Claudio Fontana <claudio@gnu.org>
5248 Bruno Haible <bruno@clisp.org>
5250 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
5251 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
5254 2006-04-23 Bruno Haible <bruno@clisp.org>
5256 * modules/copy-file: Depend on unistd.
5257 * modules/execute: Likewise.
5258 * modules/fatal-signal: Likewise.
5259 * modules/findprog: Likewise.
5260 * modules/mkdtemp : Likewise.
5261 * modules/pipe: Likewise.
5262 * modules/wait-process: Likewise.
5264 2006-04-23 Bruno Haible <bruno@clisp.org>
5266 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
5267 condition was already detected.
5268 Reported by Ben Pfaff <blp@cs.stanford.edu>.
5270 2006-04-23 Bruno Haible <bruno@clisp.org>
5272 * lib/copy-file.c: Include <unistd.h> unconditionally.
5273 * lib/execute.c: Likewise.
5274 * lib/fatal-signal.c: Likewise.
5275 * lib/findprog.c: Likewise.
5276 * lib/mkdtemp.c: Likewise.
5277 * lib/pipe.h: Likewise.
5278 * lib/pipe.c: Likewise.
5279 * lib/wait-process.h: Likewise.
5281 2006-04-23 Bruno Haible <bruno@clisp.org>
5283 * gnulib-tool (func_usage): Fix --import description. Document
5285 (func_import): Create temporary file in a temporary directory, if
5286 --dry-run is specified. Silence errors from 'grep' when there are no
5288 (func_create_testdir): Silence errors from 'grep' when there are no
5290 Reported by Karl Berry <karl@freefriends.org>.
5292 2006-04-20 Bruno Haible <bruno@clisp.org>
5294 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
5295 one argument, so that the code will be portable to Autoconf 2.60.
5296 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
5297 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5298 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
5300 2006-04-19 Derek Price <derek@ximbiot.com>
5301 Eric Blake <ebb9@byu.net>
5303 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
5304 rather than "/full/path.h". Update comment to match. Shorten &
5305 generalize m4_translit call via AS_TR_CPP.
5307 2006-04-19 Derek Price <derek@ximbiot.com>
5308 Eric Blake <ebb9@byu.net>
5310 * lib/inttypes.h: Correct grammar in comment.
5312 2006-04-18 Derek Price <derek@ximbiot.com>
5313 Paul Eggert <eggert@cs.ucla.edu>
5315 * modules/inttypes: New file.
5316 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
5318 2006-04-18 Derek Price <derek@ximbiot.com>
5319 Paul Eggert <eggert@cs.ucla.edu>
5321 * m4/_inttypes_h.m4, full-header-path.m4, include_next: New files.
5323 2006-04-18 Derek Price <derek@ximbiot.com>
5324 Paul Eggert <eggert@cs.ucla.edu>
5326 * lib/inttypes.h: New file.
5327 * lib/strtoimax.c: Assume <inttypes.h>.
5329 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
5331 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
5332 isn't mounted. Problem reported by Kir Kolyshkin.
5334 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
5336 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
5337 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
5339 * lib/regex.h (RE_DUP_MAX): Update comment to match current
5342 2006-04-12 Eric Blake <ebb9@byu.net>
5344 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
5345 is now done automatically by the corresponding Autoconf macro.
5347 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
5349 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
5352 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
5354 Merge regex changes from libc, removing some of our
5355 POSIX-conformance changes that were rejected and redoing them in a
5358 * lib/regcomp.c (re_compile_internal, init_dfa):
5359 Length arg is now size_t, not Idx. All uses changed.
5360 (peek_token): Forward decl now says internal_function.
5361 (__re_error_msgid, __re_error_msgid_idx):
5362 Now static rather than extern with attribute_hidden.
5363 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
5364 For some reason libc prefers K&R style defns for external functions.
5365 (regerror) [!defined _LIBC]: Likewise.
5366 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
5367 (seek_collating_symbol_entry, lookup_collation_sequence_value):
5368 (build_range_exp, build_collating_symbol):
5370 (re_compile_fastmap): Use '\0' to memset, not 0.
5371 (utf8_sb_map): Make the calculations more obvious.
5372 (init_dfa, parse_bracket_exp, build_charclass_op):
5373 Call calloc and cast result, as glibc does.
5374 (init_word_char, fetch_token, peek_token, peek_token_bracket):
5375 (build_range_exp, build_collating_symbol):
5376 Now internal functions.
5378 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
5380 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
5381 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
5382 Don't depend on VMS; depend on __VMS instead, for POSIX
5383 namespace cleanness.
5384 (regoff_t): Define to ssize_t, not long int.
5386 Remove the REG_ macros named below. Instead, make the old names
5387 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
5389 (REG_BACKSLASH_ESCAPE_IN_LISTS):
5390 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
5391 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
5392 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
5393 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
5394 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
5395 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
5396 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
5397 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
5398 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
5399 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
5400 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
5401 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
5402 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
5403 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
5404 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
5405 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
5407 Remove. All uses replaced by the old RE_* names.
5408 (RE_BACKSLASH_ESCAPE_IN_LISTS):
5409 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
5410 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
5411 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
5412 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
5413 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
5414 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
5415 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
5416 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
5417 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
5418 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
5419 Don't bother having these macros be independent of each others'
5420 values, since they no longer exist in the POSIX name space.
5422 Rename the following member names back to their old names,
5423 unless !__USE_GNU_REGEX. All uses changed back.
5424 (buffer): Renamed from re_buffer.
5425 (allocated): Renamed from re_allocated.
5426 (used): Renamed from re_used.
5427 (syntax): Renamed from re_syntax.
5428 (fastmap): Renamed from re_fastmap.
5429 (translate): Renamed from re_translate.
5430 (can_be_null): Renamed from re_can_be_null.
5431 (regs_allocated): Renamed from re_regs_allocated.
5432 (fastmap_accurate): Renamed from re_fastmap_accurate.
5433 (no_sub): Renamed from re_no_sub.
5434 (not_bol): Renamed from re_not_bol.
5435 (not_eol): Renamed from re_not_eol.
5436 (newline_anchor): Renamed from re_newline_anchor.
5437 (num_regs): Renamed from rm_num_regs.
5438 (start): Renamed from rm_start.
5439 (end): Renamed from rm_end.
5441 (free_state): Move up a bit.
5443 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
5444 #define to be empty.
5445 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
5446 when that is what is intended.
5447 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
5448 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
5450 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
5451 All uses changed back to re_malloc, etc. It's now the caller's
5452 responsibility to check for overflow; all callers changed.
5453 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
5454 (re_x2nrealloc): Remove.
5455 (free_state): Remove decl.
5457 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
5458 (re_set_registers, re_exec):
5461 2006-01-31 Roland McGrath <roland@redhat.com>
5463 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
5464 Reported by Mike Frysinger <vapier@gentoo.org>.
5466 2006-01-15 Andreas Jaeger <aj@suse.de>
5469 * lib/regex_internal.c (re_string_reconstruct): Adjust for
5470 build_wcs_upper_buffer change.
5471 (build_wcs_upper_buffer): Change return type.
5473 2005-12-10 Ulrich Drepper <drepper@redhat.com>
5475 * lib/regex_internal.h: Include <stdint.h> if available.
5477 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
5479 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
5481 2005-10-14 Ulrich Drepper <drepper@redhat.com>
5483 * lib/regcomp.c: Adjust for changed secondary hash function.
5485 2005-09-30 Ulrich Drepper <drepper@redhat.com>
5487 * lib/regex.h: Pretty printing.
5488 Clean up namespace a bit.
5490 2005-09-30 Jakub Jelinek <jakub@redhat.com>
5492 * lib/regexec.c (update_cur_sifted_state, check_arrival,
5493 check_arrival_add_next_nodes): Avoid using uninitialized variable.
5495 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
5496 Ulrich Drepper <drepper@redhat.com>
5499 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
5501 (bitset_word_t): Renamed from bitset_word. All uses changed.
5503 2005-09-22 Ulrich Drepper <drepper@redhat.com>
5506 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
5507 * lib/regcomp.c: Remove unnecessary uses of
5508 unsigned RE_TRANSLATE_TYPE.
5509 * lib/regex_internal.h: Likewise.
5510 * lib/regex_internal.c: Likewise.
5511 * lib/regexec.c: Likewise.
5512 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
5514 2005-09-07 Ulrich Drepper <drepper@redhat.com>
5516 * lib/regexec.c (find_recover_state): Remove unnecessary
5518 (transit_state_bkref): Make DFA a const pointer.
5519 (get_subexp): Likewise.
5520 (check_arrival): Likewise.
5521 (update_cur_sifted_state): Likewise.
5522 (re_search_internal): Likewise.
5523 (prune_impossible_nodes): Likewise.
5524 (acquire_init_state_context): Likewise.
5525 (proceed_next_node): Likewise.
5526 (set_regs): Likewise.
5527 (free_fail_stack_return): Likewise.
5528 (check_arrival_expand_ecl): Mark DFA parameter as const.
5529 (check_arrival_expand_ecl_sub): Likewise.
5530 (check_subexp_limits): Likewise.
5531 (sub_epsilon_src_nodes): Likewise.
5532 (add_epsilon_src_nodes): Likewise.
5533 (merge_state_array): Likewise.
5534 (update_regs): Likewise.
5535 (build_trtable): Likewise.
5536 (sift_states_backward): Mark MCTX parameter as const.
5537 (build_sifted_states): Likewise.
5538 (update_cur_sifted_state): Likewise.
5539 (sift_states_mkref): Likewise.
5540 (check_arrival_expand_ecl): Mark eclosure as const.
5541 (check_dst_limits_calc_pos_1): Likewise.
5542 * lib/regex_internal.h (re_match_context_t): Make dfa a const
5545 2005-09-06 Ulrich Drepper <drepper@redhat.com>
5547 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
5548 (transit_state_sb): Likewise.
5549 (transit_state_mb): Likewise.
5550 (sift_states_iter_mb): Likewise.
5551 (check_arrival_add_next_nodes): Likewise.
5552 (check_node_accept_bytes): Change first parameter to pointer-to-const.
5553 [_LIBC] (re_search_2_stub): Use mempcpy.
5555 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
5556 mbrtowc for very simple UTF-8 case.
5558 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
5560 (re_acquire_state_context): Likewise.
5561 * lib/regex_internal.h: Adjust prototypes.
5563 * lib/regex.c: Prevent using C++ compilers.
5565 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
5566 (re_acquire_state_context): Likewise.
5568 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
5570 * modules/regex (Depends-on): Add ssize_t.
5572 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
5574 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
5577 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
5579 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
5581 2006-03-29 Mark D. Baushke <mdb@gnu.org>
5582 Bruno Haible <bruno@clisp.org>
5584 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
5585 <sys/types.h> and <inttypes.h>.
5587 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5589 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
5590 `__error_t_defined', so argp.h will not typedef the former.
5592 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
5594 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
5595 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
5596 glibc names. Even if glibc is changed to conform to POSIX, the
5597 traditional names will be available anyway, since regex depends on
5598 the extensions module. Also, fix a longstanding typo in the
5599 implementation of Spencer ERE test #75 from grep 2.3. Problems
5600 reported by Emanuele Giaquinta. Also, change sense of cached
5601 variable, so that the message makes sense.
5603 2006-03-24 Simon Josefsson <jas@extundo.com>
5605 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
5606 including some doc fixes.
5607 (base64_encode_alloc): Fix +1 bug on allocation failures.
5609 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5611 * lib/base64.c (base64_encode): Do not read past end of array with
5612 unsanitized input on systems with CHAR_BIT > 8.
5614 2006-03-24 Eric Blake <ebb9@byu.net>
5616 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
5618 2006-03-22 Karl Berry <karl@gnu.org>
5620 * config/srclist.txt (*setenv.[ch]): get from coreutils.
5621 * config/srclistvars.sh (COREUTILS): new var.
5623 2006-03-17 Jim Meyering <jim@meyering.net>
5625 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
5626 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
5628 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
5630 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
5631 no longer needs it. Instead, check that regoff_t is as least
5632 as wide as ptrdiff_t.
5634 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
5635 so that our regex.h stays compatible with the installed regex.
5636 This is helpful for installers who configure --without-included-regex.
5637 Problem reported by Emanuele Giaquinta.
5639 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
5641 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
5642 Typedef to long int, not to off_, as POSIX will likely change
5645 2006-03-15 Eric Blake <ebb9@byu.net>
5647 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
5649 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
5651 * lib/argp-help.c (validate_uparams): Fix typo
5652 * lib/argp-parse.c (argp_default_options): Consistently begin help
5653 messages with a lowercase letter.
5655 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
5657 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
5658 overrun buffers and shouldn't be used (much as gets shouldn't be
5660 * lib/time_r.c (asctime_r, ctime_r): Likewise.
5662 2006-03-08 Simon Josefsson <jas@extundo.com>
5664 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
5665 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5667 2006-03-08 Simon Josefsson <jas@extundo.com>
5669 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
5670 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5672 2006-03-08 Simon Josefsson <jas@extundo.com>
5674 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
5675 signal that configure disabled the device.
5677 2006-03-08 Simon Josefsson <jas@extundo.com>
5679 * build-aux/maint.mk: Fix refresh-po, to handle no translated
5682 2006-03-07 Simon Josefsson <jas@extundo.com>
5684 * modules/getopt (Depends-on): Add unistd.
5686 * modules/unistd: New file.
5688 2006-03-07 Simon Josefsson <jas@extundo.com>
5690 * modules/gc-random: New file.
5692 2006-03-07 Simon Josefsson <jas@extundo.com>
5694 * m4/unistd_h.m4: New file.
5696 2006-03-07 Simon Josefsson <jas@extundo.com>
5698 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
5699 test to be side-effect free by storing the result in the cache
5700 variable gl_cv_lib_readline, and moving the assignment of
5701 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
5702 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5704 2006-03-07 Simon Josefsson <jas@extundo.com>
5706 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
5707 error on missing devices (the functions will return an error).
5709 * m4/gc.m4: Move random stuff to gc-random.m4
5711 2006-03-07 Simon Josefsson <jas@extundo.com>
5713 * lib/unistd_.h: New file.
5715 2006-03-07 Simon Josefsson <jas@extundo.com>
5717 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
5719 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
5721 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
5722 Problem reported by Juan Manuel Guerrero.
5724 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
5726 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
5728 * lib/getlogin_r.c: Likewise.
5729 * lib/getlogin_r.h: Likewise.
5730 * lib/glob.c: Likewise.
5731 * lib/pagealign_alloc.c: Likewise.
5732 * lib/unistd_.h: Remove; no longer needed.
5734 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
5736 * MODULES.html.sh (Support for systems lacking POSIX:2001):
5738 * modules/c-stack (Depends-on): Add unistd.
5739 * modules/getlogin_r: Likewise.
5740 * modules/glob: Likewise.
5741 * modules/pagealign_alloc: Likewise.
5742 * modules/unistd (Files): Remove lib/unistd_.h.
5743 (EXTRA_DIST): Remove.
5744 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
5746 (MOSTLYCLEANFILES): Remove unistd.h-t.
5748 2006-03-03 Simon Josefsson <jas@extundo.com>
5750 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
5752 2006-03-03 Simon Josefsson <jas@extundo.com>
5754 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
5757 2006-03-03 Simon Josefsson <jas@extundo.com>
5759 * build-aux/maint.mk: Add indent target.
5761 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
5763 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
5764 our replacement poll.h in any case, to avoid a differing
5765 declaration from a system header. Seen on AIX.
5767 2006-03-01 Simon Josefsson <jas@extundo.com>
5769 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
5772 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
5774 * modules/gettime (Depends-on): Add extensions module.
5775 * modules/nanosleep (Depends-on): Likewise.
5776 * modules/settime (Depends-on): Likewise.
5778 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
5780 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
5781 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
5783 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5784 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
5786 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
5787 not "==". Reported by Ralf Wildenhues.
5789 2006-03-01 Karl Berry <karl@gnu.org>
5791 * doc/Copyright/request-*: new files, synced from gnuorg.
5793 2006-03-01 Karl Berry <karl@gnu.org>
5795 * config/srclist.txt (Copyright/*): new entries.
5797 2006-02-28 Simon Josefsson <jas@extundo.com>
5799 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
5801 2006-02-27 Simon Josefsson <jas@extundo.com>
5803 * lib/base64.h: Indent #define's. From Jim Meyering
5806 2006-02-27 Jim Meyering <jim@meyering.net>
5808 Revert the change of 2006-02-24, so these files can continue
5809 to be sync'd from gettext.
5810 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
5813 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
5815 * modules/intprops: New file.
5816 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
5818 * modules/getloadavg (Files): Remove lib/intprops.h.
5819 (Depends-on): Add intprops.
5820 * modules/human: Likewise.
5821 * modules/inttostr: Likewise.
5822 * modules/openat: Likewise.
5823 * modules/sig2str: Likewise.
5824 * modules/userspec: Likewise.
5825 * modules/utimecmp: Likewise.
5826 * modules/xnanosleep: Likewise.
5827 * modules/xstrtol: Likewise.
5829 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
5831 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
5832 * modules/lock-tests (TESTS): Use $(EXEEXT).
5833 * modules/tls-tests: Likewise.
5834 * modules/argp-tests: Likewise.
5835 (check_PROGRAMS): New var, replacing...
5836 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
5838 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5840 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
5843 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
5845 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
5847 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5849 Sync from coreutils.
5850 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
5853 2006-02-22 Jim Meyering <jim@meyering.net>
5855 Sync from coreutils.
5856 * m4/chdir-safer.m4: New file.
5858 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
5860 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
5861 AT_FDCWD exceeds INT_MAX.
5862 * lib/openat.h (AT_FDCWD): Likewise.
5864 2006-02-17 Eric Blake <address@hidden>
5866 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
5868 2006-02-16 Simon Josefsson <jas@extundo.com>
5870 * modules/getaddrinfo (Depends-on): Add sys_socket.
5872 2006-02-15 Simon Josefsson <jas@extundo.com>
5874 * build-aux/maint.mk: Add dsyntax-check rule.
5876 2006-02-15 Eric Blake <ebb9@byu.net>
5878 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
5879 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
5880 'present but cannot compile' warnings on cygwin.
5881 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
5882 use ws2tcpip.h if sys/socket.h works.
5883 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
5884 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
5886 2006-02-14 Simon Josefsson <jas@extundo.com>
5888 * modules/maintainer-makefile (Files): Rename.
5890 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
5891 and (the local) Makefile.cfg to maint-cfg.mk.
5893 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
5896 * modules/maintainer-makefile: New module.
5898 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
5899 severaly stripped to make it possible to build it up from scratch
5900 with reliable tests.
5902 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
5903 fixes to permit overriding the default actions when configure and
5904 makefile are not available.
5906 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
5908 Sync from coreutils.
5909 * modules/lstat (Depends-on): Don't depend on xalloc.
5910 (License): Change from GPL to LGPL, since this is now simply a
5911 replacement for a libc function.
5913 2006-02-14 Jim Meyering <jim@meyering.net>
5915 Sync from coreutils.
5917 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
5918 failure on deficient systems, and simplify gnulib lgpl dependencies.
5919 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
5920 xmalloc/lstat combination. Based on a patch from Bruno Haible.
5922 * lib/xalloc-die.c: Remove unused definition of N_.
5924 2006-02-14 Jim Meyering <jim@meyering.net>
5926 Sync from coreutils.
5927 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
5928 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
5929 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
5930 double-quote uses of that variable, to accommodate the rare case in
5931 which getmntent is available in none of the libraries checked. This
5932 happens at least on FreeBSD 5.0.
5934 2006-02-13 Simon Josefsson <jas@extundo.com>
5936 * gnulib-tool (Usage): Fix --import, from
5937 karl@freefriends.org (Karl Berry).
5939 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
5941 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
5943 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
5945 * lib/argp-namefrob.h: Restore changes accidentally lost during the
5946 "autoupdate" on 2005-12-12.
5948 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
5950 * modules/closeout (Depends-on): Remove atexit.
5952 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
5954 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
5955 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
5957 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
5959 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
5960 __EXTENSIONS__ if this causes compilation to fail. Problem
5961 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
5962 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
5964 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
5966 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
5967 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
5968 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
5971 2006-01-26 Simon Josefsson <jas@extundo.com>
5973 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
5974 prototype is visible on mingw32.
5976 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
5979 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
5982 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
5984 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
5985 attempt to open for write; this always fails, at least on POSIX
5986 hosts. This reinstates the 2006-01-09 change, which was
5987 inadvertently removed.
5989 2006-01-26 Bruno Haible <bruno@clisp.org>
5991 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
5992 Reported by Paul Eggert.
5994 2006-01-26 Bruno Haible <bruno@clisp.org>
5995 Paul Eggert <eggert@cs.ucla.edu>
5997 * lib/stdbool_.h (_Bool)
5998 [(! (defined __cplusplus || defined __BEOS__)
5999 && !defined __GNUC__
6000 && !(defined __HP_cc || defined __xlc__
6001 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
6002 || defined __sgi))]:
6003 #define to signed char in these cases too; this simplifies
6004 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
6005 etc., separately) and makes it more conservative.
6007 2006-01-25 Simon Josefsson <jas@extundo.com>
6009 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
6010 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
6011 ws2tcpip.h with WINVER=0x0501. All for mingw32.
6013 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
6015 * lib/argp-namefrob.h: Bugfix. Remove stray #
6017 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
6019 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
6020 so that we test the test.
6021 Check for yet another HP-UX cc bug involving *bool |= bool.
6023 2006-01-25 Karl Berry <karl@gnu.org>
6025 * config/srclist.txt (vasnprintf.c): sync lost.
6027 2006-01-25 Jim Meyering <jim@meyering.net>
6029 Sync from the stable (b5) branch of coreutils:
6031 * lib/fts.c (fts_children): Don't let close() clobber errno from
6034 * lib/fts.c (fts_stat): When following a symlink-to-directory,
6035 don't necessarily interpret stat-fails+lstat-succeeds as indicating
6036 a dangling symlink. That can also happen at least for ELOOP.
6037 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
6038 FYI, this bug predates the inclusion of fts.c in coreutils.
6040 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
6041 in their own block, so pre-c99 compilers don't object.
6043 Avoid the double-free (first in fts_read, second in fts_close) that
6044 would occur when an `active' directory is made inaccessible (e.g.,
6045 via chmod a-x) during a traversal.
6046 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
6047 before returning. Reproduce this failure by
6048 mkdir -p a/b; cd a; chmod a-x . b
6049 Reported by Stavros Passas.
6051 2006-01-25 Jim Meyering <jim@meyering.net>
6053 * lib/fileblocks.c: Remove more useless parentheses.
6054 * lib/readutmp.h: Likewise.
6056 2006-01-25 Bruno Haible <bruno@clisp.org>
6058 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
6060 Reported by Paul Eggert.
6062 2006-01-25 Bruno Haible <bruno@clisp.org>
6064 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
6065 rid of a trap command. For Solaris sh.
6066 Reported by Mark D. Baushke <mdb@gnu.org>.
6068 2006-01-24 Simon Josefsson <jas@extundo.com>
6070 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
6073 2006-01-24 Karl Berry <karl@gnu.org>
6075 * config/srclist.txt (argp-namefrob.h): sync lost.
6077 2006-01-24 Jim Meyering <jim@meyering.net>
6079 * modules/openat (Files): Add lib/intprops.h.
6080 From Mark D. Baushke.
6082 2006-01-24 Jim Meyering <jim@meyering.net>
6084 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
6085 Reported by Mark D. Baushke.
6087 2006-01-24 Jim Meyering <jim@meyering.net>
6089 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
6091 2006-01-24 Bruno Haible <bruno@clisp.org>
6093 * modules/strnlen (Maintainer): Change from glibc to all.
6095 2006-01-24 Bruno Haible <bruno@clisp.org>
6097 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
6098 Patch by Paul Eggert.
6100 2006-01-24 Bruno Haible <bruno@clisp.org>
6102 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
6104 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
6107 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
6108 'signed char' to avoid problems with the built-in _Bool type.
6109 Reported by Paul Eggert on 2005-11-26.
6111 2006-01-24 Bruno Haible <bruno@clisp.org>
6113 * gnulib-tool (func_import): Avoid constructing complicated sed
6114 expressions inside backquote.
6115 Report and solution by Mark D. Baushke <mdb@gnu.org>.
6117 2006-01-23 Ulrich Drepper <drepper@redhat.com>
6119 These changes imported from libc.
6120 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
6121 test and two separate function calls.
6122 * lib/strndup.c (__strndup): Add libc_hidden_def.
6124 2006-01-23 Simon Josefsson <jas@extundo.com>
6126 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
6127 Remove the test_*_SOURCES variable: automake infers it by default.
6128 * modules/tls-tests: Likewise.
6130 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
6132 Work around porting bugs reported by Dieter in
6133 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
6134 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
6135 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
6136 Include "getopt.h" first, to check interface.
6137 (getenv): Declare only if defined HAVE_DECL_GETENV &&
6139 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
6140 (__strndup): Revert to K&R-style function dfns, the glibc style.
6141 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
6142 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
6143 Include strnlen.h first, to get prototype properly.
6144 (strnlen): Renamed from __strnlen.
6147 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
6149 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
6151 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
6153 * config/srclist.txt: Adjust to reflect glibc reorganization.
6154 This affects only comments.
6156 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
6158 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
6159 Reported by Bruce Korb <bkorb@gnu.org>.
6161 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
6163 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
6164 to pacify gcc -Wswitch-default.
6166 2006-01-22 Bruno Haible <bruno@clisp.org>
6168 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
6169 temporary buffer for sprintf, take into account the precision also
6170 for 'd', 'i', 'u', 'o', 'x', 'X'.
6172 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
6174 * modules/argp-tests: New module
6175 * tests/test-argp.c: New file
6176 * tests/test-argp-2.sh: New file
6178 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
6180 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
6181 (__argp_base_name): Removed
6182 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
6184 (__argp_base_name): Provide macro definition or extern declaration
6185 depending on the configuration
6187 2006-01-20 Simon Josefsson <jas@extundo.com>
6189 * modules/inet_ntop (Depends-on): Depend on sys_socket.
6191 2006-01-20 Simon Josefsson <jas@extundo.com>
6193 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
6195 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
6197 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
6198 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
6199 Suggested by Bruno Haible.
6201 2006-01-20 Karl Berry <karl@gnu.org>
6203 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
6204 until changes propagate, I guess.
6206 2006-01-19 Simon Josefsson <jas@extundo.com>
6208 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
6210 2006-01-19 Simon Josefsson <jas@extundo.com>
6212 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
6214 2006-01-19 Simon Josefsson <jas@extundo.com>
6216 * gnulib-tool: Set check_PROGRAMS.
6218 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
6219 modules/des-tests, modules/gc-arcfour-tests,
6220 modules/gc-arctwo-tests, modules/gc-des-tests,
6221 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
6222 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
6223 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
6224 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
6225 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
6226 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
6227 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
6230 2006-01-18 Simon Josefsson <jas@extundo.com>
6232 * modules/socklen (Depends-on): Depend on sys_socket.
6234 2006-01-18 Simon Josefsson <jas@extundo.com>
6236 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
6237 modules/des-tests, modules/gc-arcfour-tests,
6238 modules/gc-arctwo-tests, modules/gc-des-tests,
6239 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
6240 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
6241 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
6242 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
6243 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
6244 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
6245 $(EXEEXT) to automake TESTS variable, for mingw32.
6247 2006-01-17 Simon Josefsson <jas@extundo.com>
6249 * modules/socklen (Include): Need sys/socket.h.
6251 2006-01-17 Bruno Haible <bruno@clisp.org>
6253 * modules/ssize_t (Include): Add <sys/types.h>.
6255 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
6257 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
6258 it's not portable and it doesn't work with cross-compiles.
6259 Problem reported by Bruno Haible. Fix missing-$ typo in
6260 'test "gl_cv_ignore_unused_libraries" ...' that prevented
6261 -zignore from being used with Sun's C compiler.
6263 2006-01-12 Simon Josefsson <jas@extundo.com>
6265 * lib/base64.c: Fix warning, reported by Bruno Haible
6266 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
6268 2006-01-12 Bruno Haible <bruno@clisp.org>
6270 * modules/ldd: New file.
6271 * build-aux/ldd.sh.in: New file.
6272 * MODULES.html.sh (Support for building libraries and executables): Add
6275 2006-01-12 Bruno Haible <bruno@clisp.org>
6277 * m4/ldd.m4: New file.
6279 2006-01-12 Bruno Haible <bruno@clisp.org>
6281 * gnulib-tool (func_import, func_create_testdir): Don't go into an
6282 endless loop while replacing $auxdir with build-aux.
6284 2006-01-11 Simon Josefsson <jas@extundo.com>
6286 * lib/stdint_.h (SIZE_MAX): Add missing (.
6288 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
6290 Sync from coreutils.
6291 * lib/md5.c: Fix commentary typos.
6292 (alignof, UNALIGNED_P): No need for a GCC-specific version.
6293 * lib/md5.h (__attribute__): Remove; unused.
6294 * lib/sha1.c: Fix commentary to match md5 better.
6295 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
6296 so that we don't need to worry about alignment. All uses changed.
6297 This merges the 2005-10-28 md5 change into sha1.
6299 2006-01-11 Jim Meyering <jim@meyering.net>
6301 Sync from coreutils.
6302 * lib/md5.c (OP): Fix spacing.
6304 2006-01-11 Bruno Haible <bruno@clisp.org>
6306 Ensure automatic ordering between gl_LOCK and gl_ARGP.
6307 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
6308 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
6310 2006-01-11 Bruno Haible <bruno@clisp.org>
6312 Ensure automatic ordering between gl_LOCK and gl_ARGP.
6313 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
6314 the "early" section as well.
6316 2006-01-11 Bruno Haible <bruno@clisp.org>
6318 Avoid "ar: no archive members specified" error on MacOS X.
6319 * gnulib-tool (func_modules_add_dummy): New function.
6320 (func_import, func_create_testdir): Invoke it.
6322 2006-01-11 Bruno Haible <bruno@clisp.org>
6324 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
6325 with $auxdir in AC_CONFIG_FILES statements.
6327 2006-01-11 Bruno Haible <bruno@clisp.org>
6329 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6330 Initialize also noinst_HEADERS to empty.
6332 2006-01-11 Bruno Haible <bruno@clisp.org>
6334 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
6336 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
6339 2006-01-11 Bruno Haible <bruno@clisp.org>
6341 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
6342 overridable by the user.
6343 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6345 2006-01-10 Simon Josefsson <jas@extundo.com>
6347 * modules/sys_socket: New file.
6349 2006-01-10 Simon Josefsson <jas@extundo.com>
6351 * m4/sys_socket_h.m4: New file.
6353 2006-01-10 Simon Josefsson <jas@extundo.com>
6355 * lib/socket_.h: New file.
6357 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
6359 * modules/readutmp (Maintainer): Add myself.
6361 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
6363 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
6364 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
6365 People who are still concerned with buggy memcmp implementations
6366 can invoke gl_FUNC_MEMCMP themselves.
6368 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
6370 * lib/regex_internal.h (BITSET_WORD_BITS):
6371 Work around a bug in 64-bit PGC (before version 6.1-2), where the
6372 preprocessor mishandles large unsigned values as if they were signed.
6373 Problem reported by Claudio Fontana in
6374 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
6376 2006-01-10 Jim Meyering <jim@meyering.net>
6378 Avoid the double-free (first in fts_read, second in fts_close) that
6379 would occur when an `active' directory is made inaccessible (e.g.,
6380 via chmod a-x) during a traversal.
6381 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
6382 before returning. Reproduce this failure by
6383 mkdir -p a/b; cd a; chmod a-x . b
6384 Reported by Stavros Passas.
6386 Sync from coreutils.
6387 * lib/sha1.c: Tweak grammar in a comment.
6389 2006-01-10 Jim Meyering <jim@meyering.net>
6391 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
6392 Patch by Joerg Sonnenberger.
6394 2006-01-10 Bruno Haible <bruno@clisp.org>
6396 * modules/readutmp: Depend on module free.
6397 * modules/strtok_r: Depend on module restrict.
6399 2006-01-10 Bruno Haible <bruno@clisp.org>
6401 * modules/gettext (configure.ac): Add an invocation of
6402 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
6404 2006-01-10 Bruno Haible <bruno@clisp.org>
6406 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
6407 Reported by Werner Lemberg <wl@gnu.org>.
6409 2006-01-10 Bruno Haible <bruno@clisp.org>
6411 * lib/localcharset.c: Update from GNU gettext.
6413 2006-01-10 Bruno Haible <bruno@clisp.org>
6415 * lib/argp.h (__const): Remove macro. Use const instead.
6416 * lib/argp-fmtstream.h (__const): Likewise.
6417 * lib/glob_.h (__const): Remove macro.
6418 * lib/glob-libc.h: Use const instead of __const.
6420 2006-01-10 Bruno Haible <bruno@clisp.org>
6422 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
6424 Needed to avoid an automake error regarding the 'gettext' module.
6426 2006-01-09 Simon Josefsson <jas@extundo.com>
6428 * modules/inet_ntop (Depends-on): Add restrict.
6430 2006-01-09 Simon Josefsson <jas@extundo.com>
6432 * modules/gc-rijndael-tests (License): Put under LGPL.
6434 * modules/gc-des-tests (License): Likewise.
6436 * modules/gc-arcfour-tests (License): Likewise.
6438 * modules/gc-arctwo-tests (License): Likewise.
6440 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
6442 * modules/gc-hmac-sha1-tests (Files): Likewise.
6444 * modules/gc-hmac-md5-tests (License): Likewise.
6446 * modules/gc-sha1-tests (License): Likewise.
6448 * modules/gc-md5-tests (License): Likewise.
6450 * modules/gc-md4-tests (License): Likewise.
6452 * modules/gc-md2-tests (License): Likewise.
6454 * modules/gc-tests (License): Likewise.
6456 * modules/des-tests (License): Likewise.
6458 * modules/md4-tests (License): Likewise.
6460 * modules/md2-tests (License): Likewise.
6462 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
6464 Sync from coreutils:
6466 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
6467 * modules/lib-ignore: New file.
6468 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
6469 chdir-safer.m4, lchmod.m4.
6470 * modules/openat: Add mkdirat.c, openat-priv.h.
6472 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
6474 Sync from coreutils.
6475 * m4/lib-ignore.m4: New file.
6476 * m4/lchmod.m4: New file.
6478 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
6480 Sync from coreutils.
6481 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
6482 for write access: POSIX says that must fail.
6483 * lib/fts.c (diropen): Likewise.
6484 * lib/save-cwd.c (save_cwd): Likewise.
6485 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
6486 well, for minor improvements on hosts that lack O_DIRECTORY.
6487 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
6488 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
6489 Fall back on chown if open failed with EACCES.
6491 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
6492 Report an error at compile-time if only a 1-second nominal clock
6493 resolution is found.
6495 * lib/lchmod.h: New file.
6496 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
6497 (make_dir_parents): Use lchown rather than chown, and
6498 lchmod rather than chmod.
6500 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
6501 dummies too. Problem with "none" reported by Bob Proulx. Problem with
6502 "proc" reported by n0dalus.
6504 * lib/mountlist.c: Include <limits.h>.
6505 (dev_from_mount_options)
6506 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
6507 New function. It no longer assumes "dev=" has the System V meaning
6508 on Linux (since it doesn't). It also parses "dev=" more carefully.
6509 (read_file_system_list)
6510 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
6511 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
6514 * lib/posixtm.h (PDS_PRE_2000): New macro.
6515 * lib/posixtm.c (year): Arg is now syntax_bits rather than
6516 allow_century. All usages changed. Reject dates outside the range
6517 1969-1999 if PDS_PRE_2000 is used.
6519 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
6521 Sync from coreutils.
6522 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
6523 (Time of day items): Mention the possibility of leap seconds.
6524 Problem reported by Dr. David Alan Gilbert.
6526 2006-01-09 Jim Meyering <jim@meyering.net>
6528 Sync from coreutils.
6530 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
6532 * lib/chdir-safer.h, chdir-safer.c: New files.
6534 * lib/modechange.c (mode_compile): Reject an invalid mode string
6535 that starts with an octal digit. From Andreas Gruenbacher.
6537 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
6538 and dup to open_safer and dup_safer, respectively.
6539 (openat_permissive): Fix typo in comment.
6541 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
6542 "gettext.h"; either no longer needed or are guaranteed by openat.h.
6543 (_): Remove; no longer needed.
6544 (openat): Renamed from rpl_openat; no need for rpl_openat
6545 since openat.h renames openat for us.
6546 Replace most of the body with a call to openat_permissive,
6547 to avoid duplicate code.
6548 Port to (probably hypothetical) environments were mode_t is
6550 (openat_permissive): Require mode arg, so that we can check
6551 types better. Put it just after flags. Change cwd failure
6552 indicator from pointer-to-bool to pointer-to-errno-value.
6553 All callers changed.
6554 Invoke openat_save_fail and/or openat_restore_fail if
6555 cwd_errno is null, so that openat can call us.
6556 (openat_permissive, fdopendir, fstatat, unlinkat):
6557 Simplify errno handling to avoid some duplicate code,
6558 as it's OK to set errno on success.
6559 * lib/openat.h: Revamp code so that function macros depend on
6560 __OPENAT_PREFIX only, not also on AT_FDCWD.
6561 (openat_ro): Remove. Caller changed to use openat_permissive.
6562 (openat_permissive): Now a macro, if not a function.
6563 (openat_restore_fail, openat_save_fail): Now always functions,
6564 since mkdirat needs them even if __OPENAT_PREFIX is defined.
6566 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
6568 * lib/mkdirat.c: Include openat-priv.h.
6569 Remove definitions of macros defined therein.
6570 * lib/openat.c: Likewise.
6572 * lib/mkdirat.c (mkdirat): New file and function.
6573 * lib/openat.h (mkdirat): Declare.
6575 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
6577 * lib/openat.h (openat_permissive): Declare.
6578 (openat_ro): Define.
6580 * lib/openat.c (EXPECTED_ERRNO): New macro.
6581 (openat_permissive): New function -- used in remove.c rewrite.
6582 (all functions): Set errno just before returning, only if there
6583 was an actual failure.
6584 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
6586 Emulate openat-family functions using Linux's procfs, if possible.
6587 Idea and some code based on Ulrich Drepper's glibc changes.
6589 * lib/openat.c: (BUILD_PROC_NAME): New macro.
6590 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
6591 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
6592 before falling back on save_cwd and restore_cwd.
6593 (fdopendir, fstatat, unlinkat): Likewise.
6595 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
6596 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
6598 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
6599 as second argument to va_arg. Otherwise, some versions of gcc
6600 warn that `if this code is reached, the program will abort'.
6602 2006-01-09 Jim Meyering <jim@meyering.net>
6604 Sync from coreutils.
6605 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
6606 Require openat-priv.h.
6608 2006-01-09 Bruno Haible <bruno@clisp.org>
6610 * modules/strnlen (Include): Use strnlen.h.
6612 2006-01-09 Bruno Haible <bruno@clisp.org>
6614 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
6616 2006-01-09 Bruno Haible <bruno@clisp.org>
6618 * lib/sysexit_.h (EX_OK): New macro.
6619 Suggested by Martin Lambers <marlam@marlam.de>.
6621 2006-01-09 Bruno Haible <bruno@clisp.org>
6623 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
6624 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
6626 2006-01-09 Bruno Haible <bruno@clisp.org>
6628 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
6631 2006-01-09 Bruno Haible <bruno@clisp.org>
6633 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
6634 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
6635 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
6636 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
6638 2006-01-09 Bruno Haible <bruno@clisp.org>
6640 * build-aux/javacomp.sh.in: New file, moved from lib/.
6641 * modules/javacomp-script (Files): Update.
6642 (configure.ac): Add AC_CONFIG_FILES invocation.
6643 (EXTRA_DIST): Remove variable.
6645 * build-aux/javaexec.sh.in: New file, moved from lib/.
6646 * modules/javaexec (Files): Update.
6647 (configure.ac): Add AC_CONFIG_FILES invocation.
6648 (EXTRA_DIST): Remove javaexec.sh.in.
6650 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
6651 * modules/csharpcomp-script (Files): Update.
6652 (configure.ac): Add AC_CONFIG_FILES invocation.
6653 (EXTRA_DIST): Remove variable.
6655 * build-aux/csharpexec.sh.in: New file, moved from lib/.
6656 * modules/csharpexec (Files): Update.
6657 (configure.ac): Add AC_CONFIG_FILES invocation.
6658 (EXTRA_DIST): Remove csharpexec.sh.in.
6660 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
6662 Sync from coreutils.
6664 Add POSIX ACL support
6665 * lib/acl.h (copy_acl, set_acl): Add declarations.
6666 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
6667 systems other than Linux.
6668 (chmod_or_fchmod): New function: use fchmod when possible,
6669 and chmod otherwise.
6670 (file_has_acl): Add a POSIX ACL implementation, with a
6671 Linux-specific subcase.
6672 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
6673 S_ISVTX from one file to another. Fall back to fchmod/chmod when
6674 acls are unsupported.
6675 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
6676 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
6679 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
6681 Sync from coreutils.
6682 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
6684 2006-01-07 Bruno Haible <bruno@clisp.org>
6686 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
6689 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
6691 * lib/strftime.c (tzname): Don't declare if it is already #defined.
6692 Problem reported for Mingw by Mark Junker.
6694 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
6696 * README: Gnulib normally doesn't generate a tarball.
6698 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
6700 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
6701 long int, not int, for nanosecond counts, so that people who are
6702 used to POSIX struct timespec won't be surprised. Reported by Jim
6705 2005-12-28 Bruno Haible <bruno@clisp.org>
6707 * build-aux/config.rpath: Update from GNU gettext.
6709 2005-12-16 Jim Meyering <jim@meyering.net>
6711 * modules/fprintftime: New module.
6712 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
6714 2005-12-16 Jim Meyering <jim@meyering.net>
6716 * m4/fprintftime.m4: New file.
6718 2005-12-16 Jim Meyering <jim@meyering.net>
6720 * lib/fprintftime.c, fprintftime.h: New files.
6722 2005-12-15 Simon Josefsson <jas@extundo.com>
6724 * modules/socklen (configure.ac): Fix M4 macro name, to align with
6727 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
6729 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
6730 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
6732 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
6734 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
6735 * lib/argp-help.c (fill_in_uparams): Check if the constructed
6736 struct uparams is valid. Fall back to the default values if it is
6739 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
6741 * modules/argp (Files): Add argp-pin.c
6742 (Depends-on): dirname
6743 (lib_SOURCES): Add argp-pin.c
6745 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
6747 * m4/argp.m4: Check if program_invocation_name and
6748 program_invocation_short_name are declared and define appropriate
6749 macros if they are not.
6751 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
6753 * lib/argp-help.c (__argp_base_name): New function
6754 (__argp_short_program_name): Rewrite using __argp_base_name
6755 * lib/argp-namefrob.h: Define program_invocation_name and
6756 program_invocation_short_name if requested
6757 (__argp_base_name): Add prototype
6758 * lib/argp-parse.c (argp_def): Use gettext wrappers
6759 (argp_default_parser): Use __argp_base_name
6760 * lib/argp-pin.c: New file. Defines program_invocation_name and
6761 program_invocation_short_name on systems that lack them.
6763 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
6765 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
6766 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
6767 porting problem reported by Georg Schwarz in
6768 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
6770 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
6772 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
6773 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
6774 porting problem reported by Georg Schwarz in
6775 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
6777 2005-12-05 Bruno Haible <bruno@clisp.org>
6779 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
6780 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
6781 Reported by Mark Junker <mjscod@gmx.de>.
6783 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
6785 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
6786 Use implementation from Albert Chin, with some
6787 comments/corrections by Stepan Kasal and myself.
6789 2005-12-02 Bruno Haible <bruno@clisp.org>
6791 * gnulib-tool (func_import): Accept GPLed build tool modules when
6793 * modules/csharpcomp-script: New file.
6794 * modules/csharpcomp: Depend on it.
6795 * modules/javacomp-script: New file.
6796 * modules/javacomp: Depend on it.
6797 Suggested by Simon Josefsson.
6799 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
6801 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
6802 statement, to work around an HP-UX 10.20 compiler bug reported by
6805 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
6807 * modules/savedir (Depends-on): Add openat.
6809 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
6811 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
6812 (uintmax_t) [defined uintmax_t]: Do not declare.
6813 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
6814 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
6815 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
6816 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
6817 sake of portability to weird hosts that C allows (though we don't
6818 know of any practical examples).
6820 * lib/savedir.h (fdsavedir): New decl.
6821 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
6822 contains most of the former guts of savedir.
6823 (savedir): Use savedirstream.
6826 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
6828 * modules/obstack (Files): Add m4/ulonglong.m4.
6829 Problem reported by Davide Angelocola.
6831 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
6833 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
6834 coreutils no longer futzes with rounding modes.
6836 2005-11-14 Jim Meyering <jim@meyering.net>
6838 * lib/mkstemp-safer.c: Include <config.h>, required for possible
6839 replacement of mkstemp.
6841 2005-11-10 Simon Josefsson <jas@extundo.com>
6843 * lib/readline.c: Remove EOL.
6845 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
6847 * modules/gethrxtime (Depends-on): Add gettime.
6849 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
6851 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
6852 or gettimeofday; no longer needed.
6854 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
6856 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
6858 (gethrxtime) [! (HAVE_NANOUPTIME
6859 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
6860 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
6861 our own approximation.
6863 2005-11-08 Eric Blake <ebb9@byu.net>
6865 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
6867 2005-11-08 Eric Blake <ebb9@byu.net>
6869 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
6871 2005-11-04 Bruno Haible <bruno@clisp.org>
6873 * gnulib-tool: Implement --update mode.
6875 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
6877 Fix porting problem reported by Theodoros V. Kalamatianos.
6878 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
6879 Don't assume that futimes failing means we must fail.
6881 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
6883 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
6884 variables to suggest the intended function of the PATH_MAX check.
6886 2005-10-30 Kean Johnston <jkj@sco.com>
6888 Trivial changes to support SCO systems.
6889 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
6891 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
6892 where __ptr is null when no I/O is pending.
6894 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
6896 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
6897 leave errno alone. Problem reported by Dmitry V. Levin.
6899 2005-10-28 Simon Josefsson <jas@extundo.com>
6901 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
6904 * tests/test-gc-md2.c, tests/test-md2.c: New files.
6906 * modules/md2, modules/md2-tests: New files.
6908 2005-10-28 Simon Josefsson <jas@extundo.com>
6910 * m4/inet_ntop.m4: More tests.
6912 * m4/gc-md2.m4, md2.m4: New file.
6914 2005-10-28 Simon Josefsson <jas@extundo.com>
6916 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
6917 "restrict" keywords, as per POSIX. Protect the function
6918 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
6919 Don't use K&R prototypes. Check the sprintf return values.
6920 Re-define EAFNOSUPPORT if not present. Indent.
6922 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
6923 suggested by Bruno Haible <bruno@clisp.org>.
6925 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
6927 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
6929 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
6932 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
6934 * lib/md2.h, md2.c: New files.
6936 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
6938 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
6939 errno alone. Problem reported by Frederic Jolliton.
6941 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
6943 * modules/verify (License): Change from GPL to LGPL. This is a
6944 tiny module and there are apparently near-equivalents that are
6945 under the BSD license.
6947 2005-10-24 Simon Josefsson <jas@extundo.com>
6949 * modules/sha1: Relicense to LGPL.
6951 2005-10-24 Simon Josefsson <jas@extundo.com>
6953 * lib/md4.h: Shrink buffer size, now that we changed the type.
6955 2005-10-23 Simon Josefsson <jas@extundo.com>
6957 * gnulib-tool (func_import): Fix --tests-base.
6959 2005-10-22 Simon Josefsson <jas@extundo.com>
6961 * modules/arcfour (Depends-on): Need stdint.
6963 2005-10-22 Simon Josefsson <jas@extundo.com>
6965 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
6966 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
6968 2005-10-22 Simon Josefsson <jas@extundo.com>
6970 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
6971 suggested by Bruno Haible <bruno@clisp.org>.
6973 2005-10-22 Simon Josefsson <jas@extundo.com>
6975 * lib/crc.h: Include stddef.h, for size_t.
6977 2005-10-22 Simon Josefsson <jas@extundo.com>
6979 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
6980 arcfour_context struct (simplify test vector testing in GNU
6983 2005-10-21 Simon Josefsson <jas@extundo.com>
6985 * modules/des, modules/des-tests: New files.
6987 * modules/gc-des, modules/gc-des-tests: New files.
6989 * tests/test-des.c, tests/test-gc-des.c: New file.
6991 2005-10-21 Simon Josefsson <jas@extundo.com>
6993 * modules/arctwo, modules/arctwo-tests: New files.
6995 * tests/test-arctwo.c: New file.
6997 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
6999 * tests/test-gc-arctwo.c: New file.
7001 2005-10-21 Simon Josefsson <jas@extundo.com>
7003 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
7004 Bruno Haible <bruno@clisp.org>.
7006 * m4/gc-des.m4: New file.
7008 2005-10-21 Simon Josefsson <jas@extundo.com>
7010 * m4/arctwo.m4: New file.
7012 * m4/gc-arctwo.m4: New file.
7014 2005-10-21 Simon Josefsson <jas@extundo.com>
7016 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
7019 2005-10-21 Simon Josefsson <jas@extundo.com>
7021 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
7024 * lib/hmac-sha1.c (hmac_sha1): Likewise.
7026 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
7027 Bruno Haible <bruno@clisp.org>.
7029 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
7032 2005-10-21 Simon Josefsson <jas@extundo.com>
7034 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
7036 2005-10-21 Simon Josefsson <jas@extundo.com>
7038 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
7040 2005-10-21 Simon Josefsson <jas@extundo.com>
7042 * lib/des.h, des.c: New files.
7044 * lib/gc-gnulib.c: Support DES.c
7046 2005-10-21 Simon Josefsson <jas@extundo.com>
7048 * lib/arctwo.h, arctwo.c: New files.
7050 * lib/gc-gnulib.c: Support ARCTWO.
7052 2005-10-21 Simon Josefsson <jas@extundo.com>
7054 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
7055 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7057 2005-10-21 Simon Josefsson <jas@extundo.com>
7059 * gnulib-tool (func_import, func_create_testdir): Define automake
7060 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
7061 Makefile.am snippet),
7062 suggested by Bruno Haible <bruno@clisp.org>.
7064 * modules/gc (Makefile.am): Use it.
7066 2005-10-21 Bruno Haible <bruno@clisp.org>
7068 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
7071 2005-10-19 Simon Josefsson <jas@extundo.com>
7073 * tests/test-gc-rijndael.c: New file.
7075 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
7077 2005-10-19 Simon Josefsson <jas@extundo.com>
7079 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
7082 2005-10-19 Simon Josefsson <jas@extundo.com>
7084 * tests/test-gc-arcfour.c: New file.
7086 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
7088 2005-10-19 Simon Josefsson <jas@extundo.com>
7090 * modules/gc-md4, modules/gc-md4-tests: New file.
7092 * tests/test-gc-md4.c: New file.
7094 2005-10-19 Simon Josefsson <jas@extundo.com>
7096 * m4/gc-md4.m4: New file.
7098 2005-10-19 Simon Josefsson <jas@extundo.com>
7100 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
7101 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
7104 2005-10-19 Simon Josefsson <jas@extundo.com>
7106 * m4/gc-arcfour.m4: New file.
7108 * m4/gc-rijndael.m4: New file.
7110 2005-10-19 Simon Josefsson <jas@extundo.com>
7112 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
7114 2005-10-19 Simon Josefsson <jas@extundo.com>
7116 * lib/gc-gnulib.c: Support ARCFOUR.
7118 2005-10-19 Simon Josefsson <jas@extundo.com>
7120 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
7123 * lib/gc.h: Add ECB enum type.
7125 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
7127 2005-10-18 Simon Josefsson <jas@extundo.com>
7129 * tests/test-md5.c: New file.
7131 * modules/md5-tests: New file.
7133 2005-10-18 Simon Josefsson <jas@extundo.com>
7135 * tests/test-md4.c: New file.
7137 * modules/md4, modules/md4-tests: New files.
7139 2005-10-18 Simon Josefsson <jas@extundo.com>
7141 * m4/md4.m4: New file.
7143 2005-10-18 Simon Josefsson <jas@extundo.com>
7145 * lib/md4.h, md4.c: New files, based on md5.?.
7147 2005-10-17 Stepan Kasal <kasal@ucw.cz>
7149 * gnulib-tool (func_create_testdir): Omit the second check whether
7150 BUILT_SOURCES in nonempty.
7152 2005-10-17 Simon Josefsson <jas@extundo.com>
7154 * tests/test-rijndael.c: New file.
7156 2005-10-17 Simon Josefsson <jas@extundo.com>
7158 * modules/sha1: Depend on stdint instead of md5.
7160 * modules/md5: Depend on stdint, remove uint32_t.
7162 2005-10-17 Simon Josefsson <jas@extundo.com>
7164 * modules/gc-sha1-tests: New file.
7166 * tests/test-gc-sha1.c: New file.
7168 2005-10-17 Simon Josefsson <jas@extundo.com>
7170 * m4/md5.m4: Remove call to uint32_t.m4.
7172 2005-10-17 Simon Josefsson <jas@extundo.com>
7174 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
7176 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
7179 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
7181 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
7183 2005-10-17 Simon Josefsson <jas@extundo.com>
7185 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
7187 2005-10-17 Simon Josefsson <jas@extundo.com>
7189 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
7191 2005-10-17 Simon Josefsson <jas@extundo.com>
7193 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
7195 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
7197 2005-10-17 Bruno Haible <bruno@clisp.org>
7199 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
7200 that it can also be used in a test.
7202 2005-10-16 Bruno Haible <bruno@clisp.org>
7204 * gnulib-tool (func_emit_tests_Makefile_am): Also define
7205 TESTS_ENVIRONMENT, so that individual tests can augment it.
7207 * gnulib-tool (func_create_testdir): Use an intermediate target for
7208 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
7209 macros, like $(ALLOCA_H), which cannot be passed through the command
7212 2005-10-15 Simon Josefsson <jas@extundo.com>
7214 * modules/rijndael-tests: New file.
7216 * modules/rijndael: New file.
7218 2005-10-15 Simon Josefsson <jas@extundo.com>
7220 * m4/rijndael.m4: New file.
7222 2005-10-15 Simon Josefsson <jas@extundo.com>
7224 * lib/rijndael-api-fst.h, rijndael-api-fst.c: New files.
7226 * lib/rijndael-alg-fst.h, rijndael-alg-fst.c: New files.
7228 2005-10-14 Simon Josefsson <jas@extundo.com>
7230 * tests/test-arcfour.c: New file.
7232 * modules/arcfour, modules/arcfour-tests: New files.
7234 2005-10-14 Simon Josefsson <jas@extundo.com>
7236 * m4/arcfour.m4: New file.
7238 2005-10-14 Simon Josefsson <jas@extundo.com>
7240 * lib/arcfour.h, arcfour.c: New files.
7242 2005-10-14 Roland McGrath <roland@redhat.com>
7244 Import from libc. [BZ #1331]
7245 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
7247 Reported by Matej Vela <vela@debian.org>.
7249 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
7251 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
7252 include <wchar.h>; no longer needed.
7254 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
7256 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
7258 2005-10-14 Jakub Jelinek <jakub@redhat.com>
7259 and Ulrich Drepper <drepper@redhat.com>
7262 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
7263 instead of inline stream orientation test and two separate
7264 function calls. Pay no attention to USE_IN_LIBIO.
7266 2005-10-13 Simon Josefsson <jas@extundo.com>
7268 * modules/gc-hmac-md5-tests: New file.
7270 * tests/test-gc-hmac-sha1.c: New file.
7272 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
7274 * modules/gc-hmac-md5-tests: New file.
7276 * tests/test-gc-md5.c: New file.
7278 * modules/gc-md5-tests: New file.
7280 2005-10-13 Simon Josefsson <jas@extundo.com>
7282 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
7283 Move memory allocation outside of loop.
7285 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
7287 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
7288 intermediate directory is in a read-only file system. Problem
7289 reported by Eric Blake.
7291 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
7293 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
7295 2005-10-12 Simon Josefsson <jas@extundo.com>
7297 * tests/test-hmac-sha1.c: New file.
7299 * modules/hmac-sha1-tests: New file.
7301 * modules/hmac-sha1: New file.
7303 2005-10-12 Simon Josefsson <jas@extundo.com>
7305 * modules/gc-sha1: New file.
7307 2005-10-12 Simon Josefsson <jas@extundo.com>
7309 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
7311 * tests/test-gc-pbkdf2-sha1.c: New file.
7313 2005-10-12 Simon Josefsson <jas@extundo.com>
7315 * modules/gc-md5, modules/gc-hmac-md5: New files.
7317 * modules/gc (Files): Remove md5, memxor and hmac files.
7319 2005-10-12 Simon Josefsson <jas@extundo.com>
7321 * m4/gc-pbkdf2-sha1.m4: New file.
7323 * m4/gc-hmac-sha1.m4: New file.
7325 * m4/gc-sha1: New file.
7327 * m4/hmac-sha1.m4: New file.
7329 2005-10-12 Simon Josefsson <jas@extundo.com>
7331 * m4/gc-md5.m4, gc-hmac-md5: New files.
7333 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
7335 2005-10-12 Simon Josefsson <jas@extundo.com>
7337 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
7338 suggested by Bruno Haible <bruno@clisp.org>.
7340 2005-10-12 Simon Josefsson <jas@extundo.com>
7342 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
7344 2005-10-12 Simon Josefsson <jas@extundo.com>
7346 * lib/gc-pbkdf2-sha1.c: New file.
7348 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
7350 2005-10-12 Simon Josefsson <jas@extundo.com>
7352 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
7354 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
7356 2005-10-12 Simon Josefsson <jas@extundo.com>
7358 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
7359 GC_USE_HMAC_MD5, respectively.
7361 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
7364 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
7366 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
7368 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
7370 2005-10-12 Bruno Haible <bruno@clisp.org>
7372 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
7373 Reported by Stepan Kasal <kasal@ucw.cz>.
7375 2005-10-11 Simon Josefsson <jas@extundo.com>
7377 * tests/test-crc.c: New file.
7379 * modules/crc, modules/crc-tests: New files.
7381 2005-10-11 Simon Josefsson <jas@extundo.com>
7383 * m4/crc.m4: New file.
7385 2005-10-11 Simon Josefsson <jas@extundo.com>
7387 * lib/gc.h: Add gc_hash and gc_hash_buffer.
7389 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
7391 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
7393 2005-10-11 Simon Josefsson <jas@extundo.com>
7395 * lib/crc.h, crc.c: New files.
7397 * lib/gc.h (gc_hash_buffer): Add doc.
7399 2005-10-11 Bruno Haible <bruno@clisp.org>
7401 * modules/c-strcasestr: New file.
7402 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
7404 2005-10-11 Bruno Haible <bruno@clisp.org>
7406 * modules/c-strcase: New file.
7407 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
7409 2005-10-11 Bruno Haible <bruno@clisp.org>
7411 * lib/strcasecmp.c: Include limits.h.
7412 (strcasecmp): Avoid integer overflow on exotic platforms.
7413 * lib/strncasecmp.c: Include limits.h.
7414 (strncasecmp): Avoid integer overflow on exotic platforms.
7415 Reported by Paul Eggert.
7417 2005-10-11 Bruno Haible <bruno@clisp.org>
7419 * lib/c-strcasestr.h: New file, from GNU gettext.
7420 * lib/c-strcasestr.c: New file, from GNU gettext.
7422 2005-10-11 Bruno Haible <bruno@clisp.org>
7424 * lib/c-strcase.h: New file, from GNU gettext.
7425 * lib/c-strcasecmp.c: New file, from GNU gettext.
7426 * lib/c-strncasecmp.c: New file, from GNU gettext.
7428 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
7430 * modules/mempcpy (License): GPL -> LGPL.
7431 * modules/strchrnul (License): Likewise.
7432 * modules/sysexits (License): Likewise.
7434 2005-10-08 Simon Josefsson <jas@extundo.com>
7436 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
7438 2005-10-07 Simon Josefsson <jas@extundo.com>
7440 * m4/memxor.m4: Remove gl_C_RESTRICT call.
7442 2005-10-06 Simon Josefsson <jas@extundo.com>
7444 * tests/test-hmac-md5.c: New file.
7446 * modules/hmac-md5-tests: New file.
7448 * modules/hmac-md5: New file.
7450 2005-10-06 Simon Josefsson <jas@extundo.com>
7452 * m4/hmac-md5.m4: New file.
7454 * m4/memxor.m4: Require gl_C_RESTRICT.
7456 2005-10-06 Simon Josefsson <jas@extundo.com>
7458 * lib/memxor.c (memxor): Avoid casts and warnings.
7460 2005-10-06 Simon Josefsson <jas@extundo.com>
7462 * lib/hmac-md5.c: New file.
7464 * lib/hmac.h: New file.
7466 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
7468 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
7469 promotes to int, not unsigned int, to catch the AIX 5.3
7472 2005-10-05 Simon Josefsson <jas@extundo.com>
7474 * modules/memxor: New file.
7476 * modules/iconv (Files): Move config.rpath to havelib, it is used
7479 * modules/havelib (Files): Add config.rpath.
7481 2005-10-05 Simon Josefsson <jas@extundo.com>
7483 * m4/memxor.m4: New file.
7485 2005-10-05 Simon Josefsson <jas@extundo.com>
7487 * lib/memxor.c (memxor): Fix compiler error.
7489 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
7490 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
7492 * lib/memxor.h, memxor.c: New files.
7494 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
7495 we assume all systems have it, suggested by Jim Meyering
7496 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
7497 any systems lack sys/socket.h; mingw32 is known to lack it, but we
7498 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
7501 2005-10-05 Simon Josefsson <jas@extundo.com>
7503 * config/srclist.txt: Add glibc bug 1423 for md5.h.
7505 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
7507 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
7508 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
7509 needed, since the source code now assumes these .h files.
7511 2005-10-05 Derek Price <derek@ximbiot.com>
7513 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
7515 2005-10-05 Bruno Haible <bruno@clisp.org>
7517 * modules/stdint (License): Change to LGPL.
7519 2005-10-04 Simon Josefsson <jas@extundo.com>
7521 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
7522 D. Baushke" <mdb@gnu.org>.
7524 2005-10-04 Bruno Haible <bruno@clisp.org>
7526 * lib/verify.h (verify_true): Provide alternative definition for C++.
7528 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
7530 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
7531 (SSIZE_MAX): New macro, if not already defined.
7532 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
7535 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
7537 Sync from coreutils.
7538 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
7539 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
7540 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
7541 ULLONG_MAX doesn't work with 2.7.2.1.
7543 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
7545 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
7548 * modules/exclude (Depends-on): Depend on verify.
7549 * modules/strtoimax (Depends-on): Likewise.
7550 * modules/utimecmp (Depends-on): Likewise.
7552 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
7554 * lib/exclude.c: Include verify.h.
7555 (verify): Remove. All callers changed to use verify.h's version.
7556 * lib/strtoimax.c: Likewise.
7557 * lib/utimecmp.c: Likewis.e
7559 Sync from coreutils.
7560 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
7561 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
7562 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
7563 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
7564 bother returning ENOSYS if settimeofday or stime fails; just let
7565 them return whatever errno they want to return.
7566 * lib/utimens.c: Include unistd.h, for dup2.
7567 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
7568 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
7570 2005-10-02 Jim Meyering <jim@meyering.net>
7572 Sync from coreutils.
7573 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
7574 from glibc-2.2.5 that fails for read-only files.
7576 2005-10-02 Jim Meyering <jim@meyering.net>
7578 Sync from coreutils.
7579 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
7580 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
7581 `#if HAVE_CONFIG_H'.
7582 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
7583 Remove AT_FDCWD test.
7584 Do not consume the fd unless successful.
7585 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
7586 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
7587 block, so that we don't even try to compile it if settimeofday is
7588 available. This works around a compilation failure on OSF1 V5.1,
7589 due to stime requiring a `long int*' while tv_sec is `int'.
7591 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
7593 Sync from coreutils.
7594 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
7595 against `yes', rather than just testing for nonempty.
7597 2005-10-01 Simon Josefsson <jas@extundo.com>
7599 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
7602 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
7603 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
7604 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
7605 freeaddrinfo and gai_strerror are declared by the POSIX headers.
7606 Check if struct addrinfo is declared.
7608 2005-10-01 Simon Josefsson <jas@extundo.com>
7610 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
7611 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
7612 AI_* and EAI_* definitions. Protect function declarations.
7614 2005-10-01 Jim Meyering <jim@meyering.net>
7616 Sync from coreutils.
7618 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
7619 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
7620 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
7621 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
7622 in the inet and nsl libraries. Required on Solaris 5.7.
7624 2005-10-01 Jim Meyering <jim@meyering.net>
7626 Sync from coreutils.
7627 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
7628 in the inet and nsl libraries. Required on Solaris 5.7.
7630 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
7632 * lib/getdelim.c (getdelim): Remove unused variables.
7634 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
7636 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
7637 so that the code works even with ancient cpp. Portability problem
7638 with GCC 2.7.2.1 reported by Thomas M.Ott.
7640 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
7642 * modules/regex (Depends-on): Add strcase.
7644 * modules/gethostname (Licence): Change from GPL to LGPL, since
7645 gethostname.c is a trivial implementation of a standard library
7647 * modules/poll (License): Change from GPL to LGPL, since it's
7648 derived from LGPL code.
7650 2005-09-27 Jim Meyering <jim@meyering.net>
7652 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
7655 * lib/intprops.h (signed_type_or_expr__): Define.
7656 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
7659 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
7661 * lib/verify.h (verify_expr): Remove, replacing with:
7662 (verify_true): New macro that returns true instead of void.
7663 (verify_type__): Remove.
7664 (verify): Use verify_true rather than verify_type__.
7666 2005-09-26 Bruno Haible <bruno@clisp.org>
7668 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
7670 (lib_SOURCES): Remove mbchar.c.
7671 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
7672 (Files): Add m4/mbrtowc.m4.
7673 * modules/mbiter: Likewise.
7674 * modules/mbuiter: Likewise.
7676 2005-09-26 Bruno Haible <bruno@clisp.org>
7678 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
7679 compile mbchar.c if they are not both present.
7680 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
7681 * m4/mbiter.m4 (gl_MBITER): Likewise.
7682 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
7683 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
7684 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
7686 2005-09-25 Jim Meyering <jim@meyering.net>
7688 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
7689 also uses socklen_t.
7691 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
7693 * lib/utimens.c (ENOSYS): Define if not already defined.
7694 (futimens): Support having a null PATH if the file descriptor
7697 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
7699 (__attribute): Define to empty unless GCC 3.1 or later.
7700 This works around a core dump on OpenBSD 3.4, which has GCC
7701 2.95.3, which dumps core when given __attribute__(()). It also
7702 simplifies other tests, since we really don't want to bother with
7703 worrying about which ancient version of GCC supported what.
7704 Original problem reported by Yoann Vandoorselaere, with part of
7705 the fix suggested by Derek Price.
7707 2005-09-24 Jim Meyering <jim@meyering.net>
7709 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
7710 so we can once again use a positive bitfield width of 1 -- now we
7711 don't have to explain why we were using a bitfield width of 2.
7713 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
7715 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
7716 and similarly for the other external symbols. Problem reported
7719 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
7720 bug reported by Jim Meyering.
7722 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
7723 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
7724 not needed, since socklen is a prerequisite module.
7726 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
7728 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
7729 Problem reported by Eric Blake.
7730 (getaddrinfo): Initialize se so that it's not garbage.
7731 Redo internal storage allocation so that it doesn't make unportable
7732 assumptions about alignment.
7735 * lib/utimens.c (futimens): Use futimesat if available.
7736 Prefer it to futimes since it doesn't have the futimes bug.
7738 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
7739 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
7740 Instead, declare a function that returns a pointer to an array,
7741 and use verify_type__ to declare the size of the array.
7742 Problem and germ of a solution reported by Bruno Haible.
7743 (verify_type__): Use 2, not 1, for bitfield size, to avoid
7744 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
7746 2005-09-23 Jim Meyering <jim@meyering.net>
7748 Sync from coreutils.
7749 Correct build failure (socklen_t not defined) on at least
7750 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
7751 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
7753 2005-09-23 Jim Meyering <jim@meyering.net>
7755 * modules/getaddrinfo (Depends-on): Add socklen.
7757 2005-09-23 Bruno Haible <bruno@clisp.org>
7759 * tests/test-verify.c: New file.
7761 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7763 Sync from coreutils.
7765 * modules/argmatch (Depends-on): Add verify.
7766 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
7768 * modules/save-cwd (Depends-on): Likewise.
7770 * modules/openat (Files): Add lib/openat-die.c.
7771 (Depends-on): Remove error, exitfail.
7774 * modules/verify: New file.
7775 * MODULES.html.sh (Diagnostics <assert.h>): New section,
7776 with "verify" module.
7778 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7780 Sync from coreutils.
7782 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
7783 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
7784 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
7785 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
7786 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
7787 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
7788 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
7789 Don't bother checking for string.h, stdlib.h, unistd.h.
7790 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
7791 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
7793 * m4/jm-macros.m4 (gl_MACROS): Likewise.
7794 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
7796 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
7797 (gl_GETDATE): Use it.
7799 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
7801 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7803 Sync from coreutils.
7805 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
7807 * lib/argmatch.h: Include verify.h
7808 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
7809 (ARGMATCH_ASSERT): Remove; unused.
7810 * lib/canonicalize.c: Assume STDC_HEADERS.
7811 * lib/exclude.c: Include "strcase.h".
7812 * lib/regex_internal.h [!defined _LIBC]: Likewise.
7813 * lib/getusershell.c: Include stdio--.h rather than stdio.h
7815 (getusershell): Call fopen, not fopen_safer.
7816 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
7817 Do not include unistd-safer.h.
7818 (save_cwd): Don't call fd_safer; no longer needed
7819 now that we include fcntl--.h.
7821 * lib/getdate.y (relative_time): New type.
7822 (RELATIVE_TIME_0): New constant.
7823 (parser_control): Use relative_time instead of doing it ourselves.
7824 (%union): Add new relative_time rel member.
7825 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
7827 (relunit, relunit_snumber): Now of type rel.
7828 (zone, rel, relunit, get_date): Adjust to above changes.
7830 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
7831 Do not include unistd-safer.h.
7832 (getloadavg): Don't call fd_safer; no longer needed
7833 now that we include fcntl--.h.
7835 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
7836 (make_dir_parents): Treat ENOSYS like EEXIST.
7838 Improve quality of diagnostics on restore_cwd failure.
7839 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
7840 (make_dir_parents): Last arg is now int * (for errno), not bool *.
7841 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
7842 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
7843 each time through the loop. Do not diagnose restore_cwd failure;
7844 that is the caller's job (and perhaps the caller does not care).
7846 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
7847 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
7848 If the file already exists but is not a directory, don't bother
7849 to try to make its parents.
7850 Close potential file descriptor leak if we can't chdir("/") (!).
7851 Don't always return true if chdir($PWD) fails; return true only
7852 if the requested action was done successfully (except for the
7854 Don't log final directory unless we actually made it.
7855 Refactor to avoid duplicate code to fix up permissions.
7856 Don't attempt to fix up parent permissions if chdir($PWD) fails.
7858 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
7859 to make it a bit faster and (I hope) clearer.
7860 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
7861 Fix bug in formats like %2N.
7863 * lib/verify.h: New file.
7865 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7867 Sync from coreutils.
7868 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
7870 2005-09-22 Jim Meyering <jim@meyering.net>
7872 Sync from coreutils.
7874 * m4/lstat.m4 (gl_FUNC_LSTAT):
7875 Use AC_LIBSOURCES to require lstat.c and lstat.h.
7876 Remove obsolete comment.
7877 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
7878 * m4/xstrtod.m4: Likewise.
7880 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
7882 2005-09-22 Jim Meyering <jim@meyering.net>
7884 Sync from coreutils.
7886 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
7888 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
7889 the .tm_year member, since otherwise gcc-4.0 would now warn about
7890 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
7892 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
7893 order to avoid an unsuppressible warning from gcc on 64-bit systems.
7895 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
7896 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
7897 when run in a time zone for which daylight savings time is in effect
7898 for the starting date.
7900 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
7901 stop us from restricting permissions of just-created absolute-named
7903 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
7904 to restore initial working directory.
7905 * lib/mkdir-p.c (make_dir_parents): New parameter:
7906 different_working_dir, to tell caller if/when we change the working
7907 directory and are unable to return to the initial one.
7908 * lib/mkdir-p.h (make_dir_parents): Update prototype.
7909 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
7910 `return false'. This fixes a bug introduced on 2004-07-30.
7912 * lib/openat.c (fdopendir): Be sure to close the supplied
7913 file descriptor before returning. This makes our replacement
7914 implementation a little closer to Solaris's, where fdopendir
7915 ties the file descriptor to the returned DIR* pointer.
7916 * lib/openat.c (unlinkat): New function.
7917 * lib/openat.h (unlinkat): Add prototype.
7918 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
7919 (openat_restore_fail): Rename from openat_restore_die.
7920 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
7922 Provide an alternative to exiting immediately upon save_cwd or
7923 restore_cwd failure. Now, an application can arrange e.g.,
7924 to perform a longjump in that case.
7925 * lib/openat.c: Include dirname.h.
7926 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
7927 (rpl_openat, fdopendir, fstatat): Call openat_save_die
7928 and openat_restore_die rather than calling error directly.
7929 Don't include "error.h" or "exitfail.h"; they're no longer needed.
7931 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
7932 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
7935 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
7936 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
7937 int utc, int nanoseconds);
7939 date should not have to allocate a megabyte of virtual memory to
7940 handle a format argument like +%1048575T. When implemented with
7941 strftime, it must allocate such a buffer, use strftime to fill it
7942 in, print it, then free it.
7943 With fprintftime, it simply prints everything and exits.
7944 With no need for memory allocation, that's one fewer way to fail.
7945 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
7946 optional field width, not before, so we accept %9:z, not %:9z.
7947 (my_strftime): Be sure to use L_('x') for literals.
7949 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
7950 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
7951 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
7952 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
7953 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
7954 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
7955 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
7956 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
7957 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
7958 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
7959 * lib/xgethostname.c, lib/xreadlink.c:
7960 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
7962 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
7963 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
7964 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
7965 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
7966 and don't include <sys/file.h>).
7968 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
7970 Sync from coreutils.
7972 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
7973 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
7974 [!LDAV_DONE]: Avoid unused variable warning.
7976 2005-09-21 Bruno Haible <bruno@clisp.org>
7978 * lib/unicodeio.h (unicode_to_mb): New declaration.
7980 2005-09-20 Derek Price <derek@ximbiot.com>
7982 * lib/getaddrinfo.c: Don't include <netdb.h> included from
7985 2005-09-20 Bruno Haible <bruno@clisp.org>
7987 * gnulib-tool: Remove trailing slashes from the values specified for
7988 --source-base, --m4-base, --tests-base, --aux-dir.
7989 Suggested by Simon Josefsson <jas@extundo.com>.
7991 2005-09-20 Bruno Haible <bruno@clisp.org>
7993 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
7994 func_modules_to_filelist, func_import, func_create_testdir): Make all
7995 sorting results locale-independent, so that gnulib-cache.m4 doesn't
7996 change when gnulib-tool is invoked in a different locale.
7998 2005-09-19 Simon Josefsson <jas@extundo.com>
8000 * m4/socklen.m4: Fix typo.
8002 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8004 Use a consistent style for including <config.h>.
8005 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
8006 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
8007 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
8008 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
8009 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
8010 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
8011 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
8012 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
8013 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
8014 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
8015 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
8016 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
8017 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
8018 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
8019 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
8020 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
8021 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
8022 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
8023 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
8024 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
8025 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
8026 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
8027 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
8028 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
8029 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
8030 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
8031 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
8032 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
8033 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
8034 lib/xstrtoumax.c, lib/yesno.c:
8035 Standardize inclusion of config.h.
8036 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
8037 lib/inttostr.h: Removed inclusion of config.h from header files.
8038 * lib/inttostr.c: Adjusted in-tree users.
8039 * lib/timespec.h: Remove superfluous warning to include config.h.
8040 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
8041 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
8042 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
8043 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
8044 config.h with HAVE_CONFIG_H.
8046 2005-09-19 Jim Meyering <jim@meyering.net>
8048 * modules/pathmax (License): Change to LGPL.
8050 2005-09-19 Derek Price <derek@ximbiot.com>
8052 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
8054 2005-09-19 Bruno Haible <bruno@clisp.org>
8056 * gnulib-tool (import): Provide default for --tests-base.
8058 2005-09-19 Bruno Haible <bruno@clisp.org>
8060 * doc/quote.texi: New file, extracted from gnulib.texi.
8061 * doc/ctime.texi: New file, extracted from gnulib.texi.
8062 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
8063 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
8064 * doc/gnulib.texi: Include them.
8066 2005-09-18 Bruno Haible <bruno@clisp.org>
8069 * gnulib-tool (func_readlink): New function.
8070 (func_ln_if_changed): Use it.
8072 2005-09-18 Bruno Haible <bruno@clisp.org>
8074 * gnulib-tool: Support --with-tests also with --import.
8075 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
8076 (func_import): Use variables $testsbase and $inctests. Emit a
8077 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
8078 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
8079 SUBDIRS += $testsdir.
8080 (func_create_testdir): Update.
8082 2005-09-18 Bruno Haible <bruno@clisp.org>
8084 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
8085 instead of $dry_run.
8086 (func_cp_if_changed, func_mv_if_changed): Remove functions.
8087 (func_ln_if_changed): Don't handle dry-run here.
8088 (func_import): In dry-run mode, detect more precisely which actions
8089 would be performed, and don't use "...ing" verbs.
8091 2005-09-18 Bruno Haible <bruno@clisp.org>
8093 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
8094 (func_import): Use join on two temporary files instead of three nested
8095 loops, in order to determine which files are new or old.
8097 2005-09-18 Bruno Haible <bruno@clisp.org>
8099 * gnulib-tool (func_import): Comment out code that spits out the
8100 new files with --dry-run.
8102 2005-09-18 Bruno Haible <bruno@clisp.org>
8104 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
8106 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
8108 * lib/stat-time.h: New file.
8109 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
8110 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
8112 (timespec_cmp): New function.
8113 * lib/utimecmp.c: Include stat-time.h.
8114 (SYSCALL_RESOLUTION): Depend on whether various struct stat
8115 members exist, not on the obsolescent ST_MTIM_NSEC.
8116 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
8118 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
8120 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
8122 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
8124 * MODULES.html.sh (File system functions): Add stat-time.
8125 * modules/stat-time: New file.
8126 * modules/timespec (Files): Remove m4/st_mtim.m4; this
8127 is now done in a different way, by the stat-time module.
8128 * modules/utimecmp (Depends-on): Add stat-time.
8130 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
8132 * m4/st_mtim.m4: Remove. Superseded by...
8133 * m4/stat-time.m4: New file.
8134 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
8135 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
8137 2005-09-15 Derek Price <derek@ximbiot.com>
8139 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
8141 2005-09-15 Derek Price <derek@ximbiot.com>
8143 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
8144 * lib/regex_internal.c: Ditto, using this...
8145 (__GNUC_PREREQ): ...new macro.
8146 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
8148 (__GNUC_PREREQ): ...this new macro.
8150 * lib/strstr.h: Include string.h. Define strstr as a macro here.
8152 2005-09-15 Derek Price <derek@ximbiot.com>
8153 Paul Eggert <eggert@cs.ucla.edu>
8155 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
8156 changes, consolidating in...
8157 * lib/regex_internal.h: ...this file.
8159 2005-09-13 Jim Meyering <jim@meyering.net>
8161 * lib/canon-host.c: Filter through gnu indent and reword comments
8163 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
8165 2005-09-13 Derek Price <derek@ximbiot.com>
8167 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
8169 Reported by Jim Meyering <jim@meyering.net>.
8171 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
8173 * lib/base64.c: Typo.
8174 (base64_encode): Put b64str in initialized data section.
8176 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
8178 Merge glibc and coreutils changes into gnulib, plus a few
8180 * lib/md5.c: Use #error rather than a string.
8181 (CYCLIC): New macro, from glibc source. Use it instead of rol.
8182 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
8183 (__attribute__): Define to empty for non recent-GCC.
8184 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
8185 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
8186 Renamed from their non-__ counterparts, with new macros replacing
8187 them if not _LIBC. Add __THROW attribute.
8189 (struct md5_ctx): Align buffer if using GCC.
8190 * lib/sha1.h (struct sha1_ctx): Likewise.
8191 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
8192 The old name was backwards.
8193 (NOTSWAP): Remove; not used.
8194 (rol): New macro, moved here from md5.h.
8195 (sha1_process_block): Remove a FIXME that doesn't make sense.
8197 2005-09-12 Derek Price <derek@ximbiot.com>
8199 Return usable errors from canon-host.
8200 * lib/canon-host.h: New file.
8201 * lib/canon-host.c (canon_host): Wrap...
8202 (canon_host_r): ...this new function, which now relies exclusively on
8204 (ch_strerror): New function.
8205 (last_cherror): New global.
8206 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
8208 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
8210 (freeaddrinfo): Free ai->ai_canonname when set.
8212 2005-09-12 Derek Price <derek@ximbiot.com>
8214 Make canon-host require getaddrinfo.
8215 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
8216 AC_LIBSOURCE canon-host.h. Call...
8217 (gl_PREREQ_CANON_HOST): ...this new function, which requires
8219 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
8221 2005-09-12 Derek Price <derek@ximbiot.com>
8223 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
8225 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
8227 2005-09-12 Derek Price <derek@ximbiot.com>
8229 * lib/gai_strerror.c: Include config.h when available. Include
8230 getaddrinfo.h before other headers to test interface.
8231 Reported by Larry Jones <lawrence.jones@ugs.com>.
8233 2005-09-12 Derek Price <derek@ximbiot.com>
8234 Paul Eggert <eggert@cs.ucla.edu>
8236 * modules/glob (Files): Add glob-libc.h.
8238 2005-09-12 Derek Price <derek@ximbiot.com>
8239 Paul Eggert <eggert@cs.ucla.edu>
8241 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
8242 glob_.h, glob-libc.h.
8243 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
8245 2005-09-12 Derek Price <derek@ximbiot.com>
8246 Paul Eggert <eggert@cs.ucla.edu>
8248 * lib/glob-libc.h: Renamed from glob_.h. The new version is
8249 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
8250 protecting things that should be done only in gnulib contexts.
8251 * lib/glob_.h: New file, containing only the glob things needed for
8253 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
8254 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
8255 (glob, globfree, glob_pattern_p): Now defined simply in terms of
8256 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
8257 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
8258 and to respect the namespace rules better.
8260 2005-09-08 Simon Josefsson <jas@extundo.com>
8262 * modules/socklen: New file.
8264 2005-09-08 Simon Josefsson <jas@extundo.com>
8266 * m4/socklen.m4: New file.
8268 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
8270 * modules/utimens (Files): Add m4/utimbuf.m4, since
8271 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
8272 Reported by Sergey Poznyakoff.
8274 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
8276 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
8277 definitions, since that's the preferred style in glibc.
8278 Fix a minor spacing issue, and update copyright notice to match
8281 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
8283 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
8285 2005-09-06 Simon Josefsson <jas@extundo.com>
8287 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
8288 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
8290 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
8292 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
8295 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
8297 * config/srclist.txt: Add glibc bug 1302.
8299 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
8301 Change bitset word type from unsigned int to unsigned long int,
8302 as this has better performance on typical 64-bit hosts.
8303 Port bitset code to hosts with unusual word sizes.
8304 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
8305 (build_collating_symbol):
8306 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
8307 argument is a bitset. This is merely a style issue, but it makes
8308 it clearer that an entire array is expected.
8309 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
8310 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
8311 Port to the case where bitset_word is not the same as unsigned int.
8312 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
8313 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
8315 * lib/regexec.c (check_dst_limits_calc_pos_1,
8316 check_subexp_matching_top):
8317 (build_trtable, group_nodes_into_DFAstates):
8319 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
8320 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
8321 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
8322 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
8323 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
8324 * lib/regcomp.c (optimize_subexps, lower_subexp):
8325 Work even if bitset_word has holes in its bitwise representation.
8326 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
8327 * lib/regexec.c (check_dst_limits_calc_pos_1,
8328 check_subexp_matching_top):
8330 * lib/regex_internal.c (re_string_reconstruct):
8331 Don't assume UCHAR_MAX == 255.
8332 * lib/regex_internal.h (bitset_set_all): Likewise.
8333 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
8335 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
8336 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
8338 (BITSET_WORD_MAX): New macro.
8339 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
8340 (bitset_set_all, bitset_copy): Now inline functions, not macros.
8341 (bitset_empty, bitset_copy):
8342 Prefer sizeof (bitset) to multiplying it out ourselves.
8343 (bitset_not_merge): Remove; unused.
8344 (bitset_contain): Return bool, not unsigned int with one bit on.
8345 All callers changed.
8346 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
8347 alignment than re_node_set; do this by defining a new internal
8348 type struct dests_alloc and using it to allocate memory.
8350 2005-09-05 Bruno Haible <bruno@clisp.org>
8352 * gnulib-tool (func_import): Fix comparison in handling of symbolic
8355 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
8357 * modules/size_max (Makefile.am): Add size_max.h
8359 2005-09-04 Derek Price <derek@ximbiot.com>
8361 * gnulib-tool (func_import): Fix reversed $symbolic logic.
8363 2005-09-03 Simon Josefsson <jas@extundo.com>
8365 * gnulib-tool: Fix typo.
8367 2005-09-03 Simon Josefsson <jas@extundo.com>
8369 * config/srclist.txt: Add glibc bug 1293.
8371 2005-09-03 Derek Price <derek@ximbiot.com>
8373 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
8374 From Larry Jones <lawrence.jones@ugs.com>.
8376 2005-09-02 Simon Josefsson <jas@extundo.com>
8378 * modules/socklen: New file.
8380 2005-09-02 Simon Josefsson <jas@extundo.com>
8382 * modules/havelib: New module.
8384 * modules/gettext, modules/iconv, modules/lock, modules/readline:
8387 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
8389 Check for arithmetic overflow when calculating sizes, to prevent
8390 some buffer-overflow issues. These patches are conservative, in the
8391 sense that when I couldn't determine whether an overflow was possible,
8392 I inserted a run-time check.
8393 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
8395 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
8396 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
8397 (re_xnrealloc, re_x2nrealloc): New inline functions.
8398 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
8400 (build_equiv_class, build_charclass): Check for arithmetic overflow
8401 in size expression calculations.
8402 * lib/regex_internal.c (re_string_realloc_buffers):
8403 (build_wcs_upper_buffer, re_node_set_add_intersect):
8404 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
8405 (re_dfa_add_node, register_state): Likewise.
8406 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
8407 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
8408 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
8409 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
8411 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
8413 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
8414 m4/ulonglong.m4. Problem reported by Martin Lambers.
8416 2005-09-02 Bruno Haible <bruno@clisp.org>
8418 Support for lib vs. lib64 distinction on biarch platforms.
8419 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
8420 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
8421 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
8423 2005-09-02 Bruno Haible <bruno@clisp.org>
8425 * gnulib-tool (import): In the other first-use case, provide defaults
8428 2005-09-02 Bruno Haible <bruno@clisp.org>
8430 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
8431 patches not yet found in the latest gettext release.
8433 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
8435 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
8436 to avoid a collision with bits/local_lim.h in glibc.
8437 All uses changed. Problem reported by Dmitry V. Levin in
8438 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
8440 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
8441 bugs in int versus size_t comparisons.
8442 (re_string_context_at): Fix bug where the code assumed that
8445 Use bool where appropriate.
8446 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
8447 All callers changed.
8448 (calc_eclosure_iter): Likewise, for ROOT arg.
8449 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
8450 (build_charclass_op): Likewise, for NON_MATCH arg.
8451 * lib/regex_internal.c (re_string_allocate, re_string_construct):
8452 (re_string_construct_common): Likewise, for ICASE arg.
8453 * lib/regexec.c (re_search_2_stub, re_search_stub):
8454 Likewise, for RET_LEN arg.
8455 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
8456 (set_regs): Likewise, for FL_BACKTRACK arg.
8457 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
8458 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
8459 (calc_eclosure_iter, parse_bracket_exp):
8460 Use bool for internal variables that are booleans.
8461 * lib/regexec.c (re_search_internal, check_matching,
8463 (set_regs, build_sifted_states, sift_states_bkref):
8464 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
8465 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
8466 (find_collation_sequence_value):
8468 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
8469 (re_node_set_compare):
8470 Return bool, not int. All callers changed.
8471 * lib/regexec.c (check_halt_node_context, check_dst_limits):
8472 (build_trtable, check_node_accept): Likewise.
8473 * lib/regex_internal.h: Include stdbool.h.
8475 Fix bugs uncovered when converting to bool.
8476 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
8477 failure instead of charging ahead blindly.
8478 * lib/regex_internal.c (register_state): Likewise.
8479 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
8480 for freeing internal storage.
8481 (group_nodes_into_DFA_states): Use unsigned int, not int, for
8482 bitset pieces used as boolean, to avoid undefined behavior
8483 on hosts that do int overflow checking.
8485 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
8487 * config/srclist.txt: Add glibc bugs 1285-1287.
8489 2005-09-01 Jim Meyering <jim@meyering.net>
8491 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
8492 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
8493 Require gl_STAT_MACROS, too.
8495 2005-09-01 Bruno Haible <bruno@clisp.org>
8497 * gnulib-tool (import): In the first-use case, provide defaults.
8499 2005-09-01 Bruno Haible <bruno@clisp.org>
8501 * gnulib-tool (func_import): Remove the .tmp files.
8503 2005-09-01 Bruno Haible <bruno@clisp.org>
8505 * gnulib-tool (func_import): Fix handling of symbolic links.
8507 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
8509 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
8510 old glibc regex code mishandles strings longer than 2**31 bytes.
8511 This patch fixes this when the regex code is used in gnulib
8512 (i.e., outside glibc).
8514 This patch should not affect the use of the regex code inside
8515 glibc. No doubt this problem also needs to be handled for glibc
8516 as well, but the result will be an incompatible change to the
8517 glibc ABI, and the old ABI will have to be supported too. That
8518 can be the the subject for another patch.
8520 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
8521 governing whether the rest of this patch is active. By default,
8522 the macro is disabled and the patch has no effect.
8523 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
8524 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
8525 (struct re_pattern_buffer, re_search, re_search_2, re_match):
8526 (re_match_2, re_set_registers): Use the new types.
8527 * lib/regex_internal.h (Idx, re_hashval_t): New types.
8528 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
8530 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
8531 (re_string_context_at, bin_tree_t, re_dfastate_t):
8532 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
8533 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
8534 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
8535 (re_string_char_size_at, re_string_wchar_at):
8536 (re_string_elem_size_at):
8537 Use the new types and macros to port to 64-bit hosts.
8538 Use unsigned types for internal values, so that the code
8539 mostly works even for arrays larger than SSIZE_MAX.
8540 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
8541 (search_duplicated_node, calc_eclosure_iter, fetch_number):
8542 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
8543 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
8544 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
8545 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
8546 (calc_inveclosure, parse_dup_op, build_range_exp):
8547 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
8548 (fetch_number, create_token_tree, mark_opt_subexp):
8550 * lib/regex_internal.c (re_string_construct_common,
8551 create_ci_newstate):
8552 (create_cd_newstate, re_string_allocate, re_string_construct):
8553 (re_string_realloc_buffers, build_wcs_upper_buffer):
8554 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
8555 (re_string_reconstruct, re_string_peek_byte_case):
8556 (re_string_fetch_byte_case, re_string_context_at):
8557 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
8558 (re_node_set_init_copy, re_node_set_add_intersect):
8559 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
8560 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
8561 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
8562 (re_acquire_state, re_acquire_state_context, register_state):
8564 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
8565 search_cur_bkref_entry):
8566 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
8567 (re_search_internal, re_search_2_stub, re_search_stub)
8568 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
8569 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
8570 (update_cur_sifted_state, check_dst_limits):
8571 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
8572 (check_subexp_limits, sift_states_bkref, merge_state_array):
8573 (check_subexp_matching_top, get_subexp, get_subexp_sub):
8574 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
8575 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
8576 (expand_bkref_cache, check_node_accept_bytes):
8577 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
8578 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
8579 (acquire_init_state_context, check_halt_node_context):
8580 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
8581 (sift_states_backward, clean_state_log_if_needed):
8582 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
8583 (find_recover_state, transit_state_sb, transit_state_mb):
8584 (transit_state_bkref, build_trtable, match_ctx_clean):
8586 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
8587 to work around an assumption that REG_MISSING is negative.
8589 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
8590 (seek_collating_symbol_entry) [defined _LIBC]:
8591 (lookup_collation_sequence_value) [defined _LIBC]:
8592 (build_range_exp, build_collating_symbol) [defined _LIBC]:
8593 Use prototypes rather than old-style function definitions.
8594 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
8595 (transit_state_sb) [0]:
8596 (find_collation_sequence_value) [defined _LIBC]: Likewise.
8598 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
8601 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
8602 (optimize_subexps, lower_subexp):
8603 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
8604 since the signed shift might overflow. Use 1u<<31 instead.
8605 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
8607 * lib/regexec.c (check_dst_limits_calc_pos_1,
8608 check_subexp_matching_top): Likewise.
8610 * lib/regcomp.c (optimize_subexps, lower_subexp):
8611 Use CHAR_BIT rather than 8, for clarity.
8612 * lib/regexec.c (check_dst_limits_calc_pos_1):
8613 (check_subexp_matching_top): Likewise.
8614 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
8615 have to worry about portability issues when shifting it left.
8616 Remove no-longer-needed test for table_size > 0.
8617 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
8618 in a word, as the resulting behavior is undefined.
8619 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
8620 in one case, a <= should have been an <, and in another case the
8621 whole test was missing.
8622 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
8623 the standard name CHAR_BIT.
8624 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
8625 this is not true on one's complement and signed-magnitude hosts.
8627 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
8629 (struct re_dfa_t): Remove unused member states_alloc.
8630 * lib/regcomp.c (init_dfa): Don't initialize unused members.
8632 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
8634 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
8635 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
8636 and large-file glibc and in 32-bit large-file Solaris.
8638 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
8640 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
8641 lengths fit in regoff_t; this isn't true if regoff_t is the same
8643 * lib/regex.c (re_search_internal): 5th arg is LAST_START
8644 (= START + RANGE) instead of RANGE. This avoids overflow
8645 problems when regoff_t is the same width as size_t.
8646 All callers changed.
8647 (re_search_2_stub): Check for overflow when adding the
8648 sizes of the two strings.
8649 (re_search_stub): Check for overflow when adding START
8650 to RANGE; if it occurs, substitute the extreme value.
8652 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
8654 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
8656 2005-08-31 Jim Meyering <jim@meyering.net>
8658 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
8660 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
8661 (register_state): Likewise.
8662 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
8663 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
8664 (group_nodes_into_DFAstates): Likewise.
8666 2005-08-31 Jim Meyering <jim@meyering.net>
8668 * check-module: Add a FIXME comment.
8670 2005-08-31 Eric Blake <ebb9@byu.net>
8672 * modules/unistd-safer (Files): Add unistd--.h.
8673 * modules/stdio-safer (Files): Add stdio--.h.
8675 2005-08-31 Derek Price <derek@ximbiot.com>
8677 * lib/getdelim.c (getdelim): Return EOF on EOF.
8678 Reported by Larry Jones <lawrence.jones@ugs.com>.
8680 2005-08-31 Bruno Haible <bruno@clisp.org>
8682 Avoid unnecessary diffs in the generated lib/Makefile.am.
8683 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
8684 the generated files.
8685 (func_import): Don't set cmd.
8687 2005-08-31 Bruno Haible <bruno@clisp.org>
8689 * lib/strstr.c: Include <stddef.h>, for NULL.
8690 * lib/strcasestr.c: Likewise.
8691 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8693 2005-08-31 Bruno Haible <bruno@clisp.org>
8695 * gnulib-tool: New option --macro-prefix.
8696 (func_import): Use macro_prefix.
8697 (import): Handle option --macro-prefix.
8699 2005-08-31 Bruno Haible <bruno@clisp.org>
8701 * gnulib-tool (import): Rename most ac_* variables to cached_*.
8702 Also use new variables cached_lgpl, cached_libtool.
8704 2005-08-31 Bruno Haible <bruno@clisp.org>
8706 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
8707 always instantiating them.
8709 2005-08-31 Bruno Haible <bruno@clisp.org>
8711 * gnulib-tool (func_import): Read the previous cached settings
8712 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
8713 earlier added by gnulib but are now dropped. Warn when a gnulib file
8714 overwrites a non-gnulib file.
8716 2005-08-31 Bruno Haible <bruno@clisp.org>
8718 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
8719 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
8720 projects that don't keep autogenerated files in CVS. Put into
8721 actioncmd only the specified modules, not the transitive closure.
8723 2005-08-31 Bruno Haible <bruno@clisp.org>
8725 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
8726 Create directories that shall be filled.
8727 (import): Don't look for gl_* macros in configure.ac. Recurse across
8728 all directories containing a gnulib-cache.m4 files, if meaningful.
8730 2005-08-31 Bruno Haible <bruno@clisp.org>
8732 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
8733 (import): Set seen_libtool when we see gl_LIBTOOL.
8735 2005-08-31 Bruno Haible <bruno@clisp.org>
8737 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
8738 declaration macro definitions from generated gnulib.m4.
8740 2005-08-30 "Oskar Liljeblad" <oskar@osk.mine.nu>
8742 * lib/iconvme.h: Add prototype for iconv_alloc.
8744 2005-08-29 Simon Josefsson <jas@extundo.com>
8746 * lib/iconvme.c: Fix errno.
8748 2005-08-29 Bruno Haible <bruno@clisp.org>
8750 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
8751 that it works when the directory contains spaces.
8753 2005-08-29 Bruno Haible <bruno@clisp.org>
8755 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
8757 2005-08-29 Bruno Haible <bruno@clisp.org>
8759 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
8762 2005-08-29 Bruno Haible <bruno@clisp.org>
8763 and Stepan Kasal <kasal@ucw.cz>
8765 * check-module: If more parameters are given, check each of them
8766 separately; add more exceptions, as noted by Jim Meyering.
8767 (check_module): New procedure.
8768 (%exempt_header): Now contains all exceptions.
8770 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
8772 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
8774 2005-08-29 "Oskar Liljeblad" <oskar@osk.mine.nu>
8776 * lib/iconvme.c: Split iconv_string into iconv_alloc.
8778 2005-08-28 Bruno Haible <bruno@clisp.org>
8780 * m4/gnulib-tool.m4: New file.
8782 2005-08-27 Jim Meyering <jim@meyering.net>
8784 * modules/unistd-safer (Files): Add pipe-safer.c.
8785 * modules/fcntl-safer (Files): Add creat-safer.c.
8787 2005-08-27 Jim Meyering <jim@meyering.net>
8789 * m4/stdlib-safer.m4: New file. From coreutils.
8790 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
8791 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
8792 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
8793 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
8794 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
8796 2005-08-27 Jim Meyering <jim@meyering.net>
8798 * lib/fopen-safer.c: Merge minor changes from coreutils.
8799 * lib/dup-safer.c: Likewise.
8800 * lib/fd-safer.c: Likewise.
8802 Merge from coreutils.
8803 * lib/stdio--.h: New file.
8804 * lib/stdlib--.h: New file.
8805 * lib/mkstemp-safer.c: New file.
8807 GNU tar needs these.
8808 * lib/pipe-safer.c: New file.
8809 * lib/creat-safer.c: New file.
8810 * lib/fcntl--.h (creat): Define to creat_safer.
8811 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
8812 * lib/unistd--.h (pipe): Define to pipe_safer.
8813 * lib/unistd-safer.h: Declare pipe_safer.
8815 2005-08-26 Simon Josefsson <jas@extundo.com>
8817 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
8818 Haible <bruno@clisp.org>.
8820 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
8822 * lib/regex_internal.h: Remove all references to
8823 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
8825 (bitset_not, bitset_merge, bitset_not_merge):
8826 (bitset_mask, re_string_allocate, re_string_construct):
8827 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
8828 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
8829 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
8830 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
8831 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
8832 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
8833 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
8834 (re_acquire_state_context):
8835 Remove unnecessary forward decls.
8836 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
8837 Put __attribute at function definition,
8838 now that the function decl has been removed.
8839 * lib/regex_internal.c (re_string_peek_byte_case):
8840 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
8843 2005-08-25 Stepan Kasal <kasal@ucw.cz>
8845 * m4/regex.m4: Add AC_PREREQ(2.50).
8846 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
8848 2005-08-25 Simon Josefsson <jas@extundo.com>
8850 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
8853 2005-08-25 Simon Josefsson <jas@extundo.com>
8855 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
8856 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
8857 GLIBC specific code.
8859 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8861 Make regex safe for g++. This fixes one real bug (an "err"
8862 that should have been "*err"). g++ problem reported by
8864 * lib/regex_internal.h (re_calloc): New macro, consistent with
8865 re_malloc etc. All callers of calloc changed to use re_calloc.
8866 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
8867 not int. All callers changed.
8868 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
8869 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
8870 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
8871 (find_recover_state): Change "err" to "*err"; this fixes what
8872 appears to be a real bug.
8873 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
8876 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8878 * modules/regex (Depends-on): Add malloc, since the code
8879 assumes that !malloc(0) means failure.
8881 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8883 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
8885 alloca modernization/simplification for regex.
8886 * lib/regex.c: Remove portability cruft for alloca. This no longer
8887 needs to be at the start of the file, and can be moved into
8888 regex_internal.h and simplified.
8889 * lib/regex_internal.h: Include <alloca.h>.
8890 (__libc_use_alloca) [!defined _LIBC]: New macro.
8891 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
8892 now works outside glibc.
8894 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8896 * config/srclist.txt: Add glibc bugs 1241, 1245.
8898 2005-08-25 Jim Meyering <jim@meyering.net>
8900 * lib/open-safer.c: Include <config.h>.
8901 Otherwise, we'd lose LARGEFILE support in any file using
8904 2005-08-25 Bruno Haible <bruno@clisp.org>
8906 * m4/minmax.m4: Require autoconf 2.52.
8907 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
8908 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
8909 alternatives of translit over the alphabet.
8910 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
8912 2005-08-24 Simon Josefsson <jas@extundo.com>
8914 * tests/test-getpass.c: New file.
8916 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
8918 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
8919 for GNU regex features.
8921 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
8923 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
8924 * lib/regex.h (regerror): Likewise.
8926 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
8927 requires this. (The code never needed it.)
8929 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
8930 All uses of recently-renamed identifiers changed to use the new,
8931 POSIX-compliant names. The code will build and run just fine
8932 without these changes, but it's better to eat our own dog food
8933 and use the standard-conforming names.
8935 * lib/regex.h: Fix a multitude of POSIX name space violations.
8936 These changes have an effect only for programs that define
8937 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
8938 do not change anything for programs compiled in the normal way.
8939 Also, there is no effect on the ABI.
8941 (_REGEX_SOURCE): New macro.
8942 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
8943 defined and _GNU_SOURCE is not; this fixes a name space violation.
8945 Rename the following macros to obey POSIX requirements.
8946 The old names are still visible as macros if _REGEX_SOURCE is defined.
8947 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
8948 RE_BACKSLASH_ESCAPE_IN_LISTS.
8949 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
8950 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
8951 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
8952 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
8953 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
8954 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
8955 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
8956 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
8957 (REG_INTERVALS): renamed from RE_INTERVALS.
8958 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
8959 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
8960 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
8961 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
8962 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
8963 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
8964 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
8965 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
8966 RE_UNMATCHED_RIGHT_PAREN_ORD.
8967 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
8968 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
8969 (REG_DEBUG): renamed from RE_DEBUG.
8970 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
8971 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
8972 unusual, since we can't clash with the POSIX REG_ICASE.
8973 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
8974 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
8975 (REG_NO_SUB): renamed from RE_NO_SUB.
8976 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
8977 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
8978 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
8979 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
8980 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
8981 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
8982 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
8983 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
8984 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
8985 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
8986 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
8987 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
8988 RE_SYNTAX_POSIX_MINIMAL_BASIC.
8989 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
8990 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
8991 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
8992 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
8993 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
8994 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
8995 (REG_FIXED): Renamed from REGS_FIXED.
8996 (REG_NREGS): Renamed from RE_NREGS.
8998 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
8999 of other REG_* macros, since POSIX says the user is allowed to
9000 #undef these macros selectively.
9002 (reg_errcode_t): Update comment stating what other tables need
9005 Rename the following enum values to obey POSIX requirements.
9006 The old names are still visible as macros.
9007 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
9008 is not defined, since GNU is supposed to be a superset of POSIX as
9009 much as possible, and since we want reg_errcode_t to be a signed
9010 type for implementation consistency.
9011 (_REG_NOERROR): Renamed from REG_NOERROR.
9012 (_REG_NOMATCH): Renamed from REG_NOMATCH.
9013 (_REG_BADPAT): Renamed from REG_BADPAT.
9014 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
9015 (_REG_ECTYPE): Renamed from REG_ECTYPE.
9016 (_REG_EESCAPE): Renamed from REG_EESCAPE.
9017 (_REG_ESUBREG): Renamed from REG_ESUBREG.
9018 (_REG_EBRACK): Renamed from REG_EBRACK.
9019 (_REG_EPAREN): Renamed from REG_EPAREN.
9020 (_REG_EBRACE): Renamed from REG_EBRACE.
9021 (_REG_BADBR): Renamed from REG_BADBR.
9022 (_REG_ERANGE): Renamed from REG_ERANGE.
9023 (_REG_ESPACE): Renamed from REG_ESPACE.
9024 (_REG_BADRPT): Renamed from REG_BADRPT.
9025 (_REG_EEND): Renamed from REG_EEND.
9026 (_REG_ESIZE): Renamed from REG_ESIZE.
9027 (_REG_ERPAREN): Renamed from REG_ERPAREN.
9028 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
9029 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
9030 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
9031 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
9033 (_REG_RE_NAME, _REG_RM_NAME): New macros.
9034 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
9035 changed. But support the old name if the new one is not defined
9036 and if _REGEX_SOURCE.
9038 Change the following member names in struct re_pattern_buffer.
9039 The old names are still supported if !_REGEX_SOURCE.
9040 The new names are always supported, regardless of _REGEX_SOURCE.
9041 (re_buffer): Renamed from buffer.
9042 (re_allocated): Renamed from allocated.
9043 (re_used): Renamed from used.
9044 (re_syntax): Renamed from syntax.
9045 (re_fastmap): Renamed from fastmap.
9046 (re_translate): Renamed from translate.
9047 (re_can_be_null): Renamed from can_be_null.
9048 (re_regs_allocated): Renamed from regs_allocated.
9049 (re_fastmap_accurate): Renamed from fastmap_accurate.
9050 (re_no_sub): Renamed from no_sub.
9051 (re_not_bol): Renamed from not_bol.
9052 (re_not_eol): Renamed from not_eol.
9053 (re_newline_anchor): Renamed from newline_anchor.
9055 Change the following member names in struct re_registers.
9056 The old names are still supported if !_REGEX_SOURCE.
9057 The new names are always supported, regardless of _REGEX_SOURCE.
9058 (rm_num_regs): Renamed from num_regs.
9059 (rm_start): Renamed from start.
9060 (rm_end): Renamed from end.
9062 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
9063 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
9064 Prepend __ to parameter names.
9066 Undo yesterday's changes.
9068 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
9070 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
9071 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
9074 2005-08-24 Jim Meyering <jim@meyering.net>
9076 Sync from coreutils.
9077 * m4/fcntl-safer.m4: New file.
9079 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
9080 and object files for this module.
9082 2005-08-24 Jim Meyering <jim@meyering.net>
9084 Sync from coreutils.
9085 * lib/fcntl--.h, fcntl-safer.h, open-safer.c: New files.
9087 2005-08-24 Jim Meyering <jim@meyering.net>
9089 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
9090 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
9092 2005-08-24 Jim Meyering <jim@meyering.net>
9094 * modules/fcntl-safer: New module.
9095 * modules/fts (Depends-on): Add fcntl-safer.
9096 * MODULES.html.sh (File descriptor based Input/Output):
9099 2005-08-24 Bruno Haible <bruno@clisp.org>
9101 Support for unit test modules.
9102 * modules/README: Mention tests modules.
9103 * modules/TEMPLATE-TESTS: New file.
9104 * gnulib-tool: New options --extract-tests-module, --with-tests and
9105 --tests-base (unused for the moment).
9106 (testsbase, inctests): New variables.
9107 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
9108 (func_verify_module): Exclude TEMPLATE-TESTS.
9109 (func_verify_nontests_module, func_verify_tests_module): New functions.
9110 (func_get_dependencies): Add implicit dependency for tests modules.
9111 (func_get_tests_module): New function.
9112 (func_modules_transitive_closure): When --with-tests was specified,
9113 include the unit tests as well, unless explicitly avoided.
9114 (func_emit_lib_Makefile_am): Ignore the tests modules here.
9115 (func_emit_tests_Makefile_am): New function.
9116 (func_create_testdir): When --with-tests was specified, emit a
9118 * MODULES.html.sh (Future developments): Update.
9120 2005-08-24 Bruno Haible <bruno@clisp.org>
9122 * modules/tls-tests: New file.
9123 * tests/test-tls.c: New file, from GNU gettext.
9125 2005-08-24 Bruno Haible <bruno@clisp.org>
9127 * modules/lock-tests: New file.
9128 * tests/test-lock.c: New file, from GNU gettext.
9130 2005-08-24 Bruno Haible <bruno@clisp.org>
9132 * lib/lock.h: Add multiple inclusion guard.
9133 * lib/tls.h: Add multiple inclusion guard.
9135 2005-08-24 Bruno Haible <bruno@clisp.org>
9137 * gnulib-tool: Add support for the --aux-dir option to
9138 --create-testdir, --create-megatestdir, --test, --megatest.
9139 (func_create_testdir, func_create_megatestdir): Optionally emit a
9140 AC_CONFIG_AUX_DIR directive.
9141 (create-testdir, create-megatestdir, test, megatest): Provide a
9142 default value for $auxdir.
9144 2005-08-24 Bruno Haible <bruno@clisp.org>
9146 * gnulib-tool (import): Use compound statement instead of subshell
9149 2005-08-24 Bruno Haible <bruno@clisp.org>
9151 * gnulib-tool (import): Change --aux-dir default to "build-aux".
9153 2005-08-24 Bruno Haible <bruno@clisp.org>
9155 * gnulib-tool (func_version): Update.
9157 2005-08-24 Bruno Haible <bruno@clisp.org>
9159 * gnulib-tool (func_import, func_create_testdir,
9160 func_create_megatestdir): Quote all autoconf macro arguments.
9162 2005-08-24 Bruno Haible <bruno@clisp.org>
9164 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
9165 option --force, because --force causes the aclocal.m4 of each
9166 subdirectory to be newer than the corresponding config.h.in.
9168 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
9170 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
9171 All contents moved to gl_REGEX.
9172 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
9173 assume that it does.
9175 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
9177 * lib/regex.h (REG_NOSYS)
9178 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
9179 Define, since POSIX requires it as of 2001.
9181 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
9182 New private symbol, used to keep the enum signed in all cases.
9183 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
9185 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
9187 * lib/regex_internal.c (re_string_skip_chars, register_state):
9189 Remove forward decls; no longer needed now that we use prototypes.
9190 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
9191 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
9192 (clean_state_log_if_needed): Likewise.
9194 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
9196 * config/srclist.txt: Add glibc bugs 1231-1233.
9198 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
9200 Fix problems reported by Sam Steingold in
9201 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
9202 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
9203 assumed that reg_errcode_t is a signed type, which is not
9204 necessarily true if _XOPEN_SOURCE is not defined.
9205 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
9206 since some compilers warn about it otherwise.
9208 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
9210 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
9211 (init_word_char, create_initial_state, duplicate_node_closure):
9212 (fetch_token, peek_token_bracket, build_range_exp):
9213 (build_collating_symbol): Remove forward decls; no longer needed
9214 now that we use prototypes.
9217 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
9218 (re_compile_fastmap_iter, regcomp, regerror, regfree):
9219 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
9220 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
9221 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
9222 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
9223 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
9224 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
9225 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
9226 (build_range_exp, build_collating_symbol, parse_bracket_exp):
9227 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
9228 (build_charclass, build_charclass_op, fetch_number, create_tree):
9229 (create_token_tree, mark_opt_subexp, duplicate_tree):
9230 Use prototypes rather than old-style definitions.
9232 * lib/regex_internal.c:
9233 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
9234 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
9235 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
9236 (re_string_reconstruct, re_string_peek_byte_case):
9237 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
9238 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
9239 (re_node_set_init_copy, re_node_set_add_intersect):
9240 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
9241 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
9242 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
9243 (re_acquire_state, re_acquire_state_context, register_state):
9244 (create_ci_newstate, create_cd_newstate, free_state):
9246 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
9248 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
9249 (re_search_internal, prune_impossible_nodes):
9250 (acquire_init_state_context, check_matching, static):
9251 (check_halt_node_context, check_halt_state_context, proceed_next_node):
9252 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
9253 (update_regs, sift_states_backward, build_sifted_states):
9254 (clean_state_log_if_needed, merge_state_array):
9255 (update_cur_sifted_state, add_epsilon_src_nodes):
9256 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
9257 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
9258 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
9259 (find_recover_state, check_subexp_matching_top, transit_state_mb):
9260 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
9261 (check_arrival, check_arrival_add_next_nodes):
9262 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
9263 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
9264 (check_node_accept_bytes, check_node_accept, extend_buffers):
9265 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
9266 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
9270 * lib/regex_internal.h:
9271 (re_string_allocate, re_string_construct, re_string_reconstruct):
9272 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
9273 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
9274 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
9275 (re_string_context_at, re_string_peek_byte_case):
9276 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
9277 is defined, since we now use prototypes always.
9279 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
9280 C89 or better. All uses removed.
9282 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
9284 * config/srclist.txt: Add glibc bugs 1220-1227.
9286 2005-08-20 Jim Meyering <jim@meyering.net>
9288 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
9289 of unused local, dfa.
9291 2005-08-20 Bruno Haible <bruno@clisp.org>
9293 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
9295 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
9297 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
9298 (re_node_set_insert_last, re_dfa_add_node):
9299 Rename local variables to avoid GCC shadowing warnings.
9301 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
9303 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
9304 [defined lint]: Suppress bogus uninitialized-variable warnings.
9306 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
9307 and let the caller return REG_ESPACE if out of space. This
9308 removes an uninitialied-variable warning with GCC 4.0.1, and also
9309 avoids taking the address of a local variable. All callers
9312 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
9314 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
9315 $LIBCSRC/posix/regexec.c.
9316 Add glibc bug 1217 for regcomp.c.
9318 2005-08-19 Jim Meyering <jim@meyering.net>
9320 * lib/regexec.c (proceed_next_node): Redo local variables to
9321 avoid GCC shadowing warnings.
9323 2005-08-18 Bruno Haible <bruno@clisp.org>
9325 * lib/strstr.c (strstr): Fix return value in multibyte case.
9326 * lib/strcasestr.c (strcasestr): Likewise.
9328 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
9330 * lib/regex.h: Remove useless space-before-tab. From coreutils.
9332 2005-08-17 Jim Meyering <jim@meyering.net>
9334 Make the %s format (seconds since the epoch) work for a negative
9335 number and when used with a zero-padded field width, e.g. %015s.
9337 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
9338 label so that it precedes the code to set `digits'. Otherwise,
9339 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
9340 print `00-22'. Now, it prints `-0022', as it should.
9342 2005-08-17 Bruno Haible <bruno@clisp.org>
9344 * modules/strstr (Files): Add m4/mbrtowc.m4.
9345 (Depends-on): Add mbuiter.
9347 2005-08-17 Bruno Haible <bruno@clisp.org>
9349 * modules/strcasestr: New file.
9350 * MODULES.html.sh (String handling, based on ANSI C 89): Add
9353 2005-08-17 Bruno Haible <bruno@clisp.org>
9355 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
9357 2005-08-17 Bruno Haible <bruno@clisp.org>
9359 * modules/mbuiter: New file.
9360 * MODULES.html.sh (Extended multibyte and wide character utilities):
9363 2005-08-17 Bruno Haible <bruno@clisp.org>
9365 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
9366 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
9368 2005-08-17 Bruno Haible <bruno@clisp.org>
9370 * m4/strcasestr.m4: New file.
9372 2005-08-17 Bruno Haible <bruno@clisp.org>
9374 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
9375 * lib/strstr.c: Completely rewritten, with multibyte locale support.
9377 2005-08-17 Bruno Haible <bruno@clisp.org>
9379 * lib/strcasestr.h: New file.
9380 * lib/strcasestr.c: New file.
9382 2005-08-17 Bruno Haible <bruno@clisp.org>
9384 * lib/strcasecmp.c: Use mbuiter.h.
9386 2005-08-17 Bruno Haible <bruno@clisp.org>
9388 * lib/mbuiter.h: New file.
9390 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
9392 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
9393 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
9394 and gl_GETOPT are both invoked via different paths (as happens
9395 with GNU tar CVS because it uses both argp and getopt), the former
9398 2005-08-16 Bruno Haible <bruno@clisp.org>
9400 * modules/tls: New file.
9401 * MODULES.html.sh (Multithreading): Add tls.
9403 2005-08-16 Bruno Haible <bruno@clisp.org>
9405 * modules/strnlen1: New file.
9406 * MODULES.html.sh (String handling): Add strnlen1.
9408 2005-08-16 Bruno Haible <bruno@clisp.org>
9410 * modules/strcase (Files): Add m4/mbrtowc.m4.
9411 (Depends-on): Add strnlen1, mbchar.
9413 2005-08-16 Bruno Haible <bruno@clisp.org>
9415 * modules/mbiter: New file.
9416 * MODULES.html.sh (Extended multibyte and wide character utilities):
9419 2005-08-16 Bruno Haible <bruno@clisp.org>
9421 * modules/mbfile: New file.
9422 * MODULES.html.sh (Extended multibyte and wide character utilities):
9425 2005-08-16 Bruno Haible <bruno@clisp.org>
9427 * modules/mbchar: New file.
9428 * MODULES.html.sh (Extended multibyte and wide character utilities):
9431 2005-08-16 Bruno Haible <bruno@clisp.org>
9433 * m4/tls.m4: New file, from GNU gettext.
9435 2005-08-16 Bruno Haible <bruno@clisp.org>
9437 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
9439 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
9441 2005-08-16 Bruno Haible <bruno@clisp.org>
9443 * m4/mbiter.m4: New file.
9445 2005-08-16 Bruno Haible <bruno@clisp.org>
9447 * m4/mbfile.m4: New file.
9449 2005-08-16 Bruno Haible <bruno@clisp.org>
9451 * m4/mbchar.m4: New file.
9453 2005-08-16 Bruno Haible <bruno@clisp.org>
9455 * lib/tls.h: New file, from GNU gettext.
9456 * lib/tls.c: New file, from GNU gettext.
9458 2005-08-16 Bruno Haible <bruno@clisp.org>
9460 * lib/strnlen1.h: New file.
9461 * lib/strnlen1.c: New file.
9463 2005-08-16 Bruno Haible <bruno@clisp.org>
9465 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
9467 (mbi_avail, mbi_advance): Let the iteration end before the terminating
9468 NUL byte, not after it.
9470 2005-08-16 Bruno Haible <bruno@clisp.org>
9472 * lib/strcase.h (strcasecmp): Add note in comments.
9473 * lib/strncasecmp.c: Use code from strcasecmp.c.
9474 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
9475 (strcasecmp): Work correctly in multibyte locales.
9477 2005-08-16 Bruno Haible <bruno@clisp.org>
9479 * lib/mbiter.h: New file.
9481 2005-08-16 Bruno Haible <bruno@clisp.org>
9483 * lib/mbfile.h: New file.
9485 2005-08-16 Bruno Haible <bruno@clisp.org>
9487 * lib/mbchar.h: New file.
9488 * lib/mbchar.c: New file.
9490 2005-08-16 Bruno Haible <bruno@clisp.org>
9492 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
9493 the valid ones. Makes the comparison operations transitive:
9494 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
9495 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
9497 2005-08-15 Simon Josefsson <jas@extundo.com>
9499 * modules/ssize_t (License): Change to 'unlimited'.
9501 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
9503 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
9505 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
9506 Add comments for each pending glibc patch.
9508 2005-08-15 Bruno Haible <bruno@clisp.org>
9510 * lib/regex.h (__restrict_arr): Don't define to __restrict if
9511 __cplusplus is defined.
9513 2005-08-14 Jim Meyering <jim@meyering.net>
9515 Sync from coreutils.
9517 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
9518 Use the hash-table-based cycle-detection code not just when
9519 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
9520 Reported by James Youngman in
9521 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
9522 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
9523 FTS_TIGHT_CYCLE_CHECK.
9524 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
9525 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
9527 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
9528 * lib/fts.c (fd_safer): Remove decl.
9529 Include fcntl--.h rather than unistd-safer.h
9530 (fts_safe_changedir): Don't call fd_safer; no longer needed
9531 now that we include fcntl--.h.
9533 2005-08-12 Simon Josefsson <jas@extundo.com>
9535 * modules/getndelim2: Use ssize_t module.
9536 * modules/getnline: Likewise.
9537 * modules/safe-read: Likewise.
9538 * modules/xreadlink: Likewise.
9540 * modules/ssize_t: New file.
9542 2005-08-12 Simon Josefsson <jas@extundo.com>
9544 * m4/readline.m4: Look for termcap, curses or ncurses if required.
9546 2005-08-12 Simon Josefsson <jas@extundo.com>
9548 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9551 2005-08-12 Simon Josefsson <jas@extundo.com>
9553 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
9554 readline, getdelim and check_version.
9555 (Support for systems lacking ISO C 99: Sizes of integer types):
9558 2005-08-12 Bruno Haible <bruno@clisp.org>
9560 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
9562 2005-08-11 Simon Josefsson <jas@extundo.com>
9564 * modules/readline: New file.
9566 * modules/strnlen (Files): Add strnlen.h.
9568 2005-08-11 Simon Josefsson <jas@extundo.com>
9570 * m4/readline.m4: New file.
9572 2005-08-11 Simon Josefsson <jas@extundo.com>
9574 * lib/readline.h, readline.c: New file.
9576 2005-08-11 Simon Josefsson <jas@extundo.com>
9578 * doc/gnulib.texi (Initial import, Finishing touches): Mention
9581 2005-08-11 Bruno Haible <bruno@clisp.org>
9583 * lib/strnlen.h (strnlen): Change parameter name to match comment.
9585 2005-08-10 Stepan Kasal <kasal@ucw.cz>
9587 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
9589 2005-08-10 Simon Josefsson <jas@extundo.com>
9591 * tests/test-iconvme.c: New file.
9593 2005-08-10 Simon Josefsson <jas@extundo.com>
9595 * m4/strnlen.m4: New file.
9597 * m4/strndup.m4: Don't check for strnlen declaration, done in
9600 2005-08-10 Simon Josefsson <jas@extundo.com>
9602 * lib/strndup.c: Use strnlen.h.
9604 * lib/strnlen.h: New file.
9606 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
9610 2005-08-02 Simon Josefsson <jas@extundo.com>
9612 * modules/readline: New file.
9614 2005-08-02 Simon Josefsson <jas@extundo.com>
9616 * modules/getdelim: New file.
9618 * modules/getline: Rewrite, don't use getndelim2.
9620 2005-08-02 Simon Josefsson <jas@extundo.com>
9622 * m4/getline.m4: Separate out getdelim stuff into separate module.
9624 * m4/getdelim.m4: New file.
9626 2005-08-02 Simon Josefsson <jas@extundo.com>
9628 * lib/getline.h, getline.c: Rewrite.
9630 * lib/getdelim.h, getdelim.c: New files, ported from glibc.
9632 2005-07-31 Bruno Haible <bruno@clisp.org>
9634 * lib/lock.h (gl_lock_initializer): New macro.
9635 (gl_lock_define_initialized): Use it.
9636 (gl_rwlock_initializer): New macro.
9637 (gl_rwlock_define_initialized): Use it.
9638 (gl_recursive_lock_initializer): New macro.
9639 (gl_recursive_lock_define_initialized): Use it.
9641 2005-07-30 Karl Berry <karl@gnu.org>
9643 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
9644 Report from Ben Pfaff, regarding getopt.
9646 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
9648 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
9650 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
9651 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
9652 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
9653 (gl_GETOPT): Use the new macros. Most of the implementation
9654 is moved to the new macros. This is for programs like Emacs
9655 that don't want all the functionality of gl_GETOPT.
9657 2005-07-26 Bruno Haible <bruno@clisp.org>
9659 * m4/lock.m4: Update from GNU gettext.
9661 2005-07-26 Bruno Haible <bruno@clisp.org>
9663 * lib/lock.h: Update from GNU gettext.
9664 * lib/lock.c: Update from GNU gettext.
9666 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
9668 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
9669 obsolescent AC_TRY_RUN. Include the default includes files, for
9672 2005-07-24 Bruno Haible <bruno@clisp.org>
9674 * modules/visibility: New file.
9675 * MODULES.html.sh (Misc): Add visibility.
9677 2005-07-24 Bruno Haible <bruno@clisp.org>
9679 * m4/visibility.m4: New file.
9681 2005-07-24 Bruno Haible <bruno@clisp.org>
9683 * doc/visibility.texi: New file.
9685 2005-07-22 Bruno Haible <bruno@clisp.org>
9687 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
9688 $(ALLOCA_H), redundant through BUILT_SOURCES.
9689 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
9690 redundant through BUILT_SOURCES.
9691 * modules/byteswap (Makefile.am): Remove explicit dependency on
9692 $(BYTESWAP_H), redundant through BUILT_SOURCES.
9693 * modules/fnmatch (Makefile.am): Remove explicit dependency on
9694 $(FNMATCH_H), redundant through BUILT_SOURCES.
9695 * modules/getopt (Makefile.am): Remove explicit dependency on
9696 $(GETOPT_H), redundant through BUILT_SOURCES.
9697 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
9698 redundant through BUILT_SOURCES.
9699 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
9700 redundant through BUILT_SOURCES.
9701 * modules/stdbool (Makefile.am): Remove explicit dependency on
9702 $(STDBOOL_H), redundant through BUILT_SOURCES.
9703 * modules/stdint (Makefile.am): Remove explicit dependency on
9704 $(STDINT_H), redundant through BUILT_SOURCES.
9705 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
9706 Remove explicit dependency on $(SYSEXITS_H).
9707 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
9709 2005-07-18 Simon Josefsson <jas@extundo.com>
9711 * lib/check-version.c (check_version): Accept identical versions too.
9713 2005-07-18 Bruno Haible <bruno@clisp.org>
9715 * modules/lock: New file.
9716 * MODULES.html.sh (Multithreading): New section.
9718 2005-07-18 Bruno Haible <bruno@clisp.org>
9720 * m4/lock.m4: New file, from GNU gettext.
9722 2005-07-18 Bruno Haible <bruno@clisp.org>
9724 * lib/lock.h: New file, from GNU gettext.
9725 * lib/lock.c: New file, from GNU gettext.
9727 2005-07-18 Bruno Haible <bruno@clisp.org>
9729 * lib/lock.h (gl_once_t): New type.
9730 (gl_once_define, gl_once): New macros.
9731 * lib/lock.c (fresh_once): New variable.
9732 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
9735 2005-07-16 Simon Josefsson <jas@extundo.com>
9737 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
9738 workaround, suggested by Bruno.
9740 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
9742 * modules/xalloc (Depends-on): Add xalloc-die.
9743 * modules/xvasprintf (Depends-on): Add xalloc-die.
9745 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
9747 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
9748 with a minor change.
9750 2005-07-15 Bruno Haible <bruno@clisp.org>
9752 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
9753 When using lib/poll.c, define poll as rpl_poll.
9755 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
9757 * modules/argp (Depends-on): Remove unlocked-io.
9759 2005-07-14 Derek Price <derek@ximbiot.com>
9761 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
9762 for glob symlink bug.
9764 2005-07-14 Bruno Haible <bruno@clisp.org>
9766 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
9767 Instead, test for *_unlocked function declarations directly.
9769 2005-07-11 Simon Josefsson <jas@extundo.com>
9771 * modules/size_max: New file.
9773 * modules/xsize: Depend on size_max module for size_max.m4.
9775 2005-07-11 Simon Josefsson <jas@extundo.com>
9777 * lib/size_max.h: New file.
9779 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
9781 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
9782 copyright symbol and the year.
9783 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
9784 (version_etc_va): Use parameterized copyright notice.
9785 Reword to conform to the current GNU coding standards.
9787 2005-07-11 Karl Berry <karl@gnu.org>
9789 * doc/gnulib.texi (Quoting): new node.
9790 (Initial import): more info, from Patrice.
9792 2005-07-11 Bruno Haible <bruno@clisp.org>
9794 * gnulib-tool (func_usage): Document option --avoid.
9795 (Command line options): Handle --avoid.
9796 (func_acceptable): New function.
9797 (func_modules_transitive_closure): Use it.
9799 2005-07-11 Bruno Haible <bruno@clisp.org>
9801 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
9802 Reported by Jim Meyering.
9804 2005-07-10 Bruno Haible <bruno@clisp.org>
9806 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
9807 Needed when size_t is smaller than 'unsigned int'.
9808 Reported by Paul Eggert.
9810 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
9812 * modules/argp (Depends-on): Add unlocked-io
9814 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
9816 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
9819 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
9821 * config/srclist.txt: Comment out regcomp.c, since we have a porting
9824 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
9825 and Paul Eggert <eggert@cs.ucla.edu>
9827 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
9828 in wint_t, not wchar_t. Remove now-unnecessary cast.
9830 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9832 * modules/regex (Files): Add lib/regex_internal.c,
9833 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
9834 (Depends-on): Add extensions.
9835 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
9837 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9839 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
9841 * m4/same.m4 (gl_SAME): Likewise.
9842 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
9844 * m4/regex.m4: Adjust to new libc regex implementation.
9845 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
9846 all the .c and .h parts of (the new) regex.
9847 Quote the m4 stuff better.
9848 Check for RE_ICASE bug of old gnulib.
9849 Check for REG_STARTEND of recent libc.
9850 Rename local variables from jm_* to gl_*.
9851 Quote operand of "test -f".
9852 Say "recent enough" version of libc, not "version 2".
9853 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
9854 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
9855 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
9856 Remove check for btowc, isascii.
9857 Require AM_LANGINFO_CODESET.
9859 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9861 * lib/regex.c, regex.h: Sync from libc.
9862 * lib/regcomp.c, regexec_internal.c, regex_internal.h, regexec.c:
9863 New files, synced from libc, except that regex_internal.h
9864 currently has a small porting fix.
9866 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9868 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
9869 regex_internal.c, regexec.c.
9870 Add regex_internal.h too, but as a comment, since the libc version
9871 is currently broken in gnulib mode.
9873 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
9875 Support programs like Emacs that use gnulib but not gettext.
9876 * MODULES.html.sh (Internationalization functions): Add gettext-h.
9877 * modules/gettext-h: New file.
9878 * modules/gettext (Files): Remove lib/gettext.h.
9879 (Depends-on): Add gettext-h.
9880 (Makefile.am): Remove lib_SOURCES.
9881 * modules/argmatch, modules/c-stack, modules/closeout:
9882 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
9883 * modules/execute, modules/file-type, modules/getaddrinfo:
9884 * modules/getopt, modules/human, modules/javacomp:
9885 * modules/javaexec, modules/mkdir-p, modules/obstack:
9886 * modules/openat, modules/pagealign_alloc, modules/pipe:
9887 * modules/quotearg, modules/regex, modules/rpmatch:
9888 * modules/unicodeio, modules/userspec, modules/version-etc:
9889 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
9891 Depend on gettext-h, not gettext.
9893 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
9895 * gnulib-tool (func_import): Add support for 'public domain' license.
9896 * modules/alloca, modules/atexit, modules/memmove:
9897 Now public domain, not GPL.
9898 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
9899 * modules/realloc, modules/strerror, modules/strtod:
9902 2005-07-05 Bruno Haible <bruno@clisp.org>
9904 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
9905 autoconf CVS. Needed for mingw.
9907 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
9909 Remove the dependency of the strftime module on the tzset module.
9910 * modules/strftime (Depends-on): Remove dependency on tzset.
9912 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
9914 Remove the dependency of the strftime module on the tzset module.
9915 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
9916 gl_FUNC_TZSET_CLOBBER.
9918 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
9920 Remove the dependency of the strftime module on the tzset module.
9921 * lib/strftime.c (my_strftime)
9922 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
9923 Copy the input structure, to work around some of the bug with
9924 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
9925 Solaris releases, you should also use the tzset module, but we won't
9926 require it as a dependency any more since we don't want LGPLed code
9927 to depend on GPLed code.
9929 2005-07-02 Jim Meyering <jim@meyering.net>
9931 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
9932 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
9933 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
9934 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
9936 2005-07-02 Jim Meyering <jim@meyering.net>
9938 * lib/backupfile.c (backup_args): Change a `0' to NULL.
9940 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
9942 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
9943 declares only 'struct timespec;' (!).
9945 2005-07-01 Jim Meyering <jim@meyering.net>
9947 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
9948 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
9949 * lib/save-cwd.c, tempname.c:
9950 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
9951 and don't include <sys/file.h>).
9953 2005-06-29 Jim Meyering <jim@meyering.net>
9955 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
9956 type name. Use the variable name instead.
9957 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
9960 2005-06-28 Simon Josefsson <jas@extundo.com>
9962 * modules/check-version (Files): Add check-version.m4.
9964 2005-06-28 Simon Josefsson <jas@extundo.com>
9966 * m4/check-version.m4: New file, suggested by Jim Meyering
9969 2005-06-28 Simon Josefsson <jas@extundo.com>
9971 * lib/check-version.h, check-version.c: New files.
9973 2005-06-28 Simon Josefsson <jas@extundo.com>
9975 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
9976 collision with global variable. Better indentation. Don't
9977 increment buffer pointer beyond buffer end. Based on comments
9978 from Paul Eggert <eggert@cs.ucla.edu>.
9980 * lib/base64.h: Indent.
9982 2005-06-28 Simon Josefsson <jas@extundo.com>
9984 * doc/gnulib.texi (Library version handling): New section.
9986 2005-06-28 Jim Meyering <jim@meyering.net>
9988 * check-module (find_included_lib_files): Hard-code another
9989 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
9990 but modules/fts-lgpl (correctly) does not list those files.
9992 * modules/canonicalize (Files): Add lib/pathmax.h.
9994 2005-06-25 Simon Josefsson <jas@extundo.com>
9996 * modules/check-version: New file.
9998 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
10000 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
10001 initializer of struct addrinfo, as an indication that we don't
10002 care how many members the structure has.
10004 2005-06-24 Derek Price <derek@ximbiot.com>
10005 and Bruno Haible <bruno@clisp.org>
10007 Remove stat module & update lstat.
10008 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
10009 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
10010 * m4/stat.m4: Remove this file.
10012 2005-06-24 Derek Price <derek@ximbiot.com>
10013 and Bruno Haible <bruno@clisp.org>
10015 Remove stat module & update lstat.
10016 * lib/stat.c: Remove this file...
10017 (slash_aware_lstat): ...moving this content and its support...
10018 * lib/lstat.c (rpl_lstat): ...into here.
10019 * lib/lstat.h: New file.
10021 2005-06-24 Derek Price <derek@ximbiot.com>
10022 and Bruno Haible <bruno@clisp.org>
10024 Remove stat module & update lstat.
10025 * config/srclist.txt (libc sources): Remove stat.
10027 2005-06-24 Derek Price <derek@ximbiot.com>
10028 and Bruno Haible <bruno@clisp.org>
10030 Remove stat module & update lstat.
10031 * MODULES.html.sh (stat): Remove.
10032 * MODULES.html: Regenerated.
10033 * modules/lstat (Description): Correct function name.
10034 (Files): Add "lstat.h".
10035 (Depends-on): Remove stat, add xalloc, stat-macros.
10036 * modules/stat: Remove this file.
10037 (Include): Add "lstat.h", remove <sys/stat.h>.
10039 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
10041 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
10042 (ranged_convert): Don't save conversion in a temporary struct.
10043 This causes a warning with GCC 4.0.0, and anyway in the typical
10044 case it's not worth the extra 100 bytes or so of code.
10045 (ranged_convert, __mktime_internal): When calling a function via a
10046 pointer P, use P () rather than (*P) (), as we now assume C89 or
10049 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
10051 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
10052 "who -r" failed to give output. Problem reported by Tim Waugh.
10054 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
10055 (xcalloc): Use it to avoid needless tests.
10056 Problem reported by Jim Meyering.
10058 2005-06-20 Derek Price <derek@ximbiot.com>
10060 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
10061 unnecessary for Autoconfs > 2.59c.
10063 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10065 * lib/argp.h (__option_is_short): Check upper limit of
10066 __key. Isprint() requires its argument to have the value
10067 of an unsigned char or EOF.
10069 2005-06-16 Jim Meyering <jim@meyering.net>
10071 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
10072 when either N or S is zero.
10074 2005-06-16 Derek Price <derek@ximbiot.com>
10076 * m4/bison.m4: Declare YACC & YFLAGS precious.
10078 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
10080 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
10081 multibyte string or pattern, fall back on unibyte matching.
10082 Problem reported by James Youngman.
10084 2005-06-08 Bruno Haible <bruno@clisp.org>
10086 * modules/csharpcomp: New file.
10087 * MODULES.html.sh (C#): Add csharpcomp.
10089 2005-06-08 Bruno Haible <bruno@clisp.org>
10091 * m4/csharpcomp.m4: New file, from GNU gettext.
10093 2005-06-08 Bruno Haible <bruno@clisp.org>
10095 * lib/csharpcomp.h: New file, from GNU gettext.
10096 * lib/csharpcomp.c: New file, from GNU gettext.
10097 * lib/csharpcomp.sh.in: New file, from GNU gettext.
10099 2005-06-08 Bruno Haible <bruno@clisp.org>
10101 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
10104 2005-06-07 Derek Price <derek@ximbiot.com>
10107 * lib/glob_.h: Indent nested #ifdef.
10109 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
10111 Sync from coreutils.
10112 Use "file name" when talking about file names, instead of "filename"
10113 or "path", as per the GNU coding standards.
10114 * lib/mkdir-p.c: Renamed from makepath.c.
10115 (make_dir_parents): Renamed from make_path. All callers changed.
10116 * lib/mkdir-p.h: Likewise. All includers changed.
10117 * lib/filenamecat.c: Renamed from path-concat.c.
10118 (file_name_concat): Renamed from path_concat. All callers changed.
10119 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
10120 * lib/filenamecat.h: Likewise. All includers changed.
10121 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
10122 in comments or local variable names.
10123 * lib/basename.c: Likewise.
10124 * lib/canonicalize.c, canonicalize.h: Likewise.
10125 * lib/dirname.c, dirname.h: Likewise.
10126 * lib/euidaccess.c: Likewise.
10127 * lib/exclude.c: Likewise
10128 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
10129 * lib/fsusage.c, fsuage.h: Likewise.
10130 * lib/fts.c, fts_.h: Likewise.
10131 * lib/getcwd.c: Likewise.
10132 * lib/getloadavg.c: Likewise.
10133 * lib/mkstemp.c: Likewise.
10134 * lib/mountlist.c, mountlist.h: Likewise.
10135 * lib/openat.c, openat.h: Likewise.
10136 * lib/readlink-stub.c: Likewise.
10137 * lib/readutmp.c, readutmp.h: Likewise.
10138 * lib/rename.c: Likewise.
10139 * lib/rmdir.c: Likewise.
10140 * lib/same.c: Likewise.
10141 * lib/savedir.c: Likewise.
10142 * lib/stripslash.c: Likewise.
10143 * lib/tempname.c: Likewise.
10144 * lib/xreadlink.c: Likewise.
10145 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
10147 * lib/exclude.h: Likewise.
10149 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
10150 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
10151 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
10152 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
10153 * lib/pathmax.h: Include <limits.h> unconditionally, since other
10154 files have been getting away with it for years (MORE/BSD 4.3
10156 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
10157 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
10159 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
10160 Define to 256, not 255, as per modern POSIX.
10162 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
10164 Sync from coreutils.
10165 Use "file name" when talking about file names, instead of "filename"
10166 or "path", as per the GNU coding standards.
10167 * MODULES.html.sh: mkdir-p renamed from makepath.
10168 filenamecat renamed from path-concat.
10169 * modules/filenamecat: Renamed from modules/path-concat.
10170 (Files): filenamecat.h and filenamecat.c renamed from
10171 path-concat.h and path-concat.c.
10172 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
10173 (Include): filenamecat.h, not path-concat.h.
10174 * modules/mkdir-p: Renamed from modules/makepath.
10175 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
10177 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
10178 (Include): mkdir-p.h, not makepath.h.
10180 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
10182 Sync from coreutils.
10183 * m4/mkdir-p.m4: Renamed from makepath.m4.
10184 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
10185 Rename files from makepath.c to mkdir-p.c, and from
10186 makepath.h to mkdir-p.h.
10187 * m4/filenamecat.m4: Renamed from path-concat.m4.
10188 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
10189 Rename files from path-concat.c to filenamecat.c,
10190 and from path-concat.h to filenamecat.h.
10191 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
10192 "file name" in local variables or comments.
10193 * m4/rename.m4: Likewise.
10195 2005-06-01 Bruno Haible <bruno@clisp.org>
10197 * modules/csharpexec: New file.
10198 * MODULES.html.sh (C#): New section.
10200 2005-06-01 Bruno Haible <bruno@clisp.org>
10202 * m4/csharp.m4: New file, from GNU gettext.
10203 * m4/csharpexec.m4: New file, from GNU gettext.
10205 2005-06-01 Bruno Haible <bruno@clisp.org>
10207 * lib/csharpexec.h: New file, from GNU gettext.
10208 * lib/csharpexec.c: New file, from GNU gettext.
10209 * lib/csharpexec.sh.in: New file, from GNU gettext.
10211 2005-05-31 Derek Price <derek@ximbiot.com>
10212 Paul Eggert <eggert@cs.ucla.edu>
10215 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
10217 2005-05-31 Derek Price <derek@ximbiot.com>
10218 Paul Eggert <eggert@cs.ucla.edu>
10221 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
10223 2005-05-29 Derek Price <derek@ximbiot.com>
10225 * config/srclist.txt (glob_.h, glob.c): Add these files.
10227 2005-05-29 Derek Price <derek@ximbiot.com>
10229 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
10230 * modules/glob: New file.
10231 * modules/getlogin_r: Add link to POSIX spec in description.
10233 2005-05-29 Derek Price <derek@ximbiot.com>
10234 Paul Eggert <eggert@cs.ucla.edu>
10236 * m4/glob.m4: New file.
10238 2005-05-29 Derek Price <derek@ximbiot.com>
10239 Paul Eggert <eggert@cs.ucla.edu>
10241 * lib/glob_.h, glob.c: New files.
10243 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
10245 * modules/fts (Files): Remove m4/inttypes-pri.m4.
10246 * modules/fts-lgpl (Depends-on): Remove gettext.
10248 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
10250 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
10251 and don't require gt_INTTYPES_PRI.
10253 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
10255 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
10257 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
10258 the configuration hassle isn't worth it.
10259 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
10260 (LONGEST_MODIFIER, PRIuMAX): Remove.
10262 2005-05-27 Bruno Haible <bruno@clisp.org>
10264 * lib/getlogin_r.h: Remove second include of <stddef.h>.
10266 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
10268 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
10269 _POSIX_PTHREAD_SEMANTICS for Solaris.
10271 2005-05-25 Derek Price <derek@ximbiot.com>
10273 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
10275 2005-05-25 Derek Price <derek@ximbiot.com>
10276 Paul Eggert <eggert@cs.ucla.edu>
10278 * modules/getlogin_r: New files.
10280 2005-05-25 Derek Price <derek@ximbiot.com>
10281 Paul Eggert <eggert@cs.ucla.edu>
10283 * m4/getlogin_r.m4: New files.
10285 2005-05-25 Derek Price <derek@ximbiot.com>
10286 Paul Eggert <eggert@cs.ucla.edu>
10288 * lib/getlogin_r.c, getlogin_r.h: New files.
10290 2005-05-25 Bruno Haible <bruno@clisp.org>
10291 Derek Price <derek@ximbiot.com>
10293 * lib/getlogin_r.h: Simplify API documentation.
10295 2005-05-23 Derek Price <derek@ximbiot.com>
10297 * modules/minmax (Files): Add m4/minmax.m4.
10298 (configure.ac): Add gl_MINMAX.
10300 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
10302 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
10303 so that unistd-safer.h (GPL'ed code) need not be included.
10305 2005-05-22 Bruno Haible <bruno@clisp.org>
10307 * m4/minmax.m4: New file.
10308 Based on a patch by Derek Price <derek@ximbiot.com>.
10310 2005-05-22 Bruno Haible <bruno@clisp.org>
10312 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
10313 (INT64_MIN): Fix definition.
10314 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
10316 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
10317 NEED_SIGNED_INT_TYPES.
10319 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
10320 HAVE_SYSTEM_INTTYPES.
10322 2005-05-22 Bruno Haible <bruno@clisp.org>
10324 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
10325 Also include <sys/param.h> if it defines MIN, MAX.
10326 Based on a patch by Derek Price <derek@ximbiot.com>.
10328 2005-05-21 Jim Meyering <jim@meyering.net>
10330 * modules/fts (Files): Add m4/inttypes-pri.m4.
10331 (Depends-on): Add lstat and remove gettext. Alphabetize.
10333 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
10336 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
10337 (setup_dir, free_dir): New functions.
10338 (enter_dir, leave_dir): Define trivial
10339 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
10340 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
10341 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
10342 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
10343 Move to fts-cycle.c.
10344 (fts_open): Use setup_dir.
10345 (fts_close): Use free_dir.
10346 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
10347 This adds a label and some gotos, but the alternatives were messier.
10348 Check for memory allocation failure when entering a dir.
10349 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
10350 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
10351 (FTS): New member fts_cycle, that is a union that contains the
10352 old active_dir_ht and cycle_state. All uses changed to mention
10353 fts_cycle.ht and fts_cycle.state.
10354 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
10355 fts.c, with the following changes:
10356 (setup_dir, free_dir): New functions.
10357 (enter_dir): Now returns bool. Return true if successful, false
10358 if memory exhausted. All callers changed.
10359 Do not bother partly cleaning up on
10360 memory allocation failure; that is free_dir's job.
10361 However, free ad if hash_insert fails, to avoid memory leak.
10362 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
10363 fts->fts_options to see which union member to use.
10365 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
10367 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
10368 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
10370 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
10372 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
10374 2005-05-20 Jim Meyering <jim@meyering.net>
10376 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
10377 Now a macro, to pacify GCC.
10379 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
10381 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
10384 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
10386 * lib/chown.c (rpl_chown): Return -1 on failure.
10388 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
10390 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
10391 Don't check for stddef.h.
10392 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
10393 don't use its results.
10394 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
10395 since we include them unconditionally. Don't require
10396 AM_STDBOOL_H, since stdbool is a prerequisite.
10397 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
10398 since we assume C89 or better.
10399 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
10400 as we don't use their results.
10401 Don't check for fchdir, memmove, memset, strrchr, as we use
10402 them unconditionally.
10403 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
10404 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
10406 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
10408 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
10409 Include <stddef.h> unconditionally, since we assume C89 now.
10410 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
10411 * lib/fts.c: Include fts_.h first, to check interface.
10412 Do not include intprops.h; no longer needed.
10413 Include cycle-check.h and hash.h, since fts_.h no longer does.
10414 Remove unnecessary casts of closedir to void.
10415 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
10416 decide whether to decrement nlinks.
10417 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
10418 (FTS): Use struct hash_table * instead of Hash_table, so that
10419 we no longer need to include hash.h here.
10421 2005-05-18 Jim Meyering <jim@meyering.net>
10423 * modules/dirfd (License): Change to LGPL. Most of the code
10424 is already in the public domain.
10426 2005-05-18 Jim Meyering <jim@meyering.net>
10428 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
10429 Reported by Yoann Vandoorselaere.
10431 2005-05-17 Jim Meyering <jim@meyering.net>
10433 * m4/fts.m4: New file, from coreutils.
10435 2005-05-17 Jim Meyering <jim@meyering.net>
10437 * lib/fts.c, fts_.h: New files, from coreutils.
10439 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
10441 Sync from coreutils.
10442 * m4/unlinkdir.m4: New file.
10444 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
10446 Sync from coreutils.
10447 * lib/unlinkdir.c, unlinkdir.h: New files.
10448 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
10449 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
10450 White space changes only.
10451 * lib/makepath.c (make_path): Port to hosts where leading "//" is
10453 * lib/yesno.c: Include getline.h, not ctype.h.
10454 (yesno): Don't remove leading white space; POSIX doesn't allow it.
10455 Use getline to remove arbitrary restriction on response length.
10457 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
10459 * config/srclist-update: Spell out "Street" in FSF postal
10460 mail address; this is the style the FSF seems to prefer.
10462 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
10463 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
10464 this updates FSF postal mail address.
10466 Sync from coreutils.
10467 * modules/unlinkdir: New file.
10468 * modules/yesno (Depends-on): Add getline.
10469 * MODULES.html.sh (File system functions): Add unlinkdir.
10471 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
10473 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
10475 Change the initial comment to refer to GPL, not LGPL.
10476 gnulib-tool will change it to LGPL as needed.
10478 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
10479 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
10480 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
10481 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
10482 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
10483 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
10484 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
10485 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
10486 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
10487 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
10488 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
10489 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
10490 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
10491 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
10492 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
10493 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
10494 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
10495 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
10496 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
10497 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
10498 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
10499 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
10500 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
10501 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
10502 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
10503 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
10504 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
10505 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
10506 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
10507 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
10508 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
10509 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
10510 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
10511 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
10512 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
10513 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
10514 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
10515 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
10516 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
10517 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
10518 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
10519 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
10520 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
10521 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
10522 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
10523 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
10524 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
10525 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
10526 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
10527 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
10528 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
10529 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
10530 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
10531 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
10532 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
10533 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
10534 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
10535 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
10536 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
10537 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
10538 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
10539 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
10540 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
10541 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
10542 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
10543 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
10544 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
10545 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
10546 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
10547 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
10548 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
10549 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
10550 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
10551 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
10552 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
10553 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
10554 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
10555 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
10556 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
10557 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
10558 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
10559 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
10560 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
10561 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
10562 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
10563 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
10564 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
10565 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
10566 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
10567 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
10568 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
10569 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
10570 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
10571 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
10572 lib/yesno.c, lib/yesno.h:
10573 Update FSF postal mail address.
10575 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
10577 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
10578 tests/test-memmem.c, tests/test-stpncpy.c:
10579 Update FSF postal mail address.
10581 2005-05-13 Bruno Haible <bruno@clisp.org>
10583 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
10584 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
10585 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
10586 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
10587 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
10588 Add support for 64-bit integers in the MSVC compiler.
10590 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10592 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
10594 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
10596 * gnulib-tool (func_import): Sort and uniquify recommended includes.
10598 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
10600 * doc/getdate.texi (General date syntax): Don't say that date
10601 date --iso-8601=ns generates acceptable dates; it doesn't yet.
10602 Problem reported by Nic Ferrier.
10604 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10606 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
10607 specified in ai_socktype. Fix invalid ai_protocol
10608 check. ai_protocol is usually set to 0 or depending on
10609 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
10610 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
10611 ai_socktype / ai_protocol in the returned addrinfo structure.
10613 2005-05-10 Simon Josefsson <jas@extundo.com>
10615 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
10616 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10618 2005-05-10 Karl Berry <karl@gnu.org>
10620 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
10621 (from http://www.gnu.org/licenses).
10622 * doc/COPYING.LIB: also rename to COPYING.LESSER.
10623 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
10626 2005-05-10 Karl Berry <karl@gnu.org>
10628 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
10629 (COPYING.DOC): remove.
10631 * config/srclist-update: new FSF address.
10633 2005-05-10 Derek Price <derek@ximbiot.com>
10635 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
10638 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10639 Bruno Haible <bruno@clisp.org>
10641 * modules/inet_ntop: New file.
10642 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10645 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10646 Bruno Haible <bruno@clisp.org>
10648 * m4/inet_ntop.m4: New file.
10650 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10651 Bruno Haible <bruno@clisp.org>
10653 * lib/inet_ntop.h: New file.
10654 * lib/inet_ntop.c: New file, from glibc with modifications.
10656 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
10658 * modules/time_r (License): Change to LGPL.
10659 * modules/extensions (License): Change to LGPL. Actually,
10660 the license is more permissive than that, but currently gnulib-tool
10661 doesn't know how to handle more-permissive licenses.
10663 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
10664 Problem reported by Dave Love.
10666 2005-05-08 Jim Meyering <jim@meyering.net>
10668 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
10671 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
10673 * modules/argmatch (Depends-on): Add stdbool.
10674 * modules/backupfile (Depends-on): Likewise.
10675 * modules/chdir-long (Depends-on): Likewise.
10676 * modules/closeout (Depends-on): Likewise.
10677 * modules/cycle-check (Depends-on): Likewise.
10678 * modules/dirname (Depends-on): Likewise.
10679 * modules/fnmatch (Depends-on): Likewise.
10680 * modules/fsusage (Depends-on): Likewise.
10681 * modules/fwriteerror (Depends-on): Likewise.
10682 * modules/getcwd (Depends-on): Likewise.
10683 * modules/getloadavg (Depends-on): Likewise.
10684 * modules/hard-locale (Depends-on): Likewise.
10685 * modules/makepath (Depends-on): Likewise.
10686 * modules/mountlist (Depends-on): Likewise.
10687 * modules/nanosleep (Depends-on): Likewise.
10688 * modules/posixtm (Depends-on): Likewise.
10689 * modules/quotearg (Depends-on): Likewise.
10690 * modules/readtokens (Depends-on): Likewise.
10691 * modules/readtokens0 (Depends-on): Likewise.
10692 * modules/readutmp (Depends-on): Likewise.
10693 * modules/save-cwd (Depends-on): Likewise.
10694 * modules/strftime (Depends-on): Likewise.
10695 * modules/userspec (Depends-on): Likewise.
10696 * modules/utimecmp (Depends-on): Likewise.
10697 * modules/xgetcwd (Depends-on): Likewise.
10698 * modules/xnanosleep (Depends-on): Likewise.
10699 * modules/xstrtod (Depends-on): Likewise.
10700 * modules/yesno (Depends-on): Likewise.
10702 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
10704 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
10707 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
10709 Merge from coreutils. Among other things,
10710 add bulletproofing for cases where stdin, stdout, or stderr are closed.
10711 * lib/fd-safer.c: New file.
10712 * lib/fcntl-safer.h, open-safer.c: Remove.
10713 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
10714 * lib/dup-safer.c: Include unistd-safer.h first.
10715 Don't include errno.h.
10716 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
10717 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
10718 * lib/file-type.c: Rely on file-type.h change.
10719 * lib/getloadavg.c: Include unistd-safer.h.
10720 (getloadavg): Use safer open.
10721 * lib/getusershell.c: Include "stdio-safer.h".
10722 (getusershell): Use safer fopen.
10723 * lib/long-options.c (long_options): Use NULL rather than 0.
10724 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
10726 * lib/modechange.c: Likewise.
10727 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
10728 (MODE_DONE): New constant.
10729 (struct mode_change): Remove 'next' member.
10730 (make_node_op_equals): New function; like the old one of the
10731 same name, except it allocates an array.
10732 (mode_compile, mode_create_from_ref): Use it.
10733 (mode_compile): Allocate result as an array, not a linked list.
10734 Parse octal string ourself, so that we catch mistakes like "+0".
10735 (mode_adjust): Arg is an array, not a linked list.
10736 * lib/modechange.c: Include stat-macros.h, xalloc.h.
10737 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
10738 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
10739 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
10740 Remove. This is now stat-macros.h's job.
10741 (talloc): Remove. All callers replaced by xalloc, so that
10742 our invokers don't have to worry about reporting memory failures.
10743 (make_node_op_equals): Remove.
10744 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
10746 (struct mode_change): Moved here from modechange.h.
10747 (mode_append_entry): Remove.
10748 (mode_compile): Remove MASKED_OPS arg, since it encouraged
10749 apps to have incorrect behavior. Use simpler algorithm for head
10750 and tail. Don't futz with umask; that's now the job of mode_adjust.
10751 Detect more invalid usages rather than having somewhat-random behavior.
10752 Don't insert an "a=" action, as that leads to incorrect behavior.
10753 (mode_compile, mode_create_from_ref): Return NULL on error instead
10754 of an enum, since now there's only one way to have an error. All
10756 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
10757 at the correct time. Simplify calculation of "+u" and its ilk.
10758 Don't mishandle "+X".
10759 (mode_free): Remove "register" and localize decls.
10760 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
10761 (struct mode_change): Move to modechange.c; callers don't
10762 need to see this stuff.
10763 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
10764 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
10765 (mode_change, mode_adjust): Reflect the new signatures noted above.
10766 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
10767 that might redefine system include files.
10768 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
10769 (my_usleep): Use NULL rather than (void *) 0.
10770 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
10771 Use siginterrupt to specify that system calls should be interrupted.
10772 (rpl_nanosleep): Move initialization of suspended closer to call of
10774 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
10775 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
10776 (desirable_utmp_entry): New function.
10777 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
10778 using x2nrealloc, to simplify logic.
10779 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
10780 size calculation. Do not assume utmp file is a regular file.
10781 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
10782 (READ_UTMP_CHECK_PIDS): New constant.
10783 * lib/save-cwd.c: Include unistd-safer.h.
10784 (save_cwd): Use fd_safer.
10785 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
10786 [!_LIBC] Include "stat-macros.h" instead.
10787 * lib/unistd-safer.h (fd_safer): New decl.
10789 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
10791 * modules/getloadavg (Depends-on): Add unistd-safer.
10792 * modules/getusershell (Depends-on): Add stdio-safer.
10793 * modules/lstat (Depends-on): Remove xalloc.
10794 * modules/mkstemp (Depends-on): Add stat-macros.
10795 * modules/modechange (Depends-on): Remove xstrtol.
10796 Add stat-macros, xalloc.
10797 * modules/save-cwd (Depends-on): Add unistd-safer.
10798 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
10799 * modules/unistd-safer (Files): Add lib/fd-safer.c
10800 (Makefile.am): Remove lib_SOURCES.
10802 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
10803 Remove fcntl-safer; unistd-safer supersedes it.
10805 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
10807 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
10809 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
10810 (gl_PREREQ_CHOWN): Remove.
10811 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
10812 it. Don't require AC_HEADER_STAT.
10813 (gl_PREREQ_LSTAT): Remove.
10814 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
10815 Don't require AC_HEADER_STAT.
10816 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
10817 (gl_PREREQ_RMDIR): Remove.
10818 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
10819 mention stat-macros.h or AC_HEADER_STAT, since we'll make
10820 the stat-macros module a prerequisite.
10821 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
10822 * m4/filemode.m4 (gl_FILEMODE): Likewise.
10823 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
10824 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
10825 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
10827 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
10828 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
10830 * m4/fcntl-safer.m4: Remove.
10831 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
10832 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
10833 Invoke gl_PREREQ_FD_SAFER.
10834 (gl_PREREQ_FD_SAFER): New macro.
10835 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
10836 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
10837 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
10838 Remove duplicate call to AC_LIBOBJ(readutmp).
10839 (gl_PREREQ_READUTMP): Remove. All uses inlined.
10841 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
10842 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
10844 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
10846 * MODULES.html.sh (Misc): Add byteswap.
10848 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10850 * modules/getcwd (Depends-on): Add extensions.
10851 * modules/openat (Depends-on): Likewise.
10853 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10855 * modules/byteswap: New file.
10857 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10859 * m4/byteswap.m4: New file.
10861 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10863 * lib/byteswap_.h: New file.
10865 2005-04-25 Karl Berry <karl@gnu.org>
10867 * m4/gettext.m4: Update from GNU gettext 0.14.4.
10869 2005-04-25 Albert Chin <china@thewrittenword.com>
10871 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
10874 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
10876 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
10877 (func_ln_if_changed) Remove forcibly for no error message
10878 in case file does not exist.
10880 2005-04-19 Simon Josefsson <jas@extundo.com>
10882 * gnulib-tool (Options): Make --symlink mean --symbolic.
10884 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
10886 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
10888 2005-04-16 Simon Josefsson <jas@extundo.com>
10890 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
10892 2005-04-15 Simon Josefsson <jas@extundo.com>
10894 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
10896 2005-04-15 Simon Josefsson <jas@extundo.com>
10898 * gnulib-tool: Rename --symlink to --symbolic.
10900 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
10902 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
10903 symbolic links to files instead of copying/moving. Add --aux-dir,
10904 specifying directory relative --dir where auxiliary build tools
10907 2005-04-14 Bruno Haible <bruno@clisp.org>
10909 * modules/allocsa (License): Change to LGPL.
10910 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
10912 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
10914 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
10915 that "UTC +1 second" continues to work. Problem reported
10916 by Dmitry V. Levin.
10917 (relunit_snumber): New rule.
10920 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
10922 * lib/getdate.y (universal_time_zone_table): New constant.
10923 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
10924 universal_time_zone_table.
10925 (lookup_zone): Prefer universal_time_zone_table to
10926 local_time_zone_table, so that "GMT" time stamps are allowed in
10927 London during the summer. Problem reported by Ian Abbott.
10929 2005-04-12 Jim Meyering <jim@meyering.net>
10931 * lib/human.c (humblock): Set *options even when returning due to
10932 xstrtoumax conversion failure. Thanks to a used-uninitialized
10933 warning from gcc-4.
10935 2005-04-09 Jim Meyering <jim@meyering.net>
10937 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
10938 -Wuninitialized: initialize tm0.tm_year.
10940 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
10942 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
10943 count, since there's no maximum. All uses changed.
10944 Add member dsts_seen.
10945 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
10947 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
10948 Use pc_rels_seen to decide whther a date is absolute.
10950 * lib/getdate.y (number): Don't overwrite year.
10951 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
10954 2005-04-02 Simon Josefsson <jas@extundo.com>
10956 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
10957 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
10959 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
10961 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
10962 where no absolute path name can be longer than PATH_MAX.
10964 2005-03-27 Jim Meyering <jim@meyering.net>
10966 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
10968 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
10970 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
10971 "one's complement" -> "ones' complement" in comment, as per Knuth.
10972 "value of type" -> "type or expression" in comment.
10973 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
10975 2005-03-26 Jim Meyering <jim@meyering.net>
10978 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
10979 Correct typos: s/or/of/.
10981 2005-03-26 Jim Meyering <jim@meyering.net>
10983 * modules/check-include-files: Move to ../ and rename to...
10984 * check-module: ...this.
10986 2005-03-25 Jim Meyering <jim@meyering.net>
10988 * modules/xvasprintf (Files): Add xalloc.h.
10990 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
10992 * modules/gettext (Files): config/config.rpath ->
10993 build-aux/config.rpath
10994 * modules/iconv (Files): Likewise.
10995 Problem reported by Oskar Liljeblad.
10997 2005-03-23 Jim Meyering <jim@meyering.net>
10999 * modules/check-include-files: New script to check for
11000 missing dependencies, multiple includes, etc.
11002 * modules/c-strtold (Depends-on): Add xalloc.
11003 * modules/c-strtod (Depends-on): Add xalloc.
11004 * modules/hash (Depends-on): Add xalloc.
11005 (Files): Remove lib/xalloc.h.
11007 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
11008 * modules/userspec (Files): Add lib/inttostr.h.
11010 2005-03-23 Jim Meyering <jim@meyering.net>
11012 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
11014 2005-03-22 Jim Meyering <jim@meyering.net>
11016 * modules/stat-macros: New module.
11017 * modules/canonicalize, modules/euidaccess, modules/file-type,
11018 * modules/filemode, modules/lchown, modules/makepath,
11019 * modules/rmdir, modules/stat: Depend on new stat-macros module
11020 rather than listing lib/stat-macros.h manually.
11021 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
11023 2005-03-22 Jim Meyering <jim@meyering.net>
11025 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
11027 2005-03-22 Bruno Haible <bruno@clisp.org>
11029 * config/srclist.txt: Replace target directory 'config' with
11031 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
11032 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
11035 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
11037 * modules/chdir-long (Depends-on): Add mempcpy.
11039 * modules/acl, modules/backupfile, modules/c-strtod,
11040 modules/c-strtold, modules/canon-host, modules/canonicalize,
11041 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
11042 modules/exclude, modules/exitfail, modules/file-type,
11043 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
11044 modules/getdate, modules/getline, modules/getpagesize,
11045 modules/getpass, modules/getugroups, modules/group-member,
11046 modules/hard-locale, modules/hash, modules/human, modules/idcache,
11047 modules/inttostr, modules/long-options, modules/makepath,
11048 modules/md5, modules/memcasecmp, modules/memcoll,
11049 modules/modechange, modules/mountlist, modules/path-concat,
11050 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
11051 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
11052 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
11053 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
11054 modules/strftime, modules/strndup, modules/strverscmp,
11055 modules/timespec, modules/unlocked-io, modules/userspec,
11056 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
11058 Remove lib_SOURCES line from Makefile.am section, as this is now
11059 done automatically by the corresponding Autoconf macro.
11061 2005-03-21 Jim Meyering <jim@meyering.net>
11063 Changes imported from coreutils.
11065 * lib/cycle-check.c: Don't include xalloc.h.
11067 * lib/path-concat.c: Don't include assert.h.
11068 (path_concat): Remove assertion that would have triggered
11069 for ABASE starting with more than one slash.
11070 Reported by Andreas Schwab.
11072 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
11073 properly when ABASE is an absolute file name.
11074 Correct the description of this function.
11075 Include <assert.h>.
11076 Add an assertion and a test driver.
11077 This fixes a bug introduced on 2004-07-02.
11078 Andreas Schwab reported the resulting failure of cp --parents:
11079 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
11081 2005-03-21 Jim Meyering <jim@meyering.net>
11083 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
11084 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
11086 2005-03-21 Jim Meyering <jim@meyering.net>
11087 and Paul Eggert <eggert@cs.ucla.edu>
11089 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
11090 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
11091 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
11092 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
11093 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
11094 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
11095 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
11096 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
11097 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
11098 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
11099 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
11100 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
11101 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
11102 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
11103 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
11104 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
11105 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
11108 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
11110 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
11111 (which shouldn't happen), generate nothing instead of returning 0
11112 immediately, so that nstrftime (NULL, ...) doesn't return 0.
11114 2005-03-16 Bruno Haible <bruno@clisp.org>
11116 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
11117 HAVE_LONGLONG_64BIT.
11119 2005-03-16 Bruno Haible <bruno@clisp.org>
11121 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
11122 HAVE_LONGLONG_64BIT.
11124 2005-03-16 Bruno Haible <bruno@clisp.org>
11126 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
11127 HAVE_LONGLONG_64BIT.
11129 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
11131 * lib/strftime.c (my_strftime): Prepend space to format so that we can
11132 reliably distinguish strftime failure from empty output on POSIX
11135 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
11137 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
11138 (iconv_string): Don't guess a size-zero buffer, as that might cause
11139 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
11140 result would be 'too large', where 'too large' is (heuristically)
11141 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
11142 overflow concerns. This will prevent some unwanted malloc failures
11143 when the inputs are very large.
11145 2005-03-15 Karl Berry <karl@gnu.org>
11147 * config/srclist.txt (config.rpath): from gettext.
11148 * config/config.rpath: update.
11150 2005-03-15 Bruno Haible <bruno@clisp.org>
11152 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
11155 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
11158 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
11161 2005-03-14 Simon Josefsson <jas@extundo.com>
11163 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
11166 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
11168 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
11169 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
11171 * lib/strtol.c: Likewise.
11173 2005-03-14 Jim Meyering <jim@meyering.net>
11175 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
11176 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
11177 to be nonzero so that we (and caller) can detect the difference
11178 between a valid zero-length expansion and an error return, even
11179 when the underlying strftime fails before writing anything into
11182 2005-03-14 Bruno Haible <bruno@clisp.org>
11184 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
11185 Update from GNU gettext 0.14.3.
11187 2005-03-10 Jim Meyering <jim@meyering.net>
11189 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
11191 2005-03-10 Jim Meyering <jim@meyering.net>
11193 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
11194 so that this module works on systems without fchdir.
11196 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
11198 Factor int-properties macros into a single file, except for
11199 glibc-related files.
11200 * lib/intprops.h: New file.
11201 * lib/getloadavg.c: Include it instead of limits.h.
11202 (INT_STRLEN_BOUND): Remove.
11203 * lib/human.c: Include intprops.h.
11204 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
11205 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
11207 * lib/inttostr.h: Include intprops.h instead of limits.h.
11208 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
11209 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
11210 for consistency with intprops.h.
11211 (time_t_is_integer, twos_complement_arithmetic): Use them.
11212 * lib/sig2str.h: Include <signal.h>, intprops.h.
11213 (INT_STRLEN_BOUND): Remove.
11214 * lib/strftime.c (TYPE_SIGNED): Remove.
11215 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
11216 * lib/strtol.c: Adjust comments to match intprops.h.
11217 * lib/userspec.c: Include intprops.h.
11218 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
11219 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
11220 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
11221 instead of rolling our own expressions.
11222 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
11224 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
11226 (my_strftime): Do not mishandle years close to INT_MAX, by doing
11227 the right thing even if adding 1900 would overflow. Similarly
11228 for tm_mon + 1 and tm_yday + 1.
11229 Make %Y always equivalent to %C%y, and similarly for %G and %g.
11230 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
11231 (DO_SIGNED_NUMBER): New macro.
11232 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
11234 2005-03-07 Bruno Haible <bruno@clisp.org>
11236 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
11238 2005-03-07 Bruno Haible <bruno@clisp.org>
11240 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
11242 2005-03-04 Derek R. Price <derek@ximbiot.com>
11244 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
11245 (func_import): Only replace files via --import when they have actually
11248 2005-03-03 Derek R. Price <derek@ximbiot.com>
11250 * m4/mmap-anon.m4: New file.
11251 * m4/pagealign_alloc.m4: New file.
11253 2005-03-03 Derek R. Price <derek@ximbiot.com>
11254 Bruno Haible <bruno@clisp.org>
11256 * modules/pagealign_alloc: New file.
11257 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
11259 2005-03-03 Derek R. Price <derek@ximbiot.com>
11260 Bruno Haible <bruno@clisp.org>
11262 * lib/pagealign_alloc.h: New file.
11263 * lib/pagealign_alloc.c: New file.
11265 2005-03-03 Bruno Haible <bruno@clisp.org>
11267 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
11268 Use an all-permissive copyright notice, recommended by RMS.
11270 2005-03-02 Bruno Haible <bruno@clisp.org>
11272 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
11273 of AIX, the replacement has to be done only after <string.h> is
11274 included, therefore not in config.h. stpncpy.h does the replacement,
11275 and stpncpy.c uses it.
11277 2005-03-02 Bruno Haible <bruno@clisp.org>
11279 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
11282 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
11284 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
11285 The workaround isn't strictly needed for POSIX conformance, and
11286 it's too much of a pain to configure and maintain. We'll ask
11287 people to fix their kernels instead.
11288 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
11289 (NANOSLEEP_BUG_WORKAROUND): Remove.
11290 (xnanosleep): Remove the workaround.
11292 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
11294 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
11295 Reported by Derek Price.
11296 (Include): Add "timespec.h".
11298 * modules/xnanosleep (Depends-on): Remove gethrxtime.
11300 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
11302 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
11303 to detect nanosleep bug.
11305 2005-03-01 Bruno Haible <bruno@clisp.org>
11307 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
11309 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
11311 * modules/gethrxtime: New file.
11312 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
11313 (Depends-on): Add gethrxtime.
11314 (configure.ac): Add gl_XNANOSLEEP.
11315 (Makefile.am): Remove lib_SOURCES line.
11317 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
11319 * m4/gethrxtime.m4, xnanosleep.m4: New files.
11320 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
11322 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
11324 * lib/gethrxtime.h, gethrxtime.c, xtime.h: New files.
11325 * lib/timespec.h (gettime): Return void, since it always
11326 succeeds now. All uses changed.
11327 * lib/gettime.c (gettime) Likewise.
11328 [HAVE_NANOTIME]: Prefer nanotime.
11329 Assume gettimeofday succeeds, as POSIX requires.
11330 Assime time () succeeds, since other code already does.
11331 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
11332 (timespec_subtract): Remove.
11333 (NANOSLEEP_BUG_WORKAROUND): New constant.
11334 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
11335 things considerably. Use it only on GNU/Linux hosts, since the
11336 workaround shouldn't be needed elsewhere.
11338 2005-02-24 Bruno Haible <bruno@clisp.org>
11340 * modules/gettext (Files): Add m4/glibc2.m4.
11342 2005-02-24 Bruno Haible <bruno@clisp.org>
11344 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
11345 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
11347 Update from GNU gettext 0.14.2.
11348 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
11350 2005-02-24 Bruno Haible <bruno@clisp.org>
11352 * lib/localcharset.c: Update from GNU gettext 0.14.2.
11353 * lib/config.charset: Update from GNU gettext 0.14.2.
11355 2005-02-24 Bruno Haible <bruno@clisp.org>
11357 * lib/gettext.h: Update from GNU gettext 0.14.2.
11359 2005-02-23 Simon Josefsson <jas@extundo.com>
11361 * m4/iconvme.m4: New file.
11363 2005-02-23 Jim Meyering <jim@meyering.net>
11365 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
11367 Thanks to Bruno Haible for catching it.
11369 2005-02-22 Simon Josefsson <jas@extundo.com>
11371 * modules/iconvme: New file.
11373 * MODULES.html.sh: Add iconvme.
11375 2005-02-22 Simon Josefsson <jas@extundo.com>
11377 * lib/iconvme.h, iconvme.c: New files, from libc.
11379 2005-02-22 Simon Josefsson <jas@extundo.com>
11381 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
11383 2005-02-22 Jim Meyering <jim@meyering.net>
11385 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
11388 2005-02-20 Neil Conway <neilc@samurai.com>
11390 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
11391 returned by OSX/Darwin if the specified buffer is not large
11392 enough for the hostname.
11394 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11396 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
11397 pass it to _help, otherwise the latter coredumps trying to
11398 dereference state.root_argp.
11400 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
11402 * modules/chdir-long (Depends-on): Add memrchr.
11403 * modules/memrchr (Files): Add lib/memrchr.h.
11404 (Include): "memrchr.h".
11406 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
11408 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
11410 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
11412 * lib/memrchr.h: New file.
11413 * lib/chdir-long.c: Include it.
11414 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
11415 Don't bother including stddef.h.
11417 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
11419 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
11421 Include <sys/types.h>, for dev_t.
11422 (ME_DUMMY, ME_REMOTE): Move from here....
11423 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
11424 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
11426 Include mountlist.h first, to test the interface.
11428 2005-01-29 Bruno Haible <bruno@clisp.org>
11430 * lib/progname.c (program_name): Initialize.
11431 Needed when linking statically on MacOS X.
11433 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
11435 Sync from coreutils.
11436 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
11437 (Depends-on): Add c-strtod.
11438 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
11440 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
11442 Sync from coreutils.
11443 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
11445 Remove files that are specific to coreutils.
11446 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
11448 2005-01-28 Bruno Haible <bruno@clisp.org>
11450 * modules/javacomp: New file.
11451 * MODULES.html.sh (Java): Add javacomp.
11453 2005-01-28 Bruno Haible <bruno@clisp.org>
11455 * m4/javacomp.m4: New file, from GNU gettext.
11457 2005-01-28 Bruno Haible <bruno@clisp.org>
11459 * lib/javacomp.sh.in: New file, from GNU gettext.
11460 * lib/javacomp.h: New file, from GNU gettext.
11461 * lib/javacomp.c: New file, from GNU gettext.
11463 2005-01-26 Simon Josefsson <jas@extundo.com>
11465 * lib/gai_strerror.c: Use GPL in header.
11467 2005-01-26 Bruno Haible <bruno@clisp.org>
11469 * modules/javaexec: New file.
11470 * MODULES.html.sh (Java): Add javaexec.
11472 2005-01-26 Bruno Haible <bruno@clisp.org>
11474 * m4/javaexec.m4: New file, from GNU gettext.
11476 2005-01-26 Bruno Haible <bruno@clisp.org>
11478 * lib/javaexec.sh.in: New file, from GNU gettext.
11479 * lib/javaexec.h: New file, from GNU gettext.
11480 * lib/javaexec.c: New file, from GNU gettext.
11482 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11484 * modules/lchown (Depends-on): Remove lchown.h
11486 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11488 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
11489 must be defined if the header file was not found, in order
11490 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
11492 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11494 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
11495 initializers for struct pentry_state.
11496 (__argp_error): Check return value of __asprintf
11497 (__argp_failure): Translate error message
11499 * lib/argp-parse.c: Removed braces around the expansion of N_()
11501 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
11503 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
11504 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
11505 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
11506 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
11507 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
11508 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
11509 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
11510 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
11511 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
11512 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
11513 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
11514 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
11515 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
11516 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
11517 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
11518 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
11519 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
11520 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
11521 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
11522 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
11523 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
11524 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
11525 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
11526 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
11527 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
11528 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
11529 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
11530 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
11531 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
11532 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
11533 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
11534 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
11535 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
11536 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
11537 xstrtol.m4, xstrtoumax.m4, yesno.m4:
11538 Use an all-permissive copyright notice, recommended by RMS.
11540 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
11542 * modules/chdir-long (Depends-on): Remove mempcpy.
11544 2005-01-21 Jim Meyering <jim@meyering.net>
11546 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
11547 same value as for Solaris 9.
11549 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
11550 component length. This included changing the parameter to be
11551 of type `char *' rather than `char const *'.
11552 * lib/chdir-long.h (chdir_long): Update prototype.
11554 * lib/openat.c (fdopendir, fstatat): New functions.
11555 * lib/openat.h: Include headers required for use of DIR and struct
11557 [AT_SYMLINK_NOFOLLOW]: Define.
11558 (fdopendir, fstatat): Add prototypes.
11560 2005-01-21 Bruno Haible <bruno@clisp.org>
11562 * modules/classpath: New file.
11563 * MODULES.html.sh (Java): Add classpath.
11565 2005-01-21 Bruno Haible <bruno@clisp.org>
11567 * lib/classpath.h: New file, from GNU gettext.
11568 * lib/classpath.c: New file, from GNU gettext.
11570 2005-01-20 Simon Josefsson <jas@extundo.com>
11572 * modules/version-etc-fsf: New file.
11574 2005-01-20 Simon Josefsson <jas@extundo.com>
11576 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
11577 * lib/version-etc.c: Remove version_etc_copyright.
11578 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
11579 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
11581 2005-01-20 Simon Josefsson <jas@extundo.com>
11583 * lib/base64.h (isbase64): Add.
11585 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
11586 using a unsigned prototype, don't inline.
11587 (base64_decode): Use it.
11589 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
11591 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
11594 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
11596 * lib/save-cwd.c (save_cwd): Remove code to support the case
11597 where fchdir is missing or flaky.
11599 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
11601 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
11603 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
11605 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
11606 AC_LIBSOURCES now does this.
11607 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
11608 with new ullong_max module.
11610 2005-01-19 Bruno Haible <bruno@clisp.org>
11612 * modules/sh-quote: New file.
11613 * MODULES.html.sh (Executing programs): Add sh-quote.
11615 2005-01-19 Bruno Haible <bruno@clisp.org>
11617 * lib/sh-quote.h: New file, from GNU gettext.
11618 * lib/sh-quote.c: New file, from GNU gettext.
11620 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
11622 Merge from coreutils.
11623 * m4/ullong_max.m4: New file.
11624 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
11625 (gl_MACROS): Assume localeconv exists.
11627 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
11629 Merge changes from coreutils, as described below in several
11630 changelogs dated today.
11632 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
11633 (O_DIRECTORY): Remove; not needed here, since "." must be
11634 a directory. All uses removed.
11635 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
11636 universal on Suns, and we also need to test for IRIX.
11637 Revamp code to use 'if' rather than '#if'.
11638 Avoid unnecessary comparison of cwd->desc to 0.
11640 * lib/utimens.c (futimens): Robustify the previous patch, by checking
11641 for known valid error numbers rather than observed invalid ones.
11643 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
11645 * modules/ullong_max: New file.
11647 * modules/chdir-long, modules/openat: New files.
11648 * modules/save-cwd (Depends-on): Depend on chdir-long.
11649 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
11651 2005-01-18 Jim Meyering <jim@meyering.net>
11653 Merge from coreutils.
11654 * m4/chdir-long.m4, openat.m4: New files.
11655 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
11656 save-cwd.h. Add AC_LIBOBJ for save-cwd.
11657 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
11658 is sane and DOES follow symlinks. Besides, testing 20 different
11659 systems found no broken chown implementations.
11660 Prompted by a change in rsync's copy of this macro.
11661 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
11663 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
11665 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
11666 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
11667 NULL-means-set-to-current-time semantics.
11668 Remove temporary file immediately, rather than waiting
11669 for configure's at-exit trap code to do it.
11671 2005-01-18 Jim Meyering <jim@meyering.net>
11673 * lib/version-etc.c (version_etc_copyright): Update copyright date.
11675 * lib/utimens.c (futimens): Account for the fact that futimes
11676 can also fail with errno == ENOSYS or errno == ENOENT.
11677 Patch from Dmitry V. Levin.
11679 Change the name of the robust chdir function from chdir to chdir_long.
11680 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
11681 (restore_cwd): Use chdir_long, not chdir.
11682 * lib/chdir-long.c: Renamed from chdir.c.
11683 * lib/chdir-long.h: Renamed from chdir.h.
11684 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
11687 2005-01-18 Bruno Haible <bruno@clisp.org>
11689 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
11690 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
11691 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
11692 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
11693 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
11694 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
11695 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
11696 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
11697 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
11698 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
11699 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
11700 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
11701 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
11702 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
11703 Use an all-permissive copyright notice, recommended by RMS.
11705 2005-01-18 Bob Proulx <bob@proulx.com>
11707 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
11708 simplify offsetof() macro construct to avoid compile failure with
11709 native HP-UX 11.0 ANSI C compiler.
11711 2005-01-17 Bruno Haible <bruno@clisp.org>
11713 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
11714 redundant because stpncpy.m4 takes care of it.
11716 2005-01-17 Bruno Haible <bruno@clisp.org>
11718 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
11720 2005-01-17 Bruno Haible <bruno@clisp.org>
11722 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
11725 2005-01-17 Bruno Haible <bruno@clisp.org>
11727 * lib/fwriteerror.h (fwriteerror): Change specification to include
11729 * lib/fwriteerror.c: Include <stdbool.h>.
11730 (fwriteerror): At the end, close the file stream. Record whether
11731 stdout was already closed.
11733 2005-01-17 Bruno Haible <bruno@clisp.org>
11735 * lib/execute.c (environ): Declare if needed.
11736 * lib/pipe.c (environ): Likewise.
11737 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
11739 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11741 * modules/argp: Depend on vsnprintf
11743 2005-01-10 Jim Meyering <jim@meyering.net>
11745 * modules/closeout (Depends-on): Add atexit.
11747 2005-01-06 Bruno Haible <bruno@clisp.org>
11749 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
11751 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
11753 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
11754 definitions to be after all include files, to avoid collisions.
11755 Problem reported by Bob Proulx.
11757 2005-01-04 Jim Meyering <jim@meyering.net>
11759 Changes imported from coreutils.
11760 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
11761 as the mkstemp template, use a temporary directory and an
11762 8.3-friendly template to avoid trouble on systems like DJGPP.
11763 Reported by Juan M. Guerrero via Stepan Kasal.
11764 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
11765 close. Remove the temporary directory right away, rather than waiting
11766 for configure's at-exit trap code to do it.
11767 Suggestion from Stepan Kasal.
11769 2005-01-01 Simon Josefsson <jas@extundo.com>
11771 * gnulib-tool: Print #include directives when --import'ing.
11773 2004-12-28 Simon Josefsson <jas@extundo.com>
11775 * tests/test-base64.c: Include required header files. Remove
11778 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
11780 * modules/error (Depends-on): Remove gettext.
11782 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
11784 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
11785 not needed. This removes a dependency on the gettext module.
11786 [defined _LIBC]: Do not include <libintl.h>; not needed.
11788 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
11790 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
11791 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
11793 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
11795 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
11798 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
11800 * modules/getdate (Depends-on): Remove alloca-opt.
11802 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
11804 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
11806 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
11808 * lib/argp-parse.c: Include <stddef.h>.
11809 (alignof, alignto): New macros.
11810 (parser_init): Don't assume that void * is aligned sufficiently
11813 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
11814 need to extend the stack.
11815 (YYINITDEPTH): New macro, so that the initial stack isn't overly
11818 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11820 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
11822 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
11824 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
11825 (2004-10-24) change. Apparently this was a false alarm.
11827 * modules/getdate: Depend on alloca-opt, not alloca.
11829 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
11831 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
11832 Remove now-obsolete comment about AIX.
11833 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
11834 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
11835 (YYMAXDEPTH): New macro.
11837 2004-12-18 Simon Josefsson <jas@extundo.com>
11839 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
11841 2004-12-18 Bruno Haible <bruno@clisp.org>
11843 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
11845 2004-12-18 Bruno Haible <bruno@clisp.org>
11847 * lib/fatal-signal.c (fatal_signals): Make non-const.
11848 (init_fatal_signals): New function.
11849 (uninstall_handlers, install_handlers): Ignore signals that were set to
11851 (at_fatal_signal): Call init_fatal_signals.
11852 (init_fatal_signal_set): Likewise. Ignore signals that were set to
11854 Reported by Paul Eggert.
11856 2004-12-18 Bruno Haible <bruno@clisp.org>
11858 * doc/alloca.texi: New file.
11859 * doc/alloca-opt.texi: New file.
11861 2004-12-17 Jim Meyering <jim@meyering.net>
11863 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
11864 Otherwise, install-sh could exit with improper exit status when
11865 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
11867 2004-12-16 Simon Josefsson <jas@extundo.com>
11869 * tests/test-base64.c: Add license.
11871 2004-12-15 Stepan Kasal <address@hidden>
11873 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
11875 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
11877 * modules/getcwd (Files): Add m4/d-ino.m4.
11878 Suggested by Mark D. Baushke.
11880 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
11882 * lib/getdate.y (textint): New member "negative".
11883 (time_zone_hhmm): New function.
11884 Expect 14 shift-reduce conflicts, not 13.
11885 (o_colon_minutes): New rule.
11886 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
11887 (yylex): Set the "negative" member of signed numbers.
11889 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
11891 * doc/getdate.texi (Time of day items, Time zone items):
11892 Describe new formats +00:00, UTC+00:00.
11894 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
11896 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
11897 spurious "-l"s. Problem reported by Stepan Kasal.
11899 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
11901 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
11902 in Autoconf 2.59. Problem reported by Mark D. Baushke.
11904 2004-12-04 Simon Josefsson <jas@extundo.com>
11906 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
11907 Vandoorselaere <yoann@prelude-ids.org>.
11909 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
11911 Changes imported from coreutils.
11912 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
11914 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
11916 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
11918 Changes imported from coreutils.
11919 * lib/hard-locale.c: Assume <locale.h> exists.
11920 Include "strdup.h".
11921 (GLIBC_VERSION): New macro.
11922 (hard_locale): Assume setlocale exists.
11923 Rewrite to avoid #ifdef.
11924 Use strdup rather than malloc + strcpy.
11925 * lib/human.c: Assume <locale.h> exists.
11926 (human_readable): Assume localeconv exists.
11928 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
11930 * modules/hard-locale (Depends-on): Add strdup.
11932 2004-12-01 Jakub Jelinek <jakub@redhat.com>
11934 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
11935 convert T2, not T. (Imported from libc.)
11937 2004-11-30 Simon Josefsson <jas@extundo.com>
11939 * modules/restrict (License): Change to LGPL.
11941 2004-11-30 Simon Josefsson <jas@extundo.com>
11943 * m4/restrict.m4: Add copyright and copying conditions.
11945 2004-11-30 Simon Josefsson <jas@extundo.com>
11947 * m4/base64.m4: New file.
11949 2004-11-30 Simon Josefsson <jas@extundo.com>
11951 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
11954 * tests/test-base64.c: New file.
11956 * modules/base64: New file.
11958 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
11960 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
11961 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
11963 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
11965 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
11967 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
11968 (__getcwd.c): Don't restore errno; glibc doesn't.
11969 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
11970 first, falling back to our code only if its results look suspicious.
11971 Ensure that the resulting buffer is only as large as necessary.
11973 * lib/readutmp.c: Include readutmp.h first.
11974 Include <errno.h>, since readutmp.h no longer does that.
11975 * lib/readutmp.h: Don't include <errno.h>,
11976 <sys/param.h>, <time.h>; not needed to establish interface.
11977 (errno): Remove decl.
11978 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
11979 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
11980 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
11982 2004-11-28 Simon Josefsson <jas@extundo.com>
11984 * lib/base64.h, base64.c: New file.
11986 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
11988 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
11990 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
11992 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
11993 (Depends-on): Remove pathmax, same. Add mempcpy.
11994 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
11995 (Makefile.am): Append getcwd.h to lib_SOURCES.
11996 (Include): Add getcwd.h.
11997 (Maintainer): Change from Jim Meyering to "all, glibc",
11998 since getdate now uses intended-for-glibc code.
11999 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
12000 (Depends-on): Depend on getcwd. Do not depend on pathmax.
12002 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
12004 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
12005 HP's ANSI C compiler.
12006 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
12007 Declaring int functions causes warnings on some modern systems and
12008 shouldn't be needed to compile on ancient ones.
12009 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
12012 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
12013 with the following changes.
12014 (__set_errno): Parenthesize properly.
12015 Include <stdbool.h>.
12016 (MIN, MAX, MATCHING_INO): New macros.
12017 (__getcwd): Define with prototype, not K&R form.
12018 Use heuristics to allocate default buffer on stack if possible.
12019 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
12020 behavior, and to avoid the PATH_MAX limit when computing
12022 Use MATCHING_INO to compare inode number to file.
12023 Check for arithmetic overflow in size calculations.
12024 Fix bug in reallocation of dot array that caused getcwd to fail
12025 on directories nested deeper than 75.
12026 Be more careful about saving errno on error.
12027 Do not use realloc; use only free+malloc, as this is a bit
12028 more flexible and avoids a needless copy operation.
12029 Do not inspect st_dev and st_ino for symbolic links; POSIX
12030 doesn't specify the latter.
12031 Check for closedir errors.
12032 Avoid needless casts.
12033 Use "#ifdef weak_alias" around weak_alias, to be like other
12035 The following changes to getcwd.c have effect only when used in
12036 gnulib; they have no effect inside glibc proper.
12037 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
12038 as alloca isn't used.
12039 (alloca, __alloca): Likewise.
12040 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
12041 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
12042 unconditionally, as gnulib assumes C89 or better.
12043 Do not include <sys/param.h>.
12044 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
12045 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
12047 (NULL) [!defined NULL]: Remove; we assume C89 or better.
12048 Include <dirent.h> in a way that is compatible with modern Autoconf.
12049 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
12050 New macros, if not already defined.
12051 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
12052 Use "_LIBC", not "defined _LIBC", for consistency.
12053 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
12055 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
12056 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
12057 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
12058 credit only to Jim Meyering and adjust the copyright dates.
12059 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
12060 <stdlib.h>, <unistd.h>, "pathmax.h".
12061 Instead, include "xgetcwd.h" (first) and "getcwd.h".
12062 (INITIAL_BUFFER_SIZE): Remove.
12063 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
12065 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
12067 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
12068 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
12069 Use the _ONCE methods, for efficiency.
12070 Check for fcntl.h. In test program, include <errno.h>
12071 and <fcntl.h> if available. Remove old K&R cruft from
12072 test program. Check for common errors in GNU/Linux,
12073 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
12074 don't do AC_LIBOBJ, as that's getcwd.m4's job.
12075 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
12076 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
12078 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
12079 accommodate new getcwd.c.
12080 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
12081 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
12082 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
12083 that's all we need now.
12085 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
12087 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
12088 argp-parse.c depends on getopt internals, that means we should
12089 always use our getopt, to be on the safe side.
12090 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
12091 order not to spoil the result of an eventual previous invocation
12092 of gl_GETOPT_SUBSTITUTE.
12094 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
12096 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
12097 redefinition warnings. To avoid them, include the defines
12098 in `#if !defined __need_getopt ... #endif'. The only place
12099 where __getopt_argv_const is used is in definitions
12100 of getopt_long and getopt_long_only below, which are as well
12101 protected by `#ifndef __need_getopt'.
12102 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
12103 __need_getopt after including <stdio.h> and <unistd.h> These
12104 headers might have defined it.
12106 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
12108 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
12110 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
12112 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
12113 (futimens): New function, which uses futimes if available.
12114 (futimens, utimens): Support timespec==NULL, with same semantics
12115 as utime and utimens.
12116 * lib/utimens.h (futimens): New decl.
12118 2004-11-23 Jim Meyering <jim@meyering.net>
12120 * lib/getopt_.h: Remove trailing blanks.
12122 2004-11-23 Jim Meyering <jim@meyering.net>
12124 * lib/__fpending.c: Add comment.
12126 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
12128 * modules/canonicalize (Depends-on): Add xreadlink.
12129 Problem reported by James Youngman.
12131 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
12133 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
12135 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
12136 optopt): Use them instead of invoking ## directly; otherwise, the
12137 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
12139 2004-11-19 Bruno Haible <bruno@clisp.org>
12141 * lib/strtok_r.c: Move comments from here...
12142 * lib/strtok_r.h: ... to here.
12144 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
12146 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
12147 implementations that mishandle size_t overflow.
12149 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
12151 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
12152 might fail. Problem reported by Yoann Vandoorselaere.
12153 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
12154 implementations that mishandle size_t overflow.
12156 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
12158 * modules/canon-host (Depends-on): Add strdup.
12160 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
12162 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
12164 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
12166 * lib/canon-host.c: Include "strdup.h".
12167 (canon_host): Use getaddrinfo if available, so that IPv6 works.
12168 Use strdup instead of malloc/strcpy to duplicate strings.
12170 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
12171 (human_space_before_unit): New constant.
12172 * lib/human.c (human_readable): Support it.
12174 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
12175 (xgetcwd): Set errno correctly when failing.
12176 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
12177 the failure is actually due to a PATH_MAX problem.
12179 Further getopt changes to make it more likely that glibc will
12180 buy the changes back.
12181 * lib/getopt.c (POSIXLY_CORRECT): New constant.
12182 (getopt): Use it, so to preserve glibc semantic
12183 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
12184 when compiling for libc.
12185 * lib/getopt_.h (__getopt_argv_const): Bring it back.
12186 (getopt_long, getopt_long_only): Use it.
12188 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
12189 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
12190 (getopt): Argv is now char * const *, as per standard.
12191 (_getopt_internal_r, _getopt_internal): Argv is now char **,
12192 not char *__getopt_argv_const *.
12193 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
12194 _getopt_long_only_r): Likewise.
12195 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
12196 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
12197 _getopt_long_r, _getopt_long_only_r): Likewise.
12198 * lib/getopt_.h (__getopt_argv_const): Remove.
12199 (getopt): Argv is now char * const *, as per standard.
12201 * lib/getdate.y (tORDINAL): New token.
12202 (day, relunit): Allow it for relative times.
12203 (relative_time_table): Use tORDINAL for ordinals.
12205 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
12207 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
12208 Document that "second" isn't allowed as an ordinal number.
12210 2004-11-16 Jim Meyering <jim@meyering.net>
12212 * modules/closeout (Depends-on): Add fpending.
12214 2004-11-15 Jim Meyering <jim@meyering.net>
12216 * lib/closeout.c: Include "__fpending.h" once again.
12217 Include <stdbool.h>.
12218 (close_stdout): Don't fail just because stdout was closed initially,
12219 since some programs don't write to stdout in the normal course of
12220 operation (other than --version and --help), and we don't want this
12221 function to make e.g. `touch file >&-' fail.
12222 But do fail if it was closed and someone has tried to write to it.
12223 E.g., `printf foo >&-' must fail.
12225 2004-11-13 Jim Meyering <jim@meyering.net>
12227 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
12229 2004-11-12 Simon Josefsson <jas@extundo.com>
12231 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
12232 small doc fix is still pending.
12234 2004-11-11 Simon Josefsson <jas@extundo.com>
12236 * modules/strtok_r: New file.
12238 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12241 2004-11-11 Simon Josefsson <jas@extundo.com>
12243 * m4/strtok_r.m4: New file.
12245 * m4/getopt.m4: Replace opterr.
12247 2004-11-11 Simon Josefsson <jas@extundo.com>
12249 * lib/strtok_r.h, strtok_r.c: New file.
12251 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
12253 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
12254 of replacing opterr, getopt, etc. This should handle the
12255 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
12257 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
12259 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
12260 we can stop lying to compilers about the constness of argv when we
12261 are compiled outside glibc.
12262 (getopt, getopt_long, getopt_long_only): Use it.
12263 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
12264 _getopt_internal, getopt): Likewise.
12265 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
12266 _getopt_long_only_r): Likewise.
12267 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
12268 _getopt_long_r, _getopt_long_only_r): Likewise.
12270 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
12271 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
12272 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
12273 the other external symbols.
12274 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
12275 declaration, since the above renaming now works around collisions.
12277 2004-11-11 Jim Meyering <jim@meyering.net>
12279 * lib/linebreak.c: Remove trailing blanks.
12280 * lib/alloca_.h: Likewise.
12281 * lib/acosl.c: Likewise.
12282 * lib/euidaccess.c: Likewise.
12283 * lib/allocsa.h: Likewise.
12285 2004-11-10 Simon Josefsson <jas@extundo.com>
12287 * m4/getaddrinfo.m4: New file.
12289 2004-11-10 Simon Josefsson <jas@extundo.com>
12291 * lib/getaddrinfo.h, getaddrinfo.c: New files.
12293 2004-11-10 Simon Josefsson <jas@extundo.com>
12295 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12298 * modules/getaddrinfo: New file.
12300 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
12302 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
12304 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
12306 * lib/mktime.c (SHR): New macro, which is a portable
12307 substitute for >> that should work even on Crays.
12308 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
12309 Problem reported by Mark D. Baushke in
12310 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
12311 * lib/getdate.y (SHR): Likewise.
12313 * lib/strftime.c (SHR): Likewise.
12315 * lib/quotearg.c (struct quoting_options): Use unsigned int for
12316 quote_these_too, so that right shifts are well defined. All uses
12319 2004-11-10 Jim Meyering <jim@meyering.net>
12321 Ensure that no close failure goes unreported.
12322 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
12323 return early when it seems there's nothing to flush.
12324 Don't include __fpending.h.
12326 2004-11-10 Jim Meyering <jim@meyering.net>
12328 * modules/closeout (Depends-on): Remove fpending.
12330 2004-11-10 Jim Meyering <jim@meyering.net>
12332 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
12334 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
12336 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
12338 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
12339 and AC_REQUIRE when possible, to avoid duplicate checks.
12340 Check for <wchar.h>.
12342 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
12344 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
12346 2004-11-09 Bruno Haible <bruno@clisp.org>
12348 * m4/sockpfaf.m4: New file.
12350 2004-11-05 Bruno Haible <bruno@clisp.org>
12352 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
12353 Reported by Mark D. Baushke <mdb@cvshome.org>.
12355 2004-11-04 Bruno Haible <bruno@clisp.org>
12357 2004-09-11 Bruno Haible <bruno@clisp.org>
12358 * allocsa.valgrind: New file.
12359 2004-02-06 Bruno Haible <bruno@clisp.org>
12360 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
12361 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
12362 Reported by Christopher Seip <chris.seip@hp.com>.
12364 2004-11-04 Bruno Haible <bruno@clisp.org>
12366 * modules/allocsa (Files): Add lib/allocsa.valgrind.
12367 (Makefile.am): Distribute it.
12369 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
12371 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
12372 with errno == ERANGE if the buffer is too small.
12373 Problem reported by Mark D. Baushke.
12375 2004-11-03 Albert Chin <china@thewrittenword.com>
12376 Paul Eggert <eggert@cs.ucla.edu>
12378 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
12379 equivalent, substitute $ac_type for equivalent type rather than
12380 blindly using uint32_t *always* which won't work if uint32_t is not
12381 available. Define _UINT32_T to work around typedef of uint32_t if
12382 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
12385 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
12387 * m4/jm-macros.m4: Sync from coreutils.
12388 (gl_MACROS): Check for mbrlen, for pathchk.
12389 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
12391 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
12393 * lib/xreadlink.c (MAXSIZE): New macro.
12394 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
12395 size does not exceed MAXSIZE. Avoid cast.
12396 As suggested by Mark D. Baushke in
12397 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
12398 if readlink fails with buffer size just under MAXSIZE, try again
12401 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
12403 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
12405 2004-11-02 Derek R. Price <derek@ximbiot.com>
12406 and Paul Eggert <eggert@cs.ucla.edu>
12408 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
12409 (get_date): Overparenthesize to avoid GCC warning.
12411 2004-11-02 Bruno Haible <bruno@clisp.org>
12413 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
12416 2004-11-02 Bruno Haible <bruno@clisp.org>
12418 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
12419 function returns void.
12421 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
12423 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
12424 fflush_unlocked, flockfile, funlockfile, funlockfile,
12425 fputs_unlocked, putc_unlocked.
12427 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
12429 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
12430 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
12433 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
12435 * modules/getdate (Files): Add doc/getdate.texi.
12436 (Depends-on): Add setenv, xalloc.
12438 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
12440 * lib/getdate.y: Add support for TZ="foo" within a date string.
12441 Fix some bugs near time_t boundaries. Reject dates with
12442 out-of-range components, e.g., "Sept 31".
12443 Include <stdlib.h>, "setenv.h", "xalloc.h".
12444 (ISDIGIT_LOCALE): Remove; unused.
12445 Note that the TZ and time functions used here are not reentrant.
12446 (mktime_ok, get_tz): New functions.
12447 (TZBUFSIZE): New constant.
12448 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
12449 This requires that we sometimes generate our own TZ="XXX..." setting.
12451 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
12453 * doc/getdate.texi: New file, from coreutils with modifications for
12454 the new TZ parsing.
12456 2004-10-27 Derek R. Price <derek@ximbiot.com>
12458 * lib/mktime.c (not_equal_tm): Remove redundant check.
12460 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
12462 * modules/regex (lib_SOURCES): Add regex.c.
12463 Reported by James Youngman in
12464 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
12466 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
12468 * lib/getdate.y: Use Bison 1.875 features, and some minor
12469 code cleanups. This change does not affect semantics.
12470 Don't include <stdlib.h>; no longer needed.
12471 Don't include unlocked-io.h; only the "#if TEST" code uses
12472 stdio, and performance isn't crucial there.
12473 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
12474 Bison 1.875 features as described below.
12475 All uses of "PC." replaced by "pc->".
12476 (YYSTYPE): Add a forward declaration.
12477 (yylex, yyerror): Use full prototypes in forward decls.
12478 Use "%pure-parser" rather than obsolescent "%pure_parser".
12479 Use %parse-param and %lex-param instead of obsolescent
12480 YYPARSE_PARAM and YYLEX_PARAM.
12481 (meridian_table, month_and_day_table, time_units_table,
12482 relative_time_table, time_zone_table, military_table,
12483 lookup_zone, lookup_word, get_date):
12484 Use NULL instead of 0 where appropriate.
12485 (to_hour): Avoid abort (), to avoid a dependency on
12487 (yyerror, yylex): Now accepts parser_control * arg.
12488 (main) [TEST]: Use '\0' rather than 0 for char.
12490 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
12492 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
12494 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
12496 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
12497 It's now the caller's responsibility to handle the case where
12498 !HAVE_GETPAGESIZE && !defined getpagesize.
12500 * lib/mktime.c (leapyear): Arg is long int, not int.
12502 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
12504 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
12506 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
12508 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
12509 missing. Problem reported by James Youngman.
12511 2004-10-16 Simon Josefsson <jas@extundo.com>
12513 * gnulib-tool: Fix comments. Fix parse problem.
12514 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
12516 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
12518 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
12519 implementation of getopt_long. Problem reported by Alexander Taler in:
12520 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
12522 2004-10-15 Bruno Haible <bruno@clisp.org>
12524 * gnulib-tool: Untabify. Initialize supplied_libname.
12525 (func_usage): More homogenous output.
12526 (func_modules_transitive_closure, func_modules_to_filelist,
12527 func_emit_lib_Makefile_am): New functions.
12528 (func_import): New function, extracted from big case statement. Use
12529 func_get_license, func_modules_transitive_closure,
12530 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
12531 opt_lgpl. Don't use test -a, as it's not portable.
12532 (func_create_testdir): Use func_modules_transitive_closure,
12533 func_modules_to_filelist, func_emit_lib_Makefile_am.
12535 2004-10-15 Bruno Haible <bruno@clisp.org>
12537 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
12539 2004-10-15 Bruno Haible <bruno@clisp.org>
12541 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
12542 the portions belonging to each module.
12543 Suggested by Derek Robert Price <derek@ximbiot.com>.
12545 2004-10-12 Simon Josefsson <jas@extundo.com>
12547 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
12548 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
12551 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
12553 * modules/vsnprintf: New file.
12555 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
12557 * m4/vsnprintf.m4: New file.
12559 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
12561 * lib/vsnprintf.h: New file.
12562 * lib/vsnprintf.c: New file.
12564 2004-10-11 Bruno Haible <bruno@clisp.org>
12566 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
12569 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
12571 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
12573 2004-10-07 Bruno Haible <bruno@clisp.org>
12575 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
12576 fits into the provided buffer.
12578 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
12580 * lib/diacrit.c, diacrit.h: Add GPL notice.
12582 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
12584 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
12585 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
12586 This avoids a potential constant-folding bug.
12588 2004-10-05 Bruno Haible <bruno@clisp.org>
12590 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
12591 for the declaration of strsep.
12593 2004-10-05 Bruno Haible <bruno@clisp.org>
12595 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
12597 2004-10-04 Simon Josefsson <jas@extundo.com>
12599 * modules/memmem: New file.
12600 * tests/test-memmem.c: New file.
12601 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
12603 2004-10-04 Simon Josefsson <jas@extundo.com>
12605 * m4/memmem.m4: New file.
12607 2004-10-04 Simon Josefsson <jas@extundo.com>
12609 * lib/memmem.h: New file.
12610 * lib/memmem.c: New file, taken from glibc.
12612 2004-10-04 Simon Josefsson <jas@extundo.com>
12614 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
12615 '#ifdef USE_UNLOCKED_IO'.
12617 2004-10-04 Simon Josefsson <jas@extundo.com>
12619 * config/srclist.txt: Add memmem from glibc.
12621 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
12623 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
12625 * modules/argmatch, modules/argp, modules/closeout, modules/error,
12626 modules/exclude, modules/getdate, modules/getline,
12627 modules/getndelim2, modules/getpass, modules/getpass-gnu,
12628 modules/getusershell, modules/linebuffer, modules/md5,
12629 modules/mountlist, modules/posixtm, modules/readtokens,
12630 modules/readutmp, modules/regex, modules/sha1,
12631 modules/version-etc, modules/yesno:
12632 Remove dependency on unlocked-io.
12634 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
12636 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
12638 * m4/unlocked-io.m4: Add copyright notice.
12639 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
12641 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
12643 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
12644 * lib/xmalloc.c (xmemdup): Likewise.
12645 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
12646 XFREE): Remove these long-obsolescent macros.
12647 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
12648 * lib/xstrdup.c: Remove.
12650 * lib/regex.c (re_comp): Cast gettext return value to char *,
12651 Problem reported by Martin Neitzel via Mark D. Baushke.
12653 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
12655 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
12656 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
12657 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
12658 regex.c, sha1.c, version-etc.c, yesno.c:
12659 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
12660 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
12661 the includer's responsibility.
12663 Sync from coreutils.
12665 * lib/modechange.c (mode_compile): Don't decrement a pointer that
12666 points to the start of a string, as the C Standard says the
12667 resulting behavior is undefined.
12669 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
12670 simple -> simple_backups, numbered_existing ->
12671 numbered_existing_backups, numbered -> numbered_backups
12672 to avoid shadowing problems. All uses changed.
12673 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
12674 * lib/backupfile.c (check_extension, numbered_backup):
12675 Rename locals to avoid shadowing 'basename'.
12676 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
12679 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
12680 * lib/.cvsignore: Add getopt.h.
12682 2004-10-04 Bruno Haible <bruno@clisp.org>
12684 * modules/README: New file.
12685 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
12688 2004-10-02 Jim Meyering <jim@meyering.net>
12690 * lib/dirfd.h, getpagesize.h: Add copyright notice.
12692 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
12694 * modules/strsep: New file.
12696 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
12698 * m4/strsep.m4: New file.
12700 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
12702 * lib/strsep.h: New file.
12703 * lib/strsep.c: New file.
12705 2004-10-01 Simon Josefsson <jas@extundo.com>
12707 * lib/snprintf.c (snprintf): Handle size==0.
12709 2004-10-01 Simon Josefsson <jas@extundo.com>
12710 Bruno Haible <bruno@clisp.org>
12712 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
12713 (snprintf): Declare 'args'.
12715 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
12717 * lib/snprintf.c: Remove comments as to why each header is needed.
12719 2004-10-01 Bruno Haible <bruno@clisp.org>
12721 * MODULES.html.sh: Add strsep.
12723 2004-09-30 Simon Josefsson <jas@extundo.com>
12725 * modules/snprintf: New file.
12727 2004-09-30 Simon Josefsson <jas@extundo.com>
12729 * m4/snprintf.m4: New file.
12731 2004-09-30 Simon Josefsson <jas@extundo.com>
12733 * lib/snprintf.h, snprintf.c: New files.
12735 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
12737 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
12738 (hol_entry_help): Never translate an empty string.
12739 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
12740 * lib/argp.h (OPTION_NO_TRANS): New option.
12742 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
12744 * modules/argp (Maintainer): Replace Simon Josefsson
12745 by Sergey Poznyakoff.
12747 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
12749 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
12750 changes merged back into glibc.
12752 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
12754 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
12756 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
12758 * lib/xvasprintf.c: Include xalloc.h.
12759 (xvasprintf): Use xalloc_die, not xmalloc_die.
12761 2004-09-29 Bruno Haible <bruno@clisp.org>
12763 * modules/alloca-opt: New file, derived from modules/alloca.
12764 * modules/allocsa: Depend on alloca-opt instead of alloca.
12765 * modules/setenv: Likewise.
12766 * modules/vasnprintf: Likewise.
12767 * MODULES.html.sh: Add alloca-opt.
12769 2004-09-28 Simon Josefsson <jas@extundo.com>
12771 * gnulib-tool: New parameter --lgpl, to asseert that modules are
12772 LGPL, and to replace license template from GPL to LGPL.
12774 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
12776 * modules/dummy: Change license to LGPL.
12778 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
12780 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
12782 2004-09-24 Simon Josefsson <jas@extundo.com>
12784 * modules/minmax (License): Change from GPL to LGPL.
12786 2004-09-23 Simon Josefsson <jas@extundo.com>
12788 * gnulib-tool (--import): Typo.
12790 2004-09-23 Simon Josefsson <jas@extundo.com>
12792 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
12794 2004-09-22 Bruno Haible <bruno@clisp.org>
12796 * modules/*: Add 'License' field.
12797 * gnulib-tool: Accept --extract-license option.
12798 (func_get_license): New function.
12800 2004-09-21 Bruno Haible <bruno@clisp.org>
12802 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
12803 Reported by Simon Josefsson.
12805 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
12807 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
12808 gl_AC_TYPE_LONG_LONG.
12810 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
12812 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
12814 2004-09-18 Simon Josefsson <jas@extundo.com>
12815 and Paul Eggert <eggert@cs.ucla.edu>
12817 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
12818 calls with autoreconf. Define GL_LIB.
12820 2004-09-14 Karl Berry <karl@gnu.org>
12822 * config/srclist.txt: unsync setenv.c, sigh.
12824 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
12826 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
12827 Problem reported by Bruno Haible in:
12828 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
12830 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
12832 * config/srclist.txt: Comment out argp-pvh.c.
12834 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
12836 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
12837 in case some system header has #define'd it. Problem reported by
12838 Soeren D. Schulze in
12839 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
12841 2004-09-09 Karl Berry <karl@gnu.org>
12843 * regex.[ch]: delete from the root. These were supposed to be
12844 synced with emacs cvs, but this has not happened for about
12845 a year, and anyway nothing else uses emacs regex.[ch].
12846 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
12847 lib/regex[.ch] is untouched.
12849 2004-09-09 Bruno Haible <bruno@clisp.org>
12851 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
12853 2004-09-09 Bruno Haible <bruno@clisp.org>
12855 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
12857 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
12859 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
12861 * modules/xvasprintf: New file.
12862 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
12864 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
12866 * lib/xvasprintf.h: New file.
12867 * lib/xvasprintf.c: New file.
12868 * lib/xasprintf.c: New file.
12870 2004-09-08 Bruno Haible <bruno@clisp.org>
12872 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
12874 2004-09-08 Bruno Haible <bruno@clisp.org>
12876 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
12877 length is > INT_MAX.
12878 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
12881 2004-09-08 Bruno Haible <bruno@clisp.org>
12883 * lib/stdint_.h: New file, taken from GNU clisp.
12885 2004-09-08 Bruno Haible <bruno@clisp.org>
12886 Oskar Liljeblad <oskar@osk.mine.nu>
12888 * modules/stdint: New file.
12889 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
12891 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
12893 Import from coreutils.
12894 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
12895 strings on unbounded length. alloca's performance benefits aren't
12896 that important here.
12897 (V_STRDUP): Remove.
12898 (parse_with_separator): New function, with most of the internals
12899 of the old parse_user_spec. Allow user to omit both user and group,
12900 for compatibility with FreeBSD.
12901 Clone only the user name, not the entire spec.
12902 Do not set *uid, *gid unless entirely successful.
12903 Avoid memory leak in some failing cases.
12904 Fix regression for USER.GROUP reported by Dmitry V. Levin in
12905 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
12906 (parse_user_spec): Rewrite to use parse_with_separator.
12908 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
12910 * modules/userspec: Don't depend on alloca.
12912 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
12914 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
12916 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
12918 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
12919 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
12920 utimecmp, utimens, xnanosleep. Rename sha to sha1.
12922 2004-08-16 Simon Josefsson <jas@extundo.com>
12924 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
12925 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
12926 Add --dry-run for --import.
12927 Let user provided command line parameters override configure.ac
12930 2004-08-12 Simon Josefsson <jas@extundo.com>
12932 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
12933 as discussed with Paul Eggert in threads rooted at
12934 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
12936 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
12937 Before, the test was empty, and relied on ELIDE_CODE in source
12939 (gl_PREREQ_GETOPT): New macro.
12940 (gl_GETOPT): Use them.
12942 2004-08-12 Simon Josefsson <jas@extundo.com>
12944 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
12945 * lib/getopt_.h: Renamed from getopt.h.
12947 2004-08-12 Simon Josefsson <jas@extundo.com>
12949 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
12950 Change default library name from libfoo to libgnu.
12951 Now, if you have a configure.ac that says:
12954 gl_MODULES(error getopt etcetera)
12956 you can import all you need by running:
12957 ../gnulib/gnulib-tool --import
12959 * modules/getopt (Files): Rename getopt.h to getopt_.h.
12960 (Makefile.am): Rewrite, use logic from argz.
12961 (Include): Use <getopt.h> instead of "getopt.h".
12963 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12965 * modules/argp (Files): Add m4/unlocked-io.m4.
12966 (Depends-on): Add extensions.
12968 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12970 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
12971 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
12972 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
12973 Check for program_invocation_name, program_invocation_short_name,
12974 flockfile, funlockfile, features.h, _getopt_long_only_r.
12976 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12978 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
12979 its complicated substitute.
12980 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
12981 and program_invocation_name.
12982 (__argp_basename) [!_LIBC]: Remove; the only use was
12983 replaced by its body.
12984 (__argp_short_program_name): Change condition from
12985 !defined __argp_short_program_name to
12986 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
12987 to match argp-namefrob.h.
12988 (__argp_failure): Don't assume strerror_r returns char *.
12989 * lib/argp-parse.c (N_): Define unconditionally.
12990 (argp_default_options): Fill out initializers with 0 to avoid
12993 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12995 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
12998 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
13000 Merge from coreutils.
13002 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
13004 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
13005 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
13007 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
13009 Merge from coreutils.
13011 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
13012 wmemchr or wmemcpy. Problem reported by Robert Dahlem
13013 for Reliant Unix 5.43.
13015 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
13016 (union fooround): Use uintmax_t, not long int.
13017 The rest is a merge from libc:
13018 [defined _LIBC]: Include <shlib-compat.h>.
13019 (_obstack) [defined _LIBC]: Remove after 2.3.4.
13021 * lib/settime.c (settime): Recode to avoid warning with
13024 * lib/strverscmp.c: Convert to UTF-8.
13026 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
13028 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
13031 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
13033 * modules/xalloc-die: New file.
13034 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
13036 * modules/md5 (Files): Add m4/uint32_t.m4.
13037 * modules/sha1: Renamed from modules/sha.
13039 Rename lib/sha.h to lib/sha1.h.
13040 Rename lib/sha.c to lib/sha1.c.
13041 Rename m4/sha.m4 to m4/sha1.m4.
13042 (lib_SOURCES): Likewise.
13043 (configure.ac): Rename gl_SHA to gl_SHA1.
13044 (Include): sha.h -> sha1.h.
13046 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
13048 * m4/uint32_t.m4, uintptr_t.m4: New files.
13049 * m4/sha1.m4: Renamed from sha.m4.
13050 (gl_SHA1): Renamed from gl_SHA. All uses changed.
13052 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
13054 * lib/obstack.h (obstack_empty_p):
13055 Don't assume that chunk->contents is suitably aligned.
13056 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
13057 Likewise. Problem reported by Benno in
13058 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
13060 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
13061 readable. This could be improved further but it'd take some work.
13063 2004-08-08 Simon Josefsson <jas@extundo.com>
13065 * modules/xgethostname (Depends-on): Remove exit and error (not
13068 * modules/getpass-gnu: Add getpass.h.
13069 (Depends-on): Add stdbool.
13070 * modules/getpass: Add getpass.h.
13072 2004-08-08 Simon Josefsson <jas@extundo.com>
13074 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
13075 Check getpass declaration.
13077 2004-08-08 Simon Josefsson <jas@extundo.com>
13079 * lib/xgethostname.c: Don't include error.h (not used).
13081 * lib/getpass.h: Add.
13082 * lib/getpass.c: Include getpass.h first.
13084 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
13086 * lib/xalloc-die.c: New files.
13087 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
13089 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
13090 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
13092 (_, N_, xalloc_die): Move to xalloc-die.c.
13093 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
13094 so that we needn't mess with xalloc_msg_memory_exhausted.
13096 * lib/sha1.h: Renamed from sha.h.
13097 (SHA1_H): Renamed from _SHA_H.
13098 (sha1_ctx): Renamed from sha_ctx.
13099 (sha1_init_ctx): Renamed from sha_init_ctx.
13100 (sha1_process_block): Renamed from sha_process_block.
13101 (sha1_process_bytes): Renamed from sha_process_bytes.
13102 (sha1_finish_ctx): Renamed from sha_finish_ctx.
13103 (sha1_read_ctx): Renamed from sha_read_ctx.
13104 (sha1_stream): Renamed from sha_stream.
13105 (sha1_buffer): Renamed from sha_buffer.
13106 * lib/sha1.c: Likewise; renamed from sha.c.
13107 Do not include <sys/types.h>.
13108 Include <stddef.h> rather than <stdlib.h>.
13110 2004-08-08 Bruno Haible <bruno@clisp.org>
13112 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
13113 FILESYSTEM_PREFIX_LEN.
13114 * lib/progreloc.c: Likewise.
13115 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
13117 2004-08-06 Simon Josefsson <jas@extundo.com>
13119 * modules/progname (Depends-on): Don't depend on stdbool.
13121 2004-08-06 Simon Josefsson <jas@extundo.com>
13123 * modules/getsubopt: New file.
13124 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13127 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
13129 More merge from coreutils.
13131 * m4/utimens.m4, utimecmp.m4: New files.
13132 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
13133 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
13134 prereq.m4, sha.m4: Import changes from coreutils.
13136 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
13138 More merge from coreutils.
13139 * modules/raise, modules/readtokens0, modules/utimens,
13140 modules/utimecmp, module/xnanosleep: New files.
13141 * modules/strftime: Add lib/strftime.h.
13142 Change include from <time.h> to "strftime.h".
13143 * modules/yesno: Add lib/yesno.h.
13144 * modules/backupfile: Remove lib/addext.c.
13145 * modules/euidaccess: Add stat-macros.h.
13146 * modules/canonicalize, modules/euidaccess,
13147 modules/filemode, modules/lchown, modules/makepath,
13148 modules/rmdir, modules/stat: Likewise.
13150 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
13153 * lib/argp-help.c (make_hol, hol_append): Don't assume that
13154 SIZE_MAX is a valid preprocessor constant.
13155 (__argp_basename): Change from "#ifndef _LIBC"
13156 to "#ifndef __argp_short_program_name", so that
13157 we don't compile these functions for tar.
13159 More merges from coreutils.
13160 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h,
13161 lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c,
13162 lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
13163 * lib/addext.c: Remove; no longer needed.
13164 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
13165 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
13166 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
13167 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
13168 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
13169 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
13170 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
13171 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
13172 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
13173 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
13174 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
13175 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
13176 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
13177 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
13178 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
13179 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
13180 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
13181 Import changes from coreutils.
13183 2004-08-05 Simon Josefsson <jas@extundo.com>
13185 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
13187 2004-08-05 Simon Josefsson <jas@extundo.com>
13189 * m4/getsubopt.m4: New file.
13191 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
13193 Merge from coreutils.
13195 * m4/c-strtod.m4, canonicalize.m4, fcntl-safer.m4, getcwd-path-max.m4:
13198 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
13199 FILESYSTEM_PREFIX_LEN ->
13200 FILE_SYSTEM_PREFIX_LEN.
13201 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
13202 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
13203 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
13204 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
13206 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
13207 prerequisite modules now handle the DOS stuff.
13208 Don't check for unistd.h.
13210 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
13212 Merge from coreutils.
13214 * lib/.gdb-history: Remove; this doesn't belong here.
13216 * lib/c-strtod.c, c-strtod.h, c-strtold.c, cycle-check.c,
13217 cycle-check.h, dev-ino.h, canonicalize.h, canonicalize.c,
13218 fcntl-safer.h, fcntl-safer.c, getcwd.c: New files.
13220 * lib/dirname.h: Include <stdbool.h>.
13221 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
13222 for consistency with POSIX terminology. All uses changed.
13223 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
13224 (strip_trailing_slashes): Use bool for booleans.
13225 * lib/stripslash.c (strip_trailing_slashes): Likewise.
13227 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
13228 sometimes returns a positive errno value even when it succeeds.
13229 (print_errno_message) [!LIBC]: Fall back on strerror if
13230 __strerror_r fails.
13232 * lib/path-concat.c (mempcpy): Don't define if a system header defines
13233 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
13234 (longest_relative_suffix): New function.
13235 (path_concat): Use it. Assume first argument is not NULL.
13236 Port to DOS. Omit redundant separators.
13237 Report an error instead of returning NULL.
13238 Use mempcpy instead of memcpy.
13239 (xpath_concat): Remove: not declared or used.
13241 * lib/same.h: Include <stdbool.h>
13242 (same_name): Return bool, not int.
13243 * lib/same.c (same_name): Likewise.
13244 (errno): Don't declare; we assume C89 or better now.
13246 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
13247 if not already defined.
13249 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
13250 * lib/dup-safer.c (errno): Likewise.
13252 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
13254 Merge from coreutils.
13255 * modules/c-strtod, modules/c-strtold, modules/canonicalize,
13256 modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
13257 * modules/path-concat: Don't depend on strdup.
13259 2004-08-03 Simon Josefsson <jas@extundo.com>
13261 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
13262 * lib/progname.h: Don't include stdbool.h.
13264 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
13266 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
13267 * MODULES.html.sh (func_all_modules): Remove fatal.
13269 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
13271 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
13273 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
13275 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
13278 2004-08-02 Simon Josefsson <jas@extundo.com>
13280 * lib/getsubopt.h: New file, with comments from Bruno Haible.
13281 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
13282 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
13284 2004-08-01 Simon Josefsson <jas@extundo.com>
13286 * lib/xgetdomainname.c: Include stdlib.h, for free().
13288 2004-07-19 Bruno Haible <bruno@clisp.org>
13290 * MODULES.html.sh (func_all_modules): Add dummy.
13292 2004-07-16 Simon Josefsson <jas@extundo.com>
13294 * modules/dummy: New file.
13296 2004-07-16 Simon Josefsson <jas@extundo.com>
13298 * lib/dummy.c: New file.
13300 2004-07-16 Bruno Haible <bruno@clisp.org>
13302 * lib/backupfile.h: Add extern "C" for C++.
13303 * lib/closeout.h: Likewise.
13304 * lib/copy-file.h: Likewise.
13305 * lib/findprog.h: Likewise.
13306 * lib/full-write.h: Likewise.
13307 * lib/pathname.h: Likewise.
13308 * lib/progname.h: Likewise.
13309 * lib/stpcpy.h: Likewise.
13310 * lib/stpncpy.h: Likewise.
13311 * lib/strcase.h: Likewise.
13312 * lib/strstr.h: Likewise.
13313 * lib/xalloc.h: Likewise.
13315 * lib/mbswidth.h: Add extern "C" for C++.
13316 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
13318 2004-07-13 Robert Millan <robertmh@gnu.org>
13320 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
13322 2004-07-09 Simon Josefsson <jas@extundo.com>
13324 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
13325 failed without this.)
13327 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
13329 * modules/chown (Files): Add lib/fchown-stub.c, since
13330 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
13332 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
13334 * lib/fchown-stub.c: New file.
13336 2004-06-24 Jim Meyering <jim@meyering.net>
13338 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
13340 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
13342 * modules/argz: Omit "#include".
13344 * MODULES.html.sh (func_all_modules): Add calloc, to match
13345 2004-06-01 addition of calloc module.
13347 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
13349 * m4/argz.m4: New file, which is autoupdated from libtool.
13351 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
13353 * lib/argz.c, argz_.h: New files, which are autoupdated from libtool.
13355 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
13357 * config/srclist-update: Don't insist on "USA." before the
13358 close-comment, as libtool omits the period and puts the */ on a
13360 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
13361 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
13363 2004-06-22 Gary V. Vaughan <gary@gnu.org>
13365 * modules/argz: New file.
13366 * MODULES.html.sh (func_all_modules): Add argz.
13368 2004-06-12 Jim Meyering <jim@meyering.net>
13369 and Paul Eggert <eggert@cs.ucla.edu>
13371 * modules/hash (Files): Add lib/xalloc.h.
13372 * modules/pipe (Depends-on): Add wait-process.
13373 * modules/stat (Depends-on): Add xalloc.
13374 * modules/userspec (Files): Add lib/userspec.h.
13377 Upgrade from gettext-0.13.
13378 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
13379 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
13380 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
13382 2004-06-10 Jim Meyering <jim@meyering.net>
13384 * lib/calloc.c: New file.
13386 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
13388 * lib/getdate.y (yylex): Allow space between sign and number.
13389 Problem reported by Dan Jacobson.
13391 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
13393 Merge from coreutils CVS.
13395 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
13396 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
13397 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
13398 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
13399 xstrtol.m4: Fix copyright date and/or serial number.
13401 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
13402 See if we need an fchown replacement.
13403 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
13404 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
13405 and use the replacement function if we detect either defect.
13407 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
13410 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
13411 and Jim Meyering <jim@meyering.net>
13413 Merge from coreutils CVS.
13415 * lib/stat-macros.h: New file, with contents from file-type.h
13416 and coreutils' system.h.
13417 * lib/file-type.c: Include "stat-macros.h".
13418 * lib/file-type.h (file_type): Move all macro definitions to new file,
13421 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
13422 Wrap old code with this conditional.
13423 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
13424 function that does not dereference symlinks.
13425 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
13427 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
13428 dependency problems.
13429 (xreadlink): Accept new arg SIZE, for efficiency.
13430 All decls and uses changed.
13431 * lib/xreadlink.h: Include <stddef.h>, for size_t.
13433 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
13434 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
13436 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
13439 2004-06-01 Jim Meyering <jim@meyering.net>
13441 * m4/calloc.m4: New file.
13443 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
13445 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
13446 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
13447 Also, fix a typo in a diagnostic.
13449 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
13451 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
13452 or AC_FUNC_REALLOC.
13454 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
13456 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
13457 macros to be defined.
13458 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
13459 the allocator returns NULL because the requested size is zero.
13461 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
13463 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
13464 var. Add comment explaining why libc still defines it. This
13465 merges the following patch from glibc:
13466 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
13468 2004-05-20 Andreas Schwab <schwab@suse.de>
13470 * m4/free.m4: Replace free if it not known to work, not the other
13473 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
13475 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
13476 present in glibc since revision 1.1 of this file.
13477 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
13478 obstack_alignment_mask, obstack_alloc, obstack_base,
13479 obstack_blank, obstack_blank_fast, obstack_chunk_size,
13480 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
13481 obstack_grow0, obstack_init, obstack_int_grow,
13482 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
13483 obstack_next_free, obstack_object_size, obstack_ptr_grow,
13484 obstack_ptr_grow_fast, obstack_room): Remove declarations of
13485 nonexistent functions.
13487 2004-05-18 Karl Berry <karl@gnu.org>
13489 * config/srclist.txt: break link for vasnprintf.c.
13491 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
13493 Port obstack to the AS/400, where pointers are 16 bytes wide and
13494 you cannot cast an integer to a valid pointer. This patch is
13495 currently waiting to be integrated into glibc; see
13496 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
13498 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
13499 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
13500 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
13501 (struct obstack): temp member is now a union of a pointer and
13502 an integer, instead of an integer. All integer uses changed.
13503 This does not affect the physical layout of struct obstack,
13504 except on hosts (like the AS/400) where the size or alignment of
13505 void * is greater than that of ptrdiff_t.
13506 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
13507 __STDC__)]: Store temporary in pointer member of union, not
13509 * lib/obstack.c: Include <stddef.h>, for offsetof.
13510 (struct fooalign): Remove; it doesn't need a name.
13511 (union fooround): Change double to long double, and add void *.
13512 (DEFAULT_ALIGNMENT): Use offsetof to compute.
13513 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
13514 not a macro. Hence the values are always int; so remove all
13515 casts-to-int in uses.
13517 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
13519 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
13520 we can get this patch merged into glibc.
13522 2004-05-17 Derek R. Price <derek@ximbiot.com>
13523 Paul Eggert <eggert@cs.ucla.edu>
13525 * m4/argp: Depend on alloca.
13527 2004-05-17 Derek R. Price <derek@ximbiot.com>
13528 Paul Eggert <eggert@cs.ucla.edu>
13530 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
13533 2004-05-17 Bruno Haible <bruno@clisp.org>
13535 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
13536 precision that consists of a '.' followed by an empty digit string.
13537 Patch by Tor Lillqvist <tml@iki.fi>.
13539 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
13541 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
13542 for backward compatibility with older code. We need our own
13543 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
13544 it under some other name, and our alloca.h will define it.
13546 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
13547 Derek Price <derek@ximbiot.com>
13549 * lib/alloca.c: Include <alloca.h>, to get our interface.
13550 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
13551 include <alloca.h> first. Use C89 prototype for alloca; this
13552 requires including <stddef.h> for size_t. Use extern "C" if C++.
13553 Use #elif for simplicity, since we can assume C89 now.
13554 Don't try to source the system alloca.h since it will not be found
13555 and to prevent recursively including its replacement.
13556 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
13557 * lib/regex.c: Likewise.
13559 2004-05-16 Derek Price <derek@ximbiot.com>
13560 Paul Eggert <eggert@cs.ucla.edu>
13562 getline cleanup. This changes the getndelim2 API: both order of
13563 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
13566 * lib/getline.c: Don't include stddef.h or stdio.h, since our
13567 interface does that.
13568 (getline): Always use getdelim, so that we don't have two
13569 copies of this code.
13570 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
13572 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
13573 (GETNDELIM2_MAXIMUM): New macro.
13574 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
13575 instead of the old practice of delim2==0. All callers changed.
13576 Return -1 on overflow, instead of returning junk.
13577 Do not set *linesize unless allocation succeeds.
13578 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
13579 that we include sys/types.h.
13580 * lib/getnline.h: Likewise.
13581 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
13582 (getndelim2): Reorder arguments.
13583 * lib/getnline.c (getnline, getndelim):
13584 Don't discard the NMAX argument.
13585 (getnline): Invoke getndelim, to avoid code duplication.
13586 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
13587 of (size_t) -1 by callers of the getnline family.
13589 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
13591 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
13592 Check for gettimeofday.
13593 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
13594 Check for settimeofday, stime.
13596 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
13598 * lib/nanosleep.c (suspended): Change its type from int to
13599 sig_atomic_t volatile.
13600 (first_call): Make it private to rpl_nanosleep, and have it
13601 be zero initially as that's a bit faster.
13602 (my_usleep): Round up fractional times instead of truncating them,
13603 as this is the usual meaning for 'sleep'.
13605 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
13607 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
13608 (ENOSYS): Define if not defined.
13609 (settime): Fall back on stime if it exists and settimeofday fails.
13610 But don't bother with fallbacks if a method fails with errno == EPERM.
13612 2004-05-11 Jim Meyering <jim@meyering.net>
13614 Prior to this change, the save_cwd caller required read access to the
13615 current directory on most systems (ones with the fchdir function).
13617 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
13618 fails, try write-only, and finally, resort to using xgetcwd.
13620 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
13622 * lib/obstack.c, obstack.h: Import changes from libc.
13624 2004-04-28 Bruno Haible <bruno@clisp.org>
13626 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
13627 also implicitly appends .exe to executables.
13628 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
13629 accepts Windows pathnames.
13630 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
13631 Treat Cygwin like Windows, since it now accepts Windows pathnames.
13632 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
13633 Treat Cygwin like Windows, since it now accepts Windows pathnames.
13634 Reported by Derek Robert Price <derek@ximbiot.com>.
13636 2004-04-21 Karl Berry <karl@gnu.org>
13638 * config/srclist.txt (localcharset.c): break sync.
13640 2004-04-20 Paul Eggert <eggert@twinsun.com>
13642 * m4/host-os.m4: Add a copyright notice.
13644 2004-04-20 Jim Meyering <jim@meyering.net>
13646 Change UTILS_ to gl_ in AC_DEFINE'd names.
13647 Change utils_- and jm_-prefixed variables, too.
13648 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
13649 UTILS_FUNC_MKDIR_TRAILING_SLASH.
13650 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
13652 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
13653 Don't emit trailing blanks.
13654 Also rename jm_-prefixed variables to have gl_ prefix.
13656 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
13657 Also rename jm_-prefixed variables to have gl_ prefix.
13659 * m4/jm-macros.m4: Reflect the renamings.
13660 * m4/prereq.m4: Likewise.
13662 2004-04-20 Jim Meyering <jim@meyering.net>
13664 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
13667 2004-04-20 Jim Meyering <jim@meyering.net>
13668 Bruno Haible <bruno@clisp.org>
13670 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
13671 memory when realloc fails.
13673 2004-04-19 Jim Meyering <jim@meyering.net>
13675 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
13676 now that readutmp.c may call `free (0)'.
13678 2004-04-19 Bruno Haible <bruno@clisp.org>
13680 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
13681 * m4/inttypes_h.m4: Likewise.
13682 * m4/stdint_h.m4: Likewise.
13683 * m4/intmax_t.m4: Likewise.
13684 * m4/uintmax_t.m4: Likewise.
13686 2004-04-18 Jim Meyering <jim@meyering.net>
13688 * m4/prereq.m4: Don't forbid jm_ prefix.
13690 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
13691 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
13692 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
13693 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
13694 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
13695 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
13696 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
13697 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
13698 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
13699 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
13700 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
13701 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
13702 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
13703 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
13704 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
13705 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
13706 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
13707 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
13708 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
13710 2004-04-18 Jim Meyering <jim@meyering.net>
13712 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
13713 failure, don't leak memory and do call END_UTMP_ENT.
13715 2004-04-16 Jim Meyering <jim@meyering.net>
13717 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
13718 coreutils' stat program.
13719 (gl_PREREQ): Don't require jm_PREREQ_STAT.
13721 2004-04-11 Paul Eggert <eggert@twinsun.com>
13723 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
13725 (CHAR_BIT): Remove, since we assume C89.
13726 Include <stdint.h> if available, as per current Autoconf CVS advice.
13728 2004-03-31 Jim Meyering <jim@meyering.net>
13730 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
13731 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
13732 * m4/xalloc.m4: Likewise.
13734 2004-03-30 Paul Eggert <eggert@twinsun.com>
13736 Merge from coreutils.
13738 * m4/inttostr.m4: New file.
13739 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
13740 Require AM_STDBOOL_H and gl_TIMESPEC instead.
13741 Require gl_CLOCK_TIME.
13742 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
13744 2004-03-30 Paul Eggert <eggert@twinsun.com>
13746 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
13747 not bool, to be more consistent with Unix conventions.
13748 Suggested by Bruno Haible.
13750 Merge from coreutils.
13752 * lib/imaxtostr.c, inttostr.c, inttostr.h, offtostr.c, umaxtostr.c:
13755 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
13756 the usual <time.h> dance.
13757 (get_date): Change signature to support fractional time stamps.
13758 All callers changed.
13759 * lib/getdate.y: Include "getdate.h" first, as we can now
13760 assume C89 and don't need to worry about 'const'.
13761 Similarly, include "unlocked-io.h" near start, not in middle.
13762 Include <limits.h>.
13763 (textint.value): Use long int rather than int.
13764 (textint.digits): Use size_t rather than int.
13765 (BILLION, LOG10_BILLION): New constants.
13766 (parser_control): New member rel_ns. Members day_ordinal,
13767 time_zone, month, day, hour, minutes, rel_year, rel_month,
13768 rel_day, rel_hour, rel_minutes, rel_seconds
13769 are now long int, not int. Member seconds is now struct timespec,
13770 not int. New member timespec_seen. Members dates_seen, days_seen,
13771 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
13773 (%union.intval): Now long int, not int.
13774 New member timespec.
13775 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
13776 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
13777 (spec): Now is a timespec or an item list.
13778 (timespec, items): New nonterminals.
13779 (time, rel, relunit, number, get_date):
13780 Add support for fractional seconds.
13781 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
13782 (gmtime, localtime, mktime): Remove decls; not needed with C89.
13783 (to_hour): First arg is now long int, not int.
13784 (to_year): Returns long int, not int.
13785 Don't treat year -70 like 70.
13786 (tm_diff): Returns long int, not int.
13787 (lookup_word): Use bool instead of int when appropriate.
13788 (yylex): Use size_t for count, not int.
13789 Detect overflow when parsing large integer constants.
13790 Add support for fractions.
13791 (get_date): Make pointers 'const' if possible.
13792 Use more-portable code to detect integer overflow.
13793 (main) [TEST]: Adjust to above changes. Test for localtime failure.
13794 Don't use ctime; it's not reliable if the year has >4 digits.
13796 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
13797 This is for compatibility with BSD.
13799 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
13800 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
13801 From coreutils' system.h.
13803 * lib/userspec.c: Don't include "posixver.h".
13804 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
13805 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
13806 compatible extension. Simplify code by removing a boolean int
13807 that was always nonzero if a string was nonnull.
13809 2004-03-30 Jim Meyering <jim@meyering.net>
13811 Merge from coreutils.
13813 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
13814 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
13815 on some systems one must include <grp.h> before it.
13816 Reported by Christian Krackowizer.
13818 2004-03-30 Jim Meyering <jim@meyering.net>
13820 Merge from coreutils.
13822 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
13824 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
13825 an empty input stream.
13827 * lib/readtokens.c: Include <stdbool.h>.
13828 (readtoken): Use `size_t' rather than int/long.
13829 All callers adjusted.
13830 Use `bool' rather than `int' where appropriate.
13831 Use memset rather than an explicit loop.
13832 Use x2nrealloc rather than xrealloc.
13833 Allow the use of `\0' as a delimiter.
13834 (readtokens): Likewise.
13835 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
13837 2004-03-30 Jim Meyering <jim@meyering.net>
13839 * m4/realloc.m4: Remove file, since now it does no more than
13840 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
13841 the `configure.ac' section of module/realloc.
13842 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
13844 2004-03-30 Bruno Haible <bruno@clisp.org>
13846 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
13849 2004-03-29 Paul Eggert <eggert@twinsun.com>
13851 Merge changes to getloadavg.c from coreutils and Emacs.
13853 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
13854 Define to an expression, not to the empty string.
13855 Include cloexec.h and xalloc.h.
13856 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
13857 Use set_cloexec_flag rather than rolling our own.
13858 * lib/cloexec.c, cloexec.h: New files.
13860 2004-03-29 Paul Eggert <eggert@twinsun.com>
13862 * m4/cloexec.m4: New file.
13864 2004-03-18 Paul Eggert <eggert@twinsun.com>
13866 * lib/getopt.h: Sync with libc CVS.
13868 2004-03-18 Paul Eggert <eggert@twinsun.com>
13869 Bruno Haible <bruno@clisp.org>
13871 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
13874 2004-03-18 Paul Eggert <eggert@twinsun.com>
13875 Bruno Haible <bruno@clisp.org>
13877 * lib/mbswidth.h: Include <wchar.h> only if
13878 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
13880 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
13882 2004-03-09 Paul Eggert <eggert@twinsun.com>
13884 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
13885 Sync with libc CVS.
13886 * lib/getopt_int.h: New file, also synced from libc.
13888 2004-03-09 Paul Eggert <eggert@twinsun.com>
13890 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
13891 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
13892 Bring back getopt.c, getopt.h, getopt1.c.
13894 2004-03-07 Paul Eggert <eggert@twinsun.com>
13896 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
13897 All uses changed. Check for sa_sigaction member; this fixes
13898 a bug first reported by Jason Andrade in
13899 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
13901 2004-03-07 Paul Eggert <eggert@twinsun.com>
13903 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
13904 '#if' expressions. Unlike the code it replaces, it does not
13905 depend on (defined _SC_PAGESIZE). However, it does depend on
13906 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
13907 first reported by Jason Andrade in
13908 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
13910 2004-02-25 Simon Josefsson <jas@extundo.com>
13912 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
13914 2004-02-25 Simon Josefsson <jas@extundo.com>
13916 * lib/strdup.h: New file.
13917 * lib/strdup.c: Include it.
13918 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
13919 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
13921 2004-02-23 Karl Berry <karl@gnu.org>
13923 * doc/maintain.texi, standards.texi, make-stds.texi: new files
13924 (from fencepost.gnu.org:/gd/gnuorg).
13926 2004-02-23 Karl Berry <karl@gnu.org>
13928 * config/srclistvars.sh (GNUORG) [karl]: redefine.
13929 * config/srclist.txt: add maintain/standards documents.
13931 2004-02-18 Bruno Haible <bruno@clisp.org>
13933 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
13934 Reported by Derek Robert Price <derek@ximbiot.com>.
13936 2004-02-16 Karl Berry <karl@gnu.org>
13938 * config/mkinstalldirs, install-sh: update from automake.
13940 2004-02-06 Karl Berry <karl@gnu.org>
13942 * m4/po.m4: update from gettext 0.14.1.
13944 2004-02-06 Karl Berry <karl@gnu.org>
13946 * lib/config.charset: update from gettext 0.14.1.
13948 2004-02-05 Paul Eggert <eggert@twinsun.com>
13950 Add comments and code, prompted by suggestions from Bruno Haible
13952 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
13953 describing the enum quoting_style values.
13954 * lib/quotearg.c (quotearg_alloc): New function.
13955 (quotearg_buffer_restyled): Treat lone { and } as special.
13956 Treat = as special. Work around bug with older shells
13957 that "see" a '\' that is really the 2nd byte of a multibyte char.
13958 Quote empty string with shell_quoting_style.
13960 2004-02-03 Bruno Haible <bruno@clisp.org>
13962 * m4/pipe.m4: New file, from GNU gettext.
13964 2004-02-03 Bruno Haible <bruno@clisp.org>
13966 * lib/pipe.h: New file, from GNU gettext.
13967 * lib/pipe.c: New file, from GNU gettext.
13969 2004-01-27 Bruno Haible <bruno@clisp.org>
13971 * m4/execute.m4: New file, from GNU gettext.
13973 2004-01-27 Bruno Haible <bruno@clisp.org>
13975 * lib/execute.h: New file, from GNU gettext.
13976 * lib/execute.c: New file, from GNU gettext.
13977 * lib/w32spawn.h: New file, from GNU gettext.
13979 2004-01-24 Paul Eggert <eggert@twinsun.com>
13981 Merge from diffutils.
13983 * lib/file-type.c (file_type): Add typed memory objects.
13984 * lib/file-type.h (S_TYPEISTMO): New macro.
13986 * lib/c-stack.h (c_stack_action): Remove argv argument.
13987 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
13988 (die): Don't calculate message unless segv_action returns.
13989 (get_stack_location, min_address_from_argv, max_address_from_argv,
13990 volatile stack_base, volatile_stack_size): Remove.
13991 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
13992 that every segmentation violation is a stack overflow. (Ouch!)
13993 See Debian bug 136249 (still outstanding) for more info about why
13994 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
13996 2004-01-24 Paul Eggert <eggert@twinsun.com>
13998 Exit-status fix from coreutils.
14000 Use exit_failure consistently in place of EXIT_FAILURE,
14001 so that program exit statuses are consistent on failure.
14003 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
14004 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
14005 * lib/argmatch.h: Comment fix to match the above.
14006 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
14007 Now a macro referring to exit_failure, instead of a separate
14008 variable. Include "exitfail.h" to get it.
14009 * lib/xstrtol.h: Include "exitfail.h".
14010 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
14012 * lib/long-options.c (parse_long_options): Use prototype
14013 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
14016 2004-01-21 Jim Meyering <jim@meyering.net>
14018 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
14019 so as not to conflict with a different-sized __mktime_internal
14020 function in GNU libc.
14021 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
14022 Problem building statically-linked `ls' reported by Michael Brunnbauer.
14024 2004-01-20 Karl Berry <karl@gnu.org>
14026 * config/config.guess: update from config.
14028 * config/srclistvars.sh: GNUWWWLICENSES for karl.
14030 2004-01-20 Bruno Haible <bruno@clisp.org>
14032 Safer stack allocation.
14033 * lib/setenv.c: Include allocsa.h.
14034 (alloca): Remove fallback definition.
14035 (freea): Remove macro.
14036 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
14039 2004-01-20 Bruno Haible <bruno@clisp.org>
14041 * m4/eealloc.m4: New file, from GNU gettext.
14043 2004-01-20 Bruno Haible <bruno@clisp.org>
14045 * m4/allocsa.m4: New file, from GNU gettext.
14047 2004-01-20 Bruno Haible <bruno@clisp.org>
14049 * lib/xallocsa.h: New file, from GNU gettext.
14050 * lib/xallocsa.c: New file, from GNU gettext.
14052 2004-01-20 Bruno Haible <bruno@clisp.org>
14054 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
14056 2004-01-20 Bruno Haible <bruno@clisp.org>
14058 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
14059 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
14062 2004-01-20 Bruno Haible <bruno@clisp.org>
14064 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
14067 2004-01-20 Bruno Haible <bruno@clisp.org>
14069 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
14071 2004-01-20 Bruno Haible <bruno@clisp.org>
14073 * lib/eealloc.h: New file.
14075 2004-01-20 Bruno Haible <bruno@clisp.org>
14077 * lib/binary-io.h: Avoid warnings on Cygwin.
14079 2004-01-20 Bruno Haible <bruno@clisp.org>
14081 * lib/allocsa.h: New file, from GNU gettext.
14082 * lib/allocsa.c: New file, from GNU gettext.
14084 2004-01-18 Karl Berry <karl@gnu.org>
14086 * doc/gpl.texi, lgpl.texi: new files.
14088 2004-01-18 Karl Berry <karl@gnu.org>
14090 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
14091 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
14093 2004-01-15 Paul Eggert <eggert@twinsun.com>
14095 Merge from coreutils.
14097 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
14098 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
14099 (gl_DEFAULT_POSIX2_VERSION): Move
14100 the documentation from 'configure' into 'config.hin',
14101 so that 'configure --help' isn't burdened by it and
14102 we don't have to worry about its formatting there.
14103 Reword the documentation so that it's more succinct
14104 and can be run together into a single paragraph.
14105 * m4/same.m4 (gl_SAME): Check for pathconf.
14107 2004-01-15 Paul Eggert <eggert@twinsun.com>
14109 Merge from coreutils.
14111 * lib/posixver.c: Include posixver.h.
14113 * lib/same.c: Include <stdbool.h>, <limits.h>.
14114 (_POSIX_NAME_MAX): Define if not defined.
14116 (same_name): If file names are silently truncated, report
14117 that the file names are the same if they are the same after
14118 the silent truncation.
14120 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
14121 conversion function.
14122 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
14123 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
14126 2004-01-15 Jim Meyering <jim@meyering.net>
14128 Merge from coreutils.
14130 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
14131 if no library is required.
14132 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
14133 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
14134 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
14135 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
14136 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
14137 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
14138 value, $ac_cv_search_crypt, if it's "none required".
14139 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
14140 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
14141 not gl_FUNC_GETLOADAVG.
14142 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
14143 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
14145 2004-01-15 Jim Meyering <jim@meyering.net>
14147 Merge from coreutils.
14149 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
14150 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
14151 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
14153 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
14154 optional configure-time default.
14156 * lib/version-etc.c (version_etc_copyright): Update copyright date.
14158 * lib/xreadlink.c (xreadlink): Correct outdated comment.
14160 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
14162 Merge from coreutils.
14164 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
14165 value, $ac_cv_search_nanosleep, if it's "none required".
14167 2004-01-14 Paul Eggert <eggert@twinsun.com>
14169 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
14170 with like-named macro in fnmatch.c.
14171 (EXT): Use an internal constant instead.
14173 Merge fnmatch patches from glibc.
14174 * lib/fnmatch.c (mbsinit): Remove define.
14175 Add libc_hidden_ver (__fnmatch, fnmatch).
14176 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
14177 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
14179 2004-01-14 Karl Berry <karl@gnu.org>
14181 * config/install-sh: update from automake.
14183 2004-01-13 Karl Berry <karl@gnu.org>
14185 * config/install-sh: update from automake.
14187 2004-01-09 Karl Berry <karl@gnu.org>
14189 * config/install-sh: update from automake.
14191 2004-01-05 Karl Berry <karl@gnu.org>
14193 * config/config.{sub,guess}: update from config.
14195 2003-12-31 Karl Berry <karl@gnu.org>
14197 * config/depcomp: update from automake.
14199 2003-12-14 Karl Berry <karl@gnu.org>
14201 * lib/config.charset: update from gettext-runtime.
14203 2003-12-03 Paul Eggert <eggert@twinsun.com>
14205 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
14206 Bug reported by Alfred M. Szmidt.
14208 2003-12-03 Bruno Haible <bruno@clisp.org>
14210 * m4/gettext.m4: Upgrade from gettext-0.13.
14211 * m4/po.m4: Upgrade from gettext-0.13.
14212 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
14213 * m4/intmax.m4: New file, from gettext-0.13.
14214 * m4/printf-posix.m4: New file, from gettext-0.13.
14216 2003-11-29 Karl Berry <karl@gnu.org>
14218 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
14220 2003-11-25 Paul Eggert <eggert@twinsun.com>
14221 Bruno Haible <bruno@clisp.org>
14223 * lib/printf-parse.h: Don't include sys/types.h.
14224 (ARG_NONE): New macro.
14225 (char_directive): Change type of *arg_index fields to size_t.
14226 * lib/printf-parse.c: Don't include sys/types.h.
14227 (SSIZE_MAX): Remove macro.
14228 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
14229 Remove unnecessary overflow check.
14230 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
14233 2003-11-25 Bruno Haible <bruno@clisp.org>
14235 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
14237 2003-11-25 Bruno Haible <bruno@clisp.org>
14239 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
14242 2003-11-24 Paul Eggert <eggert@twinsun.com>
14244 * modules/alloca: Remove dependency on xalloc.
14246 2003-11-24 Paul Eggert <eggert@twinsun.com>
14248 * lib/alloca.c: Remove dependency on xalloc module.
14249 (xalloc_die): Remove.
14250 (memory_full) [!defined emacs]: New macro.
14251 [!defined emacs]: Don't include xalloc.h.
14252 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
14253 address arithmetic overflows. Change datatypes a bit to avoid
14256 2003-11-22 Jim Meyering <jim@meyering.net>
14258 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
14261 2003-11-21 Karl Berry <karl@gnu.org>
14263 * config/config.{sub,guess}: update from config.
14265 2003-11-18 Karl Berry <karl@gnu.org>
14267 * config/config.{sub,guess}: update from config.
14269 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
14271 2003-11-17 Paul Eggert <eggert@twinsun.com>
14273 * README: Mention that S+T cannot overflow if S is the size of
14274 an existing object and T is sufficiently small.
14276 2003-11-17 Jim Meyering <jim@meyering.net>
14278 On systems without utime and without a utimes function capable of
14279 dealing with a NULL struct utimbuf* argument, this utime replacement
14280 could -- in unusual circumstances -- leak a file descriptor.
14281 * lib/utime.c: Include <unistd.h> and <errno.h>.
14282 (utime_null): Be sure to close `fd' and to preserve errno.
14283 Reported by Geoff Collyer via Arnold Robbins.
14285 2003-11-17 Bruno Haible <bruno@clisp.org>
14287 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
14288 (Depends-on): Add xsize.
14290 2003-11-17 Bruno Haible <bruno@clisp.org>
14292 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
14294 2003-11-17 Bruno Haible <bruno@clisp.org>
14296 * lib/vasnprintf.c (alloca): Remove fallback definition.
14297 (freea): Remove definition.
14298 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
14299 Reported by Paul Eggert.
14301 2003-11-16 Paul Eggert <eggert@twinsun.com>
14302 Bruno Haible <bruno@clisp.org>
14304 Protect against address arithmetic overflow.
14305 * lib/printf-args.h: Include stddef.h.
14306 (arguments): Change type of field 'count' to size_t.
14307 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
14308 'unsigned int' where appropriate.
14309 * lib/printf-parse.h: Include sys/types.h.
14310 (char_directive): Change type of *arg_index fields to ssize_t.
14311 (char_directives): Change type of fields 'count', max_*_length to
14313 * lib/printf-parse.c: Include sys/types.h and xsize.h.
14314 (SSIZE_MAX): Define fallback value.
14315 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
14316 instead of 'int' where appropriate. Check a_allocated, d_allocated
14317 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
14318 * lib/vasnprintf.c: Include xsize.h.
14319 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
14320 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
14321 overflow. Avoid wraparound when converting a width or precision from
14324 2003-11-16 Bruno Haible <bruno@clisp.org>
14326 Update from GNU gettext.
14327 * lib/printf-parse.c: Generalize to it can be compiled for wide
14329 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
14330 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
14331 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
14332 SNPRINTF): New macros.
14333 Don't include <alloca.h> if the file is used inside libintl.
14334 (local_wcslen): New function, for Solaris 2.5.1.
14335 (VASNPRINTF): Use it instead of wcslen.
14337 2003-11-16 Bruno Haible <bruno@clisp.org>
14339 * lib/xsize.h (xmax): New function.
14340 (xsum, xsum3, xsum4): Declare as "pure" functions.
14342 2003-11-12 Paul Eggert <eggert@twinsun.com>
14344 * modules/xalloc (Files): Undo latest change, since xalloc.h
14345 no longer needs SIZE_MAX or PTRDIFF_MAX.
14347 2003-11-12 Paul Eggert <eggert@twinsun.com>
14349 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
14352 2003-11-12 Paul Eggert <eggert@twinsun.com>
14354 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
14355 "return", to pacify some unknown compiler. Problem reported
14356 by Joerg Schilling.
14358 2003-11-12 Paul Eggert <eggert@twinsun.com>
14360 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
14361 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
14362 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
14363 heuristic is just as accurate as far as we know, and it removes a
14364 dependency on size_max.m4 and ptrdiff_max.m4.
14366 2003-11-11 Bruno Haible <bruno@clisp.org>
14368 * modules/xsize (Files): Add m4/size_max.m4.
14369 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
14371 2003-11-11 Bruno Haible <bruno@clisp.org>
14373 * m4/size_max.m4: New file.
14374 * m4/ptrdiff_max.m4: New file.
14375 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
14376 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
14377 (gl_XALLOC): Invoke it.
14379 2003-11-11 Bruno Haible <bruno@clisp.org>
14381 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
14382 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
14385 2003-11-10 Paul Eggert <eggert@twinsun.com>
14387 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
14388 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
14389 rejected some allocations of exactly SIZE_MAX - 2 bytes.
14391 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
14392 not (size_t) -1, since it's defined here.
14394 2003-11-09 Karl Berry <karl@gnu.org>
14396 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
14398 2003-11-06 Paul Eggert <eggert@twinsun.com>
14400 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
14401 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
14402 Reject sizes of exactly SIZE_MAX bytes.
14403 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
14404 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
14406 2003-11-05 Bruno Haible <bruno@clisp.org>
14408 * lib/xsize.h: Include limits.h, to avoid a possible collision with
14409 SIZE_MAX defined in <limits.h> on Solaris.
14411 2003-11-04 Jim Meyering <jim@meyering.net>
14413 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
14414 variable names, rather than @VAR@.
14415 * modules/poll: Likewise.
14417 2003-11-04 Bruno Haible <bruno@clisp.org>
14419 * modules/xsize: New file.
14420 * modules/linebreak: Depend on xsize.
14421 * MODULES.html.sh (func_all_modules): Add xsize.
14423 2003-11-04 Bruno Haible <bruno@clisp.org>
14425 * m4/xsize.m4: New file.
14427 2003-11-04 Bruno Haible <bruno@clisp.org>
14429 * lib/xsize.h: New file.
14430 * lib/linebreak.c: Include xsize.h.
14431 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
14432 argument for overflow.
14433 Suggested by Paul Eggert.
14435 2003-11-03 Karl Berry <karl@gnu.org>
14437 * config/config.{guess,sub}: update from config.
14439 2003-11-03 Jim Meyering <jim@meyering.net>
14441 * modules/userspec (lib_SOURCES): Add userspec.h.
14442 (Include): Add "userspec.h".
14443 Improve description.
14445 2003-11-03 Jim Meyering <jim@meyering.net>
14447 * lib/userspec.c: Include "userspec.h".
14448 * lib/userspec.h: New file.
14450 2003-11-03 Bruno Haible <bruno@clisp.org>
14452 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
14454 2003-11-03 Bruno Haible <bruno@clisp.org>
14456 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
14457 available, to avoid (extremely rare) race condition.
14458 Suggested by Paul Eggert.
14460 2003-11-02 Karl Berry <karl@gnu.org>
14462 * config/srclist.txt (vasprintf.c): sync broken, sigh.
14464 2003-10-31 Paul Eggert <eggert@twinsun.com>
14466 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
14467 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
14468 (read_filesystem_list): Set and use me_type_malloced.
14469 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
14470 whatever the type happens to be), for brevity and consistency.
14471 Check for size calculation overflow on Alphas running OSF/1.
14473 2003-10-31 Jim Meyering <jim@meyering.net>
14475 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
14477 * lib/linebuffer.c: Include <string.h> for declaration of memset.
14479 2003-10-30 Paul Eggert <eggert@twinsun.com>
14480 Bruno Haible <bruno@clisp.org>
14482 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
14483 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
14485 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
14487 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
14488 netbsd*-gnu*. Suggested by Robert Millan.
14490 2003-10-29 Paul Eggert <eggert@twinsun.com>
14492 * modules/group-member: Depend on stdbool.
14494 2003-10-29 Paul Eggert <eggert@twinsun.com>
14496 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
14498 2003-10-29 Paul Eggert <eggert@twinsun.com>
14500 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
14501 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
14502 after the 'gnu' in these cases. This fixes some bugs in the
14503 previous change, and is based on suggestions by Robert Millan.
14505 2003-10-29 Paul Eggert <eggert@twinsun.com>
14507 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
14508 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
14510 * lib/quotearg.c (quotearg_n_options): Use it.
14511 * lib/group-member.c: Include <stdbool.h>.
14512 (free_group_info): Arg is now const *; don't free arg.
14513 (get_group_info): Now returns bool and accepts struct group_info *,
14514 rather than returning a malloc'ed struct group_info *.
14515 All uses changed. Check for overflow in internal size calculation.
14517 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
14518 rather than xmalloc/xrealloc.
14519 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
14520 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
14521 conformance bug: the old code used a pointer after freeing the
14522 storage that it addressed.
14523 * lib/hash.c (hash_initialize): Simplify the code by using
14524 xalloc_oversized rather than doing it by hand.
14525 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
14526 the buffer preserved. Use free and xmalloc instead.
14527 * lib/quotearg.c (quotearg_n_options): Likewise.
14528 Use a simpler test for size overflow. Don't use xalloc_oversized
14529 because unsigned int might be wider than size_t (!); this suggests
14530 that we should switch from unsigned int to size_t for slot numbers.
14532 2003-10-28 Paul Eggert <eggert@twinsun.com>
14534 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
14535 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
14536 NetBSD kernels. Requested by Richard Stallman.
14538 2003-10-27 Paul Eggert <eggert@twinsun.com>
14540 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
14541 to allocate the returned structure. Do not allocate a subarray,
14542 as x2nrealloc will do that.
14543 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
14544 instead of xnrealloc.
14545 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
14547 2003-10-27 Bruno Haible <bruno@clisp.org>
14549 * lib/stdbool_.h: Better support for BeOS.
14551 2003-10-26 Paul Eggert <eggert@twinsun.com>
14553 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
14556 2003-10-26 Paul Eggert <eggert@twinsun.com>
14558 * lib/xalloc.h (xalloc_oversized): New static inline function, for
14559 callers that want to do their own size-overflow checking. Include
14560 <stdbool.h>, since xalloc_oversized returns bool.
14561 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
14562 to use xalloc_oversized.
14564 Add two functions x2realloc, x2nrealloc, for programs that grow
14565 arrays dynamically by doubling their sizes.
14566 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
14567 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
14570 Port to C99 semantics for 'inline' of external functions.
14571 Bug reported by Bruno Haible.
14572 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
14573 with the old contents of xnmalloc.
14574 (xnmalloc, xmalloc): Use it.
14575 (xnrealloc_inline): New static inline function,
14576 with the old contents of xnrealloc.
14577 (xnrealloc, xrealloc): Use it.
14579 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
14582 2003-10-26 Karl Berry <karl@gnu.org>
14584 * config/srclist.txt (COPYING.DOC): no longer available from
14585 /gd/gnuorg; don't know where the ultimate source is.
14587 2003-10-25 Paul Eggert <eggert@twinsun.com>
14589 Fix several address-calculation bugs in the hash modules,
14590 plus some minor code cleanup.
14592 * lib/hash.h: Include <stdbool.h>, for bool.
14593 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
14594 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
14595 hash_get_n_entries, hash_get_max_bucket_length,
14596 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
14597 hash_rehash): Use size_t rather than unsigned.
14598 * lib/hash.c (struct hash_table, hash_get_n_buckets,
14599 hash_get_n_buckets_used, hash_get_n_entries,
14600 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
14601 hash_get_entries, hash_do_for_each, hash_string, is_prime,
14602 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
14604 (SIZE_MAX): Define if not defined.
14605 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
14606 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
14608 Use const * when possible.
14609 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
14610 (check_tuning): Fix bug: if tuning parameters were very close to
14611 0 or 1, rounding errors could have caused subscript violations.
14612 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
14613 (hash_initialize): Add 'fail:' label
14614 to free table and return NULL, and use it to simplify code.
14615 Use calloc rather than clearing the storage ourself.
14616 (hash_initialize, hash_rehash): Check for arithmetic overflow in
14617 buffer size calculations.
14618 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
14619 Include <stddef.h>, for size_t.
14620 * lib/hash-pjw.c (hash_pjw): Likewise.
14621 Switch to method described by Bruno Haible.
14622 Include <limits.h>, for CHAR_BIT.
14623 (SIZE_BITS): New macro.
14625 2003-10-23 Paul Eggert <eggert@twinsun.com>
14627 * m4/getline.m4 (AM_FUNC_GETLINE):
14628 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
14629 hosts. Problem reported by Derek Robert Price in
14630 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
14631 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
14632 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
14634 2003-10-21 Paul Eggert <eggert@twinsun.com>
14636 * lib/getndelim2.c (getndelim2): When size calculation overflows,
14637 ceiling the allocation at NMAX bytes rather than silently
14638 discarding input bytes before NMAX is reached. This makes
14639 a difference only if NMAX exceeds SIZE_MAX / 2.
14641 * lib/obstack.c: Merge from glibc.
14642 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
14643 Add libc_hidden_def (_obstack_newchunk).
14644 (_obstack_free) [! defined _LIBC]: Remove.
14645 [defined _LIBC]: Make a strong alias from obstack_free, rather than
14646 a clone of the function body.
14647 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
14648 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
14650 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
14652 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
14655 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
14656 (obstack_ptr_grow_fast, obstack_int_grow_fast):
14657 Don't use lvalue casts, as GCC plans to remove support for them
14658 in GCC 3.5. Reported by Joseph S. Myers. This bug
14659 was also present in the non-GCC version, indicating that this
14660 code had always been buggy and had never been widely used.
14661 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
14662 Use the fast variant of each macro, rather than copying the
14663 definiens of the fast variant; that way, we'll be more likely to
14664 catch future bugs in the fast variants.
14666 2003-10-20 Bruno Haible <bruno@clisp.org>
14668 * modules/wait-process: New file.
14669 * MODULES.html.sh (func_all_modules): Add wait-process.
14671 2003-10-20 Bruno Haible <bruno@clisp.org>
14673 * m4/wait-process.m4: New file.
14675 2003-10-20 Bruno Haible <bruno@clisp.org>
14677 * lib/wait-process.h: New file, from GNU gettext.
14678 * lib/wait-process.c: New file, from GNU gettext.
14680 2003-10-19 Jim Meyering <jim@meyering.net>
14682 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
14685 2003-10-18 Karl Berry <karl@gnu.org>
14687 * config/config.guess: update from config.
14689 2003-10-16 Paul Eggert <eggert@twinsun.com>
14691 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
14692 (getgroups): First arg is int, not size_t.
14693 Don't let 'free' mangle errno.
14695 2003-10-16 Paul Eggert <eggert@twinsun.com>
14697 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
14699 2003-10-16 Karl Berry <karl@gnu.org>
14701 * config/config.{guess,sub}: update from config.
14703 2003-10-16 Jim Meyering <jim@meyering.net>
14705 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
14708 2003-10-15 Paul Eggert <eggert@twinsun.com>
14710 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
14711 (SIZE_MAX): Remove.
14712 (new_exclude, add_exclude_file): Initial size no longer needs to
14714 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
14715 our own address arithmetic overflow checking.
14717 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
14718 (fnmatch): Do not alloca more than 2000 wide characters;
14719 instead, use malloc for large buffers.
14720 Check for address arithmetic overflow, and return -1
14721 with errno set to ENOMEM in that case.
14722 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
14723 (NEW_PATTERN): Do not alloca more than 8000 bytes;
14724 instead, return -1. Check for address arithmetic overflow.
14726 2003-10-14 Paul Eggert <eggert@twinsun.com>
14728 Handle invalid suffixes and overflow independently, so that
14729 callers can treat them independently as needed. Fix some bugs in
14730 suffix handling, e.g., "100k@" was not diagnosed as an invalid
14731 suffix for a human-readable blocksize. The major caller-visible
14732 change is the addition of a new
14733 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
14734 that both overflow and suffix chars were found.
14736 * lib/human.c (humblock): Don't check separately for invalid suffix
14737 char; that is xstrtoumax's job (now that its bug is fixed).
14738 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
14739 INTMAX_MAX]: New macros.
14740 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
14741 TYPE_MAXIMUM): New macros.
14742 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
14743 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
14744 if overflow occurs, as it's what __strtol does and it's more useful
14746 (__xstrtol): If __strtol reports some error other than ERANGE,
14747 reflect it to the caller as LONGINT_INVALID. If it reports
14748 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
14749 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
14750 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
14752 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
14753 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
14754 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
14755 [defined UINTMAX_MAX]: New macros.
14757 2003-10-14 Bruno Haible <bruno@clisp.org>
14759 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
14761 2003-10-14 Bruno Haible <bruno@clisp.org>
14763 * m4/sig_atomic_t: New file, from GNU gettext.
14764 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
14766 2003-10-14 Bruno Haible <bruno@clisp.org>
14768 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
14769 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
14770 Also use volatile where needed.
14772 2003-10-12 Paul Eggert <eggert@twinsun.com>
14774 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
14775 Change maintainer from Bruno Haible to 'all'.
14777 2003-10-12 Paul Eggert <eggert@twinsun.com>
14779 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
14781 2003-10-12 Paul Eggert <eggert@twinsun.com>
14783 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
14784 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
14785 and define in terms of the other primitives.
14786 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
14787 (SIZE_MAX): Define if not already defined.
14788 (array_size_overflow): New function.
14789 (xalloc_die): Abort instead of exiting if 'error' returns.
14790 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
14791 (xmalloc, xrealloc): Use them.
14792 (xcalloc): Check for address arithmetic overflow.
14793 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
14794 a bit faster than strcpy.
14796 2003-10-10 Simon Josefsson <jas@extundo.com>
14798 * modules/argp (Depends-on): Add restrict and strcase.
14800 2003-10-10 Simon Josefsson <jas@extundo.com>
14802 * m4/argp.m4: Add AC_C_INLINE.
14804 2003-10-08 Paul Eggert <eggert@twinsun.com>
14806 Merge getpass from libc, plus a few fixes.
14808 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
14809 Include <stdbool.h>.
14810 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
14811 __fsetlocking to empty.
14812 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
14813 do include <bits/libc-lock.h>.
14814 Do not include <fcntl.h>; not needed.
14815 [_LIBC]: Include <wchar.h>.
14816 (NOTCANCEL_MODE): New macro.
14817 (flockfile, funlockfile) [_LIBC]: New macros.
14818 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
14819 [!_LIBC]: New macros.
14820 (call_fclose): New function.
14821 (getpass): Use it. Save tty stream separately; this simplifies the
14822 code and makes it more reliable if stdin happens to equal stdout.
14823 Invoke __fsetlocking on tty.
14824 Handle thread cancellation if needed.
14825 Namespace cleanup (use __tcgetattr, __getline).
14826 Use bool for Booleans.
14827 [USE_IN_LIBIO]: Handle wide streams.
14828 [!_LIBC]: Unconditionally do the fseek, since we don't know what
14829 stream might go where.
14831 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
14832 doesn't have to include <stdio.h> before us.
14833 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
14834 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
14835 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
14836 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
14837 if not declared, so that we can use getpass.c code from libc without
14839 (flockfile, ftrylockfile, funlockfile): New macros.
14841 2003-10-08 Paul Eggert <eggert@twinsun.com>
14843 * modules/getpass: Depend on stdbool.
14845 2003-10-08 Paul Eggert <eggert@twinsun.com>
14847 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
14849 2003-10-07 Karl Berry <karl@gnu.org>
14851 * config/config.{guess,sub}: update from config.
14853 2003-10-06 Jim Meyering <jim@meyering.net>
14854 Bruno Haible <bruno@clisp.org>
14856 This lets translators provide better translations for the
14857 "Written by ..." part of --version output.
14858 * lib/version-etc.h: Include stdarg.h.
14859 (version_etc_copyright): Declare as readonly.
14860 (version_etc): Make this function variadic with a NULL-terminated list
14861 of author name strings.
14862 (version_etc_va): New declaration.
14863 * lib/version-etc.c: Include stdarg.h, stdlib.h.
14864 (version_etc_copyright): Declare as readonly.
14865 (version_etc_va): New function. Provide a different translatable string
14866 for each possible number of authors < 10. Abbreviate when there are 10
14868 (version_etc): Make this function variadic. Call version_etc_va.
14869 Suggestion from Gary V. Vaughan.
14871 * lib/long-options.h (parse_long_options): Change prototype: the
14872 authors string is moved to the end and becomes variadic.
14873 * lib/long-options.c: Include stdarg.h.
14874 (parse_long_options): Make this function variadic, too.
14875 Call version_etc_va, not version_etc.
14877 2003-10-06 Bruno Haible <bruno@clisp.org>
14879 * modules/version-etc-2: Remove file.
14880 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
14882 2003-10-06 Bruno Haible <bruno@clisp.org>
14884 * modules/fatal-signal: New file.
14885 * MODULES.html.sh (func_all_modules): Add fatal-signal.
14887 2003-10-06 Bruno Haible <bruno@clisp.org>
14889 * m4/fatal-signal.m4: New file.
14890 * m4/signalblocking.m4: New file, from GNU gettext.
14892 2003-10-06 Bruno Haible <bruno@clisp.org>
14894 * lib/version-etc-2.h: Remove file.
14895 * lib/version-etc-2.c: Remove file.
14897 2003-10-06 Bruno Haible <bruno@clisp.org>
14899 * lib/fatal-signal.h: New file, from GNU gettext.
14900 * lib/fatal-signal.c: New file, from GNU gettext.
14902 2003-10-05 Paul Eggert <eggert@twinsun.com>
14904 * README: Rework advice for preventing empty .o files.
14905 Don't recommend ELIDE constructs. Recommend <stddef.h>,
14908 2003-10-04 Karl Berry <karl@gnu.org>
14910 * lib/argp*: update from libc.
14912 2003-10-04 Karl Berry <karl@gnu.org>
14914 * config/config.{guess,sub}: update from config.
14916 2003-10-02 Bruno Haible <bruno@clisp.org>
14918 * modules/lchown (Include): Add lchown.h.
14919 * modules/time_r (Include): Use "..." syntax.
14920 * modules/xgetdomainname (Include): Add xgetdomainname.h.
14922 2003-10-01 Simon Josefsson <jas@extundo.com>
14924 * MODULES.html.sh (func_all_modules): Move gethostname from section
14925 'based on' to section 'lacking' POSIX:2001.
14927 2003-10-01 Larry Jones <lawrence.jones@eds.com>
14929 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
14930 to output mode on the same stream.
14932 2003-09-29 Paul Eggert <eggert@twinsun.com>
14934 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
14935 Fix arg typo in previous patch.
14937 2003-09-28 Jim Meyering <jim@meyering.net>
14939 * lib/error.c: Correct cpp indentation.
14941 2003-09-27 Paul Eggert <eggert@twinsun.com>
14943 * modules/free: New file.
14945 2003-09-27 Paul Eggert <eggert@twinsun.com>
14947 * m4/free.m4: New file.
14949 2003-09-27 Paul Eggert <eggert@twinsun.com>
14951 * lib/minmax.h (MIN, MAX)
14952 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
14953 Omit the special code that used __typeof__, since we worry that
14954 it could be more trouble than it's worth. See:
14955 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
14956 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
14958 * lib/free.c: New file.
14960 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
14962 Trivial fixes to Makefile.am parts of module listings.
14963 * modules/strstr: Append strstr.h to lib_SOURCES.
14964 * modules/strcase: Likewise, for strcase.h.
14966 2003-09-27 Karl Berry <karl@gnu.org>
14968 * config/mkinstalldirs: update from automake.
14970 2003-09-26 Paul Eggert <eggert@twinsun.com>
14972 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
14973 (error_tail): Do not loop, reallocating temporary buffer, since
14974 the output cannot contain more wide characters than the input
14975 contains bytes, the size must be big enough already. This avoids
14976 one potential size overflow calculation. Check for size overflow
14977 when calculating temporary buffer size. Free temporary buffer
14978 when done, if it was allocated with malloc; this plugs a memory
14979 leak. Remove casts from void * to pointers, that are no longer
14980 needed now that we're assuming C89 or better.
14982 Merge error changes from glibc.
14984 * lib/error.c, error.h: Update copyright notice header to match glibc.
14985 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
14986 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
14987 Disable cancellation while printing error.
14988 * lib/error.h: Prepend __ to parameter names.
14990 2003-09-26 Jim Meyering <jim@meyering.net>
14992 * lib/error.c (error_tail): Move some declarations
14993 into inner scope where the local variables are used.
14995 2003-09-26 Bruno Haible <bruno@clisp.org>
14997 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
14999 Don't define stpncpy through config.h; it's now done through stpncpy.h.
15001 2003-09-26 Bruno Haible <bruno@clisp.org>
15003 * lib/stpncpy.h (gnu_stpncpy): New declaration.
15004 (stpncpy): Define as alias for gnu_stpncpy.
15005 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
15007 2003-09-25 Simon Josefsson <jas@extundo.com>
15009 * lib/xgetdomainname.h: New file.
15010 * lib/xgetdomainname.c: New file.
15012 2003-09-25 Simon Josefsson <jas@extundo.com>
15013 Bruno Haible <bruno@clisp.org>
15015 * modules/getdomainname: New file.
15016 * modules/xgetdomainname: New file.
15017 * MODULES.html.sh (func_all_modules): Add getdomainname,
15020 2003-09-25 Simon Josefsson <jas@extundo.com>
15021 Bruno Haible <bruno@clisp.org>
15023 * m4/getdomainname.m4: New file.
15025 2003-09-25 Simon Josefsson <jas@extundo.com>
15026 Bruno Haible <bruno@clisp.org>
15028 * lib/getdomainname.h: New file.
15029 * lib/getdomainname.c: New file.
15031 2003-09-25 Karl Berry <karl@gnu.org>
15033 * lib/argp-fmtstream.c, argp-help.c: update from libc.
15035 2003-09-25 Karl Berry <karl@gnu.org>
15037 * config/install-sh: update from automake.
15039 2003-09-25 Bruno Haible <bruno@clisp.org>
15041 * modules/version-etc-2: New file, from modules/version-etc with
15043 * MODULES.html.sh (func_all_modules): Add version-etc-2.
15045 2003-09-25 Bruno Haible <bruno@clisp.org>
15047 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
15048 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
15050 2003-09-24 Simon Josefsson <jas@extundo.com>
15052 * modules/xgethostname: Add xgethostname.h.
15054 2003-09-24 Paul Eggert <eggert@twinsun.com>
15056 * lib/linebuffer.c (freebuffer): Don't free the argument, just
15057 the buffer associated with the argument. Bug reported by
15060 2003-09-24 Paul Eggert <eggert@twinsun.com>
15062 * README: Document assumptions that 'int' is at least 32 bits
15063 wide, that integer arithmetic is 2's complement without overflow,
15064 that there are no holes in integer values, that adding sizes of
15065 two nonoverlapping objects can't overflow, and that all-bits-zero
15066 yields scalar zero. Fix spelling and capitalization typos.
15068 2003-09-19 Karl Berry <karl@gnu.org>
15070 * lib/argp.h: update from libc.
15072 2003-09-17 Paul Eggert <eggert@twinsun.com>
15074 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
15075 to avoid spurious warnings like "AC_RUN_IFELSE was called before
15076 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
15078 2003-09-17 Paul Eggert <eggert@twinsun.com>
15080 * gnulib-tool: Use "test -h", not "test -L", for portability
15081 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
15082 (tags_regexp): Remove, since \| doesn't conform to POSIX.
15083 (sed_extract_prog): Issue s commands one-by-one, rather than
15084 using \| in one s command.
15086 2003-09-16 Paul Eggert <eggert@twinsun.com>
15088 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
15089 input error, instead of returning NULL the next time we are called
15090 (and therefore losing track of errno).
15092 2003-09-16 Bruno Haible <bruno@clisp.org>
15094 * gnulib-tool (func_create_testdir): Warn about duplicated
15097 2003-09-15 Paul Eggert <eggert@twinsun.com>
15099 * modules/argmatch, modules/fatal, modules/obstack,
15100 modules/xalloc, modules/xgethostname: Sort dependencies by
15101 importance, not alphabetically.
15103 2003-09-15 Paul Eggert <eggert@twinsun.com>
15105 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
15106 fails, so that the caller gets the proper errno.
15108 * lib/readutmp.c (read_utmp): Likewise.
15109 Check for fstat error. Close stream and free storage
15112 2003-09-14 Karl Berry <karl@gnu.org>
15114 * config/srclist.txt (strdup.c): disable for c89 changes.
15116 2003-09-14 Jim Meyering <jim@meyering.net>
15118 * lib/getloadavg.c: Correct cpp indentation.
15119 * lib/strdup.c: Likewise.
15120 * lib/vasnprintf.c: Likewise.
15122 2003-09-14 Bruno Haible <bruno@clisp.org>
15124 * modules/fwriteerror: New file.
15125 * MODULES.html.sh (func_all_modules): Add fwriteerror.
15127 2003-09-14 Bruno Haible <bruno@clisp.org>
15129 * lib/fwriteerror.h: New file.
15130 * lib/fwriteerror.c: New file.
15132 2003-09-12 Paul Eggert <eggert@twinsun.com>
15134 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
15135 modules/xgethostname, modules/xalloc: Depend on exit.
15137 2003-09-12 Paul Eggert <eggert@twinsun.com>
15139 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
15141 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
15142 and AC_MINIX, too, so that their extensions are available.
15144 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
15145 This macro has been superseded by gl_BACKUPFILE.
15147 More patches to assume C89 or better.
15149 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
15151 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
15153 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
15154 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
15155 Include <string.h>, <stdlib.h> unconditionally.
15156 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
15157 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
15158 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
15159 headers or for string.h.
15160 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
15163 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
15165 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
15166 * m4/userspec.m4 (gl_USERSPEC): Likewise.
15167 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
15168 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
15169 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
15170 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
15172 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
15173 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
15174 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
15176 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
15177 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
15178 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
15181 2003-09-12 Paul Eggert <eggert@twinsun.com>
15183 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
15184 * lib/obstack.c [!defined _LIBC]: Likewise.
15185 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
15186 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
15187 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
15189 More changes to assume C89 or better.
15191 * lib/error.c (error_tail): Assume vprintf.
15193 * lib/argmatch.c (getenv): Remove decl.
15194 * lib/progreloc.c (get_full_program_name): Define via prototype.
15195 * lib/setenv.c (clearenv): Likewise.
15196 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
15198 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
15199 (malloc, memcpy): Remove decls.
15200 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
15201 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
15202 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
15203 (memcpy): Remove macro.
15204 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
15205 (__P): Remove. All uses removed.
15206 (PTR): Remove. All uses changed to void *.
15207 (CHAR_BIT, NULL): Remove.
15208 (spaces, zeros, memset_space, memset_zero)
15209 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
15211 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
15212 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
15213 Define with prototype.
15214 Remove now-unnecessary prototype decl.
15215 (extra_args_spec): Assume ANSI C. All uses changed.
15216 (extra_args_spec_iso): Remove.
15217 (my_strftime, emacs_strftimeu): Define via prototype.
15218 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
15220 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
15221 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
15222 (strtoul, strtol): Remove decls.
15223 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
15225 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
15226 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
15227 (LOCALE_PARAM_PROTO): New macro.
15228 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
15229 (INTERNAL (strtol), strtol): Define with a prototype.
15230 (PARAMS): Remove. All uses removed.
15231 * lib/tempname.c: Include <string.h> unconditionally.
15232 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
15233 * lib/xgethostname.c (main): Define with a prototype.
15234 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
15235 Include <stdlib.h> unconditionally.
15236 (calloc, malloc, realloc, free): Remove decls.
15237 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
15238 Include <stdlib.h> unconditionally. Sort include file names.
15240 (xstrtod): Define with a prototype.
15241 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
15242 (strtol, strtoul): Remove decls.
15244 2003-09-11 Paul Eggert <eggert@twinsun.com>
15246 More patches to assume C89 or better.
15247 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
15248 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
15249 string.h, memchr, STDC_HEADERS.
15251 2003-09-11 Paul Eggert <eggert@twinsun.com>
15253 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
15254 Include <stdlib.h>, <string.h> unconditionally.
15255 Remove now-unnecessary cast to char *.
15256 * lib/strnlen.c: Include <string.h> unconditionally.
15257 * lib/yesno.c (yesno): Define with a prototype.
15259 2003-09-11 Bruno Haible <bruno@clisp.org>
15261 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
15263 2003-09-10 Jim Meyering <jim@meyering.net>
15265 * lib/error.c: Correct indentation of cpp directives.
15267 2003-09-10 Bruno Haible <bruno@clisp.org>
15269 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
15270 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
15271 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
15272 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
15273 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
15274 <stdlib.h> and <string.h> checks.
15275 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
15276 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
15278 2003-09-10 Bruno Haible <bruno@clisp.org>
15280 * lib/strcspn.c: Include <string.h> unconditionally.
15281 * lib/strpbrk.c: Include <string.h> unconditionally.
15282 * lib/strstr.c: Include <string.h> unconditionally.
15283 * lib/unicodeio.c: Include <string.h> unconditionally.
15284 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
15285 * lib/unsetenv.c: Likewise.
15286 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
15287 * lib/yesno.c: Include <stdlib.h> unconditionally.
15288 (rpmatch): Add prototype.
15290 2003-09-09 Paul Eggert <eggert@twinsun.com>
15292 More patches to assume C89 or better.
15293 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
15294 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
15295 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
15297 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
15299 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
15301 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
15303 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
15304 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
15305 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
15307 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
15308 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
15310 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
15312 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
15313 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
15314 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
15315 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
15316 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
15317 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
15319 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
15320 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
15321 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
15322 C headers, or for string.h.
15323 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
15324 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
15325 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
15326 headers, memory.h, stdlib.h, string.h, strings.h.
15327 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
15328 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
15329 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
15331 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
15332 headers, memory.h, string.h.
15333 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
15334 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
15336 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
15338 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
15339 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
15340 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
15341 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
15342 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
15344 2003-09-09 Paul Eggert <eggert@twinsun.com>
15348 * lib/acosl.c (main): Use a prototype.
15349 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
15352 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
15354 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
15355 (getopt, etopt_long, getopt_long_only, _getopt_internal)
15356 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
15358 * lib/getopt.c (const): Remove macro.
15359 Include <string.h> unconditionally.
15360 (my_index): Remove; all uses changed to strchr.
15361 (strlen): Remove decl.
15362 (exchange): Remove forward decl; no longer needed.
15363 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
15364 Define with prototype.
15365 * lib/getopt1.c (const): Remove macro.
15366 (getopt_long, getopt_long_only, main): Define with prototype.
15368 * lib/getugroups.c: Include <string.h> unconditionally.
15370 * lib/getusershell.c: Include <stdlib.h> unconditionally.
15371 (getusershell, setusershell, endusershell, readname, main):
15372 Define with prototypes.
15374 * lib/group-member.c: Include group-member.h first.
15375 Include <stdlib.h> unconditionally.
15377 * lib/hard-locale.c: Include hard-locale.h first.
15378 Include <stdlib.h>, <string.h> unconditionally.
15380 * lib/hash.c (free, malloc): Remove decls.
15381 Include <stdlib.h> unconditionally.
15383 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
15384 (getenv): Do not declare.
15386 * lib/idcache.c: Include <string.h> unconditionally.
15388 * lib/long-options.c: Include long-options.h first, to test interface.
15389 Include <stdlib.h> unconditionally.
15391 * lib/makepath.c: Include makepath.h first, to test interface.
15392 Include <stdlib.h> and <string.h> unconditionally.
15394 * lib/linebuffer.c: Include <stdlib.h>.
15395 (free): Remove decl.
15397 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
15398 stddef.h. rpl_malloc returns void *, not char *.
15399 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
15402 * lib/md5.h: Include <limits.h> unconditionally.
15403 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
15404 (__P): Remove; all uses removed.
15405 * lib/md5.c: Include "md5.h" first.
15406 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
15407 md5_buffer, md5_process_bytes, md5_process_block):
15408 Define with prototypes.
15409 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
15410 * lib/sha.c: Include "sha.h" first.
15411 Include <stdlib.h>, <string.h> unconditionally.
15413 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
15414 * lib/memcmp.c (__ptr_t): Likewise.
15415 * lib/memrchr.c (__ptr_t): Likewise.
15416 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
15417 Include <string.h> unconditionally.
15418 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
15419 * lib/memchr.c: Include <stdlib.h> unconditionally.
15420 * lib/memchr.c (LONG_MAX): Remove.
15421 * lib/memrchr.c (LONG_MAX): Likewise.
15422 * lib/memchr.c (__memchr): Define via a prototype.
15423 * lib/memrchr.c (__memrchr): Likewise.
15424 * lib/memcmp.c (__P): Remove, and remove all uses.
15425 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
15426 Remove forward decls; no longer needed.
15427 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
15428 Use types required by C89 in prototype.
15430 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
15431 * lib/savedir.c: Likewise.
15432 * lib/mkdir.c (free): Remove decl.
15433 * lib/rmdir.c (rmdir): Define with a prototype.
15434 * lib/savedir.c: Include savedir.h first, to test interface.
15436 * lib/mktime.c (STDC_HEADERS): Remove.
15437 Include <stdlib.h>, <string.h> unconditionally.
15439 * lib/modechange.c: Include <stdlib.h> unconditionally.
15440 (malloc): Remove decl.
15442 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
15443 (free): Remove decl.
15445 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
15446 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
15447 (This type really should be intptr_t, but that's a C99ism.)
15448 (_obstack_memcpy): Remove: all uses changed to memcpy.
15449 Include <string.h> unconditionally.
15450 (struct obstack): Assume __STDC__ for types of members
15451 chunkfun, freefun, extra_arg.
15452 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
15453 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
15454 obstack_begin, obstack_specify_allocation,
15455 obstack_specify_allocation_with_arg, obstack_chunkfun,
15456 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
15457 Remove unprototyped decls and the macros that use them.
15458 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
15459 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
15460 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
15461 (defined __STDC__ && __STDC__)]:
15462 Remove nonprototyped code.
15463 Include <stdlib.h> unconditionally.
15464 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
15465 _obstack_allocated_p, _obstack_free, obstack_free,
15466 _obstack_memory_used, print_and_abort):
15467 Define using prototypes.
15468 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
15469 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
15470 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
15471 obstack_next_free, obstack_object_size, obstack_room) [0]:
15472 Remove unused, unprototyped code.
15474 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
15476 * lib/physmem.c (physmem_total, physmem_available, main): Define
15479 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
15480 (main): Define with a prototype.
15482 * lib/posixver.c (getenv): Remove decl.
15484 * lib/putenv.c (malloc): Returns void *, not char *.
15485 Include <string.h> unconditionally.
15486 (strchr, memcpy, NULL): Do not define.
15488 * lib/readtokens.c: Include readtokens.h first, to test interface.
15489 Include <stdlib.h>, <string.h> unconditionally.
15490 (init_tokenbuffer): Define with a prototype.
15492 * lib/regex.c (PARAMS): Remove. All uses removed.
15493 All uses of _RE_ARGS removed, too.
15494 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
15496 (bzero): Assume memset exists.
15497 (memcmp, memcpy, NULL): Remove.
15498 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
15499 char, or assignments to local vars of type signed char.
15500 (init_syntax_once, PREFIX(extract_number_and_incr),
15501 PREFIX(print_partial_compiled_pattern),
15502 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
15503 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
15504 PREFIX(regex_grow_registers), PREFIX(regex_compile),
15505 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
15506 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
15507 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
15508 wcs_compile_range, byte_compile_range, truncate_wchar,
15509 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
15510 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
15511 count_mbs_length, wcs_re_match_2_internal,
15512 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
15513 PREFIX(alt_match_null_string_p),
15514 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
15515 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
15516 regfree, PREFIX(extract_number)): Define with prototype. Remove
15517 now-unnecessary declaration, if any.
15518 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
15520 Remove now-unnecessary casts among pointer types.
15521 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
15523 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
15524 (free): Remove decl.
15526 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
15528 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
15529 (free): Remove decl.
15531 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
15532 * lib/xgetcwd.c: Likewise.
15534 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
15535 (free): Remove decl.
15537 * lib/strchrnul.c (strchrnul): Define with a prototype.
15538 Fix bug: c_in was not converted to char before searching.
15540 The following changes are not K&R related:
15542 * lib/group-member.h: Include <sys/types.h>, so that this file is
15544 * lib/makepath.h: Likewise.
15546 * lib/getusershell.c (readname, default_index, line_size, readname):
15547 Use size_t, not int, for sizes.
15548 (readname): If the size overflows, report an error instead of
15551 2003-09-09 Paul Eggert <eggert@twinsun.com>
15553 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
15556 2003-09-09 Paul Eggert <eggert@twinsun.com>
15558 * README: New section: portability guidelines.
15560 2003-09-09 Derek Robert Price <derek@ximbiot.com>
15562 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
15565 2003-09-09 Derek Robert Price <derek@ximbiot.com>
15567 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
15569 2003-09-08 Paul Eggert <eggert@twinsun.com>
15571 Assume C89 or better; remove K&R cruft.
15572 A few of these changes were first proposed by Derek Robert Price
15573 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
15575 * lib/addext.c: Include <string.h> unconditionally.
15576 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
15577 Don't declare getenv or malloc.
15579 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
15580 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
15582 (find_stack_direction, alloca): Use prototypes.
15584 * lib/atexit.c (atexit): Define using a prototype.
15586 * lib/basename.c, dirname.c, stripslash.c:
15587 Include <string.h> unconditionally.
15589 * lib/bcopy.c: Include <stddef.h>.
15590 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
15592 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
15594 * lib/error.h (error, error_at_line, error_print_progname)
15595 [! (defined (__STDC__) && __STDC__)]: Remove decls.
15596 * lib/error.c: Include error.h first, to check interface.
15597 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
15598 (VA_START): Remove; all uses changeed to va_start.
15599 (exit, strerror): Remove decls.
15600 (error_print_progname): Prototype uncondionally.
15601 Don't include <errno.h>; no longer needed.
15602 (private_strerror): Remove.
15603 (error_tail): Always define.
15604 (error, error_at_line): Assume C89 or better; always use prototypes.
15605 * lib/fatal.c: Include "fatal.h" first, to test interface.
15606 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
15607 (VA_START): Remove; all uses changed to va_start.
15608 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
15610 (exit): Remove decl.
15611 (fatal): Prototype unconditionally. Assume va_start works.
15612 Abort at end, to pacify gcc.
15614 * lib/euidaccess.c (main): Define with a prototype.
15616 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
15618 * lib/exitfail.c: Include <stdlib.h> unconditionally.
15620 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
15622 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
15623 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
15624 (getenv): Remove decl.
15625 (fnmatch): Define using a prototype.
15626 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
15627 (FCT): Define using a prototype.
15629 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
15631 * lib/gethostname.c: Include <stddef.h>.
15632 (gethostname): Define with prototype. Length is size_t, not int.
15634 2003-09-08 Paul Eggert <eggert@twinsun.com>
15636 Assume C89 or better; remove K&R cruft.
15637 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
15638 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
15639 string.h, getenv, malloc.
15640 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
15642 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
15643 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
15644 do not check for strerror.
15645 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
15646 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
15647 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
15648 do not check for doprnt or vprintf.
15649 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
15650 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
15652 2003-09-08 Paul Eggert <eggert@twinsun.com>
15654 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
15655 getversion.c should have been removed then, but was accidentally
15658 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
15659 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
15661 2003-09-08 Karl Berry <karl@gnu.org>
15663 * config/config.sub, config.guess, srclistvars.sh: update from savannah
15664 config, forget about prep.
15666 * config/depcomp, missing: update from automake.
15668 2003-09-07 Paul Eggert <eggert@twinsun.com>
15670 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
15671 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
15673 2003-09-07 Paul Eggert <eggert@twinsun.com>
15675 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
15676 copy_tm_result. Bug reported by Simon Josefsson in
15677 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
15679 2003-09-06 Paul Eggert <eggert@twinsun.com>
15681 * m4/time_r.m4: New file.
15682 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
15683 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
15684 is. Check for timegm declaration.
15685 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
15686 Do not check for gmtime_r.
15687 Replace mktime if __mktime_internal does not exist and if mktime
15688 hasn't been replaced already.
15690 2003-09-06 Paul Eggert <eggert@twinsun.com>
15692 * lib/time_r.c, time_r.h: New files.
15694 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
15696 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
15697 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
15699 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
15701 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
15702 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
15703 Include <time_r.h>.
15705 * lib/timegm.c: Switch to glibc implementation, with the following
15707 [defined HAVE_CONFIG_H]: Include <config.h>.
15708 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
15709 (__mktime_internal) [!defined _LIBC]: New decl.
15710 (__gmtime_r) [!defined _LIBC]: New macro and function.
15711 (timegm): Use a prototype, since gnulib assumes C89.
15712 Do not bother declaring tmp to be const, as it's not really usefu.
15713 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
15714 (timegm): Declare only if HAVE_DECL_TIMEGM.
15716 2003-09-06 Paul Eggert <eggert@twinsun.com>
15718 * MODULES.html.sh (func_all_modules): Add time_r.
15719 * modules/time_r: New file.
15720 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
15721 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
15723 2003-09-03 Paul Eggert <eggert@twinsun.com>
15725 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
15726 Bug reported by Lute Kamstra in
15727 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
15729 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
15730 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
15731 course with correspondingly smaller numbers for tomorrow and
15732 yesterday. From Tadayoshi Funaba. Originally installed into
15733 sh-utils on 1999-08-07, but the patch got lost (I guess during the
15736 2003-08-31 Simon Josefsson <jas@extundo.com>
15738 * modules/timegm: New file.
15739 * MODULES.html.sh (func_all_modules): Add timegm.
15741 2003-08-31 Simon Josefsson <jas@extundo.com>
15743 * m4/timegm.m4: New file.
15745 2003-08-31 Simon Josefsson <jas@extundo.com>
15747 * lib/timegm.h: New file.
15748 * lib/timegm.c: New file. Based on
15749 wget-1.8.2/src/http.c:mktime_from_utc.
15751 2003-08-31 Karl Berry <karl@gnu.org>
15753 * lib/argp.h: update from libc.
15755 2003-08-28 Bruno Haible <bruno@clisp.org>
15757 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
15758 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
15759 followed by '#define fnmatch fnmatch_posix' gives an error.
15761 2003-08-28 Bruno Haible <bruno@clisp.org>
15763 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
15764 warning on QNX, which defines O_BINARY to 000000.
15766 2003-08-27 Jim Meyering <jim@meyering.net>
15768 * m4/mkstemp.m4: Require that the system mkstemp be able to create
15769 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
15770 would fail after 32. Reported by Danny Levinson. Details here:
15771 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
15773 2003-08-24 Bruno Haible <bruno@clisp.org>
15775 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
15776 MSVC7 <stdio.h> is included later.
15778 2003-08-22 Simon Josefsson <jas@extundo.com>
15780 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
15782 2003-08-20 Karl Berry <karl@gnu.org>
15784 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
15786 2003-08-20 Bruno Haible <bruno@clisp.org>
15788 * modules/progname: New file.
15789 * MODULES.html.sh (func_all_modules): Add progname.
15791 2003-08-20 Bruno Haible <bruno@clisp.org>
15793 * lib/progname.h: New file, from GNU gettext.
15794 * lib/progname.c: New file, from GNU gettext.
15795 * lib/progreloc.c: New file, from GNU gettext.
15797 2003-08-19 Jim Meyering <jim@meyering.net>
15799 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
15800 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
15802 2003-08-19 Bruno Haible <bruno@clisp.org>
15804 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
15807 2003-08-19 Bruno Haible <bruno@clisp.org>
15809 * lib/xstrdup.c: Assume <string.h> exists.
15811 2003-08-18 Paul Eggert <eggert@twinsun.com>
15813 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
15816 2003-08-18 Jim Meyering <jim@meyering.net>
15818 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
15819 * m4/lib-ld.m4: Likewise.
15821 2003-08-18 Jim Meyering <jim@meyering.net>
15823 * lib/setenv.h: Indent nested cpp directive.
15824 * lib/vasnprintf.c: Remove trailing blanks.
15826 2003-08-17 Simon Josefsson <jas@extundo.com>
15828 * modules/xstrndup: New file.
15829 * MODULES.html.sh (func_all_modules): Add xstrndup.
15831 2003-08-17 Simon Josefsson <jas@extundo.com>
15833 * modules/argp: Fix autoconf macro name. Add more dependencies.
15835 2003-08-17 Simon Josefsson <jas@extundo.com>
15837 * m4/xstrndup.m4: New file.
15839 2003-08-17 Simon Josefsson <jas@extundo.com>
15841 * m4/argp.m4: New file.
15843 2003-08-17 Simon Josefsson <jas@extundo.com>
15844 Bruno Haible <bruno@clisp.org>
15846 * lib/xstrndup.h: New file.
15847 * lib/xstrndup.c: New file.
15849 2003-08-17 Bruno Haible <bruno@clisp.org>
15851 * modules/strndup (Files, Include): Add lib/strndup.h.
15853 2003-08-17 Bruno Haible <bruno@clisp.org>
15855 * modules/euidaccess (Files): Add lib/euidaccess.h.
15857 2003-08-17 Bruno Haible <bruno@clisp.org>
15859 * lib/strndup.h: New file.
15861 2003-08-17 Bruno Haible <bruno@clisp.org>
15863 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
15864 like AC_GNU_SOURCE.
15865 * modules/extensions (configure.ac): Comment out the invocation of
15866 gl_USE_SYSTEM_EXTENSIONS.
15868 2003-08-16 Paul Eggert <eggert@twinsun.com>
15870 Merges from coreutils, etc.
15871 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
15872 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
15873 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
15875 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
15876 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
15878 2003-08-16 Paul Eggert <eggert@twinsun.com>
15880 Document merge from coreutils.
15881 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
15882 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
15883 * modules/utime: Add m4/utimes-null.m4.
15885 2003-08-16 Paul Eggert <eggert@twinsun.com>
15887 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
15888 space, undoing this 2003-08-12 change:
15889 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
15891 2003-08-16 Paul Eggert <eggert@twinsun.com>
15893 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
15894 strtoul.c from libc, undoing this 2003-08-12 change:
15895 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
15897 2003-08-16 Jim Meyering <jim@meyering.net>
15899 Merges from coreutils.
15900 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
15901 prefix. Adjust cache variables similarly. Create 500 rather than
15902 just 300 files, to exercise bug on Darwin6.5, too.
15903 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
15905 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
15906 AM_SYS_POSIX_TERMIOS.
15907 Reported by mkc@mathdogs.com.
15908 Also change use of $am_cv_sys_posix_termios
15909 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
15910 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
15911 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
15912 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
15913 in /proc/mounts until it finds one with matching device number. This
15914 is unnecessary when the FILE argument *is* a mount point. No stat call
15915 is necessary in that case. So, disable the statvfs-testing code on
15916 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
15917 as RedHat bug# 84846.
15918 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
15919 to 1MB, so as not to render systems with no stack size limit (e.g.,
15920 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
15921 Include <unistd.h>. On some systems,
15922 it is required for the definition of _SC_PAGESIZE.
15924 2003-08-16 Jim Meyering <jim@meyering.net>
15926 Merge from coreutils.
15927 * lib/xstrtoimax.c: #else #if -> #elif.
15928 * lib/xstrtoumax.c: Likewise.
15930 2003-08-16 Jim Meyering <jim@meyering.net>
15932 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
15933 * m4/utimes.m4: Removed.
15934 * m4/utimes-null.m4: Renamed from utimes.m4.
15936 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
15937 to 1MB, so as not to render systems with no stack size limit (e.g.,
15938 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
15939 Include <unistd.h>. On some systems,
15940 it is required for the definition of _SC_PAGESIZE.
15942 2003-08-16 Jim Meyering <jim@meyering.net>
15943 and Paul Eggert <eggert@cs.ucla.edu>
15945 Merges from coreutils, etc.
15947 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
15948 using the latest version from cvs. This avoids problems with #line
15949 directives using a vendor (Sun) compiler.
15950 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
15951 Don't set GETGROUPS_LIB here; now it's
15952 done via getgroups.m4's wrapper function.
15953 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
15954 rather than just in sh-util/configure.in, so that the
15955 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
15957 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
15958 AC_FUNC_GETLOADAVG where to find getloadavg.c.
15959 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
15960 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
15961 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
15962 Remove code that is now done by the newly-required macros.
15963 Append $(EXEEXT) to DF_PROG.
15964 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
15965 Do not invoke or require the following here,
15966 since prereq.m4 or some gnulib .m4 now does this for us:
15967 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
15968 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
15969 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
15970 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
15971 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
15972 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
15973 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
15975 Do not replace the following functions, as this is now the job
15976 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
15977 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
15978 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
15979 atexit getpass, strdup, getpagesize.
15981 Do not check for the following functions, as this is now the job
15982 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
15983 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
15985 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
15986 Check for sys/sysctl.h.
15987 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
15988 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
15989 of checking for ssize_t ourselves.
15991 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
15992 Require every macro that gnulib/modules/* suggests for us.
15993 (jm_PREREQ_ADDEXT): New macro.
15994 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
15995 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
15997 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
15998 (gl_PHYSMEM): Use it.
15999 Also check for `table' function.
16000 Check for new headers and functions.
16001 Add check for sys/sysmp.h.
16002 With suggestions from Kaveh Ghazi.
16003 Ignore headers that are present but cannot be compiled. This
16004 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
16007 2003-08-15 Paul Eggert <eggert@twinsun.com>
16009 Document merge from coreutils.
16010 * modules/userspec: Depend on posixver.
16011 * modules/strftime: Depend on tzset.
16013 2003-08-15 Paul Eggert <eggert@twinsun.com>
16015 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
16016 rather than tab, after '#' in shell-script copyright notices.
16017 Suggested by Bruno Haible.
16019 2003-08-15 Paul Eggert <eggert@twinsun.com>
16021 * config/srclist-update: Use three spaces, rather than tab, after '#'
16022 in shell-script copyright notices. Suggested by Bruno Haible.
16023 Remove unnecessary parenthesization in regular expression.
16025 2003-08-15 Jim Meyering <jim@meyering.net>
16027 Merge from coreutils.
16028 * lib/xgethostname.c: Include <stdlib.h>.
16029 (xghostname): Don't exit for anything other than memory-related
16030 failure; just return NULL.
16031 * lib/userspec.c: Include "posixver.h".
16032 (parse_user_spec): Accept `.' as a separator only
16033 in pre-POSIX-200112 mode.
16034 * lib/strtoimax.c: Use #elif rather than #else #if.
16035 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
16036 Remove function, now that we can rely on a working tzset function.
16037 [!_LIBC]: Ensure that the required autoconf test has been run.
16038 [!defined _NL_CURRENT && HAVE_STRFTIME]:
16039 Use underlying_strftime for %r.
16040 * lib/sha.c: Merge in some clean-up and optimization changes from
16042 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
16043 Ensure that it is a multiple of 64.
16044 Rearrange loop exit tests so as to avoid performing an
16045 additional fread after encountering an error or EOF.
16046 * lib/realloc.c: Update copyright date.
16048 2003-08-15 Jim Meyering <jim@meyering.net>
16049 and Paul Eggert <eggert@twinsun.com>
16051 Merge from coreutils.
16052 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
16053 member but strut utmpx does not. Needed for AIX 4.3.3.
16054 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
16056 2003-08-15 Jim Meyering <jim@meyering.net>
16057 and Paul Eggert <eggert@cs.ucla.edu>
16059 Merges from coreutils, etc.
16060 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
16061 Require gl_FUNC_TZSET_CLOBBER.
16062 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
16063 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
16066 2003-08-14 Paul Eggert <eggert@twinsun.com>
16068 Help the merge from coreutils.
16069 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
16070 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
16071 * m4/tzset.m4: Use it too.
16073 2003-08-14 Paul Eggert <eggert@twinsun.com>
16075 * modules/tzset: New file.
16077 2003-08-14 Jim Meyering <jim@meyering.net>
16079 Merges from coreutils.
16080 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
16081 variable names, rather than @FNMATCH_H@.
16082 * modules/alloca: Likewise for $(ALLOCA_H).
16084 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
16085 the three copies of the literal target, `fnmatch.h'.
16086 * modules/alloca (alloca.h): Likewise.
16088 2003-08-14 Jim Meyering <jim@meyering.net>
16090 Merge from coreutils.
16091 * m4/tzset.m4: New file.
16092 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
16093 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
16094 otherwise, AIX 5.1 systems would end up using the latter.
16095 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
16096 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
16097 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
16098 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
16100 2003-08-14 Jim Meyering <jim@meyering.net>
16102 Merge from coreutils.
16103 * lib/obstack.h: Whitespace changes.
16104 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
16105 and xcalloc return values.
16106 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
16107 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
16108 hang on OSF/1 5.1 for DIR on both local and remote file systems.
16109 Reported by (and fix confirmed by) Nelson H. F. Beebe.
16110 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
16112 Use mntctl's return value to drive the entry-processing loop, since
16113 we can't rely on the value of the vmt_length member in the last
16114 entry. On some systems doing so could result in exhausting
16115 virtual memory. Based in part on a patch from Mike Jetzer.
16117 2003-08-14 Jim Meyering <jim@meyering.net>
16118 and Paul Eggert <eggert@twinsun.com>
16120 Merges from coreutils, plus other fixes.
16121 * lib/physmem.c: Merge in portability changes from gcc/libiberty
16122 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
16123 for credits and details. Thanks to Kaveh Ghazi for helping
16124 to keep these files in sync.
16125 (ARRAY_SIZE): Define it.
16126 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
16127 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
16128 (memcasecmp): Don't assume size_t fits in unsigned int.
16129 Remove casts and duplicate code.
16130 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
16131 (memcpy): Remove definition.
16132 Merge in some clean-up and optimization changes from glibc.
16133 [BLOCKSIZE]: Move definition to top of file.
16134 Ensure that it is a multiple of 64.
16135 Rearrange loop exit tests so as to avoid performing an
16136 additional fread after encountering an error or EOF.
16137 * lib/md5.h (md5_uintptr): Define.
16138 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
16139 return to the initial working directory. Preserve errno
16141 * lib/idcache.c: Include "xalloc.h".
16142 (xmalloc, xrealloc): Remove decls.
16143 (getuser): Remove casts no longer required in C89.
16144 * lib/human.c: Include stdio.h, for sprintf.
16145 * lib/group-member.c: Include "xalloc.h".
16146 (xmalloc, xrealloc): Remove decls.
16147 (get_group_info): Remove casts no longer required in C89.
16148 * lib/getusershell.c (readname): Remove casts no longer required in
16150 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
16151 * lib/getline.c: Whitespace fix, from coreutils.
16153 2003-08-13 Paul Eggert <eggert@twinsun.com>
16155 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
16158 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
16159 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
16160 Undo previous (whitespace-only) change.
16162 2003-08-13 Paul Eggert <eggert@twinsun.com>
16164 * lib/exclude.c: Include <ctype.h>
16165 (IN_CTYPE_DOMAIN): New macro.
16166 (is_space): New fn.
16167 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
16170 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
16171 Undo previous (whitespace-only) change.
16173 2003-08-13 Paul Eggert <eggert@twinsun.com>
16175 * config/srclist-update: Change update back to the old behavior,
16176 leaving whitespace alone. Use one 'sed' command rather than a
16178 (fixlicense): Now a variable, not a function.
16179 (remove_trailing_blanks): Remove.
16180 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
16181 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
16182 Undo previous (whitespace-only) change.
16184 2003-08-12 Paul Eggert <eggert@twinsun.com>
16186 Merge from coreutils.
16187 * modules/euidaccess: Add lib_SOURCES, include for new
16190 2003-08-12 Paul Eggert <eggert@twinsun.com>
16192 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
16193 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
16194 Normalize leading white space and remove trailing white space.
16196 Merge from coreutils
16197 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
16199 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
16200 0.12.1. These files are now being upgraded automatically by
16201 ../config/srclist-update.
16203 2003-08-12 Paul Eggert <eggert@twinsun.com>
16205 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
16206 Normalize leading white space and remove trailing white space.
16207 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
16208 notice, as per ../config/srclist-update.
16210 Merge from coreutils.
16211 * lib/euidaccess.h: New file.
16212 * lib/euidaccess.c: Include it.
16213 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
16214 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
16215 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
16217 2003-08-12 Paul Eggert <eggert@twinsun.com>
16219 * config/srclist-update: Add copyright notice.
16220 (remove_id_lines, remove_trailing_blanks): New constants.
16221 (fixfile): Use them to normalize spacing a bit in copied files.
16222 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
16223 Normalize leading white space and remove trailing white space.
16225 * config/texinfo.tex: Sync with texinfo.
16227 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
16228 strtoul.c from libc, to merge coreutils whitespace changes.
16230 * config/srclist.txt: Get the following m4 files from gettext:
16231 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
16232 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
16233 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
16236 2003-08-12 Karl Berry <karl@gnu.org>
16238 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
16241 2003-08-11 Paul Eggert <eggert@twinsun.com>
16243 * modules/gnu-source, m4/gnu-source.m4:
16244 Remove; we're assuming Autoconf 2.54 or later now.
16245 Suggested by Bruno Haible.
16246 * MODULES.html.sh (func_all_modules): Remove gnu-source.
16248 2003-08-11 Bruno Haible <bruno@clisp.org>
16250 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
16252 2003-08-11 Bruno Haible <bruno@clisp.org>
16254 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
16255 (vasnprintf): Use it instead of wcslen.
16257 2003-08-11 Bruno Haible <bruno@clisp.org>
16259 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
16260 value to ensure that _Bool promotes to int. Use #define for _Bool when
16261 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
16263 2003-08-10 Karl Berry <karl@gnu.org>
16265 * lib/regex.h: update from libc (whitespace fix).
16267 2003-08-09 Paul Eggert <eggert@twinsun.com>
16269 Merge some files from coreutils. These changes were
16270 originally made by Jim Meyering.
16271 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
16272 many older Unixes require this.
16273 * lib/alloca.c (alloca): Remove cast to argument of free;
16274 no longer needed in C89.
16275 * lib/alloca_.h, regex.h: Fix white space to match
16276 what GNU indent does.
16278 2003-08-09 Paul Eggert <eggert@twinsun.com>
16280 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
16281 apparently Emacs's Unicode mode got confused before my 2003-08-05
16284 2003-08-08 Paul Eggert <eggert@twinsun.com>
16286 * m4/extensions.m4: New file.
16287 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
16288 Require gl_USE_SYSTEM_EXTENSIONS.
16289 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
16290 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
16292 2003-08-08 Paul Eggert <eggert@twinsun.com>
16294 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
16295 * modules/extensions, modules/gnu-source: New files.
16296 * modules/timespec, modules/unlocked-io: Depend on extensions.
16298 2003-08-07 Paul Eggert <eggert@twinsun.com>
16300 * modules/restrict: New file.
16301 * MODULES.html.sh (func_all_modules): Add restrict.
16302 * modules/regex: Depend on restrict.
16304 2003-08-07 Paul Eggert <eggert@twinsun.com>
16306 * m4/restrict.m4: New file.
16307 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
16309 2003-08-07 Bruno Haible <bruno@clisp.org>
16311 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
16312 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
16314 2003-08-07 Bruno Haible <bruno@clisp.org>
16316 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
16317 makes the module 'getndelim2' compatible with the module 'getline'.
16319 2003-08-05 Paul Eggert <eggert@twinsun.com>
16321 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
16322 byte with "\201" to avoid glitches when editing that source file
16323 with multi-gnome-terminal.
16325 2003-08-05 Paul Eggert <eggert@twinsun.com>
16327 * lib/bumpalloc.h: Remove.
16329 2003-08-05 Paul Eggert <eggert@twinsun.com>
16331 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
16332 * modules/bumpalloc: Remove.
16334 2003-08-04 Paul Eggert <eggert@twinsun.com>
16336 * lib/getloadavg.c: Change copyright notice and spacing to conform to
16339 Merge from coreutils.
16340 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
16342 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
16343 from Karl Berry, implemented by Jim Meyering.
16344 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
16345 from Dmitry V. Levin.
16346 Remove anachronistic cast of xrealloc.
16347 * lib/fnmatch_.h (__const): Remove. Use 'const'.
16348 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
16349 type. Otherwise, it wouldn't compile with at least /bin/cc on
16350 ymp-cray-unicos9.0.2.X.
16351 Combine two mostly-identical uses of alloca into one.
16352 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
16354 2003-08-04 Dave Love <d.love@dl.ac.uk>
16358 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
16359 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
16360 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
16361 obsolete NLIST_NAME_UNION.
16362 [__GNU__]: Undef BSD and FSCALE.
16363 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
16365 2003-08-03 Paul Eggert <eggert@twinsun.com>
16367 * lib/stdbool_.h (_Bool): Make it signed char, instead of
16368 an enum type, so that it's guaranteed to promote to int. See:
16369 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
16371 2003-08-03 Karl Berry <karl@gnu.org>
16373 * config/depcomp: update from automake.
16375 2003-07-31 Paul Eggert <eggert@twinsun.com>
16377 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
16378 (strerror): Don't assume that a printable int fits in 14 bytes.
16380 2003-07-31 Bruno Haible <bruno@clisp.org>
16382 * modules/getpass-gnu: New file.
16383 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
16385 2003-07-31 Bruno Haible <bruno@clisp.org>
16387 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
16389 2003-07-24 Karl Berry <karl@gnu.org>
16391 * config/missing: update from automake.
16393 2003-07-24 Derek Robert Price <derek@ximbiot.com>
16394 Bruno Haible <bruno@clisp.org>
16396 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
16397 * lib/getline.c (getline, getdelim): Likewise.
16398 Remove _GNU_SOURCE define; now it's defined in config.h through
16401 2003-07-23 Karl Berry <karl@gnu.org>
16403 * config/config.sub: update from prep.
16405 2003-07-22 Paul Eggert <eggert@twinsun.com>
16407 * modules/xalloc (Depends-on): Add exitfail.
16408 * modules/xmemcoll: Likewise.
16410 2003-07-22 Paul Eggert <eggert@twinsun.com>
16412 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
16413 over-parenthesization in macros.
16415 Sync with coreutils.
16417 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
16420 Use `exit_failure' for xalloc and xmemcoll instead of their own
16421 private exit-failure variables.
16422 * lib/xalloc.h (xalloc_exit_failure): Remove.
16423 * lib/xmalloc.c: Likewise. Include exitfail.h.
16424 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
16425 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
16426 * lib/xmemcoll.c: Likewise. Include exitfail.h.
16427 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
16429 2003-07-20 Jim Meyering <jim@meyering.net>
16431 * modules/closeout (Depends-on): Add exitfail.
16432 Suggestion from Bruno Haible.
16434 2003-07-19 Karl Berry <karl@gnu.org>
16436 * config/config.sub: update from prep.
16438 2003-07-18 Paul Eggert <eggert@twinsun.com>
16440 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
16442 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
16443 to test that it can stand by itself. Include "exitfail.h".
16444 Clients should set exit_failure instead.
16445 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
16447 2003-07-18 Bruno Haible <bruno@clisp.org>
16449 * modules/getndelim2: New file.
16450 * modules/getline: Share files with module getndelim2.
16451 * modules/getnline: Depend on getndelim2 instead of sharing files with
16452 it. Add getnline.c to lib_SOURCES.
16453 * MODULES.html.sh (func_all_modules): Add getndelim2.
16455 2003-07-18 Bruno Haible <bruno@clisp.org>
16457 * m4/getndelim2.m4: New file.
16458 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
16459 invoke gl_PREREQ_GETNDELIM2.
16460 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
16461 gl_PREREQ_GETNDELIM2.
16462 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
16465 2003-07-18 Bruno Haible <bruno@clisp.org>
16467 * lib/getndelim2.h: New file.
16468 * lib/getndelim2.c: Make into a module of its own. Include config.h,
16470 (getndelim2): Make non-static. Change return type to ssize_t.
16471 * lib/getline.h: Change argument names.
16472 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
16473 * lib/getnline.c: Include getndelim2.h.
16475 2003-07-18 Andreas Schwab <schwab@suse.de>
16477 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
16479 2003-07-17 Karl Berry <karl@gnu.org>
16481 * config/config.sub: update from prep.
16483 2003-07-17 Bruno Haible <bruno@clisp.org>
16485 * modules/getnline: New file.
16486 * modules/getline: Add lib/getndelim2.c to source file list.
16487 * MODULES.html.sh (func_all_modules): Add getnline.
16489 2003-07-17 Bruno Haible <bruno@clisp.org>
16491 * m4/getnline.m4: New file.
16493 2003-07-17 Bruno Haible <bruno@clisp.org>
16495 * m4/Makefile.am.in: Remove file.
16496 * m4/Makefile.am: Remove file.
16497 * m4/Makefile.in: Remove file.
16499 2003-07-17 Bruno Haible <bruno@clisp.org>
16501 * lib/getnline.h: New file.
16502 * lib/getnline.c: New file.
16503 * lib/getndelim2.c: New file, extracted from getline.c.
16504 (getndelim2): Renamed from getdelim2, with added nmax argument.
16505 * lib/getline.c: Include getndelim2.c.
16506 (getdelim2): Moved out to getndelim2.c.
16507 (getline, getdelim): Update.
16509 2003-07-17 Bruno Haible <bruno@clisp.org>
16511 * lib/Makefile.am: Remove file.
16512 * lib/Makefile.in: Remove file.
16514 2003-07-17 Bruno Haible <bruno@clisp.org>
16516 * configure.in: Remove file.
16517 * Makefile.in: Remove file.
16519 2003-07-17 Bruno Haible <bruno@clisp.org>
16521 * MODULES.html.sh: Put the </BODY> right before </HTML>.
16523 2003-07-16 Karl Berry <karl@gnu.org>
16525 * config/srclist-update: was running fixlicense twice, which caused
16526 texinfo.tex to be nullified for some reason. Simplify,
16527 $gplsrc is no longer needed as far as I can see?
16529 2003-07-16 Jim Meyering <jim@meyering.net>
16531 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
16533 2003-07-15 Paul Eggert <eggert@twinsun.com>
16535 * config/srclist.txt: Get the following files from gettext-runtime/intl
16536 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
16537 ref-del.sin. From Bruno Haible.
16538 * config/srclist-update (fixfile): Change grep pattern again, since the
16539 previous fix didn't work (there was another trailing $). Use
16540 '[$]' to escape the $s.
16542 2003-07-15 Karl Berry <karl@gnu.org>
16544 * lib/vasnprintf.c: update from gettext.
16546 2003-07-15 Karl Berry <karl@gnu.org>
16548 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
16549 gets expanded when surrounded by '$'.
16551 2003-07-15 Jim Meyering <jim@meyering.net>
16553 * modules/save-cwd: Don't depend on error. From Derek Price.
16555 2003-07-15 Jim Meyering <jim@meyering.net>
16557 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
16559 2003-07-14 Simon Josefsson <jas@extundo.com>
16561 * modules/mempcpy: New file.
16562 * MODULES.html.sh (func_all_modules): Add mempcpy.
16564 2003-07-14 Simon Josefsson <jas@extundo.com>
16566 * m4/mempcpy.m4: New file.
16568 2003-07-14 Simon Josefsson <jas@extundo.com>
16570 * lib/mempcpy.h: New file.
16571 * lib/mempcpy.c: New file.
16573 2003-07-14 Paul Eggert <eggert@twinsun.com>
16575 * modules/getdate, modules/posixtm: Depend on mktime.
16577 2003-07-14 Paul Eggert <eggert@twinsun.com>
16579 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
16580 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
16581 unicodeio.c, unicodeio.h, unlocked-io.h:
16582 Switch from LGPL to GPL.
16584 2003-07-14 Paul Eggert <eggert@twinsun.com>
16586 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
16587 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
16588 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
16589 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
16590 vasprintf.c, vasprintf.h: Regenerate. These files are now being
16591 updated automatically by ../config/srclist-update. This changes
16592 their license from LPGL to GPL.
16594 2003-07-14 Paul Eggert <eggert@twinsun.com>
16596 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
16597 assumed to refer to the root of the most recent stable gettext version.
16598 * config/srclistvars.sh: Add defaults for eggert.
16599 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
16600 Match "This program" as well as "The program". This is needed
16603 2003-07-14 Jim Meyering <jim@meyering.net>
16605 Don't emit diagnostics. Let callers do that.
16606 * lib/save-cwd.c: Don't include "error.h".
16607 (save_cwd): Don't call error. Ensure that errno is valid
16608 when returning nonzero.
16610 * lib/save-cwd.h (restore_cwd): Update prototype.
16611 * lib/save-cwd.c (restore_cwd): Remove two parameters.
16612 Simplify. Don't call error upon failure. Let callers do that.
16613 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
16614 when auditing is enabled. But don't bother updating the #if.
16616 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
16618 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
16619 it breaks C++ compilation.
16620 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
16622 2003-07-10 Simon Josefsson <jas@extundo.com>
16624 * modules/strchrnul (Makefile.am): Add strchrnul.h.
16626 2003-07-10 Jim Meyering <jim@meyering.net>
16628 * m4/clock_time.m4: Remove trailing blank.
16629 * m4/intmax_t.m4: Likewise.
16631 2003-07-10 Jim Meyering <jim@meyering.net>
16633 * lib/vasnprintf.c: Remove trailing blanks.
16634 Make cpp indentation consistent.
16636 2003-07-09 Paul Eggert <eggert@twinsun.com>
16638 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
16639 posixver.c, strftime.c, strnlen.c, strverscmp.c:
16640 Switch from LGPL to GPL.
16642 2003-07-09 Paul Eggert <eggert@twinsun.com>
16644 * config/srclist.txt: Sort sublists. Add
16645 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
16646 that differ from gnulib for one reason or another; we'd like this list
16647 to be smaller but for now let's document what we have.
16649 2003-07-08 Paul Eggert <eggert@twinsun.com>
16651 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
16652 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
16653 and sweeter "eval x=$x".
16654 * config/srclist.txt: Get lib/argp* from glibc.
16656 2003-07-07 Paul Eggert <eggert@twinsun.com>
16658 * lib/mktime.c: Fix some boundary cases and remove need for floating
16661 Issue a compile-time diagnostic if time_t is floating point, or if
16662 two's complement arithmetic is not in effect, or if arithmetic
16663 right shift does not propagate the sign. These assumptions were
16664 all in the original code but they weren't checked.
16666 (TIME_T_MIDPOINT, verify): New macros.
16667 (__isleap): Remove; it has integer overflow problems.
16668 (leapyear): New function, without those problems.
16669 (ydhms_tm_diff): Remove; splitting into two parts.
16670 (ydhms_diff): New function, containing the arithmetic part of
16671 the old ydhms_tm_diff function. Issue a compile-time
16672 diagnostic if we are not using C99 integer division.
16673 Avoid casts when possible.
16674 (guess_time_tm): New function, containing the checking part of
16675 the old ydhms_tm_diff function. Return the new value, rather than
16676 the difference between it and the old. Accept a new argument T
16677 so that *T specifies the old value. Check for overflow in the result.
16679 (__mktime_internal): Use a time_t offset, not a long int offset.
16680 This undoes the 2003-06-04 change, which is no longer needed now
16681 that we have better overflow checking.
16682 (localtime_offset): Likewise.
16684 (__mktime_internal): Avoid harmful overflow on hosts where time_t
16685 and long are 64-bit but int is only 32-bit.
16686 (ydhms_diff): Use long int to store year1 and yday1.
16687 Issue a compile-time diagnostic if long int is not wide enough.
16689 (__mktime_internal): Use long int to store adjusted year and yday.
16690 Use plain C rather than preprocessor commands, if that doesn't
16692 Check for overflow (and try to repair) after each probe
16693 rather than checking only at the very end. This avoids some bugs
16694 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
16695 does not equal GMT offset at maximum time).
16696 Use integer to check for overflow rather than floating point; this
16697 is more portable to non-IEEE hosts, and is a tad faster.
16698 When we detect that we are oscillating between two values,
16699 don't check whether tm_isdst has the requested value, since
16700 we already know the answer. When tm_isdst has the wrong value,
16701 use a different heuristic to find the right one, based on the
16702 extreme values actually observed in practice in tz2003a,
16703 rather than the (overly optimistic) "previous 3 calendar quarters".
16705 (not_equal_tm, print_tm, check_result): Use "const T" rather than
16706 "T const" to accommodate glibc style.
16707 (check_result): Use less-confusing report format. "long" -> "long int.
16709 Don't loop if the iteration overflows time_t.
16710 Allow a negative step in the iteration.
16712 2003-07-06 Karl Berry <karl@gnu.org>
16714 * config/depcomp: update from automake.
16715 * config/config.sub: update from prep.
16717 2003-07-03 Karl Berry <karl@gnu.org>
16719 * config/config.guess: update from prep.
16721 2003-07-01 Paul Eggert <eggert@twinsun.com>
16723 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
16724 xreadlink.c now includes it unconditionally.
16726 2003-07-01 Paul Eggert <eggert@twinsun.com>
16728 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
16729 having it depend on HAVE_SYS_TYPES_H.
16731 2003-07-01 Bruno Haible <bruno@clisp.org>
16733 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
16734 <sys/types.h> should be sufficient.
16735 Reported by Paul Eggert.
16737 2003-06-26 Karl Berry <karl@gnu.org>
16739 * config/depcomp: update from automake.
16741 2003-06-26 Bruno Haible <bruno@clisp.org>
16743 * modules/human: Depend on module stdbool.
16745 2003-06-25 Bruno Haible <bruno@clisp.org>
16747 * modules/readlink: New file.
16748 * modules/xreadlink: Depend on it.
16749 * MODULES.html.sh (func_all_modules): Add readlink.
16751 2003-06-25 Bruno Haible <bruno@clisp.org>
16753 * m4/readlink.m4: New file.
16755 2003-06-25 Bruno Haible <bruno@clisp.org>
16757 * lib/readlink.c: New file.
16759 2003-06-22 Karl Berry <karl@gnu.org>
16761 * config/srclist.txt: update mkinstalldirs from automake.
16762 * config/mkinstalldirs: update.
16764 2003-06-22 Bruno Haible <bruno@clisp.org>
16766 Portability to mingw32.
16767 * m4/ssize_t.m4: New file, from GNU gettext.
16768 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
16769 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
16771 2003-06-22 Bruno Haible <bruno@clisp.org>
16773 * modules/safe-read: Add m4/ssize_t.m4.
16774 * modules/xreadlink: Add m4/ssize_t.m4.
16776 2003-06-20 Bruno Haible <bruno@clisp.org>
16778 Assume C89, so PARAMS isn't needed.
16779 * lib/unicodeio.h (PARAMS): Remove.
16780 * lib/unicodeio.c: Don't use PARAMS.
16782 2003-06-18 Karl Berry <karl@gnu.org>
16784 * config/config.{guess,sub}: update from prep.
16786 2003-06-18 Jim Meyering <jim@meyering.net>
16788 Merge changes from coreutils.
16789 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
16790 Remove explicit declarations of xmalloc and realloc.
16792 (read_utmp): Remove anachronistic cast of xmalloc.
16794 2003-06-17 Paul Eggert <eggert@twinsun.com>
16796 Assume C89, so PARAMS isn't needed.
16797 * lib/backupfile.h (PARAMS): Remove. All uses removed.
16798 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
16799 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
16800 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
16801 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
16802 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
16803 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
16804 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
16805 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
16806 lib/xstrtod.h, lib/xstrtol.h: Likewise.
16807 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
16808 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
16809 no longer needed. Anyway, config.h should always be included before any
16812 2003-06-11 Simon Josefsson <jas@extundo.com>
16814 * modules/sysexits: New file.
16815 * MODULES.html.sh (func_all_modules): Add sysexits.
16817 2003-06-11 Simon Josefsson <jas@extundo.com>
16819 * lib/sysexit_.h: New file.
16821 2003-06-11 Derek Price <derek@ximbiot.com>
16823 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
16826 2003-06-11 Bruno Haible <bruno@clisp.org>
16828 * m4/sysexits.m4: New file.
16830 2003-06-10 Simon Josefsson <jas@extundo.com>
16832 * lib/argp.h: New file, from glibc.
16833 * lib/argp-ba.c: New file, from glibc.
16834 * lib/argp-eexst.c: New file, from glibc.
16835 * lib/argp-fmtstream.c: New file, from glibc.
16836 * lib/argp-fmtstream.h: New file, from glibc.
16837 * lib/argp-fs-xinl.c: New file, from glibc.
16838 * lib/argp-help.c: New file, from glibc.
16839 * lib/argp-namefrob.h: New file, from glibc.
16840 * lib/argp-parse.c: New file, from glibc.
16841 * lib/argp-pv.c: New file, from glibc.
16842 * lib/argp-pvh.c: New file, from glibc.
16843 * lib/argp-xinl.c: New file, from glibc.
16845 2003-06-10 Simon Josefsson <jas@extundo.com>
16847 * modules/strchrnul: New file.
16849 2003-06-10 Simon Josefsson <jas@extundo.com>
16851 * modules/argp: New file.
16853 2003-06-10 Simon Josefsson <jas@extundo.com>
16855 * m4/strchrnul.m4: New file.
16857 2003-06-10 Simon Josefsson <jas@extundo.com>
16859 * lib/strchrnul.h: New file.
16860 * lib/strchrnul.c: New file.
16862 2003-06-10 Bruno Haible <bruno@clisp.org>
16864 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
16866 2003-06-07 Karl Berry <karl@gnu.org>
16868 * config/config.{guess,sub}: update from prep.
16870 2003-06-07 Jim Meyering <jim@meyering.net>
16872 * modules/strtod: Use $(...) notation, not @...@ for
16873 AC_REPLACE'd variables.
16874 * modules/localcharset: Likewise.
16876 2003-06-07 Jim Meyering <jim@meyering.net>
16878 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
16879 in place of my name in the copyright comment.
16880 Remove definition and uses of __P.
16883 * lib/stat.c: Don't declare xmalloc explicitly.
16884 Instead, include "xalloc.h".
16885 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
16886 xrealloc, and xcalloc return values.
16887 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
16889 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
16891 2003-06-07 Bruno Haible <bruno@clisp.org>
16893 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
16894 avoid AC_CONFIG_LINKS.
16895 * modules/fnmatch (Makefile.am): Use explicit creation rule for
16896 fnmatch.h, to avoid AC_CONFIG_LINKS.
16897 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
16899 2003-06-07 Bruno Haible <bruno@clisp.org>
16901 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
16902 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
16903 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
16905 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
16906 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
16909 2003-06-06 Jim Meyering <jim@meyering.net>
16911 Merge from coreutils.
16912 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
16913 Consolidate declarations and initializations of *_base* locals.
16915 Merge from coreutils.
16916 This avoids a core dump on systems without GNU putenv,
16917 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
16918 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
16919 (unsetenv): New static function, from GNU libc.
16920 (rpl_putenv): Use it.
16922 * lib/modechange.c: Remove trailing blanks.
16924 Merge from coreutils.
16925 * lib/fsusage.c: Remove declaration of statfs.
16926 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
16928 * lib/posixtm.c: Include <stdbool.h> unconditionally.
16930 2003-06-06 Jim Meyering <jim@meyering.net>
16932 * lib/stdbool_.h: Renamed from stdbool.h.in.
16934 2003-06-06 Jim Meyering <jim@meyering.net>
16935 Bruno Haible <bruno@clisp.org>
16937 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
16938 Adjust Makefile.am snippet not to redirect directly to target.
16939 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
16941 2003-06-05 Paul Eggert <eggert@twinsun.com>
16943 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
16944 mismatch, look in future quarters as well as past. This fixes a
16945 bug when processing fall-backwards gaps immediately after a long
16946 period of daylight-saving time.
16948 * lib/mktime.c: Assume freestanding C89 or better.
16949 (HAVE_LIMITS_H): Remove. Assume it's 1.
16950 (__P): Remove; not used.
16951 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
16952 (mktime, not_equal_tm, print_tm, check_result,
16953 main): Use prototypes. Use const * where appropriate.
16954 (main): Fix typo in testing code that uncovered by above changes.
16955 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
16957 2003-06-04 Paul Eggert <eggert@twinsun.com>
16959 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
16960 locale.h, localeconv. This merges changes from coreutils.
16962 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
16963 It can be removed after the next Autoconf is released.
16964 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
16967 2003-06-04 Paul Eggert <eggert@twinsun.com>
16969 * lib/mktime.c: Fix Debian bug 177940
16970 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
16971 (localtime_offset): Now long int, not time_t, because we want it
16972 to be guaranteed to be signed. All uses changed.
16973 (__mktime_internal): If overflow would occur when adding offset,
16976 Merge 'human' changes from coreutils. Rewrite to support
16977 locale-specific notations like thousands separators.
16978 * lib/human.c: Simplify authorship notice.
16979 Include human.h immediately after config.h.
16980 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
16981 <limits.h>: Do not include, since human.h does.
16982 (SIZE_MAX, UINTMAX_MAX): New macros.
16983 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
16984 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
16985 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
16986 (power_letter): Renamed from suffixes.
16987 (generate_suffix_backwards): Remove.
16988 (adjust_value): Now takes int style (because of human.h changes)
16989 and long double value (for greater precision on some platforms).
16990 (group_number): New function.
16991 (human_readable): Use it. Use integer options, not enum.
16992 Put the options before the sizes in the arg list.
16993 Support all the new options.
16994 The old human_readable function has been removed;
16995 use inttostr.h instead.
16996 (human_readable, default_block_size, humblock):
16997 Use uintmax_t, not int, for block sizes.
16998 (human_readable_inexact, block_size_types): Remove.
16999 (block_size_opts): New constant.
17000 (human_options): Renamed from human_block_size, with new signature
17001 that allows block sizes up to UINTMAX_MAX. All callers changed.
17002 * lib/human.h: Add copyright and authorship notice.
17003 Include <limits.h> and <stdbool.h> unconditionally.
17004 (PARAMS): Remove. All uses removed.
17005 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
17006 (enum human_inexact_style): Remove tag; now a nameless enum.
17007 (human_floor, human_ceiling, human_round_to_even): Now have
17008 values 2, 0, 1 rather than -1, 1, 0.
17009 (human_group_digits, human_suppress_point_zero, human_autoscale,
17010 human_base_1024, human_SI, human_B): New constants.
17011 (human_readable_inexact, human_block_size): Remove.
17012 (human_readable): Size args are now uintmax_t, not int.
17013 (human_options): New decl.
17015 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
17016 unnecessary now that we assume C89 or better. This change
17017 imported from coreutils.
17019 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
17020 arbitrarily. This is the same patch as 2003-05-28, but it got lost
17021 in the 2003-05-30 sync from glibc.
17023 .h files should stand alone, but we shouldn't include <sys/types.h>
17024 if we can get away with just <stddef.h>.
17026 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
17027 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
17028 rather than <sys/types.h>, as we merely need size_t.
17029 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
17031 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
17032 Include <stdio.h>, to get FILE.
17033 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
17034 memcasecmp.h has included <stddef.h> and all we need is size_t.
17035 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
17036 our interface, instead of including <sys/types.h>
17038 2003-06-04 Paul Eggert <eggert@twinsun.com>
17040 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
17041 now, as glibc mktime is buggy on non-glibc systems.
17043 2003-06-03 Karl Berry <karl@gnu.org>
17045 * config/config.sub: update from prep.
17047 2003-06-02 Paul Eggert <eggert@twinsun.com>
17050 Fix some minor time-related bugs with POSIX time arguments.
17051 Some valid time stamps were being rejected (notably -1, and
17052 time stamps before 1900 on 64-bit hosts). And some invalid
17053 time stamps were being accepted, e.g. September 31.
17055 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
17056 that we can return (time_t) -1 successfully.
17057 * lib/posixtm.c: Likewise.
17058 [HAVE_STDBOOL_H]: Include <stdbool.h>.
17059 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
17060 (t): Remove static var.
17061 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
17062 of static var. All uses changed.
17063 (year): Do not reject years before 1900; they can occur with
17065 (posix_time_parse): Do not check for out-of-range components;
17066 that is now the caller's responsibility, since our checks were
17067 only approximations.
17068 (posixtime): Use mktime to check for out-of-range components,
17069 since it knows them exactly.
17070 If mktime returns (time_t) -1, check whether an error actually occurred
17071 by invoking localtime on -1.
17072 (main) [TEST_POSIXTIME]: Check for input data errors, and report
17073 posixtime failures better.
17074 Improve the test data (in comments only).
17076 2003-06-02 Karl Berry <karl@gnu.org>
17078 * config/mkinstalldirs (version): new variable.
17079 (--version): new option.
17080 (usage): improve message.
17082 2003-05-30 Karl Berry <karl@gnu.org>
17084 * lib/mktime.c: update from libc.
17086 2003-05-30 Bruno Haible <bruno@clisp.org>
17088 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
17089 * config/config.rpath: Upgrade to gettext-0.12.1.
17091 2003-05-30 Bruno Haible <bruno@clisp.org>
17093 * m4/gettext.m4: Upgrade to gettext-0.12.1.
17094 * m4/nls.m4: New file, from gettext-0.12.1.
17095 * m4/po.m4: New file, from gettext-0.12.1.
17096 * m4/progtest.m4: Upgrade to gettext-0.12.1.
17098 2003-05-30 Bruno Haible <bruno@clisp.org>
17100 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
17101 * lib/localcharset.h: Likewise.
17102 * lib/localcharset.c: Likewise.
17104 2003-05-29 Karl Berry <karl@gnu.org>
17106 * config/config.rpath: update from gettext.
17108 2003-05-28 Paul Eggert <eggert@twinsun.com>
17110 Assume the headers required for C89 freestanding compilers.
17111 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
17112 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
17113 * m4/human.m4 (gl_HUMAN): Likewise.
17114 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
17115 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
17116 * m4/userspec.m4 (gl_USERSPEC): Likewise.
17117 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
17118 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
17119 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
17121 2003-05-28 Paul Eggert <eggert@twinsun.com>
17123 Assume the headers required for C89 freestanding compilers.
17124 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
17125 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
17126 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
17127 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
17128 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
17129 define, since <limits.h> is guaranteed to do that.
17130 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
17131 * lib/exclude.c: Include <stdbool.h> unconditionally.
17132 * lib/tempname.c: Include <stddef.h> unconditionally.
17133 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
17134 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
17135 <stddef.h> does that.
17136 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
17137 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
17138 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
17140 * lib/xstrtol.c: Likewise.
17141 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
17142 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
17144 * lib/addext.c (addext): Use assignment rather than cast, to avoid
17145 warnings on some platforms.
17147 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
17150 2003-05-26 Jim Meyering <jim@meyering.net>
17152 Merge in a change from coreutils:
17153 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
17154 that is guaranteed to be `no'. Use `no_such_member' to indicate
17155 that condition, rather than `-1' which is slightly misleading.
17156 Change the name of the cache variable to have the gl_ prefix.
17157 Prompted by a patch from Richard Dawe for DJGPP.
17159 2003-05-24 Karl Berry <karl@gnu.org>
17161 * config/config.guess: update from prep.
17163 2003-05-22 Karl Berry <karl@gnu.org>
17165 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
17167 2003-05-20 Karl Berry <karl@gnu.org>
17169 * config/config.guess: update from prep.
17171 2003-05-18 Karl Berry <karl@gnu.org>
17173 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
17174 might actually be set by the user.
17176 * config/depcomp, install-sh, mdate-sh: update from automake.
17178 2003-05-17 Bruno Haible <bruno@clisp.org>
17180 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
17181 invalid expansion for AC_EGREP_CPP.
17182 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17183 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17184 Suggested by Akim Demaille <akim@epita.fr> in
17185 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
17187 2003-05-12 Jim Meyering <jim@meyering.net>
17189 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
17190 the space-padded-by-default conversion specifiers, %e, %k, %l.
17192 2003-05-12 Bruno Haible <bruno@clisp.org>
17194 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
17195 the string is longer than 4 KB.
17197 2003-05-11 Karl Berry <karl@gnu.org>
17199 * config/config.{guess,sub}: update from prep.
17201 2003-05-09 Bruno Haible <bruno@clisp.org>
17203 * modules/error: Add m4/strerror_r.m4 to file list.
17205 2003-05-03 Bruno Haible <bruno@clisp.org>
17207 Upgrade to Unicode-4.0.
17208 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
17209 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
17210 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
17211 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
17212 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
17213 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
17214 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
17215 Change width of U+E0100..U+E01EF from 1 to 0.
17217 2003-04-25 Jim Meyering <jim@meyering.net>
17219 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
17220 of type size_t, not int.
17222 2003-04-25 Bruno Haible <bruno@clisp.org>
17224 * lib/copy-file.c: Include <stddef.h>, for size_t.
17226 2003-04-21 Paul Eggert <eggert@twinsun.com>
17228 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
17229 code which expansion is under static control. Patch imported from
17230 Akim Demaille's patch to Bison; see
17231 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
17233 2003-04-14 Bruno Haible <bruno@clisp.org>
17235 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
17237 2003-04-11 Jim Meyering <jim@meyering.net>
17239 Merge changes from Coreutils.
17241 2003-03-22 Jim Meyering <jim@meyering.net>
17243 * lib/strftime.c (widen): Cast alloca return value to proper type.
17245 2003-01-19 Ulrich Drepper <drepper@redhat.com>
17248 * lib/strftime.c (my_strftime): Handle very large width
17249 specifications for numeric values correctly. Improve checks for
17252 2003-01-19 Jim Meyering <jim@meyering.net>
17254 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
17256 (nl_get_alt_digit) [! defined my_strftime]: Define.
17257 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
17258 _nl_get_alt_digit and _nl_get_walt_digit.
17260 * lib/strftime.c (my_strftime): Merge in locale-related changes from
17261 libc. These changes have no effect outside of _LIBC.
17263 2003-04-10 Bruno Haible <bruno@clisp.org>
17265 * modules/findprog: New file.
17266 * MODULES.html.sh (func_all_modules): Add it.
17268 2003-04-10 Bruno Haible <bruno@clisp.org>
17270 * m4/findprog.m4: New file.
17271 * m4/eaccess.m4: New file.
17273 2003-04-10 Bruno Haible <bruno@clisp.org>
17275 * lib/findprog.h: New file, from GNU gettext.
17276 * lib/findprog.c: New file, from GNU gettext.
17278 2003-04-05 Jim Meyering <jim@meyering.net>
17280 Merge changes from Coreutils.
17282 * lib/exclude.h (PARAMS): Remove definition and uses.
17283 * lib/exclude.c: Remove uses of `PARAMS'.
17285 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
17286 Add test-cases for DOS filenames. Declare program_name.
17287 (main): Set up program_name. Patch by Rich Dawe.
17289 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
17291 Use mntctl's return value to drive the entry-processing loop, since
17292 we can't rely on the value of the vmt_length member in the last
17293 entry. On some systems doing so could result in exhausting
17294 virtual memory. Based in part on a patch from Mike Jetzer.
17296 2003-04-04 Bruno Haible <bruno@clisp.org>
17298 * modules/linebreak: New file.
17299 * MODULES.html.sh (func_all_modules): Add it.
17301 2003-04-04 Bruno Haible <bruno@clisp.org>
17303 * m4/linebreak.m4: New file.
17305 2003-04-04 Bruno Haible <bruno@clisp.org>
17307 * lib/linebreak.h: New file, from GNU gettext.
17308 * lib/linebreak.c: New file, from GNU gettext with slight
17310 * lib/lbrkprop.h: New file, from GNU gettext.
17312 2003-04-03 Bruno Haible <bruno@clisp.org>
17314 * modules/utf8-ucs4: New file.
17315 * modules/utf16-ucs4: New file.
17316 * modules/ucs4-utf8: New file.
17317 * modules/ucs4-utf16: New file.
17318 * MODULES.html.sh (func_all_modules): Add them.
17320 2003-04-03 Bruno Haible <bruno@clisp.org>
17322 * m4/utf-ucs4.m4: New file.
17323 * m4/ucs4-utf.m4: New file.
17325 2003-04-03 Bruno Haible <bruno@clisp.org>
17327 * lib/utf8-ucs4.h: New file, from GNU gettext.
17328 * lib/utf16-ucs4.h: New file, from GNU gettext.
17329 * lib/ucs4-utf8.h: New file, from GNU gettext.
17330 * lib/ucs4-utf16.h: New file, from GNU gettext.
17332 2003-04-02 Bruno Haible <bruno@clisp.org>
17334 * modules/binary-io: New file.
17335 * MODULES.html.sh (func_all_modules): Add it.
17337 2003-04-02 Bruno Haible <bruno@clisp.org>
17339 * lib/binary-io.h: New file, from GNU gettext.
17341 2003-04-01 Bruno Haible <bruno@clisp.org>
17343 * modules/pathname: New file.
17344 * MODULES.html.sh (func_all_modules): Add it.
17346 2003-04-01 Bruno Haible <bruno@clisp.org>
17348 * lib/pathname.h: New file, from GNU gettext.
17349 * lib/concatpath.c: New file, from GNU gettext.
17351 2003-03-30 Bruno Haible <bruno@clisp.org>
17353 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
17355 2003-03-30 Bruno Haible <bruno@clisp.org>
17357 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
17358 function chown() doesn't exist.
17360 2003-03-28 Bruno Haible <bruno@clisp.org>
17362 * modules/copy-file: New file.
17363 * MODULES.html.sh (func_all_modules): Add it.
17365 2003-03-28 Bruno Haible <bruno@clisp.org>
17367 * m4/copy-file.m4: New file.
17369 2003-03-28 Bruno Haible <bruno@clisp.org>
17371 * lib/copy-file.h: New file, from GNU gettext.
17372 * lib/copy-file.c: New file, from GNU gettext.
17374 2003-03-18 Jim Meyering <jim@meyering.net>
17376 * lib/quote.c (quote_n): Fix typo in comment.
17378 2003-03-18 Bruno Haible <bruno@clisp.org>
17380 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
17382 * m4/onceonly_2_57.m4: Likewise.
17384 2003-03-17 Bruno Haible <bruno@clisp.org>
17386 * m4/onceonly.m4: Require autoconf 2.54 or newer.
17387 (m4_quote): Remove macro.
17388 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
17390 2003-03-14 Jim Meyering <jim@meyering.net>
17392 Merge changes from Coreutils.
17393 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
17394 to be const, in order to avoid warnings.
17395 (obstack_room): Likewise.
17396 (obstack_empty_p): Likewise.
17398 2003-03-14 Bruno Haible <bruno@clisp.org>
17400 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
17401 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
17403 2003-03-13 Paul Eggert <eggert@twinsun.com>
17405 Merge changes from Bison.
17406 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
17407 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
17408 when compiling Bison 1.875's `bitset bset = obstack_alloc
17409 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
17410 * lib/hash.c: Include <stdbool.h> unconditionally.
17412 2003-03-13 Paul Eggert <eggert@twinsun.com>
17414 * m4/onceonly.m4 (m4_quote): New macro.
17415 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
17416 Quote AC_FOREACH variable-expansions properly.
17418 2003-03-13 Paul Eggert <eggert@twinsun.com>
17420 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
17422 2003-03-09 Paul Eggert <eggert@twinsun.com>
17424 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
17425 Reported by Bruce Becker; see:
17426 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
17428 2003-03-03 Paul Eggert <eggert@twinsun.com>
17429 Bruno Haible <bruno@clisp.org>
17431 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
17432 Reported by John Hughes, see
17433 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
17435 2003-02-20 Bruno Haible <bruno@clisp.org>
17437 * MODULES.html.sh (func_all_modules): Add poll.
17439 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
17441 * modules/poll: New file.
17443 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
17445 * lib/poll_.h: New file.
17446 * lib/poll.c: New file.
17448 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
17450 * m4/poll.m4: New file.
17452 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
17454 * modules/mathl: New file.
17456 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
17458 * lib/mathl.h: New file.
17459 * lib/acosl.c: New file.
17460 * lib/asinl.c: New file.
17461 * lib/atanl.c: New file.
17462 * lib/ceill.c: New file.
17463 * lib/cosl.c: New file.
17464 * lib/expl.c: New file.
17465 * lib/floorl.c: New file.
17466 * lib/frexpl.c: New file.
17467 * lib/ldexpl.c: New file.
17468 * lib/logl.c: New file.
17469 * lib/sincosl.c: New file.
17470 * lib/sinl.c: New file.
17471 * lib/sqrtl.c: New file.
17472 * lib/tanl.c: New file.
17473 * lib/trigl.c: New file.
17474 * lib/trigl.h: New file.
17476 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
17478 * m4/mathl.m4: New file.
17480 2003-02-18 Bruno Haible <bruno@clisp.org>
17482 * MODULES.html.sh (func_all_modules): Add mathl.
17484 2003-02-17 Bruno Haible <bruno@clisp.org>
17486 * modules/mkdtemp: New module.
17487 * MODULES.html.sh (func_all_modules): Add it.
17489 2003-02-17 Bruno Haible <bruno@clisp.org>
17491 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
17493 2003-02-17 Bruno Haible <bruno@clisp.org>
17495 * lib/mkdtemp.h: New file, from GNU gettext.
17496 * lib/mkdtemp.c: New file, from GNU gettext.
17498 2003-02-02 Jim Meyering <jim@meyering.net>
17500 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
17503 2003-01-31 Bruno Haible <bruno@clisp.org>
17505 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
17507 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
17509 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
17511 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
17514 2003-01-31 Bruno Haible <bruno@clisp.org>
17516 * lib/rename.c: #undef rename before defining rpl_rename.
17517 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
17519 2003-01-30 Bruno Haible <bruno@clisp.org>
17521 * modules/vasnprintf, modules/vasprintf: New modules.
17522 * MODULES.html.sh (func_all_modules): Add them.
17524 2003-01-30 Bruno Haible <bruno@clisp.org>
17526 * m4/signed.m4: New file, from GNU gettext.
17527 * m4/longdouble.m4: New file, from GNU gettext.
17528 * m4/wchar_t.m4: New file, from GNU gettext.
17529 * m4/wint_t.m4: New file, from GNU gettext.
17530 * m4/vasnprintf.m4: New file.
17531 * m4/vasprintf.m4: New file.
17533 2003-01-30 Bruno Haible <bruno@clisp.org>
17535 * lib/printf-args.h: New file, from GNU gettext.
17536 * lib/printf-args.c: New file, from GNU gettext.
17537 * lib/printf-parse.h: New file, from GNU gettext.
17538 * lib/printf-parse.c: New file, from GNU gettext.
17539 * lib/vasnprintf.h: New file, from GNU gettext.
17540 * lib/vasnprintf.c: New file, from GNU gettext.
17541 * lib/asnprintf.c: New file, from GNU gettext.
17542 * lib/vasprintf.h: New file, from GNU gettext with modifications.
17543 * lib/vasprintf.c: New file, from GNU gettext.
17544 * lib/asprintf.c: New file, from GNU gettext.
17546 2003-01-29 Bruno Haible <bruno@clisp.org>
17548 * modules/stpncpy: New module.
17549 * MODULES.html.sh (func_all_modules): Add it.
17551 2003-01-29 Bruno Haible <bruno@clisp.org>
17553 * m4/stpncpy.m4: New file.
17555 2003-01-29 Bruno Haible <bruno@clisp.org>
17557 * lib/stpncpy.h: New file, from GNU gettext with modifications.
17558 * lib/stpncpy.c: New file, from GNU gettext with modifications.
17560 2003-01-28 Bruno Haible <bruno@clisp.org>
17562 * modules/c-ctype: New module.
17563 * MODULES.html.sh (func_all_modules): Add it.
17565 2003-01-28 Bruno Haible <bruno@clisp.org>
17567 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
17569 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
17572 2003-01-27 Bruno Haible <bruno@clisp.org>
17574 * modules/xsetenv: New module.
17575 * MODULES.html.sh (func_all_modules): Add it.
17577 2003-01-27 Bruno Haible <bruno@clisp.org>
17579 * lib/xsetenv.h: New file, from GNU gettext.
17580 * lib/xsetenv.c: New file, from GNU gettext.
17582 2003-01-23 Jim Meyering <jim@meyering.net>
17584 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
17585 from working on systems without dirfd (at least Irix and OSF1/Tru64).
17587 2003-01-23 Bruno Haible <bruno@clisp.org>
17589 * modules/minmax: New module.
17590 * MODULES.html.sh (func_all_modules): Add it.
17592 2003-01-23 Bruno Haible <bruno@clisp.org>
17594 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
17597 2003-01-22 Bruno Haible <bruno@clisp.org>
17599 * modules/exit: New module.
17600 * MODULES.html.sh (func_all_modules): Add it.
17602 2003-01-22 Bruno Haible <bruno@clisp.org>
17604 * lib/exit.h: New file, from GNU gettext.
17606 2003-01-19 Bruno Haible <bruno@clisp.org>
17608 * gnulib-tool: Recognize option --extract-maintainer.
17609 (func_get_maintainer): New function.
17610 * modules/*: Add Maintainer entry.
17612 2003-01-16 Jim Meyering <jim@meyering.net>
17614 * m4/regex.m4: The `regex' struct is both input and output.
17615 Initialize it before each use. Patch by Tim Waugh.
17617 2003-01-16 Bruno Haible <bruno@clisp.org>
17619 * MODULES.html.sh: Add a table of contents. Add the module name as
17620 leftmost column. Add hyperlinks.
17622 2003-01-15 Bruno Haible <bruno@clisp.org>
17624 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
17626 2003-01-15 Bruno Haible <bruno@clisp.org>
17628 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
17629 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
17632 2003-01-15 Bruno Haible <bruno@clisp.org>
17634 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
17636 2003-01-15 Bruno Haible <bruno@clisp.org>
17638 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
17639 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
17641 2003-01-14 Jim Meyering <jim@meyering.net>
17643 * lib/same.c (same_name): Tweak a comment.
17645 2003-01-14 Bruno Haible <bruno@clisp.org>
17647 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
17648 when a string comparison is sufficient.
17650 2003-01-14 Bruno Haible <bruno@clisp.org>
17652 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
17655 2003-01-14 Bruno Haible <bruno@clisp.org>
17657 * lib/hash-pjw.c: Add comment about low quality of this function.
17659 2003-01-13 Bruno Haible <bruno@clisp.org>
17661 * modules/stpcpy: Distribute lib/stpcpy.h.
17662 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
17664 2003-01-13 Bruno Haible <bruno@clisp.org>
17666 * modules/*: Add a description.
17667 * modules/strpbrk: Fix Makefile.am snippet.
17668 * modules/strtoimax: Fix dependencies.
17669 * modules/strtoumax: Likewise.
17671 2003-01-13 Bruno Haible <bruno@clisp.org>
17673 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
17674 * modules/alloca (Makefile.am): All object files depend on alloca.h.
17675 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
17677 2003-01-13 Bruno Haible <bruno@clisp.org>
17679 * gnulib-tool (func_create_testdir): Store config/* files in the main
17681 * config.rpath: Move to ...
17682 * config/config.rpath: ... here.
17683 * modules/gettext: Contains config/config.rpath, not config.rpath.
17684 * modules/iconv: Likewise.
17686 2003-01-12 Paul Eggert <eggert@twinsun.com>
17688 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
17689 to avoid collisions with libcurses and libreadline.
17691 * m4/getstr.m4: Remove.
17692 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
17694 2003-01-12 Paul Eggert <eggert@twinsun.com>
17696 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
17697 to avoid collisions with libcurses and libreadline.
17699 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
17700 * lib/getstr.h, getstr.c: Remove.
17701 * lib/getline.c: Include "getline.h", to check interface.
17702 Move body of old getstr.c here: this defines MIN_CHUNK and
17703 declares getdelim2, which is renamed from getstr.
17704 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
17706 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
17708 * lib/linebuffer.h: Likewise.
17709 (readline): Remove backward-compatibility macro.
17711 2003-01-12 Paul Eggert <eggert@twinsun.com>
17713 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
17714 to avoid collisions with libcurses and libreadline.
17716 * MODULES.html.sh: Remove getstr.
17717 * modules/getline: Depend on unlocked-io, not getstr.
17719 2003-01-12 Jim Meyering <jim@meyering.net>
17721 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
17723 2003-01-10 Bruno Haible <bruno@clisp.org>
17725 * modules/alloca: Change Makefile.am requirements. Simplify Include
17726 requirements. Add lib/alloca_.h to file list.
17728 2003-01-10 Bruno Haible <bruno@clisp.org>
17730 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
17732 2003-01-10 Bruno Haible <bruno@clisp.org>
17734 * lib/alloca_.h: New file.
17735 * lib/getdate.y: Unconditionally include alloca.h.
17736 * lib/makepath.c: Likewise.
17737 * lib/setenv.c: Likewise.
17738 * lib/userspec.c: Likewise.
17740 2003-01-09 Karl Berry <karl@gnu.org>
17742 * MODULES.html.sh: include `dirname $0` in PATH, to find
17745 2003-01-09 Bruno Haible <bruno@clisp.org>
17747 * modules/stdbool: Change configure.ac, Makefile.am requirements.
17748 Simplify Include requirements. Add lib/stdbool.h.in to file list.
17750 2003-01-09 Bruno Haible <bruno@clisp.org>
17752 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
17754 2003-01-09 Bruno Haible <bruno@clisp.org>
17756 * lib/stdbool.h.in: New file.
17758 2003-01-09 Bruno Haible <bruno@clisp.org>
17760 * gnulib-tool (func_all_modules): Ignore files ending in ~.
17761 * MODULES.html.sh: Likewise.
17763 2003-01-08 Jim Meyering <jim@meyering.net>
17765 * lib/full-write.c: Undefine and define-away `const' after inclusion
17766 of errno.h, not before. Suggestion from Bruno Haible.
17768 2003-01-08 Bruno Haible <bruno@clisp.org>
17770 * modules/full-read: Depend on full-write.
17772 2003-01-08 Bruno Haible <bruno@clisp.org>
17774 * lib/safe-read.c: Include specification header first, to ensure its
17776 * lib/full-write.c: Likewise.
17778 2003-01-07 Jim Meyering <jim@meyering.net>
17780 * lib/full-write.c: Rework so that it may serve to define full_read,
17782 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
17784 2003-01-07 Bruno Haible <bruno@clisp.org>
17786 * lib/strtoimax.c: Include <stdint.h> as an alternative to
17788 * lib/xstrtol.h: Likewise.
17789 * lib/xstrtoimax.c: Likewise.
17790 * lib/xstrtoumax.c: Likewise.
17791 * lib/human.h: Likewise.
17793 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
17794 on systems that have <inttypes.h> but not <stdint.h>.
17796 2003-01-07 Bruno Haible <bruno@clisp.org>
17798 * MODULES.html.sh: Add copyright notice.
17799 (missed_files): Omit CVS directory entries.
17800 (func_module): Make it work with sed-3.02.
17801 * MODULES.txt: Remove file.
17803 2003-01-06 Jim Meyering <jim@meyering.net>
17805 * lib/version-etc.c: Update year in translatable copyright string.
17807 2003-01-03 Karl Berry <karl@gnu.org>
17809 * config/config.{guess,sub}: update from prep.
17811 2003-01-02 Karl Berry <karl@gnu.org>
17813 * doc/COPYING.DOC: belatedly updated to 1.2.
17815 2003-01-01 Karl Berry <karl@gnu.org>
17817 * gnulib-tool (func_verify_module): report module name $module in
17818 error message, not $1.
17819 * gnulib-tool (create-testdir): don't complain if destdir couldn't
17820 be created, only if it doesn't exist.
17821 * gnulib-tool (last_checkin_date): don't expand the $Date here.
17823 2002-12-31 Paul Eggert <eggert@twinsun.com>
17825 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
17827 2002-12-31 Paul Eggert <eggert@twinsun.com>
17829 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
17830 memcmp if strcoll doesn't work.
17832 2002-12-31 Bruno Haible <bruno@clisp.org>
17834 * lib/utime.c (utime_null): No need to call ftruncate if the file was
17837 2002-12-31 Bruno Haible <bruno@clisp.org>
17839 * lib/memcoll.c (STRCOLL): New macro.
17842 2002-12-31 Bruno Haible <bruno@clisp.org>
17844 * lib/localcharset.h: New file.
17845 * lib/localcharset.c: Include it.
17846 * lib/unicodeio.c: Likewise.
17848 2002-12-31 Bruno Haible <bruno@clisp.org>
17850 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
17851 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
17853 2002-12-31 Bruno Haible <bruno@clisp.org>
17855 * lib/getline.h: Include <stddef.h>, for size_t.
17857 * lib/unicodeio.h: Include <stddef.h>, for size_t.
17858 * lib/unicodeio.c: Don't include <stddef.h>.
17860 2002-12-31 Bruno Haible <bruno@clisp.org>
17862 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
17865 2002-12-24 Karl Berry <karl@gnu.org>
17867 * config/config.guess: update from prep.
17869 2002-12-24 Bruno Haible <bruno@clisp.org>
17871 General infrasructure.
17872 * m4/README: Rewritten.
17873 * m4/onceonly.m4: New file.
17874 * m4/onceonly_2_57.m4: New file.
17877 * m4/atexit.m4: New file.
17880 * m4/strtod.m4: New file.
17883 * m4/strtol.m4: New file.
17886 * m4/strtoul.m4: New file.
17889 * m4/memchr.m4: New file.
17892 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
17893 (jm_FUNC_MEMCMP): Invoke it.
17896 * m4/memcpy.m4: New file.
17899 * m4/memmove.m4: New file.
17902 * m4/memset.m4: New file.
17905 * m4/strcspn.m4: New file.
17908 * m4/strpbrk.m4: New file.
17911 * m4/strstr.m4: New file.
17914 * m4/strerror.m4: New file.
17917 * m4/mktime.m4: Renamed from jm-mktime.m4.
17918 (gl_PREREQ_MKTIME): New macro.
17919 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
17922 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
17923 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
17924 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
17927 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
17928 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
17929 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
17932 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
17933 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
17934 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
17936 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
17939 * m4/xalloc.m4: New file.
17942 * m4/alloca.m4: New file.
17945 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
17946 (jm_FUNC_PUTENV): Invoke it.
17949 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
17950 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
17951 when invoked twice.
17952 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
17956 * m4/memrchr.m4: New file.
17959 * m4/stpcpy.m4: New file.
17962 * m4/strcase.m4: New file.
17965 * m4/strdup.m4: New file.
17968 * m4/strnlen.m4: New file.
17971 * m4/strndup.m4: New file.
17974 * m4/xstrtod.m4: New file.
17977 * m4/xstrtol.m4: New file.
17980 * m4/getdate.m4: New file.
17982 Module unlocked-io.
17983 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
17984 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
17985 * m4/jm-glibc-io.m4n: Remove file.
17987 Module long-options.
17988 * m4/long-options.m4: New file.
17991 * m4/md5.m4: New file.
17994 * m4/sha.m4: New file.
17997 * m4/getstr.m4: New file.
18000 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
18001 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
18002 <sys/types.h>, for size_t. Use the function name gnu_getline, not
18003 simply getline. Infoke gl_PREREQ_GETLINE.
18006 * m4/obstack.m4: New file.
18009 * m4/hash.m4: New file.
18012 * m4/readtokens.m4: New file.
18015 * m4/strverscmp.m4: New file.
18018 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
18022 * m4/strtoll.m4: New file.
18025 * m4/strtoull.m4: New file.
18028 * m4/strtoimax.m4: New file.
18031 * m4/strtoumax.m4: New file.
18034 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
18035 jm_AC_PREREQ_XSTRTOIMAX.
18036 Moved the strtol prerequisites to strtol.m4.
18037 Moved the strtoll prerequisites to strtoll.m4.
18038 Moved the strtoimax prerequisites to strtoimax.m4.
18041 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
18042 jm_AC_PREREQ_XSTRTOUMAX.
18043 Moved the strtoul prerequisites to strtoul.m4.
18044 Moved the strtoull prerequisites to strtoull.m4.
18045 Moved the strtoumax prerequisites to strtoumax.m4.
18048 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
18049 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
18052 * m4/dup2.m4: New file.
18055 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
18056 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
18059 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
18060 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
18062 Module gettimeofday.
18063 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
18064 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
18065 gl_PREREQ_GETTIMEOFDAY.
18068 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
18069 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
18072 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
18073 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
18074 jm_AC_TYPE_UINTMAX_T.
18075 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
18078 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
18079 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
18082 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
18083 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
18086 * m4/timespec.m4 (gl_TIMESPEC): New macro.
18087 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
18088 * m4/st_mtim.m4: Indentation.
18091 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
18092 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
18093 gl_PREREQ_NANOSLEEP.
18096 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
18097 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
18098 (gl_REGEX): New macro.
18101 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
18102 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
18105 * m4/rmdir.m4: New file.
18108 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
18109 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
18110 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
18113 * m4/dirname.m4: New file.
18116 * m4/getopt.m4: New file.
18118 Module unistd-safer.
18119 * m4/unistd-safer.m4: New file.
18122 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
18124 (gl_PREREQ_FNMATCH_EXTRA): New macro.
18125 (gl_FUNC_FNMATCH_POSIX): New macro.
18126 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
18127 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
18131 * m4/exclude.m4: New file.
18134 * m4/human.m4: New file.
18140 * m4/backupfile.m4: New file.
18141 * m4/d-ino.m4: Indentation.
18144 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
18145 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
18146 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
18149 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
18153 * m4/euidaccess.m4: New file.
18156 * m4/file-type.m4: New file.
18159 * m4/fileblocks.m4: New file.
18162 * m4/filemode.m4: New file.
18165 * m4/isdir.m4: New file.
18168 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
18169 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
18172 * m4/makepath.m4: New file.
18175 * m4/modechange.m4: New file.
18178 * m4/mountlist.m4: New file.
18179 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
18182 Module path-concat.
18183 * m4/path-concat.m4: New file.
18186 * m4/pathmax.m4: New file.
18189 * m4/same.m4: New file.
18192 * m4/save-cwd.m4: New file.
18195 * m4/savedir.m4: New file.
18198 * m4/xgetcwd.m4: New file.
18199 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
18202 * m4/xreadlink.m4: New file.
18205 * m4/safe-read.m4: New file.
18208 * m4/safe-write.m4: New file.
18211 * m4/closeout.m4: New file.
18213 Module stdio-safer.
18214 * m4/stdio-safer.m4: New file.
18217 * m4/getpass.m4: New file.
18220 * m4/getugroups.m4: New file.
18222 Module group-member.
18223 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
18224 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
18227 * m4/idcache.m4: New file.
18230 * m4/userspec.m4: New file.
18233 * m4/clock_time.m4: New file.
18234 * m4/gettime.m4: New file.
18237 * m4/settime.m4: New file.
18240 * m4/posixtm.m4: New file.
18242 Module gethostname.
18243 * m4/gethostname.m4: New file.
18246 * m4/canon-host.m4: New file.
18249 * m4/codeset.m4: New file, from gettext-0.11.5.
18250 * m4/gettext.m4: New file, from gettext-0.11.5.
18251 * m4/glibc21.m4: New file, from gettext-0.11.5.
18252 * m4/iconv.m4: New file, from gettext-0.11.5.
18253 * m4/intdiv0.m4: New file, from gettext-0.11.5.
18254 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
18255 * m4/inttypes.m4: New file, from gettext-0.11.5.
18256 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
18257 * m4/isc-posix.m4: New file, from gettext-0.11.5.
18258 * m4/lcmessage.m4: New file, from gettext-0.11.5.
18259 * m4/lib-ld.m4: New file, from gettext-0.11.5.
18260 * m4/lib-link.m4: New file, from gettext-0.11.5.
18261 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
18262 * m4/progtest.m4: New file, from gettext-0.11.5.
18263 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
18264 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
18265 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
18267 Module localcharset.
18268 * m4/localcharset.m4: New file.
18270 Module hard-locale.
18271 * m4/hard-locale.m4: New file.
18274 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
18276 * m4/mbrtowc.m4: Add comment.
18279 * m4/memcasecmp.m4: New file.
18282 * m4/memcoll.m4: New file.
18285 * m4/unicodeio.m4: New file.
18288 * m4/rpmatch.m4: New file.
18291 * m4/yesno.m4: New file.
18294 * m4/exitfail.m4: New file.
18297 * m4/c-stack.m4 (gl_C_STACK): New macro.
18298 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
18301 * m4/error.m4 (gl_ERROR): New macro.
18302 (jm_PREREQ_ERROR): Use onceonly macros.
18305 * m4/fatal.m4: New file.
18308 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
18309 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
18311 Module getpagesize.
18312 * m4/getpagesize.m4: New file.
18314 Module getusershell.
18315 * m4/getusershell.m4: New file.
18318 * m4/physmem.m4: New file.
18321 * m4/posixver.m4: New file.
18324 * m4/quotearg.m4: New file.
18327 * m4/quote.m4: New file.
18330 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
18333 * m4/sig2str.m4: New file.
18336 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
18338 * m4/intmax_t.m4: New file.
18339 * m4/d-type.m4: Indentation.
18340 * m4/jm-macros.m4: Update.
18341 * m4/prereq.m4 (jm_PREREQ): Update.
18342 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
18343 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
18344 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
18345 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
18346 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
18347 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
18348 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
18349 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
18350 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
18351 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
18352 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
18353 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
18354 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
18355 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
18356 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
18357 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
18358 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
18359 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
18360 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
18362 2002-12-24 Bruno Haible <bruno@clisp.org>
18364 * MODULES.txt: Update according to m4/ changes.
18367 * config.rpath: New file, from gettext-0.11.5.
18369 * modules/*: New module descriptions.
18370 * gnulib-tool: New file.
18371 * MODULES.html.sh: New file.
18373 2002-12-21 Karl Berry <karl@gnu.org>
18375 * doc/fdl.texi: update to version 1.2.
18377 2002-12-19 Karl Berry <karl@gnu.org>
18379 * config/config.guess: update from prep.
18381 2002-12-18 Bruno Haible <bruno@clisp.org>
18383 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
18384 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
18386 2002-12-17 Bruno Haible <bruno@clisp.org>
18388 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
18389 stdlib.h, string.h.
18391 2002-12-17 Bruno Haible <bruno@clisp.org>
18393 * lib/canon-host.c (strdup): Remove unused declaration.
18395 * lib/fsusage.c: Include full_read.h.
18396 (get_fs_usage): Use full_read instead of safe_read.
18398 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
18400 2002-12-12 Karl Berry <karl@gnu.org>
18402 * config/config.guess: update from prep.
18404 2002-12-11 Bruno Haible <bruno@clisp.org>
18406 * m4/setenv.m4: New file, from gettext-0.11.5.
18408 2002-12-11 Bruno Haible <bruno@clisp.org>
18410 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
18412 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
18415 2002-12-11 Bruno Haible <bruno@clisp.org>
18417 * setenv.c (alloca): Fall back to malloc.
18418 (freea): New macro.
18419 (setenv): Use freea() to free memory allocated with alloca().
18421 2002-11-13 Bruno Haible <bruno@clisp.org>
18423 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
18424 function declarations.
18425 * unsetenv.c (unsetenv): Likewise.
18427 2002-03-04 Bruno Haible <bruno@clisp.org>
18429 Portability to AIX 4.3.3.
18430 * unsetenv.c: New file, extracted from setenv.c.
18431 * setenv.c: Move the unsetenv() function to unsetenv.c.
18433 2001-12-20 Bruno Haible <bruno@clisp.org>
18435 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
18436 use malloc instead. For SunOS 4.
18438 2001-12-11 Bruno Haible <bruno@clisp.org>
18440 * setenv.c: Declare alloca.
18441 (compar_fn_t): New typedef.
18442 (KNOWN_VALUE, STORE_VALUE): Use it.
18444 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
18447 2002-12-10 Paul Eggert <eggert@twinsun.com>
18449 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
18450 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
18451 Choose values that are less likely to collide with system fnmatch
18453 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
18454 defined (e.g., a pure POSIX system).
18455 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
18456 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
18458 2002-12-06 Paul Eggert <eggert@twinsun.com>
18460 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
18461 a pain in practice to deal with generated m4 files. This change
18462 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
18464 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
18465 and jm-glibc-io.m4, as they are no longer a special case.
18466 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
18467 kludge and the auto-generation stuff. Check only whether the
18468 functions are declared, not whether they exist, since older hosts
18469 that don't declare the functions can't use the optimization anyway.
18471 2002-12-06 Jim Meyering <jim@meyering.net>
18473 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
18475 Merge in changes from libc's misc/error.c, in preparation
18476 for the merge of gnulib's changes back into libc.
18478 * lib/error.c (_): Define only if not already defined.
18479 Move definition to follow all #include directives.
18480 Include unlocked-io.h only if !_LIBC.
18481 [_LIBC]: Include <libio/libioP.h>.
18482 [USE_IN_LIBIO]: Include <libio/iolibio.h>
18483 (fflush): Tweak definition to use INTUSE.
18486 2002-12-05 Paul Eggert <eggert@twinsun.com>
18488 * lib/alloca.c [defined emacs]: Include "lisp.h".
18489 (xalloc_die) [defined emacs]: New macro.
18490 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
18491 [! defined emacs]: Include <xalloc.h>.
18492 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
18493 (pointer): Typedef to POINTER_TYPE *.
18494 (malloc): Remove decl; we now always use xmalloc.
18495 (alloca): Use old-style definition, since Emacs needs this.
18496 Check for arithmetic overflow when computing combined size.
18498 2002-12-04 Paul Eggert <eggert@twinsun.com>
18500 Do not generate unlocked-io.h automatically, since it's easier to
18501 maintain it by hand.
18503 * lib/unlocked-io.h: New file, from GNU diffutils,
18504 but with proper copyright notice and attribution.
18505 * lib/gen-uio: Remove.
18506 * lib/Makefile.am: Add copyright notice.
18507 (libfetish_a_SOURCES): Add unlocked-io.h.
18508 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
18509 (DISTCLEANFILES, io_functions): Remove macros.
18510 (EXTRA_DIST): Remove gen_uio.
18511 (unlocked-io.h): Remove rule.
18513 2002-12-04 Jim Meyering <jim@meyering.net>
18515 Reflect the fact that stat.c and lstat.c are no longer generated.
18516 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
18517 (DISTCLEANFILES): Likewise.
18518 (EXTRA_DIST): Likewise.
18519 (all_local): Don't depend on stat.c or lstat.c.
18520 (stat.c, lstat.c): Remove rules.
18521 (EXTRA_DIST): Remove xstat.in.
18523 * lib/xstat.in: Remove file. Contents moved into stat.c.
18524 * lib/stat.c: New file. Contents mostly from xstat.in.
18525 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
18526 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
18528 * lib/safe-read.c: Rework so that it may serve to define safe_write,
18530 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
18532 2002-12-03 Jim Meyering <jim@meyering.net>
18534 * lib/safe-read.c, safe-write.c: Change variable names and comments,
18535 but not semantics, to minimize the differences between these two files.
18536 (safe_read): Change comment to mention SAFE_READ_ERROR.
18538 * lib/safe-read.c (IS_EINTR): Define.
18539 (safe_read): Use IS_EINTR in place of in-function cpp directives.
18541 2002-12-02 Jim Meyering <jim@meyering.net>
18543 * lib/safe-read.c (EINTR): Define.
18544 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
18545 (INT_MAX): Provide fallback.
18546 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
18548 * lib/safe-read.h (SAFE_READ_ERROR): Define.
18550 2002-12-02 Bruno Haible <bruno@clisp.org>
18552 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
18553 Define, taken from safe-read.c.
18554 (INT_MAX): Provide fallback.
18555 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
18556 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
18558 * lib/safe-read.c (EINTR): Remove definition.
18559 (safe_read): Don't use EINTR if it is absent.
18561 2002-12-01 Jim Meyering <jim@meyering.net>
18563 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
18565 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
18567 2002-11-27 Paul Eggert <eggert@twinsun.com>
18569 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
18570 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
18571 with `if (! (value < limit)) abort ();', for readability.
18573 2002-11-26 Karl Berry <karl@gnu.org>
18575 * lib/strdup.c: copy from libc again, with jim's ok.
18576 * lib/.cppi-disable: re-add strdup.c
18578 2002-11-25 Karl Berry <karl@gnu.org>
18580 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
18581 instead of "strtol.c".
18583 2002-11-25 Karl Berry <karl@gnu.org>
18585 * config/install-sh: update from automake for variable quoting, $0 in
18588 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
18589 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
18592 2002-11-25 Jim Meyering <jim@meyering.net>
18594 * lib/mktime.c: Sync from libc, now that it has the latest fix.
18596 2002-11-24 Karl Berry <karl@gnu.org>
18598 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
18599 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
18601 2002-11-24 Jim Meyering <jim@meyering.net>
18603 Update from coreutils:
18605 * lib/mktime.c: Merge in changes from libc.
18607 Avoid a link-time failure on some Linux systems.
18608 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
18610 (__mon_yday): Declare with the STATIC attribute.
18611 (__mktime_internal): Likewise.
18612 Based on a report from Greg Schafer.
18614 2002-11-23 Jim Meyering <jim@meyering.net>
18616 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
18617 Use `unsigned', not `int', as type of index.
18619 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
18621 * lib/fsusage.c: Remove unneeded parentheses around operands of
18624 2002-11-22 Paul Eggert <eggert@twinsun.com>
18626 * lib/quotearg.h: Allow multiple inclusion by surrounding with
18627 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
18628 so that we can be included first.
18629 (PARAMS): Remove; we now assume C89 or later. All uses removed.
18630 * lib/quotearg.c: Include quotearg.h immediately after config.h.
18631 No need to include stddef.h or sys/types.h any more.
18632 Surround local include files with "", not "<>".
18633 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
18634 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
18635 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
18636 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
18637 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
18638 (ISPRINT): Remove; no longer needed now that we assume C89.
18640 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
18643 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
18644 quotearg_char): Use SIZE_MAX rather than
18645 (size_t) -1 when we are talking about "infinity".
18647 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
18649 2002-11-22 Paul Eggert <eggert@twinsun.com>
18651 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
18652 hint that one should use `if (! x) abort ();' rather than `assert
18653 (x);', and anyway it's one less thing to worry about configuring.
18654 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
18655 hash_rehash, hash_insert): Use abort rather than assert.
18657 2002-11-22 Bruno Haible <bruno@clisp.org>
18659 * lib/safe-read.h: Assume C89. Add comments.
18660 (safe_read): Change return type to size_t.
18661 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
18662 byte counts > SSIZE_MAX correctly.
18663 * lib/safe-write.h: New file.
18664 * lib/safe-write.c: New file.
18665 * lib/full-read.h: New file.
18666 * lib/full-read.c: New file.
18667 * lib/full-write.h: Assume C89. Add comments.
18668 * lib/full-write.c: Include safe-write.h.
18669 (full_write): Rewritten to use safe_write.
18670 Suggested by Jim Meyering and Paul Eggert.
18672 2002-11-21 Jim Meyering <jim@meyering.net>
18674 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
18676 Merge in changes from the coreutils.
18678 2002-09-25 Paul Eggert <eggert@twinsun.com>
18679 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
18681 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
18682 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
18683 int. Work more efficiently if X is the same width as uintmax_t.
18684 Do not compare X to -1, to avoid bogus compiler warning.
18685 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
18686 Don't assume that f_frsize and f_bsize are the same type.
18688 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
18689 warning on FreeBSD.
18691 * lib/makepath.c (make_path): Restore umask *before* creating the final
18693 (make_path): Minor reformatting.
18695 * lib/xmalloc.c: Adjust to work with new autoconf macros,
18696 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
18697 HAVE_MALLOC/HAVE_REALLOC.
18699 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
18700 dummy ones. At least on GNU/Linux systems, `auto' means something
18702 From Michael Stone.
18704 2002-11-21 Bruno Haible <bruno@clisp.org>
18706 Remove case insensitive option matching.
18707 * lib/argmatch.h (argcasematch): Remove declaration.
18708 (ARGCASEMATCH): Remove macro.
18709 (__xargmatch_internal): Remove case_sensitive argument.
18710 (XARGMATCH): Update.
18711 (XARGCASEMATCH): Remove macro.
18712 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
18713 case_sensitive argument.
18714 (argcasematch): Remove function.
18715 (__xargmatch_internal): Remove case_sensitive argument.
18716 (main): Use XARGMATCH instead of XARGCASEMATCH.
18718 * lib/xmalloc.c: Change compile-time error message. Add comment about
18719 required autoconf version.
18721 2002-11-20 Paul Eggert <eggert@twinsun.com>
18723 Merge argmatch cleanups from Bison. Assume C89.
18725 * lib/argmatch.c: Include config.h here, not in argmatch.h.
18726 Include stdlib.h, for EXIT_FAILURE.
18727 Always include <string.h>, since we assume C89.
18728 (EXIT_FAILURE): Remove pre-C89 bug workaround.
18729 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
18730 Include <stddef.h> instead, since it's all we need for size_t.
18731 (PARAMS): Remove. All uses removed.
18732 (ARRAY_CARDINALITY): Do not bother to #undef.
18733 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
18734 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
18735 Remove unnecessary parentheses.
18736 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
18737 Insert necessary parentheses.
18738 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
18739 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
18741 2002-11-19 Bruno Haible <bruno@clisp.org>
18743 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
18744 * lib/mbswidth.h: Include <stddef.h>, for size_t.
18746 * lib/mbswidth.h (PARAMS): Remove macro.
18747 (mbswidth, mbsnwidth): Use ANSI C function declarations.
18748 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
18750 * lib/gcd.h (PARAMS): Remove macro.
18751 (gcd): Use ANSI C function declarations.
18752 * lib/gcd.c (gcd): Likewise.
18754 2002-11-15 Bruno Haible <bruno@clisp.org>
18756 * lib/strcspn.c: Include <stddef.h>.
18757 (strcspn): Use ANSI C function declaration. Change return type to
18759 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
18760 (strpbrk): Use NULL.
18761 * lib/strpbrk.h (PARAMS): Remove macro.
18762 (strpbrk): Use ANSI C function declaration.
18763 * lib/strstr.c: Don't include <sys/types.h>.
18764 * lib/strstr.h (PARAMS): Remove macro.
18765 (strstr): Use ANSI C function declarations.
18767 2002-11-14 Karl Berry <karl@gnu.org>
18769 * config/mkinstalldirs: `do' on separate line, instead of
18772 2002-11-06 Bruno Haible <bruno@clisp.org>
18774 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
18775 * lib/gcd.c (gcd): Likewise.
18777 2002-11-05 Bruno Haible <bruno@clisp.org>
18779 * lib/gcd.h: New file, from gettext-0.11.5.
18780 * lib/gcd.c: New file, from gettext-0.11.5.
18782 2002-11-05 Bruno Haible <bruno@clisp.org>
18784 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
18785 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
18786 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
18787 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
18789 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
18791 * lib/makepath.c: Include gettext.h instead of <locale.h> and
18794 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
18795 * lib/human.c: Include gettext.h instead of <libintl.h>.
18796 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
18797 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
18798 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
18799 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
18800 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
18801 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
18802 (textdomain): Remove definition.
18803 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
18805 * lib/long-options.c: Remove include of <libintl.h> and definition of
18807 * lib/same.c: Remove include of <libintl.h> and definition of _.
18809 2002-11-04 Owen Taylor <otaylor@redhat.com>
18811 * lib/config.charset: A few additions for Solaris.
18813 2002-11-04 Bruno Haible <haible@clisp.cons.org>
18815 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
18816 * lib/localcharset.c (locale_charset): Declare as extern "C".
18818 2002-11-04 Bruno Haible <haible@clisp.cons.org>
18820 * lib/config.charset: msdos in uk_UA uses CP1125.
18822 2002-11-04 Bruno Haible <bruno@clisp.org>
18824 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
18825 * lib/strcase.h: New file, from GNU gettext-0.11.5.
18826 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
18827 * lib/strstr.h: New file, from GNU gettext-0.11.5.
18828 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
18830 2002-11-04 Bruno Haible <bruno@clisp.org>
18832 * lib/localcharset.c (locale_charset): Don't return an empty string.
18834 2002-11-04 Bruno Haible <bruno@clisp.org>
18836 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
18839 2002-11-04 Bruno Haible <bruno@clisp.org>
18841 * lib/config.charset: Update for newest glibc. Add canonical names
18842 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
18844 2002-11-04 Bruno Haible <bruno@clisp.org>
18846 * lib/config.charset: Add support for NetBSD.
18848 2002-11-04 Bruno Haible <bruno@clisp.org>
18850 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
18852 2002-11-01 Bruno Haible <bruno@clisp.org>
18854 * configure.in: Add AC_CONFIG_AUX_DIR call.
18855 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
18857 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
18859 2002-09-28 Karl Berry <karl@gnu.org>
18861 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
18862 installed automake until the next release, since changes have been
18865 2002-09-25 Karl Berry <karl@gnu.org>
18867 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
18868 * lib/getopt*: copy from libc/posix.
18869 * lib/gettext.h: copy from gettext.
18870 * lib/.cppi-disable: add strdup.c, gettext.h.
18872 2002-09-25 Karl Berry <karl@gnu.org>
18874 * config/srclist.txt: enable gettext.h check.
18875 * config/config.{guess,sub}: update from prep.
18876 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
18877 from automake 1.6.3.
18880 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
18882 * regex.c (PATFETCH): Remove the translating fetch.
18883 (PATFETCH_RAW): Rename to PATFETCH.
18884 (set_image_of_range): New fun.
18885 (SET_RANGE_TABLE_WORK_AREA): Use it.
18886 (regex_compile): Don't translate the pattern chars so eagerly.
18887 Only do it when inserting an `exactn' bytecode or when handling
18889 (mutually_exclusive_p): Avoid empty statement.
18891 2002-07-06 Jim Meyering <meyering@lucent.com>
18893 * m4/README: Don't mention Makefile.am.in.
18894 Outline how I've tested changes to .m4 files. Yep, it's a pain.
18896 2002-07-01 Jim Meyering <meyering@lucent.com>
18898 * lib/c-stack.c: Include sys/time.h.
18899 From Volker Borchert.
18901 2002-06-26 Paul Eggert <eggert@twinsun.com>
18903 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
18905 2002-06-26 Paul Eggert <eggert@twinsun.com>
18907 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
18908 New macro. Use it uniformly instead of
18909 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
18910 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
18911 reported by Vin Shelton.
18913 2002-06-22 Paul Eggert <eggert@twinsun.com>
18915 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
18916 Do not assume SA_SIGINFO behavior.
18917 Bug reported by Jim Meyering on NetBSD 1.5.2.
18919 2002-06-22 Jim Meyering <meyering@lucent.com>
18921 * m4/c-stack.m4: New file, from diffutils-2.8.2.
18922 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
18924 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
18925 now that configure.ac uses AC_GNU_SOURCE.
18926 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
18927 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
18929 Update to latest tools. Suggestions from Paul Eggert.
18930 * m4/stdbool.m4: New file, from diffutils-2.8.2.
18931 * m4/gnu-source.m4: Update from diffutils-2.8.2.
18932 * m4/fnmatch.m4: Likewise.
18933 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
18934 to AC_HEADER_STDBOOL
18936 2002-06-22 Jim Meyering <meyering@lucent.com>
18938 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
18939 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
18941 2002-06-22 Jim Meyering <meyering@lucent.com>
18943 * lib/c-stack.c, c-stack.h: New files, from diffutils-2.8.2.
18945 * lib/exitfail.c, exitfail.h: Likewise.
18946 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
18948 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
18950 (EXTRA_DIST): Add fnmatch_loop.c.
18951 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
18953 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
18954 * lib/fnmatch.c: Update from diffutils-2.8.2.
18955 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
18956 * lib/fnmatch.h: Remove file.
18958 2002-06-21 Jim Meyering <meyering@lucent.com>
18960 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
18961 * m4/mbrtowc.m4: Likewise.
18963 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
18964 * m4/mbswidth.m4: Reflect name change:
18965 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
18966 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
18968 * m4/lib-link.m4: Update from gettext-0.11.2.
18969 * m4/gettext.m4: Likewise.
18971 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
18972 From Alfred M. Szmidt.
18974 2002-06-18 Paul Eggert <eggert@twinsun.com>
18976 * lib/file-type.h: Report an error if neither S_ISREG nor
18977 S_IFREG is defined, instead of using a test specific to glibc
18978 2.2. This should be safe, since POSIX requires S_ISREG and
18979 Unix Version 7 had S_IFREG. We don't need to check for
18980 <sys/types.h> since we don't use any symbols that it defines.
18982 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
18984 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
18985 $@-t, so that each temporary file name is unique and valid in the first
18986 8 characters, for operation under DOS.
18988 2002-06-15 Paul Eggert <eggert@twinsun.com>
18990 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
18992 2002-06-15 Jim Meyering <meyering@lucent.com>
18994 Work even with DJGPP 2.03, which lacks support for symlinks.
18996 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
18998 * lib/lchown.c (S_ISLNK): Likewise.
19000 2002-06-15 Jim Meyering <meyering@lucent.com>
19002 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
19003 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
19004 have been included before this file.
19006 2002-06-14 Jim Meyering <meyering@lucent.com>
19008 * lib/file-type.h: Use the version from diffutils-2.8.2.
19009 * lib/file-type.c: Likewise.
19011 2002-06-07 Jim Meyering <meyering@lucent.com>
19013 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
19014 They're needed at least for NetBSD 1.5.2.
19015 ($statxfs_includes): Include those same headers.
19016 ($statxfs_includes): Include sys/vfs.h if available.
19017 ($statxfs_includes): Likewise for sys/statvfs.h.
19018 Check for the following members in both structs statfs and statvfs:
19019 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
19021 2002-06-01 Jim Meyering <meyering@lucent.com>
19023 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
19024 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
19026 2002-05-28 Jim Meyering <meyering@lucent.com>
19028 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
19029 Reported by Volker Borchert.
19031 2002-05-27 Jim Meyering <meyering@lucent.com>
19033 Fix a problem seen only on nonconforming systems whereby ls.c's
19034 use of localtime, and then of gettimeofday would cause trouble:
19035 the localtime call used to initialize rpl_gettimeofday's save
19036 mechanism would clobber ls's current local time information so
19037 that in any long listing the first file would always be listed
19038 with date 1970-01-01. Analysis by Volker Borchert.
19040 * lib/gettimeofday.c (localtime): Undefine.
19041 (rpl_localtime): New function.
19043 2002-05-27 Jim Meyering <meyering@lucent.com>
19045 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
19048 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
19049 use the replacement function; it wouldn't resolve at link time.
19050 Reported by Volker Borchert.
19052 2002-05-22 Jim Meyering <meyering@lucent.com>
19054 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
19056 * lib/file-type.h: New file.
19057 * lib/file-type.c (file_type): New file/function. Extracted from
19060 2002-04-30 Jim Meyering <meyering@lucent.com>
19062 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
19064 2002-04-29 Paul Eggert <eggert@twinsun.com>
19066 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
19068 2002-04-29 Paul Eggert <eggert@twinsun.com>
19070 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
19071 Do not check for alloca.h (no longer used) or stdbool.h (was never
19072 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
19074 2002-04-29 Paul Eggert <eggert@twinsun.com>
19076 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
19078 2002-04-29 Jim Meyering <meyering@lucent.com>
19080 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
19081 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
19082 Use AC_FUNC_STRNLEN here instead.
19084 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
19085 With autoconf-2.53a, it's part of AC_PROG_CC.
19087 2002-04-28 Paul Eggert <eggert@twinsun.com>
19089 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
19090 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
19092 2002-04-28 Paul Eggert <eggert@twinsun.com>
19094 * lib/sig2str.h, sig2str.c: New files.
19095 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
19097 2002-04-28 Paul Eggert <eggert@twinsun.com>
19099 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
19100 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
19101 of 127, since 64 is the largest conceivable number for ancient
19103 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
19105 2002-04-28 Jim Meyering <meyering@lucent.com>
19107 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
19109 2002-04-24 Jim Meyering <meyering@lucent.com>
19111 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
19112 (jm_PREREQ): Use it.
19114 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
19115 mach/mach.h fcntl.h.
19116 Check for this function: setlocale.
19118 2002-04-24 Jim Meyering <meyering@lucent.com>
19120 * lib/gettext.h: New file, from Gettext.
19121 * lib/Makefile.am (INCLUDES): Remove -I../intl.
19122 (libfetish_a_SOURCES): Add gettext.h.
19124 2002-04-16 Jim Meyering <meyering@lucent.com>
19126 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
19127 ut_pid, ut_id, ut_exit.
19129 2002-04-16 Jim Meyering <meyering@lucent.com>
19131 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
19132 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
19133 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
19135 2002-04-12 Jim Meyering <meyering@lucent.com>
19137 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
19138 now-bogus check for f_type in sys/mount.h. Instead, just test for the
19139 existence of the getmntinfo function. Needed for Darwin 5.3.
19141 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
19142 This is necessary at least on Darwin 5.3.
19144 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
19145 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
19146 strnlen.o in the library, and that makes some versions of ranlib
19149 2002-04-12 Jim Meyering <meyering@lucent.com>
19151 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
19153 2002-04-09 Jim Meyering <meyering@lucent.com>
19155 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
19156 to be more precise. Rather than saying we're checking whether the
19157 function `works', say what we're testing.
19158 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
19159 Reported by Bruno Haible.
19161 2002-03-10 Jim Meyering <meyering@lucent.com>
19163 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
19164 Suggestion from Santiago Vila.
19166 2002-03-08 Jim Meyering <meyering@lucent.com>
19168 * lib/rename.c: Mention that this wrapper is needed also on
19169 mips-dec-ultrix4.4 systems.
19171 2002-03-02 Jim Meyering <meyering@lucent.com>
19173 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
19174 not HAVE_CLOCK_SETTIME.
19176 2002-02-27 Paul Eggert <eggert@twinsun.com>
19178 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
19179 Check for clock_settime.
19181 2002-02-27 Paul Eggert <eggert@twinsun.com>
19183 * lib/nanosleep.h: Rename to....
19184 * lib/timespec.h: New name for nanosleep.h. All uses changed.
19186 * lib/gettime.c: New file.
19187 * lib/settime.c: New file.
19188 * lib/stime.c: Remove.
19190 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
19191 timespec.h. Remove nanosleep.h.
19193 2002-02-25 Paul Eggert <eggert@twinsun.com>
19195 * m4/acl.m4: New file.
19196 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
19197 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
19199 2002-02-25 Paul Eggert <eggert@twinsun.com>
19201 * lib/acl.c, acl.h: New files.
19202 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
19204 2002-02-24 Jim Meyering <meyering@lucent.com>
19206 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
19207 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
19208 cause trouble. Reported by Nelson Beebe.
19210 2002-02-23 Paul Eggert <eggert@twinsun.com>
19212 * lib/path-concat.c (xpath_concat): Reorder code to pacify
19213 compilers that don't know that xalloc_die never returns.
19215 2002-02-20 Jim Meyering <meyering@lucent.com>
19217 * lib/getdate.c: Regenerate using bison-1.33.
19219 2002-02-17 Jim Meyering <meyering@lucent.com>
19221 * config/config.guess (main): Don't use `head -1'; it's no longer
19222 portable. Use `sed 1q' instead.
19224 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
19226 * m4/codeset.m4: Upgrade to gettext-0.11.
19227 * m4/gettext.m4: Upgrade to gettext-0.11.
19228 * m4/glibc21.m4: Upgrade to gettext-0.11.
19229 * m4/iconv.m4: Upgrade to gettext-0.11.
19230 * m4/isc-posix.m4: Upgrade to gettext-0.11.
19231 * m4/lcmessage.m4: Upgrade to gettext-0.11.
19232 * m4/lib-ld.m4: New file, from gettext-0.11.
19233 * m4/lib-link.m4: New file, from gettext-0.11.
19234 * m4/lib-prefix.m4: New file, from gettext-0.11.
19235 * m4/progtest.m4: Upgrade to gettext-0.11.
19237 2002-02-15 Paul Eggert <eggert@twinsun.com>
19239 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
19240 (jm_PREREQ): Use it.
19242 2002-02-15 Paul Eggert <eggert@twinsun.com>
19244 * lib/posixver.c, posixver.h: New files.
19245 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
19247 2002-02-02 Paul Eggert <eggert@twinsun.com>
19248 Bruno Haible <bruno@clisp.org>
19250 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
19251 (fwrite_success_callback): New declaration.
19252 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
19253 print_unicode_char. Call failure callback instead of error.
19254 (fwrite_success_callback): New function.
19255 (exit_failure_callback): New function.
19256 (fallback_failure_callback): New function.
19257 (print_unicode_char): Call unicode_to_mb.
19259 2002-01-26 Jim Meyering <meyering@lucent.com>
19261 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
19262 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
19264 2002-01-26 Jim Meyering <meyering@lucent.com>
19266 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
19268 2002-01-22 Paul Eggert <eggert@twinsun.com>
19270 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
19272 2002-01-22 Jim Meyering <meyering@lucent.com>
19274 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
19275 Otherwise, some versions of automake would omit the rule that makes
19276 Makefile from Makefile.in.
19278 2002-01-21 Paul Eggert <eggert@twinsun.com>
19280 * lib/xmemcoll.h, xmemcoll.c: New files.
19281 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
19282 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
19283 (memcoll): Set errno to zero if there is no error.
19285 * lib/quotearg.c (quotearg_buffer_restyled):
19286 Fix bug with quoting buffers containing NUL when backslashing escapes.
19287 This bug was exposed by the other changes in this patch.
19288 (quotearg_n_options): New arg ARGSIZE.
19289 All callers changed.
19290 (quoting_options_from_style): New function.
19291 (quotearg_n_style): Use it.
19292 (quotearg_n_style_mem): New function.
19294 * lib/quotearg.h (quotearg_n_style_mem): New function.
19296 2002-01-19 Jim Meyering <meyering@lucent.com>
19298 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
19299 Remove useless quotes: DF_PROG="df".
19300 * m4/strnlen.m4: New file.
19302 2002-01-16 Paul Eggert <eggert@twinsun.com>
19304 * lib/backupfile.c (ISDIGIT): Comment fix.
19305 * lib/getdate.y (ISDIGIT): Likewise.
19306 * lib/posixtm.c (ISDIGIT, year): Likewise.
19307 * lib/strverscmp.c (ISDIGIT): Likewise.
19308 * lib/userspec.c (ISDIGIT): Likewise.
19310 2002-01-16 Jim Meyering <meyering@lucent.com>
19312 * lib/getdate.y: Add three semicolons, each just before a closing
19313 brace. Bison (as of version 1.31) no longer papers over that mistake.
19315 2002-01-05 Jim Meyering <meyering@lucent.com>
19317 * lib/version-etc.c (version_etc_copyright): Update copyright year.
19319 2001-12-19 Paul Eggert <eggert@twinsun.com>
19321 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
19322 not silently exit merely because the output buffer happens to
19323 have nothing pending.
19325 2001-12-18 Paul Eggert <eggert@twinsun.com>
19327 See the big note in ../ChangeLog.
19328 * lib/human.c (suffixes): Prefer K to k for 1024.
19329 (generate_suffix_backwards): New function.
19330 (human_readable_inexact): Use it.
19331 * lib/xstrtol.c (__xstrtol): If there is no number but there
19332 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
19333 Accept 'K' as well as 'k'.
19335 2001-12-15 Jim Meyering <meyering@lucent.com>
19337 * lib/regex.h (__restrict_arr): Update from libc.
19339 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
19340 as `remote' if the name starts with `//'. Suggested by Michael Stone.
19343 2001-12-14 Jim Meyering <meyering@lucent.com>
19345 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
19346 Suggestion from Bruno Haible.
19348 2001-12-10 Jim Meyering <meyering@lucent.com>
19350 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
19351 xrealloc, Instead, include "xalloc.h".
19352 (initbuffer): Don't cast xmalloc return value to char*.
19353 (readline): Reword comment.
19354 Don't cast xrealloc return value to char*
19355 Return NULL, not 0.
19357 2001-12-09 Jim Meyering <meyering@lucent.com>
19359 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
19360 about `signed and unsigned type in conditional expression'.
19361 * lib/posixtm.c (posix_time_parse): Likewise.
19363 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
19365 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
19366 to avoid a pedantic warning.
19368 * lib/getstr.c: Don't include assert.h.
19369 (getstr): Remove warning-evoking assertions.
19370 Return -1 if offset parameter is out of bounds.
19371 Change the type of a local from int to size_t.
19373 * lib/strftime.c (my_strftime_localtime_r): Include this function
19374 definition in the `#if ! HAVE_TM_GMTOFF' block.
19376 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
19377 Include xalloc.h instead.
19379 2001-12-02 Jim Meyering <meyering@lucent.com>
19381 * lib/tempname.c: Don't declare getenv, thus reverting the change of
19382 2001-11-18. It's no longer necessary, now that stdlib.h is always
19385 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
19386 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
19388 2001-11-30 Akim Demaille <akim@epita.fr>
19390 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
19391 before being defined.
19393 2001-11-27 Paul Eggert <eggert@twinsun.com>
19395 * lib/quotearg.h (quotearg_n, quotearg_n_style):
19396 First arg is int, not unsigned.
19397 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
19398 (SIZE_MAX, UINT_MAX): New macros.
19399 (quotearg_n_options): Abort if N is negative.
19400 Avoid overflow check on hosts where size_t is 64 bits and int
19401 is 32 bits, as overflow is impossible there.
19402 Fix off-by-one typo that caused unnecessary reallocation.
19404 2001-11-27 Jim Meyering <meyering@lucent.com>
19406 * lib/tempname.c: Merge with version from libc.
19407 * lib/regex.c: Likewise.
19409 * lib/tempname.c: Include stdlib.h unconditionally. On some old
19410 systems for which STDC_HEADERS is 0, it was not included, resulting in
19411 a warning about an integer-to-pointer conversion problem with getenv.
19412 Reported by Volker Borchert.
19414 2001-11-26 Jim Meyering <meyering@lucent.com>
19416 * lib/gtod.h: Remove file.
19417 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
19418 * lib/gettimeofday.c: Don't include gtod.h.
19419 (GTOD_init): Remove function.
19420 (rpl_gettimeofday): Do its job here instead, rather than aborting.
19421 Suggestion from Volker Borchert.
19423 2001-11-23 Jim Meyering <meyering@lucent.com>
19425 * lib/hash.h (struct hash_table): Don't define here. Merely declare
19427 * lib/hash.c (struct hash_table): Define it here instead.
19429 2001-11-22 Jim Meyering <meyering@lucent.com>
19431 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
19433 2001-11-20 Jim Meyering <meyering@lucent.com>
19435 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
19436 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
19438 2001-11-19 Jim Meyering <meyering@lucent.com>
19440 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
19441 directory. Use "conftestXXXXXX" as the template.
19442 Suggestion from Paul Eggert.
19444 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
19445 immediately, so the test doesn't mistakenly hit the max-open-files
19448 2001-11-18 Paul Eggert <eggert@twinsun.com>
19450 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
19451 (TEMPORARIES): New macro.
19452 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
19453 removes an artificial limitation (e.g. HP-UX 10.20, where
19456 2001-11-18 Jim Meyering <meyering@lucent.com>
19458 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
19460 2001-11-18 Jim Meyering <meyering@lucent.com>
19462 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
19465 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
19466 files will be created before anything else.
19468 2001-11-17 Paul Eggert <eggert@twinsun.com>
19470 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
19471 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
19473 2001-11-17 Jim Meyering <meyering@lucent.com>
19475 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
19476 Prompted by a report from Bob Proulx.
19478 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
19479 Instead, require UTILS_FUNC_MKSTEMP.
19481 2001-11-17 Jim Meyering <meyering@lucent.com>
19483 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
19484 Now, that's done as part of AC_FUNC_STRTOD.
19486 2001-11-17 Jim Meyering <meyering@lucent.com>
19488 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
19489 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
19490 rather than group writable. Patch by Juan F. Codagnone.
19492 * lib/readtokens.c: Remove explicit declarations of xmalloc and
19493 xrealloc, Instead, include "xalloc.h".
19495 * lib/mountlist.c: Include unlocked-io.h after all system headers.
19496 Remove explicit declarations of xmalloc, xrealloc,
19497 and xstrdup. Instead, include "xalloc.h".
19499 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
19501 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
19503 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
19505 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
19506 Reported by Padraig Brady.
19508 * lib/mkstemp.c: #undef mkstemp.
19510 (rpl_mkstemp): Rename from mkstemp.
19513 2001-11-16 Jim Meyering <meyering@lucent.com>
19515 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
19516 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
19517 determine the amount of total physical memory, use pstat_getstatic.
19518 HPUX-11 doesn't define _SC_PHYS_PAGES.
19519 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
19520 If sysconf couldn't be used to determine the amount of available
19521 physical memory, use both pstat_getstatic and pstat_getdynamic.
19522 Based on a patch from Bob Proulx.
19524 2001-11-10 Jim Meyering <meyering@lucent.com>
19526 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
19527 (jm_PREREQ): Use it.
19529 2001-11-09 Jim Meyering <meyering@lucent.com>
19531 * m4/jm-macros.m4: Require autoconf-2.52f.
19532 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
19533 Use these AC_-prefixed names, not the AM_-prefixed ones.
19535 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
19537 2001-11-05 Jim Meyering <meyering@lucent.com>
19539 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
19541 2001-11-04 Jim Meyering <meyering@lucent.com>
19543 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
19546 2001-11-03 Jim Meyering <meyering@lucent.com>
19548 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
19551 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
19552 know the name of the variable in the macro definition.
19554 2001-11-03 Jim Meyering <meyering@lucent.com>
19556 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
19557 in argmatch_to_argument call.
19559 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
19562 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
19563 e.g., a fault due to an attempt to free a NULL pointer.
19565 2001-11-01 Jim Meyering <meyering@lucent.com>
19567 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
19568 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
19570 2001-11-01 Jim Meyering <meyering@lucent.com>
19572 * lib/dirfd.c, dirfd.h: New files.
19573 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
19575 * lib/hash.c (hash_print) [TESTING]: Clean up.
19577 2001-10-22 Paul Eggert <eggert@twinsun.com>
19579 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
19580 to avoid a warning if -Wall.
19582 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
19585 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
19586 (per RMS's instructions, this is now the canonical source)
19587 * lgpl/, gpl/: New directories.
19589 2001-10-21 Paul Eggert <eggert@twinsun.com>
19591 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
19593 2001-10-21 Jim Meyering <meyering@lucent.com>
19595 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
19596 this code would end up calling gettext even in packages built
19597 with --disable-nls.
19598 * lib/getopt.c (_): Likewise.
19599 * lib/regex.c (_): Likewise.
19601 2001-10-20 Paul Eggert <eggert@twinsun.com>
19603 * m4/error.m4 (jm_PREREQ_ERROR):
19604 Do not invoke AC_CHECK_FUNCS with strerror_r, as
19605 AC_FUNC_STRERROR_R does that.
19606 Check for strerror declaration.
19608 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
19609 are supposed to have them these days.
19610 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
19611 Merge changes from latest Autoconf CVS.
19612 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
19613 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
19614 POSIX decided to standardize on the int flavor of strerror_r.
19616 2001-10-20 Paul Eggert <eggert@twinsun.com>
19618 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
19619 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
19620 Use strerror_r that is only a macro, even if it is not a function.
19621 (strerror): Check for HAVE_DECL_STRERROR before declaring.
19622 (private_strerror): Use prototypes, not old-style function definition.
19623 (print_errno_message): New function.
19624 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
19625 char*-flavored one.
19626 (error_tail, error, error_at_line): Use it.
19628 2001-10-11 Jim Meyering <meyering@lucent.com>
19630 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
19631 and quote_n (1, ... to avoid clobbering a buffer.
19633 2001-10-05 Jim Meyering <meyering@lucent.com>
19635 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
19637 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
19638 * lib/hash-pjw.h: New file.
19640 2001-09-30 Jim Meyering <meyering@lucent.com>
19642 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
19643 `struct fsstat' has the `f_fstypename' member.
19644 Use that to define FS_TYPE, which is now used to make
19645 the getfsstat link test tighter.
19647 2001-09-30 Jim Meyering <meyering@lucent.com>
19649 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
19650 Include <sys/ucred.h>, for Apple Darwin.
19651 Include sys/mount.h and sys/fs_types.h only if available.
19653 (read_filesystem_list): Use FS_TYPE.
19655 2001-09-29 Paul Eggert <eggert@twinsun.com>
19657 * lib/exclude.c (excluded_filename): 0 -> false, since it's
19660 2001-09-29 Jim Meyering <meyering@lucent.com>
19662 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
19663 [one-argument getmntent function]): Include stdio.h before mntent.h.
19664 SunOS 4.1.x needs it for the declaration of `FILE'.
19665 Patch by Volker Borchert.
19667 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
19668 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
19669 sys/fs_types.h, and make the link-test for getfsstat guard #include
19670 directives with appropriate #if HAVE_*_H tests so that we can
19671 detect getfsstat on Apple Darwin1.3.7 systems.
19672 Reported by Nelson Beebe.
19673 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
19675 2001-09-28 Paul Eggert <eggert@twinsun.com>
19677 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
19678 #defines strtoimax. Also treat the other strto* functions
19681 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
19682 Check for strtoul and strtoumax,
19683 as those declarations are made even in the signed case.
19684 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
19685 Likewise, for strtol and strtoimax.
19687 2001-09-28 Paul Eggert <eggert@twinsun.com>
19689 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
19690 #defines strtoimax. Also treat the other strto* functions
19693 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
19694 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
19695 (strtoimax, strtoumax): Do not declare if already defined as a macro.
19697 2001-09-26 Jim Meyering <meyering@lucent.com>
19699 Most macros in unlocked-io.h had the wrong number of arguments.
19700 * lib/gen-uio: New script.
19701 (USE_UNLOCKED_IO): Define to 1 if not already defined.
19702 * lib/unlocked-io.hin: Remove file.
19703 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
19704 rather than trying to embed it here.
19705 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
19706 Reported by Padraig Brady.
19708 2001-09-25 Volker Borchert <bt@teknon.de>
19710 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
19713 2001-09-24 Jim Meyering <meyering@lucent.com>
19715 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
19717 2001-09-23 Jim Meyering <meyering@lucent.com>
19719 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
19720 instead of the mere test for existence of mntent.h. The latter
19721 would get a false-positive on AIX 3.4 systems.
19722 In the outer getmntent if-block, don't die if neither of the getmntent
19723 tests succeeds. Instead, just fall through and continue with the
19726 2001-09-23 Jim Meyering <meyering@lucent.com>
19728 * lib/mountlist.c: Remove useless parentheses in #if directives.
19729 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
19730 the deprecated MOUNTED symbol is no longer defined in mntent.h.
19732 2001-09-22 Jim Meyering <meyering@lucent.com>
19734 * m4/gettext.m4: New file. From gettext.
19735 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
19736 * m4/progtest.m4: Likewise
19737 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
19738 * m4/glibc21.m4: Likewise.
19740 * m4/libintl.m4: Remove. No longer used.
19742 2001-09-22 Jim Meyering <meyering@lucent.com>
19744 * lib/localcharset.c: Update from latest gettext.
19745 * lib/config.charset: Likewise.
19747 2001-09-20 Jim Meyering <meyering@lucent.com>
19749 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
19751 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
19754 2001-09-20 Jim Meyering <meyering@lucent.com>
19756 * lib/xstrtol.c (strtoimax): Guard declaration with
19757 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
19758 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
19759 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
19760 (strtoumax): Likewise, for completeness (it wasn't necessary).
19762 2001-09-17 Paul Eggert <eggert@twinsun.com>
19764 * lib/strtoimax.c (HAVE_LONG_LONG):
19765 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
19766 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
19767 to work around bug in IBM C compiler.
19769 2001-09-17 Jim Meyering <meyering@lucent.com>
19771 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
19772 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
19773 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
19774 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
19775 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
19776 whenever the right hand side need not be expanded by the shell.
19778 2001-09-16 Paul Eggert <eggert@twinsun.com>
19780 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
19781 library. It's not correct, as some older glibcs are buggy.
19782 fnmatch wasn't fixed until glibc 2.2.
19784 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
19785 special shell magic here.
19787 2001-09-16 Jim Meyering <meyering@lucent.com>
19789 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
19790 * m4/jm-macros.m4: Require it.
19792 2001-09-16 Jim Meyering <meyering@lucent.com>
19794 * lib/mkdir.c: New file.
19796 2001-09-15 Jim Meyering <meyering@lucent.com>
19798 * m4/jm-macros.m4: Check for help2man.
19800 2001-09-11 Jim Meyering <meyering@lucent.com>
19802 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
19803 The body, by Paul Eggert, was moved here from configure.in.
19804 * m4/jm-macros.m4: Require UTILS_HOST_OS.
19806 2001-09-04 Paul Eggert <eggert@twinsun.com>
19808 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
19809 (jm_PREREQ): Use it.
19811 2001-09-04 Paul Eggert <eggert@twinsun.com>
19813 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
19814 Use ssize_t, not int, to store result of readlink.
19815 Check for ssize_t overflow as well as size_t overflow,
19816 as POSIX says the result of readlink is implementation-defined
19817 when ssize_t overflows.
19818 Remove unnecessary cast to char*.
19819 Use free+malloc instead of realloc, as the storage doesn't need
19820 to be preserved and it's clearer and can be more efficient that way.
19821 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
19822 * lib/xreadlink.h (xreadlink): Update prototype.
19824 2001-09-04 Paul Eggert <eggert@twinsun.com>
19826 * lib/xgetcwd.c: Revert some of the previous change; intead,
19827 fix the HAVE_GETCWD_NULL code to behave more like the
19828 !HAVE_GETCWD_NULL code used to.
19830 Include "xalloc.h".
19831 (xgetcwd): Do not return NULL when memory is exhausted; instead,
19834 2001-09-03 Paul Eggert <eggert@twinsun.com>
19836 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
19837 sys/param.h, as pathmax.h includes them.
19839 2001-09-03 Paul Eggert <eggert@twinsun.com>
19841 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
19842 (jm_PREREQ_XGETCWD): New macro.
19844 * m4/getcwd.m4: New file.
19846 2001-09-03 Paul Eggert <eggert@twinsun.com>
19848 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
19849 like the HAVE_GETCWD_NULL code.
19850 Include pathmax.h if not HAVE_GETCWD.
19851 Do not include xalloc.h.
19852 (INITIAL_BUFFER_SIZE): New symbol.
19853 Do not use xmalloc / xrealloc, since the caller is responsible for
19854 handling errors. Preserve errno around `free' during failure.
19855 Do not overrun buffer when using getwd.
19857 2001-09-03 Paul Eggert <eggert@twinsun.com>
19859 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
19860 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
19863 2001-09-03 Paul Eggert <eggert@twinsun.com>
19865 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
19866 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
19867 spotted by Jim Meyering.
19869 2001-09-03 Jim Meyering <meyering@lucent.com>
19871 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
19874 2001-09-02 Jim Meyering <meyering@lucent.com>
19876 * lib/error.c: Update from GNU libc.
19878 2001-09-01 Jim Meyering <meyering@lucent.com>
19880 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
19883 2001-09-01 Jim Meyering <meyering@lucent.com>
19885 * lib/xreadlink.c: New file.
19886 * lib/xreadlink.h: New file.
19887 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
19890 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
19891 doesn't conflict with sparc Solaris 7's definition in
19892 /usr/include/sys/int_types.h.
19894 * lib/exclude.c: Use `""', not `<>' to #include non-system header
19896 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
19897 and strncasecmp as r-values. Unixware didn't have declarations.
19899 2001-08-31 Paul Eggert <eggert@twinsun.com>
19901 * lib/xstrtol.h: Add copyright notice.
19902 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
19903 LONGINT_INVALID_SUFFIX_CHAR.
19905 2001-08-31 Paul Eggert <eggert@twinsun.com>
19907 * lib/xstrtol.c (strtoimax): New decl.
19909 2001-08-31 Paul Eggert <eggert@twinsun.com>
19911 * lib/xgetcwd.c: Don't include pathmax.h.
19912 Include stdlib.h and unistd.h if available.
19914 (xmalloc, xstrdup, free): Remove decls.
19915 (xgetcwd): Don't assume sizes fit in unsigned.
19916 Check for overflow when computing sizes.
19917 Simplify reallocation code.
19919 2001-08-31 Paul Eggert <eggert@twinsun.com>
19921 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
19922 a directory's st_size can have an arbitrary value, so the old
19923 usage could waste an arbitrary amount of memory. All uses
19925 * lib/savedir.h: Update prototype.
19927 2001-08-31 Paul Eggert <eggert@twinsun.com>
19929 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
19931 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
19934 Also, make the following further changes to make this file's
19935 configuration more similar to that of strtol.c:
19936 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
19937 (strtoumax, uintmax_t, strtoull, strtol): Remove.
19938 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
19939 (strtoimax): Renamed from strtoumax. All uses of unsigned values
19940 changed to signed values.
19942 And make the following changes as well:
19943 Fix copyright notice, as 1999 was missing.
19944 (verify): New macro.
19945 (strtoimax): Check sizes at compile-time, not run-time.
19946 Prefer strtol to strtoll if both work.
19947 (main): Remove; it was not that useful and was a pain to maintain.
19949 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
19951 2001-08-31 Jim Meyering <meyering@lucent.com>
19953 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
19954 Use an initial, malloc'd, buffer of length 128 rather than
19955 a statically allocated one of length 1024.
19957 2001-08-30 Paul Eggert <eggert@twinsun.com>
19959 Simplify code, partly by assuming autoconf 2.52 semantics.
19961 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
19963 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
19964 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
19966 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
19967 Move AC_REQUIRE to next-to-top level, to avoid confusion.
19968 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
19969 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
19970 jm_AC_HEADER_INTTYPES_H.
19971 * m4/jm-macros.m4 (jm_MACROS): Likewise.
19973 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
19975 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
19976 Quote first arg of AC_DEFUN.
19977 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
19978 since they are needed to parse the include file even if we need
19979 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
19980 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
19981 but with opposite signedness.
19983 2001-08-30 Paul Eggert <eggert@twinsun.com>
19985 Merge 'exclude' changes from tar 1.13.22.
19986 This fixes one or two unlikely storage allocation overflow bugs,
19987 but doesn't change user-visible behavior otherwise.
19989 2001-08-30 Paul Eggert <eggert@twinsun.com>
19991 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
19992 (jm_PREREQ_EXCLUDE): New macro.
19994 2001-08-30 Paul Eggert <eggert@twinsun.com>
19996 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
19999 2001-08-30 Paul Eggert <eggert@twinsun.com>
20001 * lib/hash.c: Remove '2001' from copyright notice.
20003 2001-08-30 Paul Eggert <eggert@twinsun.com>
20005 * lib/full-write.h: New file.
20006 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
20007 * lib/full-write.c: Correct credits, as cccp.c no longer
20008 exists and anyway it was so heavily changed from the old cccp
20009 code as to be unrecognizable. Include full-write.h.
20010 (full_write) Return size_t, with short writes meaning failure.
20011 All callers changed. This fixes a bug with large buffers
20013 * lib/utime.c: Include full-write.h.
20015 2001-08-30 Paul Eggert <eggert@twinsun.com>
20017 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
20018 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
20019 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
20020 Include if available.
20021 (<xalloc.h>): Include
20022 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
20023 (verify): New macro. Use it to verify that EXCLUDE macros do not
20024 collide with FNM macros.
20025 (struct patopts): New struct.
20026 (struct exclude): Use it, as exclude patterns now come with options.
20027 (new_exclude): Support above changes.
20028 (new_exclude, add_exclude_file):
20029 Initial size must now be a power of two to simplify overflow checking.
20030 (free_exclude, fnmatch_no_wildcards): New function.
20031 (excluded_filename): No longer requires options arg, as the options
20032 are determined by add_exclude. Now returns bool, not int.
20033 (excluded_filename, add_exclude):
20034 Add support for the fancy new exclusion options.
20035 (add_exclude, add_exclude_file): Now takes int options arg.
20036 Check for arithmetic overflow when computing sizes.
20037 (add_exclude_file): xrealloc might modify errno, so don't
20038 realloc until after errno might be used.
20040 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
20042 (free_exclude): New decl.
20043 (add_exclude, add_exclude_file): Now takes int options arg.
20044 (excluded_filename): No longer requires options arg, as the options
20045 are determined by add_exclude. Now returns bool, not int.
20047 2001-08-30 Paul Eggert <eggert@twinsun.com>
20049 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
20051 2001-08-27 Jim Meyering <meyering@lucent.com>
20053 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
20055 * lib/version-etc.c (N_): Remove definition.
20056 Revert most of last change.
20057 Instead, simply don't mark the `Copyright...' string for translation.
20058 Based on advice from Paul Eggert.
20060 * lib/strtoxmax.c: Tweak comment.
20062 2001-08-26 Jim Meyering <meyering@lucent.com>
20064 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
20066 * m4/xstrtoimax.m4: New file.
20067 * m4/xstrtoumax.m4: Add comments explaining why we
20068 AC_REPLACE_FUNCS(strtol).
20070 2001-08-26 Jim Meyering <meyering@lucent.com>
20072 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
20073 of copyright with `%s' so translators don't get an untranslated
20075 (COPYRIGHT_YEAR): Define.
20076 (version_etc): Use fprintf rather than fputs.
20077 Suggestion from Ulrich Drepper.
20079 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
20081 * lib/strtoll.c: New file, from GNU libc.
20082 * lib/xstrtoimax.c: New file.
20084 * lib/xstrtol.h: Add xstrtoimax.
20085 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
20086 * lib/strtoimax.c: New file. Likewise, but first define
20089 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
20091 * lib/strtoxmax.c: ... then renamed to this.
20093 2001-08-18 Paul Eggert <eggert@twinsun.com>
20095 * m4/inttypes.m4: Add AC_PREREQ(2.13).
20096 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
20097 (jm_AC_TYPE_INTMAX_T): New macro.
20098 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
20100 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
20102 * m4/longlong.m4: Renamed from ulonglong.m4.
20103 * m4/inttypes.m4: Renamed from inttypes_h.m4.
20104 * m4/uintmax_t.m4: Removed.
20106 2001-08-13 Paul Eggert <eggert@twinsun.com>
20108 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
20109 Port to Solaris 8, where 'sed' requires a space after the 'r'
20110 command, and where sh dislikes "$/". Clean up the spacing a bit.
20111 Redirect output to $tmp just once.
20113 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
20115 * lib/addext.c (<errno.h>): Include.
20116 (errno): Declare if not defined.
20117 (addext): Work correctly when pathconf returns -1 and leaves
20118 errno alone because there is no limit. Also, work even if
20119 pathconf returns a value greater than SIZE_MAX.
20121 2001-08-12 Jim Meyering <meyering@lucent.com>
20123 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
20124 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
20125 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
20126 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
20127 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
20128 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
20129 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
20130 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
20131 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
20132 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
20133 utime.m4, utimes.m4, xstrtoumax.m4:
20134 Quote the first argument in each use of AC_DEFUN.
20136 2001-08-12 Jim Meyering <meyering@lucent.com>
20138 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
20139 Simply `return getcwd (NULL, 0);'.
20140 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
20141 Use 1300 as initial value for length, not PATH_MAX.
20143 * lib/pathmax.h: Clean up cpp syntax.
20145 2001-08-12 Jim Meyering <meyering@lucent.com>
20147 * lib/gettimeofday.c: New file.
20148 * lib/gtod.h: New file.
20149 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
20151 2001-08-05 Jim Meyering <meyering@lucent.com>
20153 * m4/jm-macros.m4: Require autoconf-2.52.
20155 2001-08-04 Jim Meyering <meyering@lucent.com>
20157 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
20158 stmt, to get in sync with glibc.
20160 2001-08-03 Paul Eggert <eggert@twinsun.com>
20162 The following changes are from gettext 0.10.39 as maintained by
20165 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
20166 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
20167 with inverted sense. All uses changed.
20169 * lib/mbswidth.c: Don't include <limits.h>.
20170 Include <stdlib.h> and <string.h> unconditionally.
20171 (iswcntrl, mbsinit, ISCNTRL): New macros.
20172 (mbsnwidth): Use K&R style function declarations.
20173 Don't bother checking for MB_LEN_MAX == 1, since the compiler
20174 can optimize it when MB_CUR_MAX == 1.
20175 The width of control characters is zero, not 1.
20177 2001-08-03 Paul Eggert <eggert@twinsun.com>
20179 The following changes are from gettext 0.10.39 as maintained by
20180 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
20182 * m4/codeset.m4: Upgrade to serial AM1.
20183 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
20184 all uses changed. Quote first arg of AC_DEFUN.
20185 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
20187 * m4/iconv.m4: Upgrade to serial AM2.
20188 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
20189 Add --with-libconv-prefix.
20190 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
20191 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
20192 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
20193 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
20194 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
20196 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
20197 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
20198 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
20199 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
20200 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
20201 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
20202 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20203 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
20204 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
20206 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
20209 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
20210 not the default value.
20212 2001-06-25 Bruno Haible <haible@clisp.cons.org>
20213 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
20214 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
20215 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
20216 Also check for iswcntrl, used for wcwidth fallback.
20217 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
20220 2001-08-03 Jim Meyering <meyering@lucent.com>
20222 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
20223 as it was in the original. Reported by Paul Eggert.
20225 2001-07-16 Jim Meyering <meyering@lucent.com>
20227 * m4/gettimeofday.m4: New file.
20228 Prompted by a report from Bernhard Baehr.
20230 2001-07-15 Jim Meyering <meyering@lucent.com>
20232 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
20233 stuff. Now it's in ../Makefile.cfg.
20235 2001-07-15 Jim Meyering <meyering@lucent.com>
20237 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
20238 (BUILT_SOURCES): Add unlocked-io.h.
20239 (io_functions): Define.
20240 (unlocked-io.h): New rule.
20241 (DISTCLEANFILES): Add unlocked-io.h.
20242 (all-local): Depend on unlocked-io.h, to ensure it is created.
20244 * lib/unlocked-io.hin: New file
20246 * lib/regex.c: Update from glibc.
20248 2001-07-05 Jim Meyering <meyering@lucent.com>
20250 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
20252 (libfetish_a_SOURCES): Put all .h files here instead.
20253 Remove a thus-exposed (better checks in automake) duplicate and
20254 two unnecessary .h files.
20256 2001-07-04 Jim Meyering <meyering@lucent.com>
20258 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
20259 that generates jm-glibc-io.m4 so that it doesn't trigger any make
20262 2001-07-02 Jim Meyering <meyering@lucent.com>
20264 The following changes were prompted by suggestions from Bruno Haible.
20266 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
20268 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
20269 definition of EXTRA_DIST.
20270 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
20271 ensure that the generated file is created/updated whenever the list
20272 of $(unlocked_functions) is changed.
20273 (jm-glibc-io.m4): New rule.
20274 (unlocked-io.h): New rule -- currently unused.
20276 2001-06-24 Jim Meyering <meyering@lucent.com>
20278 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
20279 unmatched right bracket, rather than kludging it with an extra,
20280 falsely-matching quote in a comment. Patch by Akim Demaille.
20282 2001-06-11 Jim Meyering <meyering@lucent.com>
20284 * lib/regex.c: Update from GNU libc.
20286 2001-05-27 Jim Meyering <meyering@lucent.com>
20288 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
20289 Check for ut_type in struct utmp.
20291 2001-05-27 Jim Meyering <meyering@lucent.com>
20293 * lib/readutmp.h (UT_TYPE): Define.
20295 2001-05-24 Jim Meyering <meyering@lucent.com>
20297 * lib/argmatch.c: Include "quote.h".
20298 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
20299 quote function. Reported by Göran Uddeborg.
20301 2001-05-22 Jim Meyering <meyering@lucent.com>
20303 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
20304 now that we use the package-supplied version unconditionally.
20305 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
20307 2001-05-21 Jim Meyering <meyering@lucent.com>
20309 * m4/regex.m4: Change a couple backticks to single quotes to avoid
20310 shell syntax errors.
20312 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
20314 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
20316 2001-05-20 Paul Eggert <eggert@twinsun.com>
20318 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
20319 Don't bother to check library strftime, since
20320 we'll be using our own my_strftime function anyway.
20321 Define my_strftime instead of strftime.
20323 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
20325 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
20326 which is not yet declared.
20328 2001-05-15 Jim Meyering <meyering@lucent.com>
20330 * m4/regex.m4: Use proper quoting so brackets appear in the test
20332 Reported by, and with help from, Bruno Haible.
20334 2001-05-13 Jim Meyering <meyering@lucent.com>
20336 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
20339 2001-05-11 Paul Eggert <eggert@twinsun.com>
20341 dirname code cleanup. base_name now behaves more compatibly
20342 with POSIX basename when given file names that have trailing
20343 slashes, and similarly for dir_name. Add new primitives
20344 base_len and dir_len. Put the directory-name-related decls
20347 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
20348 * lib/backupfile.c (base_name): Likewise.
20349 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
20350 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
20351 * lib/makepath.c (strip_trailing_slashes): Likewise.
20352 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
20353 ISSLASH): Likewise.
20354 * lib/rename.c (strip_trailing_slashes): Likewise.
20355 * lib/same.c (base_name): Likewise.
20356 * lib/stripslash.c (ISSLASH): Likewise.
20358 * lib/addext.c: Include <dirname.h> after size_t is defined.
20359 * lib/backupfile.c: Likewise.
20361 * lib/addext.c (addext): Use base_len to trim redundant
20362 trailing slashes instead of doing it ourselves.
20363 But do not trim the last slash if it is not redundant.
20365 * lib/backupfile.c (find_backup_file_name,
20366 max_backup_version): Use base_len instead of rolling it ourselves.
20367 Handle the case of "" and (on DOS) "C:" correctly.
20369 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
20370 needed. Include <string.h>, <dirname.h>.
20371 (base_name): Allow file names ending in slashes, other than names
20372 that are all slashes. In this case, return the basename followed
20373 by the slashes. This is more general, and can be used in places
20374 where the original base_name purposely had an assertion failure.
20375 (base_len): New function.
20377 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
20378 Do not include <assert.h>; no longer needed.
20380 (memrchr): Remove decl.
20381 (dir_name_r): Remove.
20382 (dir_len): Renamed from dirlen. All callers changed.
20383 Rewrite in terms of base_name, for simplicity and consistency.
20384 (dir_name): Never return NULL. All callers changed.
20385 Do not include <stdlib.h> in test program; no longer needed.
20386 return 0; is fine for test program.
20388 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
20390 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
20392 * lib/path-concat.c (path_concat): Use base_len to compute
20393 base length, not strlen; this means we cannot rely on memcpy
20396 * lib/same.c (STREQ): Remove.
20397 (same_name): Handle the case where the basename ends in trailing '/'.
20399 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
20400 a slash was stripped. Do not strip the last slash after a
20401 file system prefix.
20403 2001-05-11 Paul Eggert <eggert@twinsun.com>
20405 * lib/Makefile.am (libfetish_a_SOURCES):
20406 Add strftime.c, since we now compile it on all hosts.
20408 * lib/strftime.c (my_strftime):
20409 Define to nstrftime if emacs, but only if my_strftime is not defined.
20410 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
20411 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
20412 Add one more extra argument: a nanoseconds value.
20415 (my_strftime function): Add %N format.
20416 (emacs_strftimeu): Renamed from emacs_strftime,
20417 with extra ut argument.
20419 2001-05-09 Paul Eggert <eggert@twinsun.com>
20421 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
20423 2001-04-21 Jim Meyering <meyering@lucent.com>
20425 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
20428 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
20430 * m4/ftruncate.m4: Check for chsize.
20431 Link with ftruncate.o unconditionally if ftruncate is missing.
20432 This was required when cross-compiling to i586-mingw32msvc.
20434 2001-04-08 Jim Meyering <meyering@lucent.com>
20436 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
20437 recomputed; that's necessary when the offset spans a DST transition.
20438 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
20440 2001-04-02 Jim Meyering <meyering@lucent.com>
20442 * lib/regex.h, regex.c: Update from GNU libc.
20444 2001-03-24 Jim Meyering <meyering@lucent.com>
20446 * m4/jm-macros.m4: Require autoconf-2.49d.
20448 2001-03-20 Bruno Haible <haible@clisp.cons.org>
20450 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
20452 2001-03-19 Paul Eggert <eggert@twinsun.com>
20454 * lib/version-etc.c (version_etc_copyright): Update to 2001.
20456 2001-03-17 Jim Meyering <meyering@lucent.com>
20458 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
20459 now that the version in autoconf is equivalent.
20460 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
20462 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
20463 Suggestion from Akim Demaille.
20465 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
20466 (jm_PREREQ_TEMPNAME): New function.
20468 2001-03-16 Paul Eggert <eggert@twinsun.com>
20470 * lib/tempname.c (uint64_t): Define to uintmax_t if
20471 not defined, and if UINT64_MAX is not defined.
20472 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
20473 Reported by John David Anglin.
20475 2001-03-15 Bruno Haible <haible@clisp.cons.org>
20477 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
20478 resolve alias if codeset is empty.
20479 * lib/config.charset (BeOS): Use wildcard syntax.
20481 2001-03-13 Jim Meyering <meyering@lucent.com>
20483 * lib/path-concat.c (path_concat)
20484 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
20485 concatenating e.g., `C:' and `foo'.
20488 2001-03-06 Bruno Haible <haible@clisp.cons.org>
20490 * lib/localcharset.c (locale_charset): Don't use
20491 setlocale(LC_CTYPE,NULL). Don't return NULL.
20492 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
20494 2001-03-06 Bruno Haible <haible@clisp.cons.org>
20496 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
20497 support for DOS/DJGPP.
20499 2001-03-01 Paul Eggert <eggert@twinsun.com>
20501 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
20502 lacks mkstemp. Compile our own tempname.c if we compile our own
20503 mkstemp.c, as mkstemp relies on tempname.
20505 2001-03-01 Jim Meyering <meyering@lucent.com>
20507 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
20508 AH_VERBATIM really does output its argument verbatim.
20510 2001-02-28 Paul Eggert <eggert@twinsun.com>
20512 * lib/Makefile.am (libfetish_a_SOURCES):
20513 Add dup-safer.c, fopen-safer.c.
20514 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
20516 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h,
20517 lib/unistd-safer.h: New files.
20519 2001-02-25 Paul Eggert <eggert@twinsun.com>
20521 The mkstemp replacement is taken from glibc 2.2.2, with some
20522 portability fixes for use outside glibc, as follows:
20524 * lib/tempname.c (struct_stat64): New macro.
20525 (direxists, __gen_tempname): Use it.
20526 This avoids a portability problem with Solaris 8.
20528 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
20529 (<stddef.h>, <stdint.h>, <string.h>):
20530 Include only if STDC_HEADERS || _LIBC.
20531 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
20532 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
20533 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
20534 (__set_errno): Define this macro if <errno.h> doesn't.
20535 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
20536 Define these macros if <stdio.h> doesn't.
20537 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
20538 Define these macros if <sys/stat.h>
20539 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
20540 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
20541 __xstat64): Define if not _LIBC.
20542 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
20543 (__gen_tempname): Invoke gettimeofday only if
20544 HAVE_GETTIMEOFDAY || _LIBC;
20545 otherwise, fall back on plain "time".
20546 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
20548 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
20550 * lib/mkstemp.c, tempname.c: New files, taken from glibc 2.2.2.
20552 2001-02-18 Paul Eggert <eggert@twinsun.com>
20554 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
20556 2001-02-17 Paul Eggert <eggert@twinsun.com>
20558 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
20559 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
20560 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
20561 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
20563 2001-02-17 Paul Eggert <eggert@twinsun.com>
20565 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
20566 Remove workaround macros for hosts that have mbrtowc but not
20567 mbstate_t, as we now insist on proper declarations for both
20568 before using mbrtowc.
20570 2001-02-17 Jim Meyering <meyering@lucent.com>
20572 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
20573 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
20574 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
20577 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
20578 rather than AC_CACHE_VAL.
20580 2001-02-17 Jim Meyering <meyering@lucent.com>
20582 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
20583 around included file name.
20585 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
20587 * lib/strftime.c: Update from GNU libc (the only changes were to
20590 2001-02-17 Jim Meyering <meyering@lucent.com>
20592 * lib/regex.c: Update from libc.
20594 2001-02-17 Bruno Haible <haible@clisp.cons.org>
20596 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
20599 2001-02-16 Paul Eggert <eggert@twinsun.com>
20601 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
20602 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
20603 Reported by Mark Hounschell via Paul Eggert.
20605 2001-02-07 Jim Meyering <meyering@lucent.com>
20607 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
20609 2001-02-05 Jim Meyering <meyering@lucent.com>
20611 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
20612 it includes the patch required for `large file' support with at least
20613 HP-UX's 10.20 /bin/cc.
20615 2001-02-03 Jim Meyering <meyering@lucent.com>
20617 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
20618 AS_IF, now that it works once again (mysteriously).
20619 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
20621 2001-01-30 Jim Meyering <meyering@lucent.com>
20623 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
20624 * m4/chown.m4: Rename conftestchown to conftest.chown.
20625 * m4/rename.m4: s/conftestdir/conftest.d1/ and
20626 s/conftestdir2/conftest.d2/.
20627 * m4/utimes.m4: s/conftestdata/conftest.data/
20628 Inspired by Pavel Roskin's change in autoconf.
20630 2001-01-30 Bruno Haible <haible@clisp.cons.org>
20632 * lib/config.charset: Update for FreeBSD 4.2.
20634 2001-01-27 Jim Meyering <meyering@lucent.com>
20636 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
20638 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
20640 2001-01-26 Jim Meyering <meyering@lucent.com>
20642 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
20643 quotearg.c includes it.
20645 2001-01-26 Jim Meyering <meyering@lucent.com>
20647 * lib/quotearg.c: Include stddef.h.
20648 * lib/quote.c: Include stddef.h.
20649 Reported by Axel Kittenberger.
20651 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
20652 line in double quotes so that it evokes a better diagnostic.
20653 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
20654 Reported by Axel Kittenberger.
20656 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
20658 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
20659 as if it was a `charset'.
20661 2001-01-21 Bruno Haible <haible@clisp.cons.org>
20663 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
20666 2001-01-21 Bruno Haible <haible@clisp.cons.org>
20668 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
20669 to avoid a warning. Add back 'const' to inptr.
20671 2001-01-20 Jim Meyering <meyering@lucent.com>
20673 Be sure that headers are checked before used in code compiled
20674 for the type checks.
20675 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
20676 In place of that, invoke jm_CHECK_ALL_TYPES.
20677 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
20678 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
20679 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
20680 The check for ssize_t was mistakenly run before the test for unistd.h.
20682 The configure-time check for stdbool.h was missing.
20683 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
20684 (jm_PREREQ_HASH): New function.
20686 2001-01-17 Jim Meyering <meyering@lucent.com>
20688 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
20689 for autoconf-2.49c.
20690 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
20692 2001-01-16 Jim Meyering <meyering@lucent.com>
20694 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
20697 2001-01-14 Jim Meyering <meyering@lucent.com>
20699 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
20700 foo and bar. Create conftestdir/ in the script, not in the C code.
20701 Remove directories in the script, not in the C code.
20702 Remove conftestdir{,2} before trying to create the directory.
20703 Make the entire configure script fail if the mkdir fails.
20705 2001-01-14 Jim Meyering <meyering@lucent.com>
20707 * lib/rename.c: New file. From Volker Borchert.
20708 Include stdlib.h, string.h or strings.h, and xalloc.h.
20709 Use strip_trailing_slashes rather than open-coding it.
20711 2001-01-03 Paul Eggert <eggert@twinsun.com>
20713 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
20715 2001-01-03 Jim Meyering <meyering@lucent.com>
20717 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
20718 of local `inptr' to avoid warning with some system declarations of
20721 2001-01-02 Volker Borchert <bt@teknon.de>
20723 * m4/rename.m4: New file.
20724 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
20726 2001-01-01 Jim Meyering <meyering@lucent.com>
20728 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
20729 even on systems with utmpx.h. It's necessary for the declaration of
20730 utmp's ut_user member. Reported by Andreas Jaeger.
20732 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
20733 available. They are required for the declarations of getgrgid and
20735 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
20736 Reported by Andreas Jaeger.
20738 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
20740 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
20741 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
20742 so `make install' also works in VPATH builds.
20744 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
20746 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
20747 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
20748 can be used in subdirectories.
20750 2000-12-29 Paul Eggert <eggert@twinsun.com>
20752 * lib/modechange.c: Do not assume that mode_t uses the
20753 traditional octal encoding. E.g. "chmod 1 FOO" should set
20754 the other-execute bit of FOO even if S_IXOTH != 1.
20756 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
20757 WOTH, XOTH, ALLM): New macros.
20758 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
20759 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
20761 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
20762 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
20764 No need to use uintmax_t; unsigned long is long enough.
20765 Don't bother to get suffix since we don't use it.
20767 2000-12-26 Jim Meyering <meyering@lucent.com>
20769 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
20770 better with autoheader.
20772 2000-12-24 Jim Meyering <meyering@lucent.com>
20774 * lib/hash.c (is_prime): Return explicit boolean values.
20775 (hash_get_first): Return NULL to appease Irix5.6's 89.
20776 Reported by Nelson Beebe.
20778 2000-12-19 Bruno Haible <haible@clisp.cons.org>
20780 * lib/localcharset.c (locale_charset): Add support for Win32.
20782 2000-12-18 Paul Eggert <eggert@twinsun.com>
20784 * lib/physmem.h, physmem.c: New files.
20786 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
20787 (noinst_HEADERS): Add physmem.h.
20789 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
20790 't' for compatibility with Solaris 8 sort.
20792 2000-12-18 Bruno Haible <haible@clisp.cons.org>
20794 * lib/config.charset: Add support for BeOS.
20796 2000-12-17 Jim Meyering <meyering@lucent.com>
20798 * m4/dos.m4 (jm_AC_DOS): New file and macro.
20799 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
20801 2000-12-16 Jim Meyering <meyering@lucent.com>
20803 This bug had a serious impact on chown: `chown N:M FILE' (for integer
20804 N and M) would have treated it like `chown N:N FILE'.
20806 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
20808 2000-12-16 Jim Meyering <meyering@lucent.com>
20810 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
20811 SHELLS_FILE to a file name that's useful on djgpp systems.
20813 (ADDITIONAL_DEFAULT_SHELLS): Define.
20814 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
20815 Based mostly on a patch from Prashant TR.
20817 2000-12-16 Bruno Haible <haible@clisp.cons.org>
20819 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
20820 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
20821 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
20823 2000-12-08 Andreas Schwab <schwab@suse.de>
20825 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
20826 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
20828 2000-12-07 Jim Meyering <meyering@lucent.com>
20830 * lib/stripslash.c (ISSLASH): Define.
20831 (strip_trailing_slashes): Use ISSLASH rather than comparing against
20835 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
20836 (dir_name_r): Declare this function as static.
20837 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
20838 manifest itself on a name containing a mix of slashes and
20840 Make this function work with names starting with a DOS-style
20841 drive letter and colon prefix.
20842 (dir_name): Append `.' if necessary.
20843 Based mostly on patches from Prashant TR and Eli Zaretskii.
20845 * lib/dirname.h (dir_name_r): Remove prototype.
20847 2000-12-06 Paul Eggert <eggert@twinsun.com>
20849 * m4/off_t-format.m4: Remove this file.
20850 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
20852 2000-12-06 Jim Meyering <meyering@lucent.com>
20854 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
20855 replacement strtoull, we may well need the replacement strtoul, too.
20856 Check for declarations of strtoul and strtoull.
20857 Check for strtol. Mainly as a cue to cause automake to include
20858 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
20859 Check for limits.h -- strtol.c needs it.
20861 2000-12-05 Jim Meyering <meyering@lucent.com>
20863 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
20865 2000-12-04 Jim Meyering <meyering@lucent.com>
20867 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
20868 Also include memory.h, stdlib.h, unistd.h if appropriate.
20869 Reported by Andreas Jaeger (conflicting declaration of malloc).
20871 2000-12-02 Jim Meyering <meyering@lucent.com>
20873 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
20874 * m4/jm-macros.m4 (jm_MACROS): require it.
20876 2000-12-02 Jim Meyering <meyering@lucent.com>
20878 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
20880 2000-12-01 Paul Eggert <eggert@twinsun.com>
20882 * lib/memrchr.c: Include <config.h> before any system include file.
20884 2000-11-30 Jim Meyering <meyering@lucent.com>
20886 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
20888 2000-11-30 Jim Meyering <meyering@lucent.com>
20890 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
20892 2000-11-29 Paul Eggert <eggert@twinsun.com>
20894 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
20896 2000-11-26 Jim Meyering <meyering@lucent.com>
20898 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
20900 2000-11-22 Paul Eggert <eggert@twinsun.com>
20902 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
20903 size of (size_t) -1; it's not portable.
20905 2000-11-17 Jim Meyering <meyering@lucent.com>
20907 * lib/strstr.c: Update from GNU libc.
20909 2000-11-17 Akim Demaille <akim@epita.fr>
20911 * lib/obstack.h: Formatting changes.
20912 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
20913 prevent type checking.
20914 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
20915 cast the value to (void *): assigning a `foo *' to a `void *'
20917 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
20919 2000-11-16 Jim Meyering <meyering@lucent.com>
20921 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
20923 2000-11-11 Jim Meyering <meyering@lucent.com>
20925 * lib/error.c: Add a couple #includes, merging from GNU libc version.
20927 2000-11-10 Jim Meyering <meyering@lucent.com>
20929 * lib/obstack.h: Update from GNU libc.
20930 * lib/obstack.c: Likewise.
20932 2000-11-08 Bruno Haible <haible@clisp.cons.org>
20934 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
20936 2000-11-06 Paul Eggert <eggert@twinsun.com>
20938 * lib/getusershell.c (setusershell): Use rewind rather than
20939 fseek/fseeko, to avoid configuration hassles with fseeko.
20940 Don't bother opening SHELLS_FILE if shellstream is NULL;
20941 it's not necessary.
20943 2000-11-05 Jim Meyering <meyering@lucent.com>
20945 * lib/makepath.h (make_dir): Declare.
20946 * lib/makepath.c (make_dir): Remove `static' attribute.
20949 2000-11-04 Jim Meyering <meyering@lucent.com>
20951 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
20953 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
20955 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
20956 last one in a bucket, advance to the next bucket.
20958 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
20960 * lib/fnmatch.c: Do not comment out all the code if we are using
20961 the GNU C library, because in some cases we are replacing buggy
20962 code in the GNU C library itself.
20964 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
20966 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
20967 (regex_compile): Catch bogus \(\1\).
20969 2000-10-30 Paul Eggert <eggert@twinsun.com>
20971 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
20972 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
20973 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
20975 2000-10-30 Paul Eggert <eggert@twinsun.com>
20977 * lib/error.h, getline.h, modechange.h:
20978 Remove "2000" from Copyright line, as the file hasn't been
20979 changed this year other than in the copyright notice.
20981 * lib/xalloc.h: Add "2000" to Copyright line, as this file
20982 was changed this year.
20984 2000-10-29 Jim Meyering <meyering@lucent.com>
20986 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
20988 * m4/ls-mntd-fs.m4: Likewise
20990 2000-10-29 Jim Meyering <meyering@lucent.com>
20992 * lib/xstat.in: Fix grammar in comment.
20994 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
20996 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
20997 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
20998 doesn't define __restrict_arr.
21000 2000-10-28 Jim Meyering <meyering@lucent.com>
21002 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
21003 (jm_PREREQ_MEMCHR): New function.
21005 2000-10-28 Jim Meyering <meyering@lucent.com>
21007 * lib/memchr.c: Update from libc.
21008 Adjust for portability:
21009 [HAVE_STDLIB_H]: Include stdlib.h.
21010 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
21011 Undef __memchr, too.
21012 [!weak_alias]: Define __memchr to memchr.
21014 * lib/regex.c: Update from libc.
21015 * lib/regex.h: Likewise.
21016 * lib/getopt1.c: Likewise.
21017 * lib/memcmp.c: Likewise.
21019 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
21020 Avoid using fseek, when possible -- it's broken by design.
21021 Patch by Ulrich Drepper.
21023 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
21025 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
21026 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
21027 Giving in to popular pressure to shut up the compiler with casts.
21029 2000-10-26 Jim Meyering <meyering@lucent.com>
21031 * lib/strftime.c: Update from libc.
21033 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
21035 * regex.c: More `unsigned char' -> `re_char' changes.
21036 Also change several `int' into `re_wchar_t'.
21037 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
21038 (PUSH_FAILURE_POINTER): Don't cast any more.
21039 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
21040 We want GCC to complain, since this piece of code makes
21041 re_match non-reentrant, which *should* be fixed.
21042 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
21043 (EXTEND_BUFFER): Use RETALLOC.
21044 (SET_LIST_BIT): Don't cast.
21045 (re_wchar_t): New type.
21046 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
21047 that those two functions will always properly return.
21048 (IMMEDIATE_QUIT_CHECK): Cast to void.
21049 (analyse_first): Use recursion rather than an explicit stack.
21050 (re_compile_fastmap): Can't fail anymore.
21051 (re_search_2): Don't check re_compile_fastmap for failure.
21052 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
21053 Now also sets the new value (passed in a new argument).
21054 (re_match_2_internal): Use it.
21055 Also, use a new var `reg' of type size_t when looping through regs
21056 rather than reuse the inappropriate `mcnt'.
21058 2000-10-25 Jim Meyering <meyering@lucent.com>
21060 * lib/obstack.c: Update from libc.
21062 2000-10-24 Kenichi Handa <handa@etl.go.jp>
21064 * regex.c (regex_compile): Change the way of handling a range from
21065 a char less than 256 to a char not less than 256.
21067 2000-10-24 Andrew Innes <andrewi@gnu.org>
21069 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
21071 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
21072 so that re_search functions only quit when callers expect them to.
21074 2000-10-23 Jim Meyering <meyering@lucent.com>
21076 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
21077 wrong. That set_locale call must not have any side effects.
21080 2000-10-22 Jim Meyering <meyering@lucent.com>
21082 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
21083 [CYCLIC]: Remove now-unused definition.
21085 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
21086 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
21087 Suggestion from Ulrich Drepper.
21089 2000-10-21 Jim Meyering <meyering@lucent.com>
21091 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
21092 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
21093 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
21095 2000-10-21 Jim Meyering <meyering@lucent.com>
21097 * lib/dirname.c (memrchr): Declare if necessary.
21098 (dir_name): Remove the restriction that there be no
21099 trailing slashes. Now, this code skips past them, effectively
21101 [TEST_DIRNAME] (main): New unit tests.
21103 * lib/memrchr.c: New file from GNU libc.
21104 Undef __memrchr, too.
21105 [!weak_alias]: Define __memrchr to memrchr.
21106 Guard weak_alias use with `#ifdef weak_alias'.
21108 2000-10-21 Jim Meyering <meyering@lucent.com>
21110 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
21111 (dir_name): Use dir_name_r.
21112 * lib/dirname.h (dir_name_r): Declare it.
21114 2000-10-17 Jim Meyering <meyering@lucent.com>
21116 * lib/quote.h (PARAMS): Define and use.
21117 Reported by Akim Demaille.
21119 * lib/getopt.c: Update from libc.
21121 2000-10-16 Jim Meyering <meyering@lucent.com>
21123 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
21127 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
21129 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
21131 2000-09-25 Jim Meyering <meyering@lucent.com>
21133 * lib/md5.h (rol): Define (from GnuPG).
21135 * lib/sha.c: Give credit (GnuPG) where due.
21136 (M): Use rol rather than open-coding it.
21137 Add a FIXME comment.
21139 2000-09-21 Jim Meyering <meyering@lucent.com>
21141 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
21142 Reported by Michael Stone.
21144 2000-09-20 Jim Meyering <meyering@lucent.com>
21146 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
21147 (noinst_HEADERS): Add sha.h.
21148 Based on code from Scott G. Miller and from GnuPG.
21150 2000-09-18 Jim Meyering <meyering@lucent.com>
21152 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
21153 LIBS. Otherwise, everyone ends up linking with -lelf for some
21155 Reported by Mike Stone.
21157 2000-09-15 Jim Meyering <meyering@lucent.com>
21159 * lib/regex.c: Update from libc.
21161 2000-09-10 Jim Meyering <meyering@lucent.com>
21163 * lib/getopt.c (_getopt_internal): Update from glibc.
21165 2000-09-09 Jim Meyering <meyering@lucent.com>
21167 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
21168 think it should be used as a general replacement for isascii.
21169 * lib/fnmatch.c: Likewise.
21170 * lib/mbswidth.c: Likewise
21171 * lib/regex.c: Likewise.
21174 * lib/userspec.c: Include sys/param.h and limits.h.
21176 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
21177 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
21178 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
21179 UID, GID. Check range.
21181 2000-09-06 Jim Meyering <meyering@lucent.com>
21183 * lib/getopt.c (_getopt_internal): Update from glibc.
21185 2000-08-30 Jim Meyering <meyering@lucent.com>
21187 * lib/strftime.c: Merge in changes from GNU libc.
21189 2000-08-26 Jim Meyering <meyering@lucent.com>
21191 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
21192 * m4/fpending.m4: New file.
21194 2000-08-26 Jim Meyering <meyering@lucent.com>
21196 * lib/closeout.c: Include "__fpending.h".
21197 (close_stdout_status): Return right away if there's nothing to flush.
21199 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
21200 * lib/__fpending.c: New file.
21201 * lib/__fpending.h: New file.
21203 2000-08-20 Jim Meyering <meyering@lucent.com>
21205 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
21206 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
21207 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
21209 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
21211 Improve fileutils installation on systems where running
21212 programs (like install) can't be unlinked.
21213 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
21214 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
21216 2000-08-07 Paul Eggert <eggert@twinsun.com>
21218 Standardize on "memory exhausted" instead of "Memory exhausted"
21219 or "virtual memory exhausted".
21220 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
21221 "virtual memory exhausted".
21222 * lib/same.c (same_name): Invoke xalloc_die instead of printing
21224 * lib/userspec.c (parse_user_spec): Likewise.
21225 * lib/bumpalloc.h: comment fix
21226 * lib/same.c, userspec.c: Include xalloc.h.
21228 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
21229 not char *const and pointing to a constant array.
21230 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
21231 (xrealloc): Comment fix.
21233 * lib/userspec.c (parse_user_spec):
21234 Don't translate a message until just before returning,
21235 to avoid unnecessary translation.
21237 2000-08-07 Jim Meyering <meyering@lucent.com>
21239 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
21240 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
21241 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
21242 getgroups.c, gethostname.c, getopt.h, group-member.c,
21243 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
21244 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
21245 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
21246 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
21247 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
21248 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
21249 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
21250 yesno.c: Back out Copyright date changes for each file with no change
21251 this year. This eases coordination with other programs using the same
21252 source code modules. From Paul Eggert.
21254 2000-08-06 Paul Eggert <eggert@twinsun.com>
21256 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
21257 not char, for compatibility with glibc 2.1.3 strftime.c.
21259 2000-08-03 Greg McGary <greg@mcgary.org>
21261 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
21262 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
21263 (EXTEND_BUFFER): Use them.
21265 2000-08-01 Jim Meyering <meyering@lucent.com>
21267 * lib/dirname.c (ISSLASH): Define.
21268 (BACKSLASH_IS_PATH_SEPARATOR): Define.
21269 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
21270 both `\' and `/' may be use as path separators.
21271 Based on a patch from Prashant TR.
21273 2000-07-31 Paul Eggert <eggert@twinsun.com>
21275 * lib/quotearg.c (quotearg_n_options): Don't make the initial
21276 slot vector a constant, since it might get modified.
21278 2000-07-31 Jim Meyering <meyering@lucent.com>
21280 * lib/xmalloc.c: Use `virtual memory exhausted', not
21281 `Memory exhausted'.
21282 * lib/obstack.c (print_and_abort): Likewise.
21284 2000-07-30 Paul Eggert <eggert@twinsun.com>
21286 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
21287 buffer, so that the caller can always quote one small
21288 component of a "memory exhausted" message in slot 0.
21289 From a suggestion by Jim Meyering.
21291 2000-07-30 Jim Meyering <meyering@lucent.com>
21293 * lib/makepath.c (make_path): Quote the other instance, too.
21295 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
21296 (STATIC_BUF_SIZE): Define.
21297 (quotearg_n_options): Use only statically allocated storage when
21298 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
21299 than STATIC_BUF_SIZE.
21301 2000-07-29 Jim Meyering <meyering@lucent.com>
21303 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
21304 * lib/dirname.c (dir_name): Likewise.
21306 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
21309 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
21310 (dir_name): Assert that there are no trailing slashes.
21312 2000-07-29 Bruno Haible <haible@clisp.cons.org>
21314 * lib/mbswidth.h (mbswidth): Add a flags argument.
21315 (mbswidth): New declaration.
21316 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
21317 * lib/mbswidth.c (mbswidth): Add a flags argument.
21318 (mbsnwidth): New function.
21320 2000-07-24 Jim Meyering <meyering@lucent.com>
21322 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
21324 2000-07-23 Paul Eggert <eggert@twinsun.com>
21326 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
21328 2000-07-23 Paul Eggert <eggert@twinsun.com>
21330 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
21331 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
21332 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
21333 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
21334 invoke multibyte primitives.
21336 2000-07-23 Paul Eggert <eggert@twinsun.com>
21339 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
21340 so that mbstate_t is always defined.
21342 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
21343 be 1 in at least one GCC installation, and this configuration
21344 error is likely to be common. Ignoring MB_LEN_MAX hurts
21345 performance on hosts that have mbrtowc but have only unibyte
21346 locales, but I assume these hosts are rare.
21348 2000-07-23 Paul Eggert <eggert@twinsun.com>
21350 * lib/mbswidth.c (_XOPEN_SOURCE):
21351 Don't define; this causes problems on Solaris 7.
21352 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
21354 2000-07-23 Jim Meyering <meyering@lucent.com>
21356 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
21357 too: getgrgid, getpwuid, getuid.
21359 2000-07-23 Jim Meyering <meyering@lucent.com>
21361 * lib/basename.c (base_name): Add an assertion.
21363 2000-07-23 Bruno Haible <clisp.cons.org>
21365 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
21366 shadow its mbsinit function.
21368 2000-07-17 Bruno Haible <haible@clisp.cons.org>
21370 * lib/mbswidth.h: New file.
21371 * lib/mbswidth.c: New file.
21372 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
21373 (noinst_HEADERS): Add mbswidth.h.
21375 2000-07-17 Bruno Haible <haible@clisp.cons.org>
21377 * lib/config.charset: Add support for FreeBSD. Improve support for
21380 2000-07-16 Bruno Haible <haible@clisp.cons.org>
21382 * m4/mbswidth.m4: New file.
21383 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
21385 2000-07-15 Jim Meyering <meyering@lucent.com>
21387 * lib/makepath.c: Include quote.h.
21388 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
21389 corresponding argument in a `quote (...)' call.
21390 Give better diagnostics.
21392 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
21393 (noinst_HEADERS): Add quote.h.
21395 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
21396 from tar's src/misc.c.
21397 * lib/quote.h: New file. Prototypes for same.
21399 2000-07-14 Paul Eggert <eggert@twinsun.com>
21401 From a suggestion by Bruno Haible.
21402 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
21403 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
21404 to decide whether to define the BeOS workaround macro;
21405 this adjusts to the change to AC_MBSTATE_T.
21407 2000-07-14 Jim Meyering <meyering@lucent.com>
21409 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
21410 jm_AC_TYPE_UINTMAX_T.
21412 2000-07-13 Paul Eggert <eggert@twinsun.com>
21414 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
21416 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
21417 quotearg_buffer_restyled): Add support for
21418 clocale_quoting_style. Undo previous change to
21419 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
21420 and "{RIGHT QUOTATION MARK}" msgids.
21422 2000-07-10 Paul Eggert <eggert@twinsun.com>
21424 From a suggestion by Bruno Haible.
21425 * m4/mbstate_t.m4 (AC_MBSTATE_T):
21426 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
21427 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
21428 and mbstate_t, to a single-part test that simply defines mbstate_t.
21429 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
21430 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
21432 2000-07-10 Jim Meyering <meyering@lucent.com>
21434 * m4/strerror_r.m4: Mirror the correction made in autoconf.
21436 * m4/gnu-source.m4: Output to confdefs.h directly.
21437 Suggestion from Akim Demaille.
21439 2000-07-09 Paul Eggert <eggert@twinsun.com>
21441 The old behavior of quoting `like this' doesn't look good with
21442 newer, ISO-style fonts. See:
21443 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
21445 Instead, quote "like this" by default. Let the translator
21446 tailor the locale-specific quoting behavior by providing
21447 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
21449 * lib/quotearg.c (N_): New macro.
21450 (gettext_default): New function.
21451 (quotearg_buffer_restyled): Use
21452 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
21453 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
21455 2000-07-09 Jim Meyering <meyering@lucent.com>
21457 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
21458 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
21460 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
21461 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
21463 2000-07-09 Jim Meyering <meyering@lucent.com>
21465 * lib/Most files: Update copyright dates to include 2000.
21467 2000-07-08 Jim Meyering <meyering@lucent.com>
21469 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
21471 (xgethostname): Remove now-unnecessary #ifdef.
21472 Move declaration of `err' into loop where it's used.
21474 2000-07-05 Paul Eggert <eggert@twinsun.com>
21475 and Bruno Haible <haible@clisp.cons.org>
21477 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
21478 only if the test for an object-type mbstate_t fails. This
21479 prevents us from mistakenly reporting that mbstate_t is a
21480 system object type after we "#define mbstate_t int" to work
21483 2000-07-05 Paul Eggert <eggert@twinsun.com>
21484 and Bruno Haible <haible@clisp.cons.org>
21486 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
21488 2000-07-05 Bruno Haible <haible@clisp.cons.org>
21490 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
21492 Include <ctype.h> for use of isalpha.
21494 2000-07-05 Bruno Haible <haible@clisp.cons.org>
21496 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
21497 by allocating a larger buffer. Test the gethostname return value for
21498 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
21499 returns an error and ENAMETOOLONG isn't defined.
21501 2000-07-05 Bruno Haible <haible@clisp.cons.org>
21503 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
21506 2000-07-04 Jim Meyering <meyering@lucent.com>
21508 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
21509 of the deprecated AC_CHECKING.
21511 2000-07-04 Jim Meyering <meyering@lucent.com>
21513 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
21514 Reported by Bruno Haible.
21516 2000-07-04 Jim Meyering <meyering@lucent.com>
21518 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
21519 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
21522 2000-07-03 Paul Eggert <eggert@twinsun.com>
21524 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
21525 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
21527 2000-07-03 Paul Eggert <eggert@twinsun.com>
21528 and Bruno Haible <haible@clisp.cons.org>
21530 * lib/quotearg.c (mbrtowc):
21531 Assign to *pwc, and return 1 only if result is nonzero.
21532 (iswprint): Use ISPRINT when substituting our own mbrtowc.
21534 2000-07-03 Jim Meyering <meyering@lucent.com>
21536 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
21538 2000-07-03 Jim Meyering <meyering@lucent.com>
21540 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
21541 This is necessary to get a definition of e.g., UTMP_FILE on
21545 2000-07-02 Jim Meyering <meyering@lucent.com>
21547 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
21549 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
21550 AC_LIBOBJ(function_name).
21551 * m4/chown.m4: Likewise.
21552 * m4/fnmatch.m4: Likewise.
21553 * m4/ftruncate.m4: Likewise.
21554 * m4/getgroups.m4: Likewise.
21555 * m4/getline.m4: Likewise.
21556 * m4/group-member.m4: Likewise.
21557 * m4/jm-macros.m4: Likewise.
21558 * m4/lstat.m4: Likewise.
21559 * m4/malloc.m4: Likewise.
21560 * m4/memcmp.m4: Likewise.
21561 * m4/nanosleep.m4: Likewise.
21562 * m4/putenv.m4: Likewise.
21563 * m4/realloc.m4: Likewise.
21564 * m4/regex.m4: Likewise.
21565 * m4/stat.m4: Likewise.
21566 * m4/strftime.m4: Likewise.
21568 2000-07-02 Jim Meyering <meyering@lucent.com>
21570 * lib/quotearg.c (mbstate_t): Don't define here.
21572 2000-07-02 Jim Meyering <meyering@lucent.com>
21574 * lib/nanosleep.c (SIGCONT): Define if not already defined.
21576 2000-07-01 Jim Meyering <meyering@lucent.com>
21578 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
21580 2000-07-01 Jim Meyering <meyering@lucent.com>
21582 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
21585 2000-07-01 Bruno Haible <haible@clisp.cons.org>
21587 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
21588 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
21590 2000-07-01 Bruno Haible <haible@clisp.cons.org>
21592 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
21593 per change in ../m4/ls-mntd-fs.m4.
21594 (read_filesystem_list): Ignore symbolic links.
21596 2000-06-29 Jim Meyering <meyering@lucent.com>
21598 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
21599 for declaration of strcmp.
21601 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
21603 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
21604 Avoid warning by casting result to `char *' to remove `const'.
21606 2000-06-28 Jim Meyering <meyering@lucent.com>
21608 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
21609 included by quotearg.c, for which we perform this test. From
21612 2000-06-27 Bruno Haible <haible@clisp.cons.org>
21614 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
21615 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
21616 <utmpx.h> exists, put readutmp.o into LIBOBJS.
21618 2000-06-27 Bruno Haible <haible@clisp.cons.org>
21620 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
21622 2000-06-26 Paul Eggert <eggert@twinsun.com>
21624 savedir now sets errno on failure and invokes xmalloc to get memory.
21625 Fix a couple of other minor bugs while we're at it.
21627 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
21628 (NAMLEN): Remove macro.
21629 (malloc, realloc): Remove decls.
21630 (stpcpy): Likewise.
21631 ("xalloc.h"): Include.
21632 (NAME_SIZE_DEFAULT): New macro.
21633 (savedir): Use xmalloc / xrealloc to allocate memory.
21634 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
21635 Skip "" directory entries.
21636 Use strlen to calculate directory entry length, since the old method
21637 is rarely used these days and isn't worth supporting.
21638 Don't use a pointer after freeing it.
21639 Check for integer overflow when calculating allocation size.
21640 Use memcpy to copy entries, instead of stpcpy.
21641 Set errno properly when returning NULL.
21642 Check for readdir error.
21644 2000-06-26 Jim Meyering <meyering@lucent.com>
21646 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
21648 2000-06-25 Jim Meyering <meyering@lucent.com>
21650 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
21651 Linux header bug when _XOPEN_SOURCE is defined to 500.
21653 2000-06-25 Bruno Haible <haible@clisp.cons.org>
21655 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
21658 2000-06-25 Bruno Haible <haible@clisp.cons.org>
21660 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
21662 Don't include <stdlib.h>. Don't declare malloc, realloc.
21664 2000-06-24 Jim Meyering <meyering@lucent.com>
21666 * m4/strerror_r.m4: Revive this file -- to try out an experimental
21667 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
21668 for which strerror does return char*, but which lacks a conveniently
21669 accessible declaration of the function. If the compile-test says
21670 strerror_r doesn't work, then resort to a `run'-test that works on
21671 BeOS and segfaults on DEC Unix.
21673 2000-06-24 Jim Meyering <meyering@lucent.com>
21675 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
21677 2000-06-23 Paul Eggert <eggert@twinsun.com>
21679 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
21680 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
21682 2000-06-23 Paul Eggert <eggert@twinsun.com>
21684 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
21685 (mbrtowc, mbstate_t): Define substitutes if
21686 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
21687 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
21688 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
21690 2000-06-23 Jim Meyering <meyering@lucent.com>
21692 * m4/afs.m4: Add missing AC_MSG_RESULT.
21693 Reported by Bruno Haible.
21695 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
21696 Suggestion from Bruno Haible.
21698 2000-06-23 Jim Meyering <meyering@lucent.com>
21700 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
21702 2000-06-21 Jim Meyering <meyering@lucent.com>
21704 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
21706 2000-06-21 Jim Meyering <meyering@lucent.com>
21708 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
21709 (noinst_HEADERS): Add getstr.h.
21711 * lib/getline.c (getstr): Move into a separate file.
21712 * lib/getstr.c (getstr): New file, extracted from getline.c, with
21713 the following changes: new parameter, delim2; both delim[12]
21714 parameters have type `int', not `char'. The latter would lose
21715 with 8-bit delimiters.
21716 * lib/getstr.h: New file.
21718 2000-06-21 Bruno Haible <haible@clisp.cons.org>
21720 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
21721 than 1024, return a memory chunk of least possible size, instead
21722 of size PATH_MAX + 2. In the loop, increment the size proportionally.
21723 Use free/xmalloc instead of xrealloc to avoid copying for very long
21726 2000-06-21 Bruno Haible <haible@clisp.cons.org>
21728 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
21731 2000-06-21 Bruno Haible <haible@clisp.cons.org>
21733 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
21734 address, not strdup. Include <stdlib.h> and don't declare free().
21736 2000-06-19 Jim Meyering <meyering@lucent.com>
21738 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
21740 2000-06-18 Jim Meyering <meyering@lucent.com>
21742 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
21744 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
21745 `checking whether...' message to be consistent with that of the
21748 2000-06-18 Jim Meyering <meyering@lucent.com>
21750 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
21751 Besides, these days every porting target provides a mkdir function.
21753 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
21754 needed. (this snippet comes from src/system.h).
21756 2000-06-16 Bruno Haible <haible@clisp.cons.org>
21758 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
21760 2000-06-15 Paul Eggert <eggert@twinsun.com>
21762 * lib/human.c (adjust_value): New function.
21763 (human_readable_inexact): Apply rounding style even when
21764 printing approximate values.
21766 2000-06-14 Paul Eggert <eggert@twinsun.com>
21768 * lib/human.c (human_readable_inexact): Allow an input block
21769 size that is not a multiple of the output block size, and vice versa.
21770 Reported by Piergiorgio Sartor.
21772 2000-06-14 Paul Eggert <eggert@twinsun.com>
21774 * lib/getdate.y (get_date): Apply relative times after time
21775 zone indicator, not before. Reported by Todd A. Jacobs.
21777 2000-06-13 Jim Meyering <meyering@lucent.com>
21779 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
21781 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
21783 2000-06-12 Paul Eggert <eggert@twinsun.com>
21785 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
21787 2000-06-12 Jim Meyering <meyering@lucent.com>
21789 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
21790 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
21792 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
21793 the optional argument, `lib'.
21795 2000-06-08 Jim Meyering <meyering@lucent.com>
21797 * m4/largefile.m4: Remove file (now that it's part of autoconf).
21799 2000-06-04 Paul Eggert <eggert@twinsun.com>
21801 Rewrite largefile configuration so that we don't need to run
21802 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
21803 AC_CANONICAL_HOST in configure.in -- jmm]
21805 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
21806 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
21807 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
21808 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
21809 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
21811 Instead of inspecting the output of getconf, try to compile the
21812 test program without and with the macro definition.
21813 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
21814 for getconf. Instead, check for the needed flags by compiling
21817 2000-06-04 Paul Eggert <eggert@twinsun.com>
21819 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
21821 2000-06-04 Jim Meyering <meyering@lucent.com>
21823 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
21824 SunOS 4.1.4 for which gid_t is an unsigned type.
21826 2000-06-03 Jim Meyering <meyering@lucent.com>
21828 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
21829 now that autoconf requires that.
21831 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
21832 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
21833 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
21835 2000-06-03 Jim Meyering <meyering@lucent.com>
21837 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
21839 2000-06-03 Bruno Haible <haible@clisp.cons.org>
21841 * m4/glibc21.m4: New file.
21842 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
21844 2000-06-03 Bruno Haible <haible@clisp.cons.org>
21846 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
21847 newer, don't install charset.alias.
21848 * lib/config.charset: Change the Linux/glibc rules so they become empty
21849 on glibc-2.1 or newer.
21851 2000-06-02 Jim Meyering <meyering@lucent.com>
21853 * lib/mountlist.c: Back out last change. Instead, do this...
21854 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
21855 me_dummy member using the same `ignore'-testing code.
21856 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
21860 2000-05-29 Jim Meyering <meyering@lucent.com>
21862 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
21863 mounts with the `ignore' attribute. Based on a patch from
21866 2000-05-28 Jim Meyering <meyering@lucent.com>
21868 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
21869 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
21870 * m4/stat.m4: Likewise.
21871 * m4/lstat.m4: Likewise.
21872 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
21874 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
21875 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
21877 2000-05-26 Jim Meyering <meyering@lucent.com>
21879 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
21881 2000-05-24 Jim Meyering <meyering@lucent.com>
21883 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
21884 autoconf requires that.
21885 * m4/lib-check.m4: Likewise.
21886 * m4/jm-macros.m4: Likewise.
21887 * m4/strftime.m4: Likewise.
21889 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
21890 AC_CHECK_DECLS, now that autoconf requires that.
21892 2000-05-22 Jim Meyering <meyering@lucent.com>
21894 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
21895 * m4/lstat.m4: Likewise.
21897 2000-05-22 Jim Meyering <meyering@lucent.com>
21899 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
21901 2000-05-20 Jim Meyering <meyering@lucent.com>
21903 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
21904 (jm_PREREQ): Use it.
21906 2000-05-18 Jim Meyering <meyering@lucent.com>
21908 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
21909 back, too, since it may have been modified by allocate_entry.
21910 (hash_delete): Rewrite to use neither the assignment operator
21911 nor the comma operator in an if-expression.
21913 2000-05-15 Paul Eggert <eggert@twinsun.com>
21916 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
21917 Remove; no longer needed.
21918 "quotearg.h": Add include.
21919 (file_name): Do not bother to explicitly initialize to NULL; it's less
21920 efficient on some hosts.
21921 (close_stdout_status): Remove test as to whether stdout was already
21922 closed; it breaks for the case "echo x | sort >&-".
21923 Quote file name colons.
21924 Do not assume that _("write error") lacks format strings.
21926 2000-05-15 Jim Meyering <meyering@lucent.com>
21928 * lib/version-etc.c (version_etc_copyright): Update the copyright
21929 string used in all --version output.
21931 2000-05-14 Jim Meyering <meyering@lucent.com>
21933 * lib/closeout.c (close_stdout_set_file_name): New function.
21934 (close_stdout_status): Use new file-scoped global.
21935 Return right away if fstat says the stdout file descriptor is invalid.
21936 * lib/closeout.h (close_stdout_set_file_name): Declare.
21938 2000-05-10 Jim Meyering <meyering@lucent.com>
21940 * lib/closeout.c [default_exit_status]: New file-scoped variable.
21941 (close_stdout_set_status): New function.
21942 * lib/closeout.h (close_stdout_set_status): Declare.
21944 2000-05-09 Jim Meyering <meyering@lucent.com>
21946 * m4/gettext.m4: Rename this...
21947 * m4/libintl.m4: ...to this.
21949 2000-05-08 Jim Meyering <meyering@lucent.com>
21951 * lib/long-options.c: Don't include closeout.h.
21952 (parse_long_options): Don't call close_stdout for --version.
21954 2000-05-06 Paul Eggert <eggert@twinsun.com>
21956 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
21957 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
21958 2.1.3 bug. This avoids a clash when files like regex.c define
21961 2000-05-06 Jim Meyering <meyering@lucent.com>
21963 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
21964 (AC_REPLACE_FUNCS): Add strnlen.
21966 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
21967 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
21969 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
21970 AC_SEARCH_LIBS call for nanosleep.
21971 (LIB_NANOSLEEP): Set and AC_SUBST.
21973 2000-05-06 Jim Meyering <meyering@lucent.com>
21975 * lib/strnlen.c: Undefine __strnlen and strnlen.
21976 [!weak_alias]: Define __strnlen to strnlen.
21978 * lib/atexit.c: New file, from libiberty.
21980 2000-05-06 Jim Meyering <meyering@lucent.com>
21982 * lib/closeout.c (close_stdout_status): Also check for errors on the
21985 2000-05-05 Jim Meyering <meyering@lucent.com>
21987 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
21988 AC_SEARCH_LIBS call for clock_gettime.
21989 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
21991 * m4/search-libs.m4: Update from autoconf.
21993 su doesn't work on Solaris 2.6.
21994 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
21995 <shadow.h>. Reported by Dragos Harabor.
21997 2000-05-05 Bruno Haible <haible@clisp.cons.org>
21999 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
22000 memcpy instead of xmalloc, xrealloc, path_concat.
22001 (locale_charset): Treat empty environment variables as absent.
22002 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
22004 2000-05-04 Jim Meyering <meyering@lucent.com>
22006 * lib/getopt.c: Update from glibc.
22007 * lib/obstack.c: Likewise.
22008 * lib/obstack.h: Likewise.
22009 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
22012 * lib/regex.h: Likewise.
22013 * lib/strndup.c: Likewise.
22014 * lib/strnlen.c: New file, from glibc.
22016 2000-05-03 Jim Meyering <meyering@lucent.com>
22018 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
22020 2000-05-02 Paul Eggert <eggert@twinsun.com>
22022 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
22023 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
22024 compile-time test, rather than inspecting host and OS, to
22025 decide whether to define _LARGEFILE_SOURCE.
22027 2000-05-01 Jim Meyering <meyering@lucent.com>
22029 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
22031 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
22032 Based on a patch from Bruno Haible.
22034 2000-05-01 Jim Meyering <meyering@lucent.com>
22036 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
22038 2000-04-29 Jim Meyering <meyering@lucent.com>
22040 * lib/path-concat.c: Declare strdup only if it's not defined.
22041 * lib/canon-host.c: Likewise.
22043 2000-04-28 Jim Meyering <meyering@lucent.com>
22045 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
22046 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
22047 is included first, then limits.h is included by locale.h by libintl.h.
22048 From John David Anglin.
22050 2000-04-25 Jim Meyering <meyering@lucent.com>
22052 * lib/makepath.c (S_IRWXUGO): Define.
22053 (make_path): Always perform explicit chmod if MODE specifies any
22054 of the `special' permission bits. Prompted by a bug report against
22055 install from Mate Wierdl and Joost van Baal.
22057 2000-04-18 Jim Meyering <meyering@lucent.com>
22059 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
22060 (jm_PREREQ): Use it.
22062 2000-04-18 Jim Meyering <meyering@lucent.com>
22064 * lib/README: New file.
22066 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
22067 getpagesize. For BeOS. Based on a patch from Bruno Haible.
22069 2000-04-17 Jim Meyering <meyering@lucent.com>
22072 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
22073 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
22074 Suggestion from Akim Demaille.
22076 2000-04-17 Jim Meyering <meyering@lucent.com>
22078 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
22079 the definition of it to rpl_strftime also defined-away the system's
22082 2000-04-15 Jim Meyering <meyering@lucent.com>
22084 Use `C' to denote so-called `contiguous' files, the same way
22086 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
22087 (ftypelet): Use S_ISCTG.
22088 From Michael Deutschmann.
22090 2000-04-14 Jim Meyering <meyering@lucent.com>
22092 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
22093 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
22096 2000-04-14 Jim Meyering <meyering@lucent.com>
22098 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
22100 2000-04-13 Jim Meyering <meyering@lucent.com>
22102 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
22103 AH_VERBATIM to insert required #ifndef into config.h.in.
22104 Suggestion from Akim Demaille.
22106 2000-04-12 Jim Meyering <meyering@lucent.com>
22108 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
22109 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
22110 Christian Krackowizer.
22112 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
22113 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
22114 (AC_SYS_LARGEFILE): Require.
22115 (AM_C_PROTOTYPES): Require.
22117 2000-04-08 Jim Meyering <meyering@lucent.com>
22119 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
22120 names don't conflict. Reported by Eli Zaretskii.
22122 2000-04-07 Jim Meyering <meyering@lucent.com>
22124 * lib/putenv.c: Move inclusion of errno.h so it follows that of
22125 sys/types.h, to work around system header problems on AIX 3.2.5.
22128 2000-04-07 Bruno Haible <haible@clisp.cons.org>
22130 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
22131 bug. Deal with the different error behavior of Irix iconv.
22133 2000-04-05 Paul Eggert <eggert@twinsun.com>
22135 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
22136 IRIX if the installer said otherwise.
22138 2000-04-05 Jim Meyering <meyering@lucent.com>
22140 Portability tweaks required for ultrix4.3.
22141 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
22142 (jm_CHECK_DECLS): Add getutent to the list of functions.
22143 (_jm_DECL_HEADERS): Add utmpx.h.
22144 From John David Anglin.
22146 * m4/strftime.m4: Back out the 2000-04-02 change.
22147 Instead of that change, simply undefine putenv in the test program.
22149 2000-04-05 Jim Meyering <meyering@lucent.com>
22151 Portability tweaks required for ultrix4.3.
22152 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
22154 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
22155 * lib/canon-host.c: Declare strdup.
22156 * lib/path-concat.c: Likewise.
22157 From John David Anglin.
22159 2000-04-04 Jim Meyering <meyering@lucent.com>
22161 Be more DOS 8.3-friendly.
22162 * lib/ref-add.sin: Renamed from ref-add.sed.in.
22163 * lib/ref-del.sin: Renamed from ref-del.sed.in.
22164 * lib/Makefile.am: Reflect renaming.
22165 Reported by Eli Zaretskii.
22167 Use a temporary file name that won't clash with `charset.alias'
22168 in the DOS 8.3 name space.
22169 * lib/Makefile.am (charset_tmp): Define.
22170 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
22171 (uninstall-local): Likewise.
22172 Reported by Eli Zaretskii.
22174 2000-04-03 Jim Meyering <meyering@lucent.com>
22176 * m4/gettext.m4: Fix typo in comment.
22178 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
22179 textutils/configure.in). Suggestion from Paul Eggert.
22180 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
22182 2000-04-02 Paul Eggert <eggert@twinsun.com>
22184 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
22185 variable in the shell rather than using putenv, which isn't
22186 portable. This avoids the configure-time inter-test dependency
22187 on the potentially-renamed putenv function.
22189 2000-03-30 Paul Eggert <eggert@twinsun.com>
22191 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
22192 before checking struct stat.st_blksize, so that
22193 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
22195 2000-03-29 Paul Eggert <eggert@twinsun.com>
22197 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
22198 since strftime.c uses HAVE_STRFTIME to decide whether to use
22199 the underlying strftime.
22201 2000-03-29 Paul Eggert <eggert@twinsun.com>
22203 * lib/time/strftime.c (my_strftime): Make sure we call the system
22204 strftime, not ourselves, when invoking the underlying strftime.
22206 2000-03-24 Jim Meyering <meyering@lucent.com>
22208 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
22209 (charset_alias): Define.
22210 (install-exec-local): Factor out common code.
22211 (uninstall-local): Split lines longer than 80.
22212 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
22213 (SUFFIXES): Define.
22214 (.sed.in.sed): New rule. Don't redirect directly to $@.
22215 (CLEANFILES): Add ref-add.sed and ref-del.sed.
22217 2000-03-19 Bruno Haible <haible@clisp.cons.org>
22219 * lib/config.charset: Output a line containing "Packages using this
22221 * lib/ref-add.sed.in, ref-del.sed.in: New files.
22222 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
22223 ref-del.sed): New rules.
22225 2000-03-17 Jim Meyering <meyering@lucent.com>
22227 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
22228 Otherwise, include <strings.h>
22230 2000-03-17 Bruno Haible <haible@clisp.cons.org>
22232 * lib/unicodeio.c (utf8_wctomb): New function.
22233 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
22234 format instead of in UCS-4 with platform dependent endianness.
22236 2000-03-10 Jim Meyering <meyering@lucent.com>
22238 * m4/lib-check.m4: Look for getspnam in -lgen, too.
22239 From Marco Franzen.
22241 2000-03-07 Paul Eggert <eggert@twinsun.com>
22243 * lib/savedir.c (savedir): Work even if directory size is
22244 negative; this can happen with some screwy NFS configurations.
22246 2000-03-06 Jim Meyering <meyering@lucent.com>
22248 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
22249 if it's NULL (because we ran out of memory). From Bruno Haible.
22251 2000-03-05 Jim Meyering <meyering@lucent.com>
22253 * lib/localcharset.c ("path-concat.h"): Include.
22254 (get_charset_aliases): Use path_concat instead of ANSI string
22257 * lib/unicodeio.h (PARAMS): Define.
22258 Use it to guard prototype.
22260 2000-03-04 Jim Meyering <meyering@lucent.com>
22262 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
22263 for lib/localcharset.c.
22265 2000-03-04 Jim Meyering <meyering@lucent.com>
22267 * lib/Makefile.am (install-exec-local): Create $(libdir) before
22268 installing into it.
22269 (uninstall-local): Uncomment this rule so `make distcheck' works
22272 * lib/unicodeio.c (<errno.h>): Include it.
22273 (errno): Declare if not defined.
22275 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
22277 * lib/config.charset: New version, incorporating remarks from a linux
22278 i18n mailing list. From Bruno Haible.
22280 2000-03-04 Bruno Haible <haible@clisp.cons.org>
22282 * m4/codeset.m4: New file.
22283 * m4/iconv.m4: New file.
22284 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
22286 2000-03-03 Jim Meyering <meyering@lucent.com>
22288 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
22290 2000-03-02 Jim Meyering <meyering@lucent.com>
22292 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
22293 the messages come out on separate lines.
22295 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
22296 rather than jm_CHECK_DECLARATIONS.
22297 * m4/decl.m4: Remove now-unused file.
22299 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
22302 2000-03-02 Jim Meyering <meyering@lucent.com>
22304 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
22306 2000-03-01 Jim Meyering <meyering@lucent.com>
22308 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
22309 * lib/unicodeio.c: Likewise.
22311 2000-03-01 Bruno Haible <haible@clisp.cons.org>
22313 * lib/config.charset: New file.
22314 * lib/localcharset.c: New file.
22315 * lib/unicodeio.h, unicodeio.c: New files.
22316 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
22317 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
22318 (noinst_HEADERS): Add unicodeio.h.
22319 (all-local, install-exec-local, charset.alias): New targets.
22321 2000-02-28 Paul Eggert <eggert@twinsun.com>
22323 * lib/quotearg.c (ALERT_CHAR): New macro.
22324 (quotearg_buffer_restyled): Use it.
22326 2000-02-27 Jim Meyering <meyering@lucent.com>
22328 * m4/check-decl.m4: Add getenv to the list.
22330 2000-02-27 Jim Meyering <meyering@lucent.com>
22332 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
22333 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
22335 * lib/backupfile.c: Guard inclusion of stdlib.h with
22336 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
22337 Declare malloc if needed.
22339 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
22340 `#ifndef HAVE_DECL..'
22341 now that autoconf always defines the HAVE_DECL_ symbols.
22342 * lib/human.c: Likewise.
22343 * lib/same.c: Likewise.
22344 * lib/strtoumax.c: Likewise.
22346 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
22347 declaration check was not run.
22348 * lib/hash.c: Likewise.
22349 * lib/human.c: Likewise.
22350 * lib/same.c: Likewise.
22351 * lib/strtoumax.c: Likewise.
22353 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
22354 `.', then first look up the entire `.'-containing string as a login
22357 2000-02-23 Jim Meyering <meyering@lucent.com>
22359 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
22360 in place of my hack.
22362 2000-02-18 Paul Eggert <eggert@twinsun.com>
22364 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
22365 (textint): New typedef.
22366 (parser_control): Member year changed from int to textint.
22368 (YYSTYPE): Removed; replaced by %union with int and textint members.
22369 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
22370 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
22371 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
22372 (tSNUMBER, tUNUMBER): Now of type <textintval>.
22373 (date, number, to_year): Use width of number in digits, not its value,
22374 to determine whether it's a 2-digit year, or a 2-digit time.
22375 (yylex): Store number of digits of numeric tokens.
22376 Reported by John Kendall.
22378 (parser_control): Changed from struct parser_control to typedef (for
22379 consistency). All uses changed.
22381 (tID): Removed; not used.
22382 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
22384 2000-02-14 Paul Eggert <eggert@twinsun.com>
22386 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
22387 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
22389 2000-02-12 Jim Meyering <meyering@lucent.com>
22391 * lib/userspec.c (ISDIGIT): Define it.
22392 (isdigit): Remove definition.
22393 (is_number): Use ISDIGIT, not isdigit.
22394 <libintl.h>: Include.
22395 (_ and N_): Define.
22396 (parse_user_spec): Mark translatable strings.
22398 2000-02-10 Jim Meyering <meyering@lucent.com>
22400 With these changes, nanosleep.[ch] are finally enough like the other
22401 lib/* replacement files to compile on a few more losing systems.
22403 * lib/nanosleep.h: Don't include config.h.
22404 Remove prototype from declaration of nanosleep.
22405 (PARAMS): Remove now-unneeded definition.
22406 * lib/nanosleep.c: #undef nanosleep.
22407 (rpl_nanosleep): Rename from nanosleep.
22409 2000-02-10 Jim Meyering <meyering@lucent.com>
22411 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
22412 gnu_nanosleep to rpl_nanosleep.
22414 2000-02-09 Jim Meyering <meyering@lucent.com>
22416 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
22417 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
22419 2000-02-08 Akim Demaille <akim@epita.fr>
22421 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
22422 `[' and `]' and remove uses of `changequote'.
22423 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
22424 (AC_SYS_LARGEFILE): Likewise.
22425 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22426 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
22428 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
22429 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
22430 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
22431 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
22433 2000-02-05 Jim Meyering <meyering@lucent.com>
22435 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
22436 Remove explicit use of AC_HEADER_TIME. It is required by
22437 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
22438 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
22439 in autoconf whereby the expansion of the latter ended up preceding
22440 the expansion of its prerequisite, AC_HEADER_TIME.
22441 Reported by Volker Borchert.
22443 2000-02-03 Jim Meyering <meyering@lucent.com>
22445 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
22447 2000-02-03 Jim Meyering <meyering@lucent.com>
22449 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
22450 rather than with `#if HAVE_UTMPNAME'.
22452 2000-02-02 Jim Meyering <meyering@lucent.com>
22454 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
22455 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
22456 Reported by Eli Zaretskii.
22458 2000-02-01 Jim Meyering <meyering@lucent.com>
22460 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
22462 2000-01-31 Jim Meyering <meyering@lucent.com>
22464 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
22465 functions. Add the time.h and sys/time.h headers along with the
22466 AC_REQUIRE'ment of AC_HEADER_TIME.
22468 2000-01-31 Jim Meyering <meyering@lucent.com>
22470 * lib/nanosleep.h (nanosleep): Guard declaration with
22471 `#if ! HAVE_DECL_NANOSLEEP'.
22472 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
22473 the declaration in that vendor's sys/timers.h.
22474 Reported by Christian Krackowizer.
22476 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
22477 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
22478 (ISPRINT): Likewise.
22479 Reported by Tom Tromey.
22481 2000-01-30 Jim Meyering <meyering@lucent.com>
22483 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
22485 * m4/prereq.m4 (utmp_includes): Define.
22486 Check for ut_user and ut_name members in both struct utmpx
22489 2000-01-30 Jim Meyering <meyering@lucent.com>
22491 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
22492 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
22493 header files where only utmpx.ut_user is declared.
22495 * lib/readutmp.h (UT_USER): Define.
22497 2000-01-29 Jim Meyering <meyering@lucent.com>
22499 * m4/lib-check.m4: New file containing library-related checks from
22500 fileutils and sh-utils (textutils had none).
22502 2000-01-28 Jim Meyering <meyering@lucent.com>
22504 * m4/perl.m4: Change format of warning message to look more like that
22505 from the missing script. Suggestion from François Pinard.
22507 2000-01-25 Jim Meyering <meyering@lucent.com>
22509 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
22510 well as time.h in the compile check.
22511 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
22512 Fix typo in cross-compiling case: s/yes/no/.
22514 2000-01-23 Jim Meyering <meyering@lucent.com>
22516 * m4/jm-macros.m4: Move df-related tests here from
22517 fileutils/configure.in
22519 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
22520 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
22522 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
22523 s/space/ac_fsusage_space/.
22524 (jm_FILE_SYSTEM_USAGE): Take two parameters.
22526 * m4/ftruncate.m4: New file (derived from part of
22527 fileutils/configure.in).
22528 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
22529 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
22531 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
22532 AC_SUBST these here, rather than just in sh-util/configure.in, so
22533 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
22535 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
22536 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
22537 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
22538 (AC_SUBST(POW_LIBM)): Likewise.
22539 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
22541 2000-01-23 Jim Meyering <meyering@lucent.com>
22543 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
22546 2000-01-22 Jim Meyering <meyering@lucent.com>
22548 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
22550 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
22552 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
22554 (AC_CHECK_HEADERS): Likewise for sh-utils.
22555 (AC_CHECK_HEADERS): Likewise for textutils.
22556 Merge the three lists of headers.
22558 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
22559 from fileutils' configure.in.
22561 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
22562 code. Moved tests into their own function (_jm_DECL_HEADERS) in
22565 * m4/check-decl.m4: Use #if rather than #ifdef.
22566 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
22567 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
22568 (_jm_DECL_HEADERS): Define new function.
22569 (jm_CHECK_DECLARATIONS): Require it.
22571 2000-01-22 Jim Meyering <meyering@lucent.com>
22573 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
22574 [! HAVE_DECL_STRTOULL]: Declare strtoull.
22575 Required for some AIX systems. Reported by Christian Krackowizer.
22576 [TESTING] (main): New function.
22578 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
22579 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
22582 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
22585 * lib/strverscmp.c (ISDIGIT): Define.
22586 (strverscmp): Use ISDIGIT, not isdigit.
22588 2000-01-19 Jim Meyering <meyering@lucent.com>
22590 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
22591 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
22592 defines `struct timespec' in <sys/time.h>
22594 * m4/c-bs-a.m4: Remove uses of changequote altogether.
22595 Thanks to Akim for explaining.
22597 2000-01-17 Paul Eggert <eggert@twinsun.com>
22599 * lib/nanosleep.c (nanosleep):
22600 Don't use SA_INTERRUPT to decide whether to call sigaction, as
22601 POSIX.1 doesn't require SA_INTERRUPT and some systems
22602 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
22603 it's been part of POSIX.1 since day 1 (in 1988).
22605 2000-01-17 Jim Meyering <meyering@lucent.com>
22607 * lib/interlock: Remove unused file. Reported by François Pinard.
22609 2000-01-16 Paul Eggert <eggert@twinsun.com>
22611 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
22612 alert, backslash, formfeed, and vertical tab unnecessarily in
22613 shell quoting style.
22615 2000-01-16 Jim Meyering <meyering@lucent.com>
22617 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
22618 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
22619 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
22620 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
22622 2000-01-16 Jim Meyering <meyering@lucent.com>
22624 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
22625 because the latter didn't work.
22627 2000-01-15 Jim Meyering <meyering@lucent.com>
22629 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
22630 (AC_REPLACE_FUNCS): Add memcpy and memset.
22631 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
22633 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
22635 2000-01-12 Jim Meyering <meyering@lucent.com>
22637 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
22638 (jm_PREREQ): Use it.
22639 (jm_PREREQ_READUTMP): New macro.
22640 (jm_PREREQ): Use it.
22642 2000-01-11 Paul Eggert <eggert@twinsun.com>
22644 Quote multibyte characters correctly.
22645 * m4/c-bs-a.m4: New file.
22646 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
22647 (jm_PREREQ): Use it.
22649 2000-01-11 Paul Eggert <eggert@twinsun.com>
22651 * m4/uintmax_t.m4: Port to autoconf 2.13.
22653 2000-01-08 Jim Meyering <meyering@ascend.com>
22655 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
22656 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
22658 2000-01-04 Jim Meyering <meyering@ascend.com>
22660 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
22661 jm_STRUCT_DIRENT_D_TYPE.
22662 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
22663 jm_STRUCT_DIRENT_D_INO.
22664 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
22666 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
22668 * m4/utime.m4: Likewise.
22670 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
22671 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
22673 2000-01-03 Paul Eggert <eggert@twinsun.com>
22675 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
22676 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
22678 2000-01-02 Jim Meyering <meyering@ascend.com>
22680 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
22681 remember if this is necessary.
22683 1999-12-26 Jim Meyering <meyering@ascend.com>
22685 * m4/jm-macros.m4: Use it here.
22686 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
22688 1999-12-23 Jim Meyering <meyering@ascend.com>
22690 * m4/jm-macros.m4: Check for clock_gettime (moved from
22691 fileutils/configure.in)
22692 Check for gettimeofday.
22694 1999-12-20 Jim Meyering <meyering@ascend.com>
22696 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
22697 autoconf-2.14a-1999-12-20.
22699 1999-12-19 Jim Meyering <meyering@ascend.com>
22701 * m4/lstat-slash.m4: New file.
22702 * m4/jm-macros.m4: Use the new macro:
22703 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
22705 1999-12-07 Jim Meyering <meyering@ascend.com>
22707 * m4/perl.m4: Require that File::Compare be available, too.
22708 Too many systems seem to lack it.
22710 * m4/strftime.m4: Add checks for most of the cpp macros tested in
22711 GNU's strftime.c. Prompted by a patch from Paul Eggert.
22713 1999-11-18 Paul Eggert <eggert@twinsun.com>
22715 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
22716 problem with the QNX 4.25 shell, which doesn't propagate exit
22717 status of failed commands inside shell assignments.
22719 1999-11-17 Jim Meyering <meyering@ascend.com>
22721 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
22723 1999-11-07 Jim Meyering <meyering@ascend.com>
22725 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
22727 1999-11-06 Jim Meyering <meyering@ascend.com>
22729 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
22730 * m4/jm-macros.m4 (jm_MACROS): Use it here.
22732 1999-11-05 Jim Meyering <meyering@ascend.com>
22734 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
22735 configure.in of textutils, fileutils, and sh-utils into this one
22736 (shared between those packages) file.
22737 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
22738 AC_STRUCT_ST_BLKSIZE.
22740 1999-11-03 Jim Meyering <meyering@ascend.com>
22742 * m4/ssize_t.m4: Remove file. No longer needed since the new version
22743 of AC_CHECK_TYPE checks includes unistd.h.
22744 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
22745 Suggestion from Akim Demaille.
22747 1999-10-30 Jim Meyering <meyering@ascend.com>
22749 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
22751 * m4/ls-mntd-fs.m4: Likewise.
22752 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
22753 * m4/jm-winsz1.m4: Likewise.
22755 * m4/const.m4: Remove file, since the fix made it into the experimental
22756 version of autoconf.
22757 * m4/mktime.m4: Likewise.
22759 * m4/check-type.m4: Remove file, now that the latest version of
22760 AC_CHECK_TYPE takes a third arg to specify additional #includes.
22762 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
22763 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
22766 1999-10-04 Jim Meyering <meyering@ascend.com>
22768 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
22770 1999-09-22 Paul Eggert <eggert@twinsun.com>
22772 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
22773 2.95.1 bug with HP-UX 10.20.
22775 1999-09-17 Jim Meyering <meyering@ascend.com>
22777 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
22778 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
22779 due to missing strdup (against sh-utils-2.0).
22781 1999-08-29 Jim Meyering <meyering@ascend.com>
22783 * m4/jm-macros.m4: Require jm_BISON.
22784 * m4/bison.m4: New file.
22786 1999-08-17 Paul Eggert <eggert@twinsun.com>
22788 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
22789 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
22791 1999-08-05 Jim Meyering <meyering@ascend.com>
22793 * m4/getline.m4: Rename test file from conftestdata to conftest.data
22794 to avoid conflicts with `conftest' on 8+3 filesystems.
22795 Suggestion from Eli Zaretskii.
22797 1999-08-04 Jim Meyering <meyering@ascend.com>
22799 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
22800 fileutils and sh-utils (textutils's getline test was inadequate).
22801 (AM_FUNC_GETLINE): Run this test.
22802 (AC_CHECK_FUNCS): Check for getdelim.
22803 Reported by Bob Proulx.
22805 1999-08-02 Jim Meyering <meyering@ascend.com>
22807 * m4/jm-macros.m4: Add a comment.
22809 1999-08-01 Paul Eggert <eggert@twinsun.com>
22811 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
22812 <inttypes.h> defines strtoumax as a macro (and not as a
22815 1999-08-01 Paul Eggert <eggert@twinsun.com>
22817 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
22818 that we can shift, multiply and divide unsigned long long
22819 values; Ultrix cc can't do it.
22821 1999-08-01 Paul Eggert <eggert@twinsun.com>
22823 * m4/mktime.m4: New file, which is a preview of what should appear
22824 in the next public autoconf release.
22826 1999-08-01 Paul Eggert <eggert@twinsun.com>
22828 * m4/lfs.m4: Remove this file.
22829 * m4/largefile.m4: New file. It contains the old contents of
22830 lfs.m4, except that all names with prefix AC_LFS have been
22831 changed to use the prefix AC_SYS_LARGEFILE instead, to be
22832 compatible with future autoconf versions. Also, some minor m4
22833 quoting problems have been fixed.
22835 1999-08-01 Paul Eggert <eggert@twinsun.com>
22837 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
22838 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
22839 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
22840 and simplify the shell code.
22842 1999-08-01 Jim Meyering <meyering@ascend.com>
22844 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
22847 1999-07-20 Jim Meyering <meyering@ascend.com>
22849 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
22851 1999-07-15 Jim Meyering <meyering@ascend.com>
22853 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
22855 1999-05-22 Jim Meyering <meyering@ascend.com>
22857 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
22859 1999-05-20 Jim Meyering <meyering@ascend.com>
22861 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
22862 Add a colon after each `then' in case $4 is empty.
22864 1999-05-16 Jim Meyering <meyering@ascend.com>
22866 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
22868 1999-05-10 Jim Meyering <meyering@ascend.com>
22870 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
22872 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
22875 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
22877 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
22879 1999-05-04 Paul Eggert <eggert@twinsun.com>
22881 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
22882 not CPPFLAGS, so that linking works correctly in IRIX.
22884 1999-04-30 Paul Eggert <eggert@twinsun.com>
22886 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
22888 1999-04-20 Paul Eggert <eggert@twinsun.com>
22890 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
22891 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
22892 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
22893 jm_AC_TYPE_UNSIGNED_LONG_LONG.
22894 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
22896 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
22898 1999-04-20 Jim Meyering <meyering@ascend.com>
22900 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
22901 AC_REPLACE xstroull if necessary. From Paul Eggert.
22902 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
22904 1999-04-18 Jim Meyering <meyering@ascend.com>
22906 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
22907 * m4/jm-macros.m4: Use it.
22909 1999-04-06 Jim Meyering <meyering@ascend.com>
22911 * m4/strftime.m4: Remove test for %f.
22913 1999-03-29 Jim Meyering <meyering@ascend.com>
22915 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
22916 superset of the AC_TYPE_* checks in the textutils, fileutils,
22917 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
22920 1999-03-28 Jim Meyering <meyering@ascend.com>
22922 * m4/jm-macros.m4: Define GNU_PACKAGE here.
22923 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
22924 replaced e.g., in the *.sh files of the sh-utils.
22926 1999-03-20 Jim Meyering <meyering@ascend.com>
22928 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
22929 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
22930 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
22932 1999-03-19 Jim Meyering <meyering@ascend.com>
22934 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
22936 1999-03-12 Jim Meyering <meyering@ascend.com>
22938 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
22940 1999-03-07 Jim Meyering <meyering@ascend.com>
22942 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
22945 1999-02-17 Jim Meyering <meyering@ascend.com>
22947 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
22948 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
22950 1999-02-07 Jim Meyering <meyering@ascend.com>
22952 * m4/group-member.m4: New file -- extracted from sh-utils'
22955 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
22956 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
22958 1999-02-06 Jim Meyering <meyering@ascend.com>
22960 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
22961 * m4/fnmatch.m4: Likewise.
22962 * m4/getgroups.m4: Likewise.
22963 * m4/lstat.m4: Likewise.
22964 * m4/malloc.m4: Likewise.
22965 * m4/putenv.m4: Likewise.
22966 * m4/realloc.m4: Likewise.
22967 * m4/regex.m4: Likewise.
22968 * m4/stat.m4: Likewise.
22969 * m4/strftime.m4: Likewise.
22970 Suggestion from Alain Magloire.
22972 * m4/chown.m4: Use `.$ac_objext', not `.o'.
22973 * m4/fnmatch.m4: Likewise.
22974 * m4/getgroups.m4: Likewise.
22975 * m4/getline.m4: Likewise.
22976 * m4/lstat.m4: Likewise.
22977 * m4/malloc.m4: Likewise.
22978 * m4/memcmp.m4: Likewise.
22979 * m4/putenv.m4: Likewise.
22980 * m4/realloc.m4: Likewise.
22981 * m4/regex.m4: Likewise.
22982 * m4/stat.m4: Likewise.
22983 * m4/strftime.m4: Likewise.
22984 Suggestion from Alain Magloire.
22986 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
22989 * m4/regex.m4: Add a run-time Test for proper operation of
22990 re_compile_pattern.
22992 1999-01-31 Jim Meyering <meyering@ascend.com>
22994 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
22996 1999-01-30 Jim Meyering <meyering@ascend.com>
22998 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
23000 * m4/jm-mktime.m4: Make this a wrapper around the official
23001 AM_FUNC_MKTIME rather than my private copy, now that the official one
23003 * m4/mktime.m4: Remove file.
23005 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
23006 * m4/uptime.m4: Likewise.
23007 * m4/uintmax_t.m4: Likewise.
23009 1999-01-28 Jim Meyering <meyering@ascend.com>
23011 * m4/jm-macros.m4: Use jm_AFS.
23012 * m4/afs.m4: New file (from fileutils' configure.in).
23014 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
23015 * m4/chown.m4: Likewise.
23016 * m4/d-ino.m4: Likewise.
23017 * m4/d-type.m4: Likewise.
23018 * m4/fnmatch.m4: Likewise.
23019 * m4/getgroups.m4: Likewise.
23020 * m4/gettext.m4: Likewise.
23021 * m4/jm-mktime.m4: Likewise.
23022 * m4/jm-winsz2.m4: Likewise.
23023 * m4/lcmessage.m4: Likewise.
23024 * m4/ls-mntd-fs.m4: Likewise.
23025 * m4/malloc.m4: Likewise.
23026 * m4/memcmp.m4: Likewise.
23027 * m4/putenv.m4: Likewise.
23028 * m4/realloc.m4: Likewise.
23029 * m4/st_mtim.m4: Likewise.
23030 * m4/strftime.m4: Likewise.
23032 1999-01-16 Jim Meyering <meyering@ascend.com>
23034 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
23035 (ARGMATCH_DIE_DECL): Define.
23037 1999-01-12 Jim Meyering <meyering@ascend.com>
23039 * m4/Makefile.am.in: Rewrite to avoid using fmt.
23040 Reported by Lars Hecking.
23042 1999-01-10 Jim Meyering <meyering@ascend.com>
23044 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
23046 * m4/inttypes_h.m4: Likewise.
23047 * m4/lstat.m4: Likewise.
23048 * m4/malloc.m4: Likewise.
23049 * m4/readdir.m4: Likewise.
23050 * m4/realloc.m4: Likewise.
23051 * m4/st_dm_mode.m4: Likewise.
23052 * m4/stat.m4: Likewise.
23053 * m4/utimbuf.m4: Likewise.
23054 * m4/utimes.m4: Likewise.
23056 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
23057 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
23058 comments in config.h.in are meaningful.
23060 * m4/jm-macros.m4: Require autoconf-2.13 here.
23062 * m4/regex.m4: By default, don't use the included regex.c on systems
23063 with glibc 2. Suggestion from Uli Drepper.
23065 1999-01-02 Jim Meyering <meyering@ascend.com>
23067 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
23069 1998-12-18 Jim Meyering <meyering@ascend.com>
23071 * m4/Makefile.am.in (Makefile.am): Simplify rule.
23072 Based on a suggestion from Lars Hecking.
23074 1998-11-16 Paul Eggert <eggert@twinsun.com>
23076 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
23078 1998-11-16 Jim Meyering <meyering@ascend.com>
23080 * m4/lfs.m4: Double-quote the `uname...` expression.
23082 1998-11-14 Jim Meyering <meyering@ascend.com>
23084 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
23085 * m4/stat.m4: Likewise.
23087 1998-11-03 Jim Meyering <meyering@ascend.com>
23089 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
23090 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
23092 1998-10-18 Jim Meyering <meyering@ascend.com>
23094 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
23096 1998-10-17 Jim Meyering <meyering@ascend.com>
23098 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
23099 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
23100 calls for those previously hard-coded headers. Instead, take a new
23102 (jm_CHECK_DECLARATIONS): Reflect interface change.
23103 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
23104 (jm_CHECK_DECL_LOCALTIME_R): New macro.
23106 * m4/mktime.m4: Test for spring-forward gap before long-running test.
23108 1998-10-14 Jim Meyering <meyering@ascend.com>
23110 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
23111 instead of "TZ=America/Vancouver". From Paul Eggert.
23113 1998-10-11 Jim Meyering <meyering@ascend.com>
23115 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
23116 This adds a test for a recently added compatibility fix for mktime.c.
23117 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
23119 1998-09-27 Jim Meyering <meyering@ascend.com>
23121 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
23123 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
23124 ../configure.in, including a change from Gordon Matzigkeit to allow
23125 cross-compiling for the Hurd.
23127 * m4/glibc.m4: New file/macro to test for the GNU C Library
23128 versions 1 and 2. From Gordon Matzigkeit.
23131 1998-09-21 Jim Meyering <meyering@ascend.com>
23133 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
23135 1998-08-18 Paul Eggert <eggert@twinsun.com>
23137 Port nanosecond-resolution times to UnixWare 2.1.2 and
23138 pedantic Solaris 2.6.
23140 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
23142 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
23143 Generate name of ns member, instead of just 1 or undef.
23144 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
23146 1998-08-15 Jim Meyering <meyering@ascend.com>
23148 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
23149 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
23150 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
23151 instead of jm_TYPE_SSIZE_T.
23153 1998-08-12 Jim Meyering <meyering@ascend.com>
23155 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
23157 1998-08-02 Jim Meyering <meyering@ascend.com>
23159 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
23160 in acconfig.h manually.
23162 1998-07-31 Paul Eggert <eggert@twinsun.com>
23164 * m4/st_mtim.m4: New file.
23166 1998-07-28 Jim Meyering <meyering@ascend.com>
23168 * m4/utimes.m4: Undef stat.
23170 1998-07-25 Jim Meyering <meyering@ascend.com>
23172 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
23173 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
23175 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
23177 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
23178 uid and gid actually remain unchanged.
23180 1998-07-07 Jim Meyering <meyering@ascend.com>
23182 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
23184 1998-07-04 Jim Meyering <meyering@ascend.com>
23186 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
23187 to prove that this macro can be used in packages without regex.c.
23189 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
23191 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
23194 1998-07-03 Jim Meyering <meyering@ascend.com>
23196 * m4/gettext.m4: Add -lintl if it's found to be necessary.
23198 * m4/gettext.m4: New file -- from gettext-0.10.35.
23199 * m4/lcmessage.m4: Likewise.
23200 * m4/progtest.m4: Likewise.
23202 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
23203 * m4/jm-macros.m4: Require the new macro.
23205 1998-06-29 Jim Meyering <meyering@ascend.com>
23207 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
23208 for the definition of NGROUPS (used in a system header included
23211 1998-06-28 Jim Meyering <meyering@ascend.com>
23213 * m4/ls-mntd-fs.m4: New file.
23214 * m4/fstypename.m4: New file.
23216 * m4/jm-macros.m4: Require the new macro.
23217 * m4/jm-glibc-io.m4: New file.
23219 1998-05-19 Jim Meyering <meyering@ascend.com>
23221 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
23222 * m4/lchown.m4: New file.
23224 * m4/Makefile.am.in: New file.
23225 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
23227 1998-05-14 Jim Meyering <meyering@ascend.com>
23229 * m4/Makefile.am (EXTRA_DIST): Add them.
23230 * m4/jm-macros.m4: New file.
23231 * m4/utimbuf.m4: New file.
23233 1998-05-12 Jim Meyering <meyering@ascend.com>
23235 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
23237 1998-05-11 Jim Meyering <meyering@ascend.com>
23239 * m4/isc-posix.m4: New file.
23241 1998-05-10 Jim Meyering <meyering@ascend.com>
23243 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
23245 1998-05-09 Jim Meyering <meyering@ascend.com>
23247 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
23248 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
23251 * m4/ssize_t.m4: New file.
23252 * m4/mktime.m4: Remove file -- the new automake has this now.
23254 1998-04-26 Jim Meyering <meyering@ascend.com>
23256 * m4/assert.m4: New file.
23257 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
23259 1998-04-05 Jim Meyering <meyering@ascend.com>
23261 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
23262 (jm_PREREQ): Use it here.
23264 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
23266 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
23269 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
23271 * m4/prereq.m4: New file.
23272 * m4/error.m4: New file.
23273 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
23275 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
23277 * m4/getline.m4: Don't set am_cv_func_working_getline before the
23278 cache-check for the same variable -- that defeated the purpose of
23279 the test; the test program was never run. This was a problem only
23280 on systems with losing getline functions -- HP-UX 10.20 is one.
23281 Reported by Bjorn Helgaas.
23283 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
23285 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
23287 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
23289 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
23291 * m4/const.m4: New file. Use an initializer in this declaration
23292 typedef int charset[2]; const charset x;
23293 Reported by Bob Glickstein.
23295 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
23297 * m4/chown.m4: Fix reversed types on -1 args to chown.
23300 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
23302 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
23303 Add lseek and memchr.
23305 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
23306 T.E.Dickey <dickey@clark.net> said that some older preprocessors
23307 have a 20-character limit on names.
23309 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
23311 * m4/inttypes_h.m4: New file.
23312 * m4/uintmax_t.m4: New file.
23313 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
23315 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
23316 Free Software Foundation, Inc.
23317 Copying and distribution of this file, with or without modification,
23318 are permitted provided the copyright notice and this notice are preserved.