Sync from coreutils.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 23 Sep 2005 04:15:13 +0000 (04:15 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 23 Sep 2005 04:15:13 +0000 (04:15 +0000)
commit7c3f8da8f075e3813ced160d5b53a28c6f7dfe78
tree0afc3b8710c221799f2a0c56f3789eb1ce79678f
parent0fb0ad9d8f4a7ed68078ac87e42b9126e2279736
Sync from coreutils.

* .cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
stat-time.h.
* argmatch.h: Include verify.h
(ARGMATCH_VERIFY): Use verify rather than rolling our own.
(ARGMATCH_ASSERT): Remove; unused.
* canonicalize.c: Assume STDC_HEADERS.
* exclude.c: Include "strcase.h".
* regex_internal.h [!defined _LIBC]: Likewise.
* getusershell.c: Include stdio--.h rather than stdio.h
and stdio-safer.h.
(getusershell): Call fopen, not fopen_safer.
* save-cwd.c: Include fcntl--.h rather than fcntl.h.
Do not include unistd-safer.h.
(save_cwd): Don't call fd_safer; no longer needed
now that we include fcntl--.h.

* modules/argmatch (Depends-on): Add verify.
* modules/getloadavg (Depends-on): Depend on fcntl-safer, not
unistd-safer.
* modules/save-cwd (Depends-on): Likewise.

* backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
* fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
* getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
* mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
* physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
* save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
* userspec.m4, xgetcwd.m4, xreadlink.m4:
Don't bother checking for string.h, stdlib.h, unistd.h.
* fts.m4 (gl_FUNC_FTS_CORE): Don't require
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
module's job.
* jm-macros.m4 (gl_MACROS): Likewise.
* prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.

* backupfile.c: Use ARGMATCH_VERIFY, just in case.
* posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
the .tm_year member, since otherwise gcc-4.0 would now warn about
tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
* quotearg.c (quotearg_n_options): Change code to be suboptimal, in
order to avoid an unsuppressible warning from gcc on 64-bit systems.

* lstat.m4 (gl_FUNC_LSTAT):
Use AC_LIBSOURCES to require lstat.c and lstat.h.
Remove obsolete comment.
* xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
* xstrtod.m4: Likewise.
82 files changed:
ChangeLog
lib/.cppi-disable
lib/ChangeLog
lib/argmatch.h
lib/backupfile.c
lib/canonicalize.c
lib/chown.c
lib/cloexec.c
lib/dup2.c
lib/euidaccess.c
lib/exclude.c
lib/fileblocks.c
lib/fsusage.c
lib/ftruncate.c
lib/getcwd.c
lib/getcwd.h
lib/getopt_.h
lib/getpagesize.h
lib/getugroups.c
lib/getusershell.c
lib/group-member.c
lib/human.h
lib/idcache.c
lib/inttostr.h
lib/mountlist.c
lib/nanosleep.c
lib/pathmax.h
lib/physmem.c
lib/posixtm.c
lib/posixver.c
lib/putenv.c
lib/quotearg.c
lib/raise.c
lib/regex_internal.h
lib/safe-read.c
lib/same.c
lib/save-cwd.c
lib/settime.c
lib/tempname.c
lib/unlinkdir.c
lib/userspec.c
lib/xgethostname.c
lib/xreadlink.c
m4/ChangeLog
m4/backupfile.m4
m4/calloc.m4
m4/canonicalize.m4
m4/chown.m4
m4/cloexec.m4
m4/dup2.m4
m4/fileblocks.m4
m4/free.m4
m4/ftruncate.m4
m4/fts.m4
m4/getcwd.m4
m4/getpagesize.m4
m4/getugroups.m4
m4/group-member.m4
m4/idcache.m4
m4/link-follow.m4
m4/lstat.m4
m4/mkstemp.m4
m4/mktime.m4
m4/mountlist.m4
m4/nanosleep.m4
m4/pathmax.m4
m4/physmem.m4
m4/posixver.m4
m4/putenv.m4
m4/safe-read.m4
m4/same.m4
m4/save-cwd.m4
m4/stdio-safer.m4
m4/unistd-safer.m4
m4/unlinkdir.m4
m4/userspec.m4
m4/xgetcwd.m4
m4/xreadlink.m4
m4/xstrtod.m4
modules/argmatch
modules/getloadavg
modules/save-cwd