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
Jim Meyering
da1b612d11
.
2005-07-01 21:18:51 +00:00
Jim Meyering
89abeac2b8
Don't check for fcntl.h anymore. Now we assume it exists and is usable.
2005-07-01 21:06:08 +00:00
Jim Meyering
b82f33a06e
*** empty log message ***
2005-07-01 21:05:44 +00:00
Jim Meyering
d0067bb947
*** empty log message ***
2005-07-01 20:57:39 +00:00
Jim Meyering
860691ec41
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
...
and don't check for fcntl.h).
2005-07-01 20:57:34 +00:00
Jim Meyering
58076430c3
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
...
and don't include <sys/file.h>).
2005-07-01 20:55:29 +00:00
Jim Meyering
ceaa11b643
*** empty log message ***
2005-07-01 20:53:36 +00:00
Jim Meyering
86cc58850a
*** empty log message ***
2005-07-01 20:31:23 +00:00
Jim Meyering
e0331d4ce0
Assume HAVE_FCNTL_H (i.e., include <fcntl.h>
...
unconditionally, and don't include <sys/file.h>).
2005-07-01 20:31:16 +00:00
Jim Meyering
adeb8b26fb
*** empty log message ***
2005-07-01 19:56:19 +00:00
Jim Meyering
05d541b622
update from gnulib
2005-07-01 19:54:48 +00:00
Paul Eggert
00fdbcc4af
* xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
...
declares only 'struct timespec;' (!).
2005-07-01 17:25:56 +00:00