diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 16:58:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 16:58:41 +0000 |
commit | e1908ae95dd4c9d19ee4dfabfc8bf8a7f85943fe (patch) | |
tree | f5cc731bedcac0fb7fe14d952e4581e749f8bb87 /src/iopoll.h | |
parent | Initial commit. (diff) | |
download | coreutils-e1908ae95dd4c9d19ee4dfabfc8bf8a7f85943fe.tar.xz coreutils-e1908ae95dd4c9d19ee4dfabfc8bf8a7f85943fe.zip |
Adding upstream version 9.4.upstream/9.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/iopoll.h')
-rw-r--r-- | src/iopoll.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/iopoll.h b/src/iopoll.h new file mode 100644 index 0000000..0177a4d --- /dev/null +++ b/src/iopoll.h @@ -0,0 +1,9 @@ +#define IOPOLL_BROKEN_OUTPUT -2 +#define IOPOLL_ERROR -3 + +int iopoll (int fdin, int fdout, bool block); +bool iopoll_input_ok (int fdin); +bool iopoll_output_ok (int fdout); + +bool fclose_wait (FILE *f); +bool fwrite_wait (char const *buf, ssize_t size, FILE *f); |