platform/upstream/coreutils.git
19 years ago(libcoreutils_a_SOURCES): Add fcntl--.h, stdio--h,
Paul Eggert [Sun, 3 Jul 2005 09:26:59 +0000 (09:26 +0000)]
(libcoreutils_a_SOURCES): Add fcntl--.h, stdio--h,
stdlib--.h, unistd--.h.

19 years ago*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 09:14:58 +0000 (09:14 +0000)]
*** empty log message ***

19 years ago(gl_FCNTL_SAFER): Add fcntl--.h to the list.
Jim Meyering [Sun, 3 Jul 2005 09:13:33 +0000 (09:13 +0000)]
(gl_FCNTL_SAFER): Add fcntl--.h to the list.

19 years ago(gl_STDIO_SAFER): Add stdio--.h to the list.
Jim Meyering [Sun, 3 Jul 2005 09:13:27 +0000 (09:13 +0000)]
(gl_STDIO_SAFER): Add stdio--.h to the list.

19 years ago(gl_STDLIB_SAFER): Add stdlib--.h to the list.
Jim Meyering [Sun, 3 Jul 2005 09:13:04 +0000 (09:13 +0000)]
(gl_STDLIB_SAFER): Add stdlib--.h to the list.

19 years ago(gl_UNISTD_SAFER): Add unistd--.h to the list.
Jim Meyering [Sun, 3 Jul 2005 09:12:57 +0000 (09:12 +0000)]
(gl_UNISTD_SAFER): Add unistd--.h to the list.

19 years ago*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 09:07:28 +0000 (09:07 +0000)]
*** empty log message ***

19 years agoInclude <unistd.h> for declaration of close.
Jim Meyering [Sun, 3 Jul 2005 09:07:22 +0000 (09:07 +0000)]
Include <unistd.h> for declaration of close.

19 years ago(verify_numeric): Rename from verify.
Jim Meyering [Sun, 3 Jul 2005 08:46:05 +0000 (08:46 +0000)]
(verify_numeric): Rename from verify.
Update caller.

19 years agoRegenerate.
Paul Eggert [Sun, 3 Jul 2005 07:28:38 +0000 (07:28 +0000)]
Regenerate.

19 years agoCleanup to isolate "safer" functions to a small part of the code.
Paul Eggert [Sun, 3 Jul 2005 07:27:05 +0000 (07:27 +0000)]
Cleanup to isolate "safer" functions to a small part of the code.

19 years agoInclude fcntl--.h, not unistd-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:23:18 +0000 (07:23 +0000)]
Include fcntl--.h, not unistd-safer.h.
(touch): Don't call fd_safer; no longer needed now that
we include fcntl--.h.

19 years agoInclude stdio--.h, not stdio-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:22:50 +0000 (07:22 +0000)]
Include stdio--.h, not stdio-safer.h.
(tee): Don't call fopen_safer; no longer needed now that we
include stdio--.h.

19 years agoInclude fcntl--.h, not unistd-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:21:49 +0000 (07:21 +0000)]
Include fcntl--.h, not unistd-safer.h.
(recheck, tail_file): Don't call fd_safer; no longer needed
now that we include fcntl--.h.

19 years agoInclude stdlib--.h rather than unistd-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:21:31 +0000 (07:21 +0000)]
Include stdlib--.h rather than unistd-safer.h.
(copy_to_temp): Don't call fd_safer; no longer needed now
that we include stdlib--.h.

19 years agoInclude fd-reopen.h.
Paul Eggert [Sun, 3 Jul 2005 07:21:03 +0000 (07:21 +0000)]
Include fd-reopen.h.
(display_all, display_settings, display_window_size, set_window_size):
Remove fd arg, since we now assume stdin.  All callers changed.
(main): Reuse stdin rather than opening a new one.  This
saves a file descriptor.

19 years agoInclude fcntl--.h rather than unistd-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:20:33 +0000 (07:20 +0000)]
Include fcntl--.h rather than unistd-safer.h.
Include fd-reopen.h.
(input_desc): Remove.  All uses replaced by STDIN_FILENO.
(cwrite): Don't call fd_safer; no longer needed now that
we include fcntl--.h.
(main): Reuse stdin rather than opening a new one.  This
saves a file descriptor.

19 years agoInclude stdio--.h rather than stdio-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:20:04 +0000 (07:20 +0000)]
Include stdio--.h rather than stdio-safer.h.
Include stdlib--.h.  Do not include unistd-safer.h.
(create_temp_file): Don't call fd_safer; no longer needed
now that we include *--.h files.
(xfopen): Don't call fopen_safer, for similar reasons.

