Paul Eggert [Tue, 5 Jul 2005 05:16:29 +0000 (05:16 +0000)]
verify.h improvements.
Paul Eggert [Tue, 5 Jul 2005 05:16:08 +0000 (05:16 +0000)]
* verify.h (GL_CONCAT0, GL_CONCAT): Define unconditionally; don't
depend on whether verify_decl is defined.
(verify): Renamed from verify_decl. All uses changed.
Use an extern function decl, as it can't possibly collide with other
decls.
(verify_expr): Renamed from verify. All uses changed.
(verify_type__): New private macro.
(verify, verify_expr): Use it.
Jim Meyering [Mon, 4 Jul 2005 17:40:37 +0000 (17:40 +0000)]
rename: s/verify_dcl/verify_decl/
Jim Meyering [Mon, 4 Jul 2005 17:39:48 +0000 (17:39 +0000)]
rename: s/verify_dcl/verify_decl/
Jim Meyering [Mon, 4 Jul 2005 16:09:10 +0000 (16:09 +0000)]
*** empty log message ***
Jim Meyering [Mon, 4 Jul 2005 16:09:03 +0000 (16:09 +0000)]
(libcoreutils_a_SOURCES): Add verify.h here, temporarily.
Eventually, it'll be pulled in via AC_LIBSOURCES.
Jim Meyering [Mon, 4 Jul 2005 16:06:43 +0000 (16:06 +0000)]
*** empty log message ***
Jim Meyering [Mon, 4 Jul 2005 16:06:41 +0000 (16:06 +0000)]
Include "verify.h".
Jim Meyering [Mon, 4 Jul 2005 16:05:44 +0000 (16:05 +0000)]
*** empty log message ***
Jim Meyering [Mon, 4 Jul 2005 16:05:41 +0000 (16:05 +0000)]
(verify, verify_dcl): New file/macros.
Jim Meyering [Mon, 4 Jul 2005 14:47:47 +0000 (14:47 +0000)]
*** empty log message ***
Jim Meyering [Mon, 4 Jul 2005 14:47:42 +0000 (14:47 +0000)]
(verify_dcl): Rename from VERIFY. Update use.
Jim Meyering [Mon, 4 Jul 2005 14:00:03 +0000 (14:00 +0000)]
*** empty log message ***
Jim Meyering [Mon, 4 Jul 2005 13:59:54 +0000 (13:59 +0000)]
Reflect name change: s/VERIFY/verify_dcl/.
Jim Meyering [Mon, 4 Jul 2005 13:56:21 +0000 (13:56 +0000)]
*** empty log message ***
Jim Meyering [Mon, 4 Jul 2005 13:56:18 +0000 (13:56 +0000)]
(verify): Rename from VERIFY_EXPR, to be lower case,
like assert. Use sizeof, rather than equivalent ((...)0), for
it's slightly simpler syntax. Suggestions from Paul Eggert.
(verify_decl): Rename from VERIFY.
Paul Eggert [Mon, 4 Jul 2005 05:07:30 +0000 (05:07 +0000)]
Remove the dependency of the strftime module on the tzset module.
Paul Eggert [Mon, 4 Jul 2005 05:06:44 +0000 (05:06 +0000)]
(my_strftime) [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
Copy the input structure, to work around some of the bug with
Solaris 2.5.1 and Solaris 2.6.
Paul Eggert [Mon, 4 Jul 2005 05:06:11 +0000 (05:06 +0000)]
(gl_FUNC_STRFTIME): Don't require gl_FUNC_TZSET_CLOBBER.
Paul Eggert [Mon, 4 Jul 2005 05:05:55 +0000 (05:05 +0000)]
(gl_PREREQ): Add gl_FUNC_TZSET_CLOBBER.
Jim Meyering [Sun, 3 Jul 2005 21:10:37 +0000 (21:10 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 21:10:31 +0000 (21:10 +0000)]
(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.
Jim Meyering [Sun, 3 Jul 2005 18:21:02 +0000 (18:21 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 16:58:52 +0000 (16:58 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 16:58:48 +0000 (16:58 +0000)]
Adjust for new diagnostic.
Jim Meyering [Sun, 3 Jul 2005 16:54:37 +0000 (16:54 +0000)]
Adjust for new diagnostic.
Jim Meyering [Sun, 3 Jul 2005 16:52:09 +0000 (16:52 +0000)]
cp and mv: the --reply=X option is deprecated
Jim Meyering [Sun, 3 Jul 2005 16:52:01 +0000 (16:52 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 16:49:26 +0000 (16:49 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 16:49:15 +0000 (16:49 +0000)]
(main): Using --reply now evokes a warning.
(usage): Remove description of --reply.
Jim Meyering [Sun, 3 Jul 2005 16:48:24 +0000 (16:48 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 16:48:19 +0000 (16:48 +0000)]
(cp invocation): Mark --reply as deprecated.
(mv invocation): Likewise.
Jim Meyering [Sun, 3 Jul 2005 15:30:01 +0000 (15:30 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 15:29:58 +0000 (15:29 +0000)]
Remove obsolete comment.
Jim Meyering [Sun, 3 Jul 2005 13:47:39 +0000 (13:47 +0000)]
.
Jim Meyering [Sun, 3 Jul 2005 13:44:58 +0000 (13:44 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 13:44:52 +0000 (13:44 +0000)]
(gl_FUNC_LSTAT): Use AC_LIBSOURCES to require lstat.c and lstat.h.
Jim Meyering [Sun, 3 Jul 2005 11:58:11 +0000 (11:58 +0000)]
.
Jim Meyering [Sun, 3 Jul 2005 11:55:51 +0000 (11:55 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 11:55:48 +0000 (11:55 +0000)]
(gl_FUNC_LSTAT): New file, from gnulib.
Paul Eggert [Sun, 3 Jul 2005 09:37:52 +0000 (09:37 +0000)]
Log today's changes.
Paul Eggert [Sun, 3 Jul 2005 09:35:55 +0000 (09:35 +0000)]
Minor fixes for port to Solaris 8.
Paul Eggert [Sun, 3 Jul 2005 09:35:34 +0000 (09:35 +0000)]
Minor fixes for port to Solaris 8.
Paul Eggert [Sun, 3 Jul 2005 09:35:02 +0000 (09:35 +0000)]
Undo previous change.
Paul Eggert [Sun, 3 Jul 2005 09:31:19 +0000 (09:31 +0000)]
Include "lstat.h" rather than rolling our own.
Paul Eggert [Sun, 3 Jul 2005 09:30:00 +0000 (09:30 +0000)]
Don't require AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
module's job.
Paul Eggert [Sun, 3 Jul 2005 09:28:55 +0000 (09:28 +0000)]
Remove (sync from gnulib).
Paul Eggert [Sun, 3 Jul 2005 09:28:17 +0000 (09:28 +0000)]
New file, from gnulib.
Paul Eggert [Sun, 3 Jul 2005 09:27:38 +0000 (09:27 +0000)]
Sync from gnulib.
Paul Eggert [Sun, 3 Jul 2005 09:27:22 +0000 (09:27 +0000)]
[! _LIBC]: Include "lstat.h" rather than rolling our own.
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.
Jim Meyering [Sun, 3 Jul 2005 09:14:58 +0000 (09:14 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 09:13:33 +0000 (09:13 +0000)]
(gl_FCNTL_SAFER): Add fcntl--.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.
Jim Meyering [Sun, 3 Jul 2005 09:13:04 +0000 (09:13 +0000)]
(gl_STDLIB_SAFER): Add stdlib--.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.
Jim Meyering [Sun, 3 Jul 2005 09:07:28 +0000 (09:07 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 09:07:22 +0000 (09:07 +0000)]
Include <unistd.h> for declaration of close.
Jim Meyering [Sun, 3 Jul 2005 08:46:05 +0000 (08:46 +0000)]
(verify_numeric): Rename from verify.
Update caller.
Paul Eggert [Sun, 3 Jul 2005 07:28:38 +0000 (07:28 +0000)]
Regenerate.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Paul Eggert [Sun, 3 Jul 2005 06:52:13 +0000 (06:52 +0000)]
Initial revision.
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.
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.
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.
Jim Meyering [Sat, 2 Jul 2005 14:33:56 +0000 (14:33 +0000)]
.
Jim Meyering [Sat, 2 Jul 2005 12:02:27 +0000 (12:02 +0000)]
*** empty log message ***
Jim Meyering [Sat, 2 Jul 2005 12:02:21 +0000 (12:02 +0000)]
(EXTRA_DIST): Add .x-sc_obsolete_symbols.
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.
Jim Meyering [Sat, 2 Jul 2005 11:57:54 +0000 (11:57 +0000)]
*** empty log message ***
Jim Meyering [Sat, 2 Jul 2005 11:56:56 +0000 (11:56 +0000)]
*** empty log message ***
Jim Meyering [Sat, 2 Jul 2005 11:56:49 +0000 (11:56 +0000)]
Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
Jim Meyering [Sat, 2 Jul 2005 10:26:00 +0000 (10:26 +0000)]
*** empty log message ***
Jim Meyering [Sat, 2 Jul 2005 10:25:58 +0000 (10:25 +0000)]
Update from gnulib.
Jim Meyering [Sat, 2 Jul 2005 08:54:13 +0000 (08:54 +0000)]
Assume HAVE_UNISTD_H, i.e., that <unistd.h> works.
Jim Meyering [Sat, 2 Jul 2005 08:53:57 +0000 (08:53 +0000)]
*** empty log message ***
Jim Meyering [Sat, 2 Jul 2005 08:41:46 +0000 (08:41 +0000)]
Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
Jim Meyering [Fri, 1 Jul 2005 21:26:27 +0000 (21:26 +0000)]
*** empty log message ***