summaryrefslogtreecommitdiff
path: root/lib/fcntl.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-12-11 01:15:28 +0100
committerBruno Haible <bruno@clisp.org>2009-12-11 01:15:28 +0100
commit6948250861edce048d7bb3c6b47d13fa3649905e (patch)
treec3d1c4a2e42938d93a07095345cb18567fa44710 /lib/fcntl.in.h
parent441aa3044f43e5572f58c354f01e6bc070acd5c7 (diff)
downloadgnulib-6948250861edce048d7bb3c6b47d13fa3649905e.tar.gz
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Diffstat (limited to 'lib/fcntl.in.h')
-rw-r--r--lib/fcntl.in.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h
index 0ae8213e47..75e1b5599c 100644
--- a/lib/fcntl.in.h
+++ b/lib/fcntl.in.h
@@ -46,6 +46,8 @@
/* The definition of GL_LINK_WARNING is copied here. */
+/* The definition of _GL_ARG_NONNULL is copied here. */
+
/* Declare overridden functions. */
@@ -57,7 +59,7 @@ extern "C" {
# if @REPLACE_OPEN@
# undef open
# define open rpl_open
-extern int open (const char *filename, int flags, ...);
+extern int open (const char *filename, int flags, ...) _GL_ARG_NONNULL ((1));
# endif
#endif
@@ -67,7 +69,8 @@ extern int open (const char *filename, int flags, ...);
# define openat rpl_openat
# endif
# if !@HAVE_OPENAT@ || @REPLACE_OPENAT@
-int openat (int fd, char const *file, int flags, /* mode_t mode */ ...);
+int openat (int fd, char const *file, int flags, /* mode_t mode */ ...)
+ _GL_ARG_NONNULL ((2));
# endif
#elif defined GNULIB_POSIXCHECK
# undef openat