about summary refs log tree commit diff
path: root/grp/grp.h
diff options
context:
space:
mode:
Diffstat (limited to 'grp/grp.h')
-rw-r--r--grp/grp.h22
1 files changed, 5 insertions, 17 deletions
diff --git a/grp/grp.h b/grp/grp.h
index 265f3c2003..7e73625741 100644
--- a/grp/grp.h
+++ b/grp/grp.h
@@ -54,23 +54,6 @@ struct group
 # include <stdio.h>
 #endif
 
-#ifdef	__USE_GNU
-/* Return a new stream open on the group file.  */
-extern FILE *__grpopen __P ((void));
-
-/* Read a group entry from STREAM, filling in G.
-   Return the `struct group' of G if successful, NULL on failure.  */
-extern struct group *__grpread __P ((FILE *__stream, __ptr_t __g));
-
-/* Return a chunk of memory containing pre-initialized data for __grpread.  */
-extern __ptr_t __grpalloc __P ((void));
-
-/* Scan the group file, filling in G, until SELECTOR returns nonzero for an
-   entry.  Return the `struct group' of G if successful, NULL on failure.  */
-extern struct group *__grpscan __P ((__ptr_t *__p,
-				     int (*__selector) (struct group *)));
-#endif
-
 
 #if defined __USE_SVID || defined __USE_BSD || defined __USE_XOPEN_EXTENDED
 /* Rewind the group-file stream.  */
@@ -88,6 +71,11 @@ extern struct group *getgrent __P ((void));
 extern struct group *fgetgrent __P ((FILE *__stream));
 #endif
 
+#ifdef __USE_GNU
+/* Write the given entry onto the given stream.  */
+extern int putgrent __P ((__const struct group *__p, FILE *__f));
+#endif
+
 /* Search for an entry with a matching group ID.  */
 extern struct group *getgrgid __P ((__gid_t __gid));