diff options
author | Jim Meyering <jim@meyering.net> | 1999-05-01 02:05:56 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-05-01 02:05:56 +0000 |
commit | 9fca49f67c16c8b42c32e185808fe187cedb0fa7 (patch) | |
tree | 2376d2440eaae0b5421bd4b49120d174a94ce33d /src/id.c | |
parent | 8a3c0671e03da7ef9ea774d9adb8b7b341b29c51 (diff) | |
download | coreutils-9fca49f67c16c8b42c32e185808fe187cedb0fa7.tar.xz |
Always use STDIN_FILENO for input and STDOUT_FILENO
for output, to avoid confusion with closed input and output fds.
(input_fd, output_fd): Remove; all uses changed to STDIN_FILENO
and STDOUT_FILENO.
(open_fd): New function.
(main): Use it, instead of open, to ensure that file descriptors
don't get confused.
(skip): Don't fstat the input file; the result is no longer used.
Diffstat (limited to 'src/id.c')
0 files changed, 0 insertions, 0 deletions