summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/creat.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/creat.c')
-rw-r--r--libc/sysdeps/linux/common/creat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/creat.c b/libc/sysdeps/linux/common/creat.c
index 77cf44e69..17929193e 100644
--- a/libc/sysdeps/linux/common/creat.c
+++ b/libc/sysdeps/linux/common/creat.c
@@ -8,8 +8,11 @@
*/
#include <fcntl.h>
+#include <cancel.h>
int creat(const char *file, mode_t mode)
{
return open(file, O_WRONLY | O_CREAT | O_TRUNC, mode);
}
+/* open handled cancellation, noop on uClibc */
+LIBC_CANCEL_HANDLED();