Last change
on this file since 1505 was 1505, checked in by bird, 21 years ago |
Adding BSD stuff like there was no tomorrow.
|
-
Property cvs2svn:cvs-rev
set to
1.2
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | /* grp.h (emx+gcc) */
|
---|
2 |
|
---|
3 | #ifndef _GRP_H_
|
---|
4 | #define _GRP_H_
|
---|
5 | #define _GRP_H
|
---|
6 |
|
---|
7 | #include <sys/cdefs.h>
|
---|
8 | #include <sys/_types.h>
|
---|
9 |
|
---|
10 | __BEGIN_DECLS
|
---|
11 |
|
---|
12 | #ifndef _POSIX_SOURCE
|
---|
13 | #define _PATH_GROUP "/etc/group"
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | #if !defined(_GID_T_DECLARED) && !defined(_GID_T)
|
---|
17 | typedef __gid_t gid_t;
|
---|
18 | #define _GID_T_DECLARED
|
---|
19 | #define _GID_T
|
---|
20 | #endif
|
---|
21 |
|
---|
22 | #if !defined(_SIZE_T_DECLARED) && !defined(_SIZE_T)
|
---|
23 | typedef __size_t size_t;
|
---|
24 | #define _SIZE_T_DECLARED
|
---|
25 | #define _SIZE_T
|
---|
26 | #endif
|
---|
27 |
|
---|
28 |
|
---|
29 | struct group
|
---|
30 | {
|
---|
31 | char *gr_name;
|
---|
32 | char *gr_passwd;
|
---|
33 | gid_t gr_gid;
|
---|
34 | char **gr_mem;
|
---|
35 | };
|
---|
36 |
|
---|
37 | struct group *getgrgid (gid_t);
|
---|
38 | struct group *getgrnam (const char *);
|
---|
39 |
|
---|
40 | #if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
|
---|
41 | struct group *getgrent(void);
|
---|
42 | int setgrent(void);
|
---|
43 | void endgrent(void);
|
---|
44 | void setgrfile(const char *);
|
---|
45 | int setgroupent(int);
|
---|
46 | int getgrgid_r(gid_t, struct group *, char *, size_t, struct group **);
|
---|
47 | int getgrnam_r(const char *, struct group *, char *, size_t, struct group **);
|
---|
48 | #endif
|
---|
49 |
|
---|
50 | #if __BSD_VISIBLE
|
---|
51 | const char *group_from_gid(gid_t, int);
|
---|
52 | int getgrent_r(struct group *, char *, size_t, struct group **);
|
---|
53 | int setgroupent(int);
|
---|
54 | #endif
|
---|
55 |
|
---|
56 | __END_DECLS
|
---|
57 |
|
---|
58 | #endif /* not _GRP_H_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.