19 years agoInclude fcntl--.h, not unistd-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:19:29 +0000 (07:19 +0000)]
Include fcntl--.h, not unistd-safer.h.
(wipename, wipe_file): Don't use fd_safer; no longer needed
now that we include fcntl--.h.

19 years agoInclude stdio--.h, not stdio-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:19:06 +0000 (07:19 +0000)]
Include stdio--.h, not stdio-safer.h.
(open_file): Invoke fopen, not fopen_safer.

19 years agoInclude fd-reopen.h.
Paul Eggert [Sun, 3 Jul 2005 07:18:48 +0000 (07:18 +0000)]
Include fd-reopen.h.
Include unistd--.h, not unistd-safer.h.
(main): Use fd_reopen to simplify code.  When replacing stdin,
use "/dev/null" not "/", as that's less likely to go wrong these days.
(main): Use dup, not dup_safer.

19 years agoInclude stdio--.h.
Paul Eggert [Sun, 3 Jul 2005 07:18:21 +0000 (07:18 +0000)]
Include stdio--.h.
(digest_check): Don't try to read both checksums and data from stdin.

19 years agoInclude stdio--.h, not stdio-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:17:58 +0000 (07:17 +0000)]
Include stdio--.h, not stdio-safer.h.
(main): Use fopen, not fopen_safer.

19 years agoInclude fd-reopen.h.
Paul Eggert [Sun, 3 Jul 2005 07:17:36 +0000 (07:17 +0000)]
Include fd-reopen.h.
(open_fd): Remove.  All callers changed to use fd_reopen instead.

19 years agoInclude fd-reopen.h.
Paul Eggert [Sun, 3 Jul 2005 07:17:12 +0000 (07:17 +0000)]
Include fd-reopen.h.
Include stdio--.h, not stdio-safer.h.
(input_desc): Remove.  All uses changed to STDIN_FILENO.
(set_input_file): Reopen stdin, to simplify code.
(create_output_file): Use fopen, not fopen_safer.

19 years agoInclude fcntl--.h, not unistd-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:16:43 +0000 (07:16 +0000)]
Include fcntl--.h, not unistd-safer.h.
(copy_reg): Don't call fd_safer; no longer needed
now that we include fcntl--.h.

19 years agoInclude stdio--.h, not stdio-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:16:23 +0000 (07:16 +0000)]
Include stdio--.h, not stdio-safer.h.
(compare_files): Use fopen, not fopen_safer.

19 years ago(gl_PREREQ): Require gl_FCNTL_SAFER,
Paul Eggert [Sun, 3 Jul 2005 07:15:58 +0000 (07:15 +0000)]
(gl_PREREQ): Require gl_FCNTL_SAFER,
gl_FD_REOPEN, gl_STDLIB_SAFER.

19 years agoInclude fcntl--.h rather than fcntl.h.
Paul Eggert [Sun, 3 Jul 2005 07:15:39 +0000 (07:15 +0000)]
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.

19 years agoInclude stdio--.h rather than stdio.h
Paul Eggert [Sun, 3 Jul 2005 07:15:09 +0000 (07:15 +0000)]
Include stdio--.h rather than stdio.h
and stdio-safer.h.
(getusershell): Call fopen, not fopen_safer.

19 years agoInclude fcntl--.h rather than fcntl.h.
Paul Eggert [Sun, 3 Jul 2005 07:14:28 +0000 (07:14 +0000)]
Include fcntl--.h rather than fcntl.h.
Do not include unistd-safer.h.
(getloadavg): Don't call fd_safer; no longer needed
now that we include fcntl--.h.

19 years ago(fd_safer): Remove decl.
Paul Eggert [Sun, 3 Jul 2005 07:14:05 +0000 (07:14 +0000)]
(fd_safer): Remove decl.
Include fcntl--.h rather than unistd-safer.h
(fts_safe_changedir): Don't call fd_safer; no longer needed
now that we include fcntl--.h.

19 years agoInclude stdio-safer.h first, to check interface.
Paul Eggert [Sun, 3 Jul 2005 07:13:31 +0000 (07:13 +0000)]
Include stdio-safer.h first, to check interface.
Don't bother including stdio.h, since stdio-safer.h does.

19 years agoInitial revision.
Paul Eggert [Sun, 3 Jul 2005 06:52:13 +0000 (06:52 +0000)]
Initial revision.

