[git commit future] creat*.c: add LIBC_CANCEL_HANDLED to know that it is cancellable (handled by open)
Peter S. Mazinger
ps.m at gmx.net
Wed Apr 20 10:50:38 UTC 2011
commit: http://git.uclibc.org/uClibc/commit/?id=dadc1aa0f025d9b999e1bc85da57c3b038e6fcf0
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
libc/sysdeps/linux/common/creat.c | 3 +++
libc/sysdeps/linux/common/creat64.c | 5 ++++-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/libc/sysdeps/linux/common/creat.c b/libc/sysdeps/linux/common/creat.c
index 77cf44e..1792919 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();
diff --git a/libc/sysdeps/linux/common/creat64.c b/libc/sysdeps/linux/common/creat64.c
index 550e88a..5010d76 100644
--- a/libc/sysdeps/linux/common/creat64.c
+++ b/libc/sysdeps/linux/common/creat64.c
@@ -18,9 +18,12 @@
#include <_lfs_64.h>
#include <fcntl.h>
+#include <cancel.h>
/* Create FILE with protections MODE. */
int creat64(const char *file, mode_t mode)
{
- return open64(file, O_WRONLY|O_CREAT|O_TRUNC, mode);
+ return open64(file, O_WRONLY | O_CREAT | O_TRUNC, mode);
}
+/* open handled cancellation, noop on uClibc */
+LIBC_CANCEL_HANDLED();
--
1.7.3.4
More information about the uClibc-cvs
mailing list