Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_grp_h_
  3. #define __dj_include_grp_h_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #ifndef __STRICT_ANSI__
  12.  
  13. #include <sys/djtypes.h>
  14. __DJ_gid_t
  15. #undef __DJ_gid_t
  16. #define __DJ_gid_t
  17.  
  18. struct group {
  19.   gid_t         gr_gid;
  20.   char **       gr_mem;
  21.   char *        gr_name;
  22. };
  23.  
  24. struct group *  getgrgid(gid_t _gid);
  25. struct group *  getgrnam(const char *_name);
  26.  
  27. #ifndef _POSIX_SOURCE
  28.  
  29. void            endgrent(void);
  30. struct group *  getgrent(void);
  31. struct group *  fgetgrent(void *_f);
  32. void            setgrent(void);
  33.  
  34. #endif /* !_POSIX_SOURCE */
  35. #endif /* !__STRICT_ANSI__ */
  36. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  37.  
  38. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  39. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  40.  
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44.  
  45. #endif /* !__dj_include_grp_h_ */
  46.