19 years agoAdd support for fcntl--.h, stdio--.h, stdlib--.h, unistd--.h, etc.
Paul Eggert [Sun, 3 Jul 2005 06:43:07 +0000 (06:43 +0000)]
Add support for fcntl--.h, stdio--.h, stdlib--.h, unistd--.h, etc.

19 years agoDon't include stdio-safer.h; no longer needed.
Paul Eggert [Sun, 3 Jul 2005 06:26:15 +0000 (06:26 +0000)]
Don't include stdio-safer.h; no longer needed.
(writeline): Remove stream arg; we now always output to stdout.
All callers changed.
(check_file): Reuse stdout rather than opening a new stream.
This saves a file descriptor.

19 years ago(main): Reuse stdin rather than opening a new stream.
Paul Eggert [Sun, 3 Jul 2005 06:25:42 +0000 (06:25 +0000)]
(main): Reuse stdin rather than opening a new stream.
This saves a file descriptor.

19 years ago.
Jim Meyering [Sat, 2 Jul 2005 14:33:56 +0000 (14:33 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Sat, 2 Jul 2005 12:02:27 +0000 (12:02 +0000)]
*** empty log message ***

19 years ago(EXTRA_DIST): Add .x-sc_obsolete_symbols.
Jim Meyering [Sat, 2 Jul 2005 12:02:21 +0000 (12:02 +0000)]
(EXTRA_DIST): Add .x-sc_obsolete_symbols.

19 years ago(sc_obsolete_symbols): New rule.
Jim Meyering [Sat, 2 Jul 2005 11:58:22 +0000 (11:58 +0000)]
(sc_obsolete_symbols): New rule.
(syntax-check-rules): Add it to the list.

19 years ago*** empty log message ***
Jim Meyering [Sat, 2 Jul 2005 11:57:54 +0000 (11:57 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Sat, 2 Jul 2005 11:56:56 +0000 (11:56 +0000)]
*** empty log message ***

19 years agoAssume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
Jim Meyering [Sat, 2 Jul 2005 11:56:49 +0000 (11:56 +0000)]
Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.

19 years ago*** empty log message ***
Jim Meyering [Sat, 2 Jul 2005 10:26:00 +0000 (10:26 +0000)]
*** empty log message ***

19 years agoUpdate from gnulib.
Jim Meyering [Sat, 2 Jul 2005 10:25:58 +0000 (10:25 +0000)]
Update from gnulib.

19 years agoAssume HAVE_UNISTD_H, i.e., that <unistd.h> works.
Jim Meyering [Sat, 2 Jul 2005 08:54:13 +0000 (08:54 +0000)]
Assume HAVE_UNISTD_H, i.e., that <unistd.h> works.

19 years ago*** empty log message ***
Jim Meyering [Sat, 2 Jul 2005 08:53:57 +0000 (08:53 +0000)]
*** empty log message ***

19 years agoAssume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
Jim Meyering [Sat, 2 Jul 2005 08:41:46 +0000 (08:41 +0000)]
Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.

19 years ago*** empty log message ***
Jim Meyering [Fri, 1 Jul 2005 21:26:27 +0000 (21:26 +0000)]
*** empty log message ***

19 years agoAssume HAVE_UNISTD_H.
Jim Meyering [Fri, 1 Jul 2005 21:26:24 +0000 (21:26 +0000)]
Assume HAVE_UNISTD_H.

19 years ago.
Jim Meyering [Fri, 1 Jul 2005 21:18:51 +0000 (21:18 +0000)]
.

19 years agoDon't check for fcntl.h anymore. Now we assume it exists and is usable.
Jim Meyering [Fri, 1 Jul 2005 21:06:08 +0000 (21:06 +0000)]
Don't check for fcntl.h anymore. Now we assume it exists and is usable.

19 years ago*** empty log message ***
Jim Meyering [Fri, 1 Jul 2005 21:05:44 +0000 (21:05 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Fri, 1 Jul 2005 20:57:39 +0000 (20:57 +0000)]
*** empty log message ***

19 years agoAssume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
Jim Meyering [Fri, 1 Jul 2005 20:57:34 +0000 (20:57 +0000)]
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
and don't check for fcntl.h).

19 years agoAssume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
Jim Meyering [Fri, 1 Jul 2005 20:55:29 +0000 (20:55 +0000)]
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
and don't include <sys/file.h>).

19 years ago*** empty log message ***
Jim Meyering [Fri, 1 Jul 2005 20:53:36 +0000 (20:53 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Fri, 1 Jul 2005 20:31:23 +0000 (20:31 +0000)]
*** empty log message ***

19 years agoAssume HAVE_FCNTL_H (i.e., include <fcntl.h>
Jim Meyering [Fri, 1 Jul 2005 20:31:16 +0000 (20:31 +0000)]
Assume HAVE_FCNTL_H (i.e., include <fcntl.h>
unconditionally, and don't include <sys/file.h>).

19 years ago*** empty log message ***
Jim Meyering [Fri, 1 Jul 2005 19:56:19 +0000 (19:56 +0000)]
*** empty log message ***

19 years agoupdate from gnulib
Jim Meyering [Fri, 1 Jul 2005 19:54:48 +0000 (19:54 +0000)]
update from gnulib

19 years ago* xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
Paul Eggert [Fri, 1 Jul 2005 17:25:56 +0000 (17:25 +0000)]
* xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
declares only 'struct timespec;' (!).

19 years ago*** empty log message ***
Jim Meyering [Thu, 30 Jun 2005 20:33:55 +0000 (20:33 +0000)]
*** empty log message ***

19 years ago.
Jim Meyering [Thu, 30 Jun 2005 20:32:46 +0000 (20:32 +0000)]
.

19 years agoRequire gl_STDOPEN.
Jim Meyering [Thu, 30 Jun 2005 20:24:45 +0000 (20:24 +0000)]
Require gl_STDOPEN.

19 years ago(gl_STDOPEN): New file/macro.
Jim Meyering [Thu, 30 Jun 2005 20:24:02 +0000 (20:24 +0000)]
(gl_STDOPEN): New file/macro.

19 years agoAdd copyright.
Jim Meyering [Thu, 30 Jun 2005 20:23:09 +0000 (20:23 +0000)]
Add copyright.
Include <fcntl.h> and <unistd.h> unconditionally --
it seems to be ok to do this, these days.

19 years ago*** empty log message ***
Jim Meyering [Thu, 30 Jun 2005 20:23:00 +0000 (20:23 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Thu, 30 Jun 2005 20:16:01 +0000 (20:16 +0000)]
*** empty log message ***

19 years agoRewritten by Paul Eggert.
Jim Meyering [Thu, 30 Jun 2005 20:13:40 +0000 (20:13 +0000)]
Rewritten by Paul Eggert.
Now, the minimum overhead is just two system calls: dup and close.

19 years agoNew file. As yet unused.
Jim Meyering [Thu, 30 Jun 2005 20:10:39 +0000 (20:10 +0000)]
New file.  As yet unused.

19 years ago*** empty log message ***
Jim Meyering [Thu, 30 Jun 2005 16:48:02 +0000 (16:48 +0000)]
*** empty log message ***

19 years agoAdd uses of ARGMATCH_VERIFY to ensure that
Jim Meyering [Thu, 30 Jun 2005 16:47:54 +0000 (16:47 +0000)]
Add uses of ARGMATCH_VERIFY to ensure that
corresponding option string and value arrays are consistent.

19 years agoAdd uses of ARGMATCH_VERIFY to ensure that
Jim Meyering [Thu, 30 Jun 2005 16:47:38 +0000 (16:47 +0000)]
Add uses of ARGMATCH_VERIFY to ensure that
corresponding option string and value arrays are consistent.
Remove a harmless trailing `, 0' from a value list.

19 years agoAdd uses of ARGMATCH_VERIFY to ensure that
Jim Meyering [Thu, 30 Jun 2005 16:47:00 +0000 (16:47 +0000)]
Add uses of ARGMATCH_VERIFY to ensure that
corresponding option string and value arrays are consistent.
Remove a harmless trailing `, 0' from a value list.

19 years ago*** empty log message ***
Jim Meyering [Thu, 30 Jun 2005 16:41:04 +0000 (16:41 +0000)]
*** empty log message ***

19 years ago(VERIFY): Guard definition with #ifndef.
Jim Meyering [Thu, 30 Jun 2005 16:40:59 +0000 (16:40 +0000)]
(VERIFY): Guard definition with #ifndef.
(VERIFY_EXPR): Undef before defining.

19 years ago*** empty log message ***
Jim Meyering [Thu, 30 Jun 2005 16:40:08 +0000 (16:40 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Thu, 30 Jun 2005 16:39:46 +0000 (16:39 +0000)]
*** empty log message ***

19 years ago[!VERIFY] (VERIFY): Define.
Jim Meyering [Thu, 30 Jun 2005 16:39:41 +0000 (16:39 +0000)]
[!VERIFY] (VERIFY): Define.
(ARGMATCH_VERIFY): Use it, so this macro may be used more than
once in any given scope.

19 years ago(VERIFY_EXPR): Undef and add a comment.
Jim Meyering [Thu, 30 Jun 2005 15:46:05 +0000 (15:46 +0000)]
(VERIFY_EXPR): Undef and add a comment.

19 years ago*** empty log message ***
Jim Meyering [Wed, 29 Jun 2005 21:24:48 +0000 (21:24 +0000)]
*** empty log message ***

19 years ago(getuser, getuidbyname, getgroup, getgidbyname): Likewise.
Jim Meyering [Wed, 29 Jun 2005 21:24:44 +0000 (21:24 +0000)]
(getuser, getuidbyname, getgroup, getgidbyname): Likewise.

19 years ago*** empty log message ***
Jim Meyering [Wed, 29 Jun 2005 21:22:31 +0000 (21:22 +0000)]
*** empty log message ***

19 years ago(make_dir_parents): Don't apply sizeof to a hard-coded type name.
Jim Meyering [Wed, 29 Jun 2005 21:22:06 +0000 (21:22 +0000)]
(make_dir_parents): Don't apply sizeof to a hard-coded type name.
Use the variable name instead.

19 years ago*** empty log message ***
Jim Meyering [Wed, 29 Jun 2005 17:11:02 +0000 (17:11 +0000)]
*** empty log message ***

19 years agoUse one fewer helper macro.
Jim Meyering [Wed, 29 Jun 2005 17:10:44 +0000 (17:10 +0000)]
Use one fewer helper macro.

19 years ago*** empty log message ***
Jim Meyering [Wed, 29 Jun 2005 16:33:27 +0000 (16:33 +0000)]
*** empty log message ***

19 years ago(VERIFY_EXPR): Define.
Jim Meyering [Wed, 29 Jun 2005 16:33:17 +0000 (16:33 +0000)]
(VERIFY_EXPR): Define.
(X2REALLOC): New macro, to make using x2realloc a little safer.

19 years ago*** empty log message ***
Jim Meyering [Wed, 29 Jun 2005 16:29:19 +0000 (16:29 +0000)]
*** empty log message ***

19 years ago(main): Use X2REALLOC rather than x2realloc.
Jim Meyering [Wed, 29 Jun 2005 16:27:37 +0000 (16:27 +0000)]
(main): Use X2REALLOC rather than x2realloc.

19 years ago(fillbuf): Use X2REALLOC rather than x2realloc.
Jim Meyering [Wed, 29 Jun 2005 16:26:20 +0000 (16:26 +0000)]
(fillbuf): Use X2REALLOC rather than x2realloc.

19 years ago(show_date): Use X2REALLOC rather than x2realloc.
Jim Meyering [Wed, 29 Jun 2005 16:26:01 +0000 (16:26 +0000)]
(show_date): Use X2REALLOC rather than x2realloc.

19 years ago(main, store_char): Use X2REALLOC rather than x2realloc.
Jim Meyering [Wed, 29 Jun 2005 16:25:50 +0000 (16:25 +0000)]
(main, store_char): Use X2REALLOC rather than x2realloc.

19 years agoUpdate sole use of VERIFY.
Jim Meyering [Wed, 29 Jun 2005 16:23:31 +0000 (16:23 +0000)]
Update sole use of VERIFY.
Use X2REALLOC, rather than x2realloc.

19 years ago(VERIFY): Rewrite to use string-concatenation
Jim Meyering [Wed, 29 Jun 2005 16:23:15 +0000 (16:23 +0000)]
(VERIFY): Rewrite to use string-concatenation
and __LINE__ so as not to require a struct name parameter.
(GL_CONCAT, GL_CONCAT2, GL_LINE_CONCAT): Define helper macros.

19 years ago*** empty log message ***
Jim Meyering [Wed, 29 Jun 2005 10:43:19 +0000 (10:43 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Wed, 29 Jun 2005 10:07:45 +0000 (10:07 +0000)]
*** empty log message ***

19 years ago(gobble_file): Use stat.st_author, not stat.st_uid
Jim Meyering [Wed, 29 Jun 2005 10:03:10 +0000 (10:03 +0000)]
(gobble_file): Use stat.st_author, not stat.st_uid
when computing the --author column width.  This bug might have
resulted in misaligned columns when using the --author option
on the Hurd.  Spotted by Arnold Robbins.

The bug was introduced on 2003-12-03.