aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorSteve Grubb <sgrubb@redhat.com>2022-03-10 05:56:33 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2022-03-10 05:56:33 +0530
commit590f5992b66a0f105eabf2eae35e8704cbf9a59e (patch)
tree9eb2407a20f0af1723058451a94ef13d2003cf21 /stdlib
parentedc696a73a7cb07b1aa68792a845a98d036ee7eb (diff)
downloadglibc-590f5992b66a0f105eabf2eae35e8704cbf9a59e.zip
glibc-590f5992b66a0f105eabf2eae35e8704cbf9a59e.tar.gz
glibc-590f5992b66a0f105eabf2eae35e8704cbf9a59e.tar.bz2
Add some missing access function attributes
This patch adds some missing access function attributes to getrandom / getentropy and several functions in sys/xattr.h Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/sys/random.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/stdlib/sys/random.h b/stdlib/sys/random.h
index ea5b98d..8c2ef9c 100644
--- a/stdlib/sys/random.h
+++ b/stdlib/sys/random.h
@@ -32,11 +32,13 @@ __BEGIN_DECLS
/* Write LENGTH bytes of randomness starting at BUFFER. Return the
number of bytes written, or -1 on error. */
ssize_t getrandom (void *__buffer, size_t __length,
- unsigned int __flags) __wur;
+ unsigned int __flags) __wur
+ __attr_access ((__write_only__, 1, 2));
/* Write LENGTH bytes of randomness starting at BUFFER. Return 0 on
success or -1 on error. */
-int getentropy (void *__buffer, size_t __length) __wur;
+int getentropy (void *__buffer, size_t __length) __wur
+ __attr_access ((__write_only__, 1, 2));
__END_DECLS