1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/* $Id$
* ============================================================================
*
* = LIBRARY
* pace (posix ace)
*
* = FILENAME
* pace/posix/grp.h
*
* = AUTHOR
* Luther Baker
*
* ============================================================================ */
#ifndef PACE_GRP_H
#define PACE_GRP_H
#include <grp.h>
# if defined (PACE_HAS_CPLUSPLUS)
extern "C" {
# endif /* PACE_HAS_CPLUSPLUS */
#ifndef PACE_GROUP
#define PACE_GROUP
typedef struct group pace_group;
#endif /* PACE_GROUP */
/**
PACE's implementation of the POSIX function getgrgid.
See POSIX standard (Internation Standard ISO/IEC 9945-1:1996;
IEEE Std 1003.1, 1996 Edition), Section 9.2.1.
*/
PACE_INLINE pace_group * pace_getgrgid (pace_gid_t gid);
/**
PACE's implementation of the POSIX function getgrgid_r.
See POSIX standard (Internation Standard ISO/IEC 9945-1:1996;
IEEE Std 1003.1, 1996 Edition), Section 9.2.1.
*/
PACE_INLINE int pace_getgrgid_r (pace_gid_t gid,
pace_group * grp,
char * buffer,
size_t bufsize,
pace_group ** result);
/* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */
/**
PACE's implementation of the POSIX function getgrnam.
See POSIX standard (Internation Standard ISO/IEC 9945-1:1996;
IEEE Std 1003.1, 1996 Edition), Section 9.2.1.
*/
PACE_INLINE pace_group * pace_getgrnam (const char * name);
/**
PACE's implementation of the POSIX function getgrnam_r.
See POSIX standard (Internation Standard ISO/IEC 9945-1:1996;
IEEE Std 1003.1, 1996 Edition), Section 9.2.1.
*/
PACE_INLINE int pace_getgrnam_r (const char * name,
pace_group * grp,
char * buffer,
size_t bufsize,
pace_group ** result);
/* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */
# if defined (PACE_HAS_CPLUSPLUS)
}
# endif /* PACE_HAS_CPLUSPLUS */
# if defined (PACE_HAS_INLINE)
# include "pace/posix/grp.inl"
# endif /* PACE_HAS_INLINE */
#endif /* PACE_GRP_H */
|