diff options
author | Steve Grubb <sgrubb@redhat.com> | 2022-03-10 17:31:34 -0500 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2022-03-14 20:02:30 +0530 |
commit | a35b8b225da4d3cf4bd81af3808f2ec50db003ce (patch) | |
tree | d5bef55cbec985fd28f85d49c322409eca4ffbe3 /gshadow | |
parent | 70f021e66ae73a99bff9bcc5b71eefb63fc74320 (diff) | |
download | glibc-a35b8b225da4d3cf4bd81af3808f2ec50db003ce.zip glibc-a35b8b225da4d3cf4bd81af3808f2ec50db003ce.tar.gz glibc-a35b8b225da4d3cf4bd81af3808f2ec50db003ce.tar.bz2 |
Add access function attributes to grp and shadow headers
This patch adds access function attributes to the re-entrant functions
in grp.h and shadow headers.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'gshadow')
-rw-r--r-- | gshadow/gshadow.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gshadow/gshadow.h b/gshadow/gshadow.h index 66d6d3b..170df5f 100644 --- a/gshadow/gshadow.h +++ b/gshadow/gshadow.h @@ -108,19 +108,23 @@ extern int putsgent (const struct sgrp *__g, FILE *__stream); or due to the implementation they are cancellation points and therefore not marked with __THROW. */ extern int getsgent_r (struct sgrp *__result_buf, char *__buffer, - size_t __buflen, struct sgrp **__result); + size_t __buflen, struct sgrp **__result) + __attr_access ((__write_only__, 2, 3)); extern int getsgnam_r (const char *__name, struct sgrp *__result_buf, char *__buffer, size_t __buflen, - struct sgrp **__result); + struct sgrp **__result) + __attr_access ((__write_only__, 3, 4)); extern int sgetsgent_r (const char *__string, struct sgrp *__result_buf, char *__buffer, size_t __buflen, - struct sgrp **__result); + struct sgrp **__result) + __attr_access ((__write_only__, 3, 4)); extern int fgetsgent_r (FILE *__stream, struct sgrp *__result_buf, char *__buffer, size_t __buflen, - struct sgrp **__result); + struct sgrp **__result) + __attr_access ((__write_only__, 3, 4)); #endif /* misc */ __END_DECLS |