grp.h 389 B

1234567891011121314151617181920212223242526
  1. #ifndef __GRP
  2. #define __GRP
  3. #ifndef _POSIX_SOURCE
  4. This header file is not defined in pure ANSI
  5. #endif
  6. #pragma lib "/$M/lib/ape/libap.a"
  7. #include <sys/types.h>
  8. struct group {
  9. char *gr_name;
  10. gid_t gr_gid;
  11. char **gr_mem;
  12. };
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. extern struct group *getgrgid(gid_t);
  17. extern struct group *getgrnam(const char *);
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif