diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-03-15 13:13:58 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-03-15 13:33:40 +0100 |
commit | ed3ea040bae8ef2cf131081124a1248a9fd3dca9 (patch) | |
tree | aba1792fff5e2c4887d67198f91afb5cb1c8f8da /support/xunistd.h | |
parent | f889e73f603dcf90b4db6a2065104a78c1a0e94d (diff) | |
download | glibc-ed3ea040bae8ef2cf131081124a1248a9fd3dca9.zip glibc-ed3ea040bae8ef2cf131081124a1248a9fd3dca9.tar.gz glibc-ed3ea040bae8ef2cf131081124a1248a9fd3dca9.tar.bz2 |
support: Add error checking to close system calls [BZ #21244]
Diffstat (limited to 'support/xunistd.h')
-rw-r--r-- | support/xunistd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/support/xunistd.h b/support/xunistd.h index a83b1f4..258bab5 100644 --- a/support/xunistd.h +++ b/support/xunistd.h @@ -30,6 +30,10 @@ __BEGIN_DECLS pid_t xfork (void); pid_t xwaitpid (pid_t, int *status, int flags); +/* Close the file descriptor. Ignore EINTR errors, but terminate the + process on other errors. */ +void xclose (int); + /* Write the buffer. Retry on short writes. */ void xwrite (int, const void *, size_t); |