Changeset 1505 for trunk/src/emx/include/grp.h
- Timestamp:
- Sep 12, 2004, 9:40:29 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/grp.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1504 r1505 1 1 /* grp.h (emx+gcc) */ 2 2 3 #ifndef _GRP_H 3 #ifndef _GRP_H_ 4 #define _GRP_H_ 4 5 #define _GRP_H 5 6 6 #if defined (__cplusplus) 7 extern "C" { 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" 8 14 #endif 9 15 10 #if !defined (_GID_T) 11 #define _GID_T 12 typedef int gid_t; 16 #if !defined(_GID_T_DECLARED) && !defined(_GID_T) 17 typedef __gid_t gid_t; 18 #define _GID_T_DECLARED 19 #define _GID_T 13 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 14 28 15 29 struct group 16 30 { 17 31 char *gr_name; 32 char *gr_passwd; 18 33 gid_t gr_gid; 19 34 char **gr_mem; 20 35 }; 21 36 22 struct group *getgrgid (gid_t);23 struct group *getgrnam (__const__char *);37 struct group *getgrgid (gid_t); 38 struct group *getgrnam (const char *); 24 39 25 #if defined (__cplusplus) 26 } 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 **); 27 48 #endif 28 49 29 #endif /* not _GRP_H */ 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_ */ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.