diff options
Diffstat (limited to 'sysdeps/generic/creat.c')
-rw-r--r-- | sysdeps/generic/creat.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/generic/creat.c b/sysdeps/generic/creat.c index 3b1e93c..4628824 100644 --- a/sysdeps/generic/creat.c +++ b/sysdeps/generic/creat.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1996, 1997, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -18,6 +18,7 @@ #include <fcntl.h> #include <sys/types.h> +#include <sysdep-cancel.h> #undef creat @@ -30,3 +31,6 @@ __libc_creat (file, mode) return __open (file, O_WRONLY|O_CREAT|O_TRUNC, mode); } weak_alias (__libc_creat, creat) + +/* __open handles cancellation. */ +LIBC_CANCEL_HANDLED (); |