From b8b5a72f41830eadbb4753a74845cf5fcba86334 Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Wed, 25 Feb 2015 19:05:37 -0800 Subject: [PATCH] Make getgrent deprecated. Bug: 19340053 Change-Id: Ie8b97f840d9e87555e6a3d591fc87bc08c2d6820 --- libc/include/grp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libc/include/grp.h b/libc/include/grp.h index 7b3e32b3e..df7a6137d 100644 --- a/libc/include/grp.h +++ b/libc/include/grp.h @@ -54,9 +54,9 @@ __BEGIN_DECLS struct group *getgrgid(gid_t); struct group *getgrnam(const char *); #if __POSIX_VISIBLE >= 200112 || __XPG_VISIBLE -struct group *getgrent(void) __errorattr("getgrent is meaningless on Android"); -__errordecl(setgrent, "setgrent is meaningless on Android"); -__errordecl(endgrent, "endgrent is meaningless on Android"); +struct group *getgrent(void) __attribute__((deprecated("getgrent is meaningless on Android"))); +void setgrent(void) __attribute__((deprecated("setgrent is meaningless on Android"))); +void endgrent(void) __attribute__((deprecated("endgrent is meaningless on Android"))); int getgrgid_r(gid_t, struct group *, char *, size_t, struct group **); int getgrnam_r(const char *, struct group *, char *,