diff options
Diffstat (limited to 'lib/fcntl.in.h')
-rw-r--r-- | lib/fcntl.in.h | 7 |
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 |