*
* @APPLE_LICENSE_HEADER_START@
*
- * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
- *
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
#ifndef _GRP_H_
#define _GRP_H_
-#include <sys/_types.h>
+#include <_types.h>
-#ifndef _GID_T_DECLARED
-typedef __gid_t gid_t; /* [XBD] */
-#define _GID_T_DECLARED
+#ifndef _GID_T
+typedef __darwin_gid_t gid_t; /* [XBD] */
+#define _GID_T
#endif
/*
* prototypes defined by [TSF] for the thread reentrant functions include
* it as a type for their 4th arguments, so we define it here.
*/
-#ifndef _BSD_SIZE_T_DEFINED_
-#define _BSD_SIZE_T_DEFINED_
-typedef __size_t size_t; /* [???] */
+#ifndef _SIZE_T
+#define _SIZE_T
+typedef __darwin_size_t size_t; /* [???] */
#endif
-#ifndef _POSIX_SOURCE
+#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
#define _PATH_GROUP "/etc/group"
#endif
int getgrnam_r(const char *, struct group *, char *, size_t, struct group **);
/* [XSI] */
struct group *getgrent(void);
-int setgrent(void);
+void setgrent(void);
void endgrent(void);
-#ifndef _POSIX_SOURCE
-#ifndef _XOPEN_SOURCE
+#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
+#if !defined(_XOPEN_SOURCE) || defined(_DARWIN_C_SOURCE)
char *group_from_gid(gid_t, int);
#endif
void setgrfile(const char *);