Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/include Pull up revision 1.22 (requested by kleink in tic...
details: https://anonhg.NetBSD.org/src/rev/5e8b872227db
branches: netbsd-3
changeset: 575918:5e8b872227db
user: tron <tron%NetBSD.org@localhost>
date: Sat May 28 13:40:45 2005 +0000
description:
Pull up revision 1.22 (requested by kleink in ticket #345):
Make namespace protection feature tests for reentrant functions more
accurate (and actually less restrictive).
diffstat:
include/grp.h | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r 5eefb0a153fb -r 5e8b872227db include/grp.h
--- a/include/grp.h Sat May 28 13:40:38 2005 +0000
+++ b/include/grp.h Sat May 28 13:40:45 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: grp.h,v 1.20 2005/02/03 04:39:32 perry Exp $ */
+/* $NetBSD: grp.h,v 1.20.2.1 2005/05/28 13:40:45 tron Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -57,14 +57,17 @@
__BEGIN_DECLS
struct group *getgrgid(gid_t);
struct group *getgrnam(const char *);
+#if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \
+ defined(_REENTRANT) || defined(_NETBSD_SOURCE)
+int getgrgid_r(gid_t, struct group *, char *, size_t,
+ struct group **);
+int getgrnam_r(const char *, struct group *, char *, size_t,
+ struct group **);
+#endif
#if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)
struct group *getgrent(void);
void setgrent(void);
void endgrent(void);
-int getgrgid_r(gid_t, struct group *, char *, size_t,
- struct group **);
-int getgrnam_r(const char *, struct group *, char *, size_t,
- struct group **);
#endif
#if defined(_NETBSD_SOURCE)
void setgrfile(const char *);
Home |
Main Index |
Thread Index |
Old Index