grp.h (ba3594ba9b5dd4c846c472a8d657edcb7c8109ac) grp.h (591ef764641217c678e78cf03e535ae8016a4595)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 100 unchanged lines hidden (view full) ---

109#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || \
110 (_POSIX_C_SOURCE - 0 >= 199506L) || defined(_POSIX_PTHREAD_SEMANTICS)
111
112#if (_POSIX_C_SOURCE - 0 >= 199506L) || defined(_POSIX_PTHREAD_SEMANTICS)
113
114#ifdef __PRAGMA_REDEFINE_EXTNAME
115#pragma redefine_extname getgrgid_r __posix_getgrgid_r
116#pragma redefine_extname getgrnam_r __posix_getgrnam_r
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 100 unchanged lines hidden (view full) ---

109#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || \
110 (_POSIX_C_SOURCE - 0 >= 199506L) || defined(_POSIX_PTHREAD_SEMANTICS)
111
112#if (_POSIX_C_SOURCE - 0 >= 199506L) || defined(_POSIX_PTHREAD_SEMANTICS)
113
114#ifdef __PRAGMA_REDEFINE_EXTNAME
115#pragma redefine_extname getgrgid_r __posix_getgrgid_r
116#pragma redefine_extname getgrnam_r __posix_getgrnam_r
117extern int getgrgid_r(gid_t, struct group *, char *, int, struct group **);
118extern int getgrnam_r(const char *, struct group *, char *, int,
119 struct group **);
117extern int getgrgid_r(gid_t, struct group *, char *,
118 size_t, struct group **);
119extern int getgrnam_r(const char *, struct group *, char *,
120 size_t, struct group **);
120#else /* __PRAGMA_REDEFINE_EXTNAME */
121
122extern int __posix_getgrgid_r(gid_t, struct group *, char *, size_t,
123 struct group **);
124extern int __posix_getgrnam_r(const char *, struct group *, char *, size_t,
125 struct group **);
126
127#ifdef __lint
128
129#define getgrgid_r __posix_getgrgid_r
130#define getgrnam_r __posix_getgrnam_r
131
132#else /* !__lint */
133
134static int
121#else /* __PRAGMA_REDEFINE_EXTNAME */
122
123extern int __posix_getgrgid_r(gid_t, struct group *, char *, size_t,
124 struct group **);
125extern int __posix_getgrnam_r(const char *, struct group *, char *, size_t,
126 struct group **);
127
128#ifdef __lint
129
130#define getgrgid_r __posix_getgrgid_r
131#define getgrnam_r __posix_getgrnam_r
132
133#else /* !__lint */
134
135static int
135getgrgid_r(gid_t __gid, struct group *__grp, char *__buf, int __len,
136getgrgid_r(gid_t __gid, struct group *__grp, char *__buf, size_t __len,
136 struct group **__res)
137{
138 return (__posix_getgrgid_r(__gid, __grp, __buf, __len, __res));
139}
140static int
137 struct group **__res)
138{
139 return (__posix_getgrgid_r(__gid, __grp, __buf, __len, __res));
140}
141static int
141getgrnam_r(const char *__cb, struct group *__grp, char *__buf, int __len,
142getgrnam_r(const char *__cb, struct group *__grp, char *__buf, size_t __len,
142 struct group **__res)
143{
144 return (__posix_getgrnam_r(__cb, __grp, __buf, __len, __res));
145}
146
147#endif /* !__lint */
148#endif /* __PRAGMA_REDEFINE_EXTNAME */
149

--- 14 unchanged lines hidden ---
143 struct group **__res)
144{
145 return (__posix_getgrnam_r(__cb, __grp, __buf, __len, __res));
146}
147
148#endif /* !__lint */
149#endif /* __PRAGMA_REDEFINE_EXTNAME */
150

--- 14 unchanged lines hidden ---