Jim Meyering [Fri, 23 Sep 2005 20:14:20 +0000 (20:14 +0000)]
.
Jim Meyering [Fri, 23 Sep 2005 20:14:01 +0000 (20:14 +0000)]
*** empty log message ***
Jim Meyering [Fri, 23 Sep 2005 20:13:49 +0000 (20:13 +0000)]
Use `verify' to ensure that our hard-coded
bytes_to_*_digits arrays are long enough. Of course, 17+-byte
integral types aren't on the near horizon, but just in case...
(MAX_INTEGRAL_TYPE_SIZE): Move definition to precede new first use.
(bytes_to_oct_digits, bytes_to_signed_dec_digits):
(bytes_to_unsigned_dec_digits, bytes_to_hex_digits): Change base
type from `char' to the clearer `unsigned int'.
Jim Meyering [Fri, 23 Sep 2005 20:00:19 +0000 (20:00 +0000)]
*** empty log message ***
Jim Meyering [Fri, 23 Sep 2005 19:59:07 +0000 (19:59 +0000)]
(gl_MACROS): AC_REQUIRE([gl_SOCKLEN_T]) here,
now that it's no longer required by getaddrinfo.m4.
Paul Eggert [Fri, 23 Sep 2005 19:40:04 +0000 (19:40 +0000)]
not needed, since socklen is a prerequisite module.
Paul Eggert [Fri, 23 Sep 2005 19:18:27 +0000 (19:18 +0000)]
* lib/utimens.c (futimens): Use futimesat if available.
Prefer it to futimes since it doesn't have the futimes bug.
* m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
Paul Eggert [Fri, 23 Sep 2005 17:52:22 +0000 (17:52 +0000)]
Fix typo in comment.
Paul Eggert [Fri, 23 Sep 2005 17:47:15 +0000 (17:47 +0000)]
(GL_CONCAT0, GL_CONCAT): Remove.
(verify): Don't use the __LINE__ trick, as it doesn't work in general.
Instead, declare a function that returns a pointer to an array,
and use verify_type__ to declare the size of the array.
Problem and germ of a solution reported by Bruno Haible.
Jim Meyering [Fri, 23 Sep 2005 14:50:22 +0000 (14:50 +0000)]
*** empty log message ***
Jim Meyering [Fri, 23 Sep 2005 14:48:21 +0000 (14:48 +0000)]
*** empty log message ***
Jim Meyering [Fri, 23 Sep 2005 14:48:14 +0000 (14:48 +0000)]
from gnulib
Jim Meyering [Fri, 23 Sep 2005 14:47:58 +0000 (14:47 +0000)]
(gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
Jim Meyering [Fri, 23 Sep 2005 12:44:07 +0000 (12:44 +0000)]
*** empty log message ***
Jim Meyering [Fri, 23 Sep 2005 12:42:45 +0000 (12:42 +0000)]
Include <config.h>. Otherwise builds with strict
C89 (e.g., Sun's /opt/SUNWspro/bin/c89) would fail due to the use
of `inline'.
Paul Eggert [Fri, 23 Sep 2005 05:13:15 +0000 (05:13 +0000)]
(gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
Paul Eggert [Fri, 23 Sep 2005 05:12:50 +0000 (05:12 +0000)]
* lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
Problem reported by Eric Blake.
(getaddrinfo): Initialize se so that it's not garbage.
Redo internal storage allocation so that it doesn't make unportable
assumptions about alignment.
Fix a memory leak.
Jim Meyering [Thu, 22 Sep 2005 09:47:36 +0000 (09:47 +0000)]
.
Jim Meyering [Thu, 22 Sep 2005 07:10:17 +0000 (07:10 +0000)]
*** empty log message ***
Paul Eggert [Thu, 22 Sep 2005 07:07:36 +0000 (07:07 +0000)]
Regenerate.
Paul Eggert [Thu, 22 Sep 2005 07:06:16 +0000 (07:06 +0000)]
Sync from gnulib.
Paul Eggert [Thu, 22 Sep 2005 07:01:24 +0000 (07:01 +0000)]
Include canon-host.h rather than declaring canon_host ourselves.
Paul Eggert [Thu, 22 Sep 2005 07:01:07 +0000 (07:01 +0000)]
Include canon-host.h rather than declaring
canon_host ourselves.
Paul Eggert [Thu, 22 Sep 2005 07:00:49 +0000 (07:00 +0000)]
Include strcase.h.
Paul Eggert [Thu, 22 Sep 2005 07:00:24 +0000 (07:00 +0000)]
(gl_PREREQ): Require gl_FUNC_GETLINE rather than
AM_FUNC_GETLINE. Require gl_FUNC_GETPASS_GNU rather than
gl_FUNC_GETPASS. Require gl_MBCHAR and gl_MBITER.
Paul Eggert [Thu, 22 Sep 2005 06:59:55 +0000 (06:59 +0000)]
no longer needed.
(gl_CHECK_ALL_HEADERS): Don't check for memory.h, mntent.h, mnttab.h,
netdb.h, stdlib.h, stdint.h, string.h, sys/filsys.h, sys/fs/s5param.h,
sys/fs_types.h, sys/fstyp.h, sys/mntent.h, sys/socket.h, sys/stafs.h,
sys/timeb.h, unistd.h. No longer needed.
Paul Eggert [Thu, 22 Sep 2005 06:59:24 +0000 (06:59 +0000)]
(_gl_DECL_HEADERS): Don't bother checking for
standard C headers, or for headers we no longer use.
Paul Eggert [Thu, 22 Sep 2005 06:58:56 +0000 (06:58 +0000)]
(libcoreutils_a_SOURCES): Add getaddrinfo.h,
mbchar.c, mbchar.h, mbuiter.h, strcase.h, strlen1.c, strnlen1.h,
strstr.h.
Paul Eggert [Thu, 22 Sep 2005 06:56:21 +0000 (06:56 +0000)]
(EEXIST, ENOTEMPTY): Remove unused macros.
Paul Eggert [Thu, 22 Sep 2005 06:44:26 +0000 (06:44 +0000)]
Nontrivial sync from gnulib.
Paul Eggert [Thu, 22 Sep 2005 06:43:48 +0000 (06:43 +0000)]
Add getline.h, getpass.c
Paul Eggert [Thu, 22 Sep 2005 06:39:14 +0000 (06:39 +0000)]
(GL_CONCAT): Remove.
Include "verify.h" instead.
(ARGMATCH_CONSTRAINT, ARGMATCH_ASSERT): Remove.
(ARGMATCH_VERIFY): Rewrite in terms of new verify macros.
Paul Eggert [Thu, 22 Sep 2005 06:33:40 +0000 (06:33 +0000)]
(X2NREALLOC, X2REALLOC): Moved here from
../lib/xalloc.h, with args properly parenthesized, and using
verify_expr rather than the old VERIFY_EXPR.
Paul Eggert [Thu, 22 Sep 2005 06:32:52 +0000 (06:32 +0000)]
(VERIFY_EXPR, X2NREALLOC, X2REALLOC): Remove.
The latter two macros are moving to ../src/system.h for now.
This reverts this file to the gnulib version.
Paul Eggert [Thu, 22 Sep 2005 06:26:54 +0000 (06:26 +0000)]
Remove; no longer used.
Paul Eggert [Thu, 22 Sep 2005 06:22:44 +0000 (06:22 +0000)]
New file, from gnulib.
Paul Eggert [Thu, 22 Sep 2005 06:22:31 +0000 (06:22 +0000)]
Add getaddrinfo.h, getdelim.h, mbchar.h,
mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
Paul Eggert [Thu, 22 Sep 2005 06:05:39 +0000 (06:05 +0000)]
Sync from gnulib.
Paul Eggert [Thu, 22 Sep 2005 05:47:40 +0000 (05:47 +0000)]
Sort.
Paul Eggert [Thu, 22 Sep 2005 05:42:26 +0000 (05:42 +0000)]
(ENOSYS): Define to EEXIST if not defined.
(make_dir_parents): Treat ENOSYS like EEXIST.
Jim Meyering [Wed, 21 Sep 2005 17:07:09 +0000 (17:07 +0000)]
.
Jim Meyering [Wed, 21 Sep 2005 16:43:17 +0000 (16:43 +0000)]
.
Jim Meyering [Wed, 21 Sep 2005 14:05:50 +0000 (14:05 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Sep 2005 14:05:45 +0000 (14:05 +0000)]
Require that this test be run as non-root.
Otherwise, it fails due to the fact that the chmod 0 . doesn't
affect root.
Jim Meyering [Tue, 20 Sep 2005 17:48:07 +0000 (17:48 +0000)]
*** empty log message ***
Jim Meyering [Tue, 20 Sep 2005 17:48:02 +0000 (17:48 +0000)]
(write_protected_non_symlink): Change comment to agree with the code.
Jim Meyering [Tue, 20 Sep 2005 13:51:20 +0000 (13:51 +0000)]
*** empty log message ***
Jim Meyering [Tue, 20 Sep 2005 13:51:01 +0000 (13:51 +0000)]
(fdopendir): Be sure to close the supplied
file descriptor before returning. This makes our replacement
implementation a little closer to Solaris's, where fdopendir
ties the file descriptor to the returned DIR* pointer.
Jim Meyering [Tue, 20 Sep 2005 13:24:29 +0000 (13:24 +0000)]
tweak
Jim Meyering [Mon, 19 Sep 2005 15:45:09 +0000 (15:45 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Sep 2005 15:45:05 +0000 (15:45 +0000)]
(unlinkat): New function.
Jim Meyering [Mon, 19 Sep 2005 15:44:57 +0000 (15:44 +0000)]
(unlinkat): Add prototype.
Jim Meyering [Mon, 19 Sep 2005 13:34:51 +0000 (13:34 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Sep 2005 13:34:47 +0000 (13:34 +0000)]
(remove_dir): Return RM_ERROR, not `1',
when attempting to remove `/' with --preserve-root.
Jim Meyering [Mon, 19 Sep 2005 06:48:06 +0000 (06:48 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Sep 2005 06:47:47 +0000 (06:47 +0000)]
(remove_cwd_entries): Syntactic tweak: move an
assignment out of an if-expression.
Jim Meyering [Sat, 17 Sep 2005 09:14:52 +0000 (09:14 +0000)]
*** empty log message ***
Jim Meyering [Sat, 17 Sep 2005 09:14:48 +0000 (09:14 +0000)]
(usage): Request that additions be sent to bug-coreutils@gnu.org, too.
Paul Eggert [Sat, 17 Sep 2005 07:45:02 +0000 (07:45 +0000)]
coreutils.texi (who invocation): Remove a stray '+'.
Paul Eggert [Sat, 17 Sep 2005 07:44:42 +0000 (07:44 +0000)]
(who invocation): Remove a stray '+'.
Paul Eggert [Sat, 17 Sep 2005 06:54:22 +0000 (06:54 +0000)]
(set_stat_atime, set_stat_ctime, set_stat_mtime): Remove; they were
buggy in the HAVE_STRUCT_STAT_ST_SPARE1 case, and they were dubious
anyway. I rewrote 'tar' to not use them any more.
Jim Meyering [Fri, 16 Sep 2005 18:19:57 +0000 (18:19 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 18:07:50 +0000 (18:07 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 18:07:46 +0000 (18:07 +0000)]
(rfc822-1): Compensate for Solaris 5.9's /bin/sh,
which emits a diagnostic to stderr when this test's LC_ALL=de_DE
cannot be honored.
Jim Meyering [Fri, 16 Sep 2005 17:54:56 +0000 (17:54 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 17:54:34 +0000 (17:54 +0000)]
whoops. Update expected output, too.
Jim Meyering [Fri, 16 Sep 2005 17:53:40 +0000 (17:53 +0000)]
(subfmt-up1): Put quotes around format string
to protect `^' from interpretation by some shells.
Add a use of OUT_SUBST to compensate for Solaris strftime's slightly
different formatting of %c.
Jim Meyering [Fri, 16 Sep 2005 09:36:04 +0000 (09:36 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 09:35:47 +0000 (09:35 +0000)]
(main): When failing to truncate, mention both the seek block count
and the block size, in case the block size is very large.
Jim Meyering [Fri, 16 Sep 2005 08:19:00 +0000 (08:19 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 08:10:15 +0000 (08:10 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 08:08:32 +0000 (08:08 +0000)]
Include fprintftime.h.
Don't include strftime.h or xanstrftime.h -- no longer needed.
(show_date): Use new fprintftime function rather than xanstrftime.
Correct comment: this function no longer handles a NULL format string.
Jim Meyering [Fri, 16 Sep 2005 08:08:00 +0000 (08:08 +0000)]
(show_date): Correct comment: this function no longer handles a
NULL format string.
Jim Meyering [Fri, 16 Sep 2005 07:59:20 +0000 (07:59 +0000)]
(show_date): Remove now-spurious braces.
Paul Eggert [Fri, 16 Sep 2005 07:58:03 +0000 (07:58 +0000)]
Regenerate.
Paul Eggert [Fri, 16 Sep 2005 07:55:12 +0000 (07:55 +0000)]
Import file time stamp resolution improvements from gnulib.
Jim Meyering [Fri, 16 Sep 2005 07:53:31 +0000 (07:53 +0000)]
.
Paul Eggert [Fri, 16 Sep 2005 07:50:33 +0000 (07:50 +0000)]
Include stat-time.h, and use its functions instead of the obsolete
TIMESPEC_NS macro.
Paul Eggert [Fri, 16 Sep 2005 07:42:56 +0000 (07:42 +0000)]
Include stat-time.h, and use its functions instead of the obsolete
TIMESPEC_NS macro.
(get_mtime): Renamed from age_of. All uses changed.
Paul Eggert [Fri, 16 Sep 2005 07:41:10 +0000 (07:41 +0000)]
Remove; no longer needed.
Paul Eggert [Fri, 16 Sep 2005 07:40:48 +0000 (07:40 +0000)]
(gl_TIMESPEC): Require AC_C_INLINE.
Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
Paul Eggert [Fri, 16 Sep 2005 07:40:19 +0000 (07:40 +0000)]
(gl_PREREQ): Require gl_STAT_TIME.
Paul Eggert [Fri, 16 Sep 2005 07:40:02 +0000 (07:40 +0000)]
(gl_CHECK_ALL_TYPES): Do not require
AC_STRUCT_ST_MTIM_NSEC; it's obsolete.
Paul Eggert [Fri, 16 Sep 2005 07:39:41 +0000 (07:39 +0000)]
Include stat-time.h.
(SYSCALL_RESOLUTION): Depend on whether various struct stat
members exist, not on the obsolescent ST_MTIM_NSEC.
(utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
Paul Eggert [Fri, 16 Sep 2005 07:39:18 +0000 (07:39 +0000)]
(ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
(MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
in a different way.
(timespec_cmp): New function.
Jim Meyering [Fri, 16 Sep 2005 07:39:08 +0000 (07:39 +0000)]
*** empty log message ***
Paul Eggert [Fri, 16 Sep 2005 07:38:17 +0000 (07:38 +0000)]
New file.
Paul Eggert [Fri, 16 Sep 2005 07:36:48 +0000 (07:36 +0000)]
New file.
Paul Eggert [Fri, 16 Sep 2005 07:36:35 +0000 (07:36 +0000)]
Add stat-time.h.
Jim Meyering [Fri, 16 Sep 2005 07:35:32 +0000 (07:35 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 07:33:41 +0000 (07:33 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 07:33:36 +0000 (07:33 +0000)]
Include fprintftime.h.
Don't include strftime.h or xanstrftime.h -- no longer needed.
(show_date): Use fprintftime rather than xanstrftime.
Jim Meyering [Fri, 16 Sep 2005 07:32:13 +0000 (07:32 +0000)]
(libcoreutils_a_SOURCES): Add fprintftime.c and fprintftime.h.
Jim Meyering [Fri, 16 Sep 2005 07:31:34 +0000 (07:31 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 07:31:29 +0000 (07:31 +0000)]
[FPRINTFTIME] (fprintftime): Provide a new interface:
size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
int utc, int nanoseconds);
Background:
date should not have to allocate a megabyte of virtual memory to
handle a format argument like +%1048575T. When implemented with
strftime, it must allocate such a buffer, use strftime to fill it
in, print it, then free it.
With fprintftime, it simply prints everything and exits.
With no need for memory allocation, that's one fewer way to fail.
Jim Meyering [Fri, 16 Sep 2005 07:01:00 +0000 (07:01 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 06:54:26 +0000 (06:54 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 06:54:19 +0000 (06:54 +0000)]
(subfmt-up1): Test the combination of the
to-upper-case modifier (^) and a conversion specifier that
expands to a string containing lower case characters.
Paul Eggert [Thu, 15 Sep 2005 19:57:04 +0000 (19:57 +0000)]
(usage, main): uname -a no longer generates the -p and -i outputs if
they are unknown.
Paul Eggert [Thu, 15 Sep 2005 19:56:35 +0000 (19:56 +0000)]
uname -a no longer generates the -p and -i outputs if they are unknown.