Loading...
--- Libc/Libc-763.13/include/grp.h
+++ Libc/Libc-262/include/grp.h
@@ -3,20 +3,19 @@
*
* @APPLE_LICENSE_HEADER_START@
*
- * 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
- * compliance with the License. Please obtain a copy of the License at
- * http://www.opensource.apple.com/apsl/ and read it before using this
- * file.
+ * The contents of this file constitute Original Code as defined in and
+ * are subject to the Apple Public Source License Version 1.1 (the
+ * "License"). You may not use this file except in compliance with the
+ * License. Please obtain a copy of the License at
+ * http://www.apple.com/publicsource and read it before using this file.
*
- * The Original Code and all software distributed under the License are
- * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * This Original Code and all software distributed under the License are
+ * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
- * Please see the License for the specific language governing rights and
- * limitations under the License.
+ * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
+ * License for the specific language governing rights and limitations
+ * under the License.
*
* @APPLE_LICENSE_HEADER_END@
*/
@@ -63,54 +62,30 @@
#ifndef _GRP_H_
#define _GRP_H_
-#include <_types.h>
-
-#ifndef _GID_T
-typedef __darwin_gid_t gid_t; /* [XBD] */
-#define _GID_T
-#endif
-
-/*
- * Although the definition of size_t is not mandated by [TSF], the function
- * prototypes defined by [TSF] for the thread reentrant functions include
- * it as a type for their 4th arguments, so we define it here.
- */
-#ifndef _SIZE_T
-#define _SIZE_T
-typedef __darwin_size_t size_t; /* [???] */
-#endif
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
+#ifndef _POSIX_SOURCE
#define _PATH_GROUP "/etc/group"
#endif
struct group {
- char *gr_name; /* [XBD] group name */
- char *gr_passwd; /* [???] group password */
- gid_t gr_gid; /* [XBD] group id */
- char **gr_mem; /* [XBD] group members */
+ char *gr_name; /* group name */
+ char *gr_passwd; /* group password */
+ gid_t gr_gid; /* group id */
+ char **gr_mem; /* group members */
};
#include <sys/cdefs.h>
__BEGIN_DECLS
-/* [XBD] */
-struct group *getgrgid(gid_t);
-struct group *getgrnam(const char *);
-/* [TSF] */
-int getgrgid_r(gid_t, struct group *, char *, size_t, struct group **);
-int getgrnam_r(const char *, struct group *, char *, size_t, struct group **);
-/* [XSI] */
-struct group *getgrent(void);
-void setgrent(void);
-void endgrent(void);
-
-#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 *);
-int setgroupent(int);
+struct group *getgrgid __P((gid_t));
+struct group *getgrnam __P((const char *));
+int getgrgid_r __P((gid_t, struct group *, char *, size_t, struct group **));
+int getgrnam_r __P((const char *, struct group *, char *, size_t, struct group **));
+#ifndef _POSIX_SOURCE
+struct group *getgrent __P((void));
+int setgrent __P((void));
+void endgrent __P((void));
+void setgrfile __P((const char *));
+int setgroupent __P((int));
#endif
__END_DECLS