about summary refs log tree commit diff
path: root/support/xunistd.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-03-15 13:13:58 +0100
committerFlorian Weimer <fweimer@redhat.com>2017-03-15 13:33:40 +0100
commited3ea040bae8ef2cf131081124a1248a9fd3dca9 (patch)
treeaba1792fff5e2c4887d67198f91afb5cb1c8f8da /support/xunistd.h
parentf889e73f603dcf90b4db6a2065104a78c1a0e94d (diff)
downloadglibc-ed3ea040bae8ef2cf131081124a1248a9fd3dca9.tar.gz
glibc-ed3ea040bae8ef2cf131081124a1248a9fd3dca9.tar.xz
glibc-ed3ea040bae8ef2cf131081124a1248a9fd3dca9.zip
support: Add error checking to close system calls [BZ #21244]
Diffstat (limited to 'support/xunistd.h')
-rw-r--r--support/xunistd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/support/xunistd.h b/support/xunistd.h
index a83b1f4541..258bab5c81 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);