Jim Meyering
a360edab7e
*** empty log message ***
2005-07-03 09:14:58 +00:00
Jim Meyering
10047b6134
(gl_FCNTL_SAFER): Add fcntl--.h to the list.
2005-07-03 09:13:33 +00:00
Jim Meyering
cd4bfd42dc
(gl_STDIO_SAFER): Add stdio--.h to the list.
2005-07-03 09:13:27 +00:00
Jim Meyering
1eae18b276
(gl_STDLIB_SAFER): Add stdlib--.h to the list.
2005-07-03 09:13:04 +00:00
Jim Meyering
512e0bae5a
(gl_UNISTD_SAFER): Add unistd--.h to the list.
2005-07-03 09:12:57 +00:00
Jim Meyering
4f89ded6e2
*** empty log message ***
2005-07-03 09:07:28 +00:00
Jim Meyering
c1ef936462
Include <unistd.h> for declaration of close.
2005-07-03 09:07:22 +00:00
Jim Meyering
6dc3ffd8b6
(verify_numeric): Rename from verify.
...
Update caller.
2005-07-03 08:46:05 +00:00
Paul Eggert
de0cf8356f
Regenerate.
2005-07-03 07:28:38 +00:00
Paul Eggert
e05ece2ced
Cleanup to isolate "safer" functions to a small part of the code.
2005-07-03 07:27:05 +00:00
Paul Eggert
dd6f2c49db
Include fcntl--.h, not unistd-safer.h.
...
(touch): Don't call fd_safer; no longer needed now that
we include fcntl--.h.
2005-07-03 07:23:18 +00:00
Paul Eggert
9509ae9a8c
Include stdio--.h, not stdio-safer.h.
...
(tee): Don't call fopen_safer; no longer needed now that we
include stdio--.h.
2005-07-03 07:22:50 +00:00
Paul Eggert
4decb49032
Include fcntl--.h, not unistd-safer.h.
...
(recheck, tail_file): Don't call fd_safer; no longer needed
now that we include fcntl--.h.
2005-07-03 07:21:49 +00:00
Paul Eggert
7b1780d5cc
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.
2005-07-03 07:21:31 +00:00
Paul Eggert
b6be15eaca
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.
2005-07-03 07:21:03 +00:00
Paul Eggert
c030201e6d
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.
2005-07-03 07:20:33 +00:00
Paul Eggert
d0baad324d
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.
2005-07-03 07:20:04 +00:00
Paul Eggert
ce00cad00f
Include fcntl--.h, not unistd-safer.h.
...
(wipename, wipe_file): Don't use fd_safer; no longer needed
now that we include fcntl--.h.
2005-07-03 07:19:29 +00:00
Paul Eggert
8359085a76
Include stdio--.h, not stdio-safer.h.
...
(open_file): Invoke fopen, not fopen_safer.
2005-07-03 07:19:06 +00:00
Paul Eggert
2eeccaacd9
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.
2005-07-03 07:18:48 +00:00
Paul Eggert
3fff9c1441
Include stdio--.h.
...
(digest_check): Don't try to read both checksums and data from stdin.
2005-07-03 07:18:21 +00:00
Paul Eggert
e32032accf
Include stdio--.h, not stdio-safer.h.
...
(main): Use fopen, not fopen_safer.
2005-07-03 07:17:58 +00:00
Paul Eggert
566d32f04c
Include fd-reopen.h.
...
(open_fd): Remove. All callers changed to use fd_reopen instead.
2005-07-03 07:17:36 +00:00
Paul Eggert
d54f92ab0d
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.
2005-07-03 07:17:12 +00:00
Paul Eggert
43ab391610
Include fcntl--.h, not unistd-safer.h.
...
(copy_reg): Don't call fd_safer; no longer needed
now that we include fcntl--.h.
2005-07-03 07:16:43 +00:00
Paul Eggert
5a62048846
Include stdio--.h, not stdio-safer.h.
...
(compare_files): Use fopen, not fopen_safer.
2005-07-03 07:16:23 +00:00
Paul Eggert
ffa06e1d94
(gl_PREREQ): Require gl_FCNTL_SAFER,
...
gl_FD_REOPEN, gl_STDLIB_SAFER.
2005-07-03 07:15:58 +00:00
Paul Eggert
9c34c16a06
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.
2005-07-03 07:15:39 +00:00
Paul Eggert
6207fc885c
Include stdio--.h rather than stdio.h
...
and stdio-safer.h.
(getusershell): Call fopen, not fopen_safer.
2005-07-03 07:15:09 +00:00
Paul Eggert
bd1806f708
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.
2005-07-03 07:14:28 +00:00
Paul Eggert
f21950385b
(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.
2005-07-03 07:14:05 +00:00
Paul Eggert
98088e6a60
Include stdio-safer.h first, to check interface.
...
Don't bother including stdio.h, since stdio-safer.h does.
2005-07-03 07:13:31 +00:00
Paul Eggert
5eab57423e
Initial revision.
2005-07-03 06:52:13 +00:00
Paul Eggert
8b0a2afe9f
Add support for fcntl--.h, stdio--.h, stdlib--.h, unistd--.h, etc.
2005-07-03 06:43:07 +00:00
Paul Eggert
9c17ef9a81
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.
2005-07-03 06:26:15 +00:00
Paul Eggert
6af6438b0a
(main): Reuse stdin rather than opening a new stream.
...
This saves a file descriptor.
2005-07-03 06:25:42 +00:00
Jim Meyering
42f845ebc7
.
2005-07-02 14:33:56 +00:00
Jim Meyering
c402746d1c
*** empty log message ***
2005-07-02 12:02:27 +00:00
Jim Meyering
6e0f9634aa
(EXTRA_DIST): Add .x-sc_obsolete_symbols.
2005-07-02 12:02:21 +00:00
Jim Meyering
6f368f2f48
(sc_obsolete_symbols): New rule.
...
(syntax-check-rules): Add it to the list.
2005-07-02 11:58:22 +00:00
Jim Meyering
f6d8b10a1c
*** empty log message ***
2005-07-02 11:57:54 +00:00
Jim Meyering
f0001d7346
*** empty log message ***
2005-07-02 11:56:56 +00:00
Jim Meyering
25ef400404
Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
2005-07-02 11:56:49 +00:00
Jim Meyering
06e5948dce
*** empty log message ***
2005-07-02 10:26:00 +00:00
Jim Meyering
dd2b7c95ff
Update from gnulib.
2005-07-02 10:25:58 +00:00
Jim Meyering
2f79e30906
Assume HAVE_UNISTD_H, i.e., that <unistd.h> works.
2005-07-02 08:54:13 +00:00
Jim Meyering
16b3553083
*** empty log message ***
2005-07-02 08:53:57 +00:00
Jim Meyering
410f98fc2b
Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
2005-07-02 08:41:46 +00:00
Jim Meyering
b5dabfee20
*** empty log message ***
2005-07-01 21:26:27 +00:00
Jim Meyering
e62b441f50
Assume HAVE_UNISTD_H.
2005-07-01 21:26:24 +00:00