Jim Meyering [Fri, 6 Dec 2002 14:16:13 +0000 (14:16 +0000)]
*** empty log message ***
Jim Meyering [Fri, 6 Dec 2002 14:16:09 +0000 (14:16 +0000)]
(gobble_file): Also stat the file if it's a
regular file and --indicator-style=classify (aka -F).
Jim Meyering [Fri, 6 Dec 2002 13:47:50 +0000 (13:47 +0000)]
*** empty log message ***
Jim Meyering [Fri, 6 Dec 2002 13:47:40 +0000 (13:47 +0000)]
A test to contrast ls -F and ls --indicator-style=file-type.
Jim Meyering [Fri, 6 Dec 2002 13:38:15 +0000 (13:38 +0000)]
Add copyright notice.
(libfetish_a_SOURCES): Add unlocked-io.h.
(BUILT_SOURCES, all-local): Remove unlocked-io.h.
(DISTCLEANFILES, io_functions): Remove macros.
(EXTRA_DIST): Remove gen_uio.
(unlocked-io.h): Remove rule.
Jim Meyering [Fri, 6 Dec 2002 13:37:49 +0000 (13:37 +0000)]
remove, now that unlocked-io.h is maintained manually
Jim Meyering [Fri, 6 Dec 2002 13:37:15 +0000 (13:37 +0000)]
*** empty log message ***
Jim Meyering [Fri, 6 Dec 2002 13:37:11 +0000 (13:37 +0000)]
New file, but with proper copyright notice and
attribution. Note: this is *not* the same as the file in gnulib.
This uses #if HAVE_FUNC_UNLOCKED for each `FUNC', rather than
HAVE_DECL_FUNC_UNLOCKED. This usage is consistent with the autoconf
macro in ../m4/jm-glibc-io.m4. Modulo comments, this file still
contains exactly what was generated by gen-uio.
Jim Meyering [Fri, 6 Dec 2002 13:33:23 +0000 (13:33 +0000)]
.
Jim Meyering [Fri, 6 Dec 2002 08:33:28 +0000 (08:33 +0000)]
*** empty log message ***
Jim Meyering [Fri, 6 Dec 2002 08:28:58 +0000 (08:28 +0000)]
this is the old, generated version
Jim Meyering [Fri, 6 Dec 2002 08:23:55 +0000 (08:23 +0000)]
*** empty log message ***
Jim Meyering [Fri, 6 Dec 2002 08:23:28 +0000 (08:23 +0000)]
[defined emacs]: Include "lisp.h".
(xalloc_die) [defined emacs]: New macro.
(free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
[! defined emacs]: Include <xalloc.h>.
(POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
(pointer): Typedef to POINTER_TYPE *.
(malloc): Remove decl; we now always use xmalloc.
(alloca): Use old-style definition, since Emacs needs this.
Check for arithmetic overflow when computing combined size.
Jim Meyering [Fri, 6 Dec 2002 08:09:12 +0000 (08:09 +0000)]
update copyright from gnulib
Jim Meyering [Fri, 6 Dec 2002 07:36:39 +0000 (07:36 +0000)]
.
Jim Meyering [Wed, 4 Dec 2002 19:33:57 +0000 (19:33 +0000)]
update comment
Jim Meyering [Wed, 4 Dec 2002 19:29:46 +0000 (19:29 +0000)]
*** empty log message ***
Jim Meyering [Wed, 4 Dec 2002 19:28:22 +0000 (19:28 +0000)]
whoops. Add -F
Jim Meyering [Wed, 4 Dec 2002 19:23:33 +0000 (19:23 +0000)]
Make sure the symlink was created.
Richard Dawe reported that `ln -s link link' succeeds, but creates
no file on systems running some version of the DJGPP libc.
Jim Meyering [Wed, 4 Dec 2002 10:07:59 +0000 (10:07 +0000)]
*** empty log message ***
Jim Meyering [Wed, 4 Dec 2002 08:59:41 +0000 (08:59 +0000)]
.
Jim Meyering [Wed, 4 Dec 2002 08:59:13 +0000 (08:59 +0000)]
Reflect the fact that stat.c and lstat.c are no longer generated.
(BUILT_SOURCES): Remove stat.c and lstat.c.
(DISTCLEANFILES): Likewise.
(EXTRA_DIST): Likewise.
(all_local): Don't depend on stat.c or lstat.c.
(stat.c, lstat.c): Remove rules.
(EXTRA_DIST): Remove xstat.in.
Jim Meyering [Wed, 4 Dec 2002 08:56:58 +0000 (08:56 +0000)]
author hardly matters here :-)
Jim Meyering [Wed, 4 Dec 2002 08:55:54 +0000 (08:55 +0000)]
Simply #define LSTAT and include stat.c.
Jim Meyering [Wed, 4 Dec 2002 08:55:32 +0000 (08:55 +0000)]
Rework so that it may serve to define rpl_lstat, too.
Jim Meyering [Wed, 4 Dec 2002 08:16:02 +0000 (08:16 +0000)]
Remove file. Contents moved into stat.c.
Jim Meyering [Wed, 4 Dec 2002 07:55:38 +0000 (07:55 +0000)]
*** empty log message ***
Jim Meyering [Wed, 4 Dec 2002 07:51:45 +0000 (07:51 +0000)]
Simply #define SAFE_WRITE and include safe-read.c.
Jim Meyering [Wed, 4 Dec 2002 07:50:55 +0000 (07:50 +0000)]
Rework so that it may serve to define safe_write, too.
Jim Meyering [Wed, 4 Dec 2002 07:43:18 +0000 (07:43 +0000)]
.
Jim Meyering [Tue, 3 Dec 2002 18:30:29 +0000 (18:30 +0000)]
New file, from which to generate safe-read.c and safe-write.c.
Jim Meyering [Tue, 3 Dec 2002 18:20:38 +0000 (18:20 +0000)]
s/const void */void const */
Jim Meyering [Tue, 3 Dec 2002 18:19:51 +0000 (18:19 +0000)]
*** empty log message ***
Jim Meyering [Tue, 3 Dec 2002 18:19:45 +0000 (18:19 +0000)]
Update from gnulib (add comments, include stddef.h).
Jim Meyering [Tue, 3 Dec 2002 18:17:18 +0000 (18:17 +0000)]
regenerate using automake-1.7.1b
Jim Meyering [Tue, 3 Dec 2002 18:03:53 +0000 (18:03 +0000)]
no more ansi2nkr
Jim Meyering [Tue, 3 Dec 2002 17:50:46 +0000 (17:50 +0000)]
.
Jim Meyering [Tue, 3 Dec 2002 17:36:34 +0000 (17:36 +0000)]
*** empty log message ***
Jim Meyering [Tue, 3 Dec 2002 17:36:26 +0000 (17:36 +0000)]
(AUTOMAKE_OPTIONS): Remove definition (to ansi2knr)
since this package no longer panders to K&R compilers.
Jim Meyering [Tue, 3 Dec 2002 12:03:55 +0000 (12:03 +0000)]
tweak comment
Jim Meyering [Tue, 3 Dec 2002 12:02:19 +0000 (12:02 +0000)]
tweak comment
Jim Meyering [Tue, 3 Dec 2002 09:50:16 +0000 (09:50 +0000)]
Add dummy stmt in `then' branch.
Jim Meyering [Mon, 2 Dec 2002 17:46:00 +0000 (17:46 +0000)]
*** empty log message ***
Jim Meyering [Mon, 2 Dec 2002 17:45:54 +0000 (17:45 +0000)]
Skip this test if `.' is on a non-local file system.
Jim Meyering [Mon, 2 Dec 2002 17:28:21 +0000 (17:28 +0000)]
*** empty log message ***
Jim Meyering [Mon, 2 Dec 2002 09:31:04 +0000 (09:31 +0000)]
.
Jim Meyering [Mon, 2 Dec 2002 09:30:47 +0000 (09:30 +0000)]
*** empty log message ***
Jim Meyering [Mon, 2 Dec 2002 09:30:41 +0000 (09:30 +0000)]
(_at_replace): Do the substitution only if there's something to replace.
Jim Meyering [Mon, 2 Dec 2002 08:11:45 +0000 (08:11 +0000)]
(EINTR): Define.
(safe_read): Rewrite to loop IFF read fails with EINTR.
Jim Meyering [Sun, 1 Dec 2002 17:04:49 +0000 (17:04 +0000)]
*** empty log message ***
Jim Meyering [Sun, 1 Dec 2002 17:04:35 +0000 (17:04 +0000)]
(safe_read): Also exit the loop when read returns zero.
Jim Meyering [Sun, 1 Dec 2002 12:10:41 +0000 (12:10 +0000)]
comment tweak
Jim Meyering [Sun, 1 Dec 2002 12:04:35 +0000 (12:04 +0000)]
*** empty log message ***
Jim Meyering [Sun, 1 Dec 2002 12:04:17 +0000 (12:04 +0000)]
(CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
Jim Meyering [Sun, 1 Dec 2002 11:53:02 +0000 (11:53 +0000)]
Merge from gnulib.
Jim Meyering [Sun, 1 Dec 2002 11:36:50 +0000 (11:36 +0000)]
from gnulib
Jim Meyering [Sun, 1 Dec 2002 11:36:32 +0000 (11:36 +0000)]
(libfetish_a_SOURCES): Add safe-write.c and safe-write.h.
Jim Meyering [Sun, 1 Dec 2002 10:57:07 +0000 (10:57 +0000)]
*** empty log message ***
Jim Meyering [Sun, 1 Dec 2002 10:56:47 +0000 (10:56 +0000)]
Update from gnulib (trivial changes).
Jim Meyering [Sun, 1 Dec 2002 10:54:01 +0000 (10:54 +0000)]
Update from gnulib (trivial changes).
Jim Meyering [Sun, 1 Dec 2002 10:44:15 +0000 (10:44 +0000)]
Add Copyright comment.
Jim Meyering [Sun, 1 Dec 2002 10:43:35 +0000 (10:43 +0000)]
Add Copyright comment.
Jim Meyering [Sun, 1 Dec 2002 10:42:17 +0000 (10:42 +0000)]
*** empty log message ***
Jim Meyering [Sun, 1 Dec 2002 10:42:12 +0000 (10:42 +0000)]
Update from gnulib (trivial changes).
Jim Meyering [Sun, 1 Dec 2002 10:41:22 +0000 (10:41 +0000)]
*** empty log message ***
Jim Meyering [Sun, 1 Dec 2002 10:41:09 +0000 (10:41 +0000)]
Update from gnulib (trivial changes).
Jim Meyering [Sun, 1 Dec 2002 10:38:59 +0000 (10:38 +0000)]
Update from gnulib (trivial changes).
Jim Meyering [Sun, 1 Dec 2002 10:37:02 +0000 (10:37 +0000)]
*** empty log message ***
Jim Meyering [Sun, 1 Dec 2002 10:36:33 +0000 (10:36 +0000)]
update from gnulib
Jim Meyering [Sun, 1 Dec 2002 10:22:45 +0000 (10:22 +0000)]
*** empty log message ***
Jim Meyering [Sun, 1 Dec 2002 10:20:24 +0000 (10:20 +0000)]
*** empty log message ***
Jim Meyering [Sun, 1 Dec 2002 10:18:39 +0000 (10:18 +0000)]
*** empty log message ***
Jim Meyering [Sun, 1 Dec 2002 10:18:34 +0000 (10:18 +0000)]
Don't include <ctype.h>.
That's already done via system.h.
Jim Meyering [Sun, 1 Dec 2002 10:15:32 +0000 (10:15 +0000)]
*** empty log message ***
Jim Meyering [Sun, 1 Dec 2002 09:58:26 +0000 (09:58 +0000)]
*** empty log message ***
Jim Meyering [Sun, 1 Dec 2002 09:57:39 +0000 (09:57 +0000)]
*** empty log message ***
Jim Meyering [Sun, 1 Dec 2002 09:49:01 +0000 (09:49 +0000)]
Don't include <string.h> or <ctype.h>.
That's already done via system.h.
Jim Meyering [Sun, 1 Dec 2002 08:59:05 +0000 (08:59 +0000)]
update from master
Jim Meyering [Sun, 1 Dec 2002 08:57:31 +0000 (08:57 +0000)]
*** empty log message ***
Jim Meyering [Sun, 1 Dec 2002 08:57:26 +0000 (08:57 +0000)]
ls is now more efficient: it no longer needs to stat each directory
entry on systems with valid dirent.d_type.
(print_dir): Add DT_LNK and DT_REG.
(main): Make --recursive set format_needs_type, not format_needs_stat.
(gobble_file): Remove a FIXME comment, now that this is fixed.
Jim Meyering [Sun, 1 Dec 2002 08:55:45 +0000 (08:55 +0000)]
(gobble_file): Remove the block of code that caused
`ls --color -F symlink-to-dir' to list the files in
`symlink-to-dir/.'. Now, it prints `symlink-to-dir@',
(just like `ls -F symlink-to-dir') but with the addition
of highlighting.
Jim Meyering [Sat, 30 Nov 2002 22:35:37 +0000 (22:35 +0000)]
add comment
Jim Meyering [Sat, 30 Nov 2002 22:34:59 +0000 (22:34 +0000)]
(sl-F-color, sl-dF-color): New tests for the above.
Jim Meyering [Sat, 30 Nov 2002 17:13:33 +0000 (17:13 +0000)]
*** empty log message ***
Jim Meyering [Sat, 30 Nov 2002 16:34:20 +0000 (16:34 +0000)]
*** empty log message ***
Jim Meyering [Sat, 30 Nov 2002 16:17:29 +0000 (16:17 +0000)]
.
Jim Meyering [Thu, 28 Nov 2002 09:48:47 +0000 (09:48 +0000)]
*** empty log message ***
Jim Meyering [Thu, 28 Nov 2002 09:48:40 +0000 (09:48 +0000)]
Merge from gnulib/libc, for a slightly uglier solution.
Jim Meyering [Thu, 28 Nov 2002 09:38:06 +0000 (09:38 +0000)]
.
Jim Meyering [Thu, 28 Nov 2002 09:37:58 +0000 (09:37 +0000)]
(STATIC): Remvoe definitions.
Jim Meyering [Thu, 28 Nov 2002 09:19:26 +0000 (09:19 +0000)]
Merge some more, in preparation for merge back into libc.
(_): Define only if not already defined.
Move definition to follow all #include directives.
Include unlocked-io.h only if !_LIBC.
Jim Meyering [Thu, 28 Nov 2002 09:09:55 +0000 (09:09 +0000)]
*** empty log message ***
Jim Meyering [Thu, 28 Nov 2002 09:09:29 +0000 (09:09 +0000)]
Merge in changes from libc.
[_LIBC]: Include <libio/libioP.h>.
[USE_IN_LIBIO]: Include <libio/iolibio.h>
(fflush): Tweak definition to use INTUSE.
(putc): Define.
Jim Meyering [Sun, 24 Nov 2002 16:59:41 +0000 (16:59 +0000)]
*** empty log message ***
Jim Meyering [Sun, 24 Nov 2002 16:58:50 +0000 (16:58 +0000)]
*** empty log message ***
Jim Meyering [Sun, 24 Nov 2002 16:53:59 +0000 (16:53 +0000)]
(TESTS): Add trailing-slash.
Jim Meyering [Sun, 24 Nov 2002 16:53:06 +0000 (16:53 +0000)]
*** empty log message ***
Jim Meyering [Sun, 24 Nov 2002 16:25:26 +0000 (16:25 +0000)]
More clean-up, not that / means /.
Jim Meyering [Sun, 24 Nov 2002 16:12:52 +0000 (16:12 +0000)]
(du_files): Don't strip any trailing slash.
Rewrite so that `/' is no longer represented internally as
the empty string.
(count_entry): When appending a file name component,
account for the fact that the current path may end in `/'.
François Pinard reported that `du symlink-to-dir/' was not
equivalent to `du symlink-to-dir/.'. Now it is.
Jim Meyering [Sun, 24 Nov 2002 16:12:28 +0000 (16:12 +0000)]
*** empty log message ***