summaryrefslogtreecommitdiff
path: root/lib/sys_time.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/sys_time.in.h
parent441aa3044f43e5572f58c354f01e6bc070acd5c7 (diff)
downloadgnulib-6948250861edce048d7bb3c6b47d13fa3649905e.tar.gz
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Diffstat (limited to 'lib/sys_time.in.h')
-rw-r--r--lib/sys_time.in.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sys_time.in.h b/lib/sys_time.in.h
index d9fb361b87..d5cb7ce3b7 100644
--- a/lib/sys_time.in.h
+++ b/lib/sys_time.in.h
@@ -1,6 +1,6 @@
/* Provide a more complete sys/time.h.
- Copyright (C) 2007-2008 Free Software Foundation, Inc.
+ Copyright (C) 2007-2009 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -39,6 +39,8 @@
# include <time.h>
# endif
+/* The definition of _GL_ARG_NONNULL is copied here. */
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -54,7 +56,8 @@ struct timeval
# if @REPLACE_GETTIMEOFDAY@
# undef gettimeofday
# define gettimeofday rpl_gettimeofday
-int gettimeofday (struct timeval *restrict, void *restrict);
+extern int gettimeofday (struct timeval *restrict, void *restrict)
+ _GL_ARG_NONNULL ((1));
# endif
#ifdef __cplusplus