Minor change.
[reactos.git] / posix / include / grp.h
1 /* $Id: grp.h,v 1.2 2002/02/20 09:17:54 hyperion Exp $
2 */
3 /*
4 * grp.h
5 *
6 * group structure. Conforming to the Single UNIX(r) Specification
7 * Version 2, System Interface & Headers Issue 5
8 *
9 * This file is part of the ReactOS Operating System.
10 *
11 * Contributors:
12 * Created by KJK::Hyperion <noog@libero.it>
13 *
14 * THIS SOFTWARE IS NOT COPYRIGHTED
15 *
16 * This source code is offered for use in the public domain. You may
17 * use, modify or distribute it freely.
18 *
19 * This code is distributed in the hope that it will be useful but
20 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
21 * DISCLAMED. This includes but is not limited to warranties of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 *
24 */
25 #ifndef __GRP_H_INCLUDED__
26 #define __GRP_H_INCLUDED__
27
28 /* INCLUDES */
29
30 /* OBJECTS */
31
32 /* TYPES */
33 struct group
34 {
35 char *gr_name; /* the name of the group */
36 gid_t gr_gid; /* numerical group ID */
37 char **gr_mem; /* pointer to a null-terminated array of character
38 pointers to member names */
39 };
40
41 /* CONSTANTS */
42
43 /* PROTOTYPES */
44 struct group *getgrgid(gid_t);
45 struct group *getgrnam(const char *);
46 int getgrgid_r(gid_t, struct group *, char *,
47 size_t, struct group **);
48 int getgrnam_r(const char *, struct group *, char *,
49 size_t , struct group **);
50 struct group *getgrent(void);
51 void endgrent(void);
52 void setgrent(void);
53
54 /* MACROS */
55
56 #endif /* __GRP_H_INCLUDED__ */
57
58 /* EOF */
59