summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-02-25 17:20:40 +0000
committersobomax <sobomax@FreeBSD.org>2002-02-25 17:20:40 +0000
commitc70d19ad22d1c5fd6c5d552919cd2cf4c125b383 (patch)
tree0b82905913abdcf53100775160928bc1c5750f6d
parent2b3e8246a1c755bfca840257b7906da2a0cf87a4 (diff)
downloadFreeBSD-src-c70d19ad22d1c5fd6c5d552919cd2cf4c125b383.zip
FreeBSD-src-c70d19ad22d1c5fd6c5d552919cd2cf4c125b383.tar.gz
Per POSIX <grp.h> doesn't require <sys/types.h>.
Submitted by: ache
-rw-r--r--include/grp.h5
-rw-r--r--lib/libc/gen/getgrent.31
2 files changed, 3 insertions, 3 deletions
diff --git a/include/grp.h b/include/grp.h
index 5b101cf..abd88ef 100644
--- a/include/grp.h
+++ b/include/grp.h
@@ -42,6 +42,9 @@
#ifndef _GRP_H_
#define _GRP_H_
+#include <sys/types.h>
+#include <sys/cdefs.h>
+
#ifndef _POSIX_SOURCE
#define _PATH_GROUP "/etc/group"
#endif
@@ -53,8 +56,6 @@ struct group {
char **gr_mem; /* group members */
};
-#include <sys/cdefs.h>
-
__BEGIN_DECLS
struct group *getgrgid __P((gid_t));
struct group *getgrnam __P((const char *));
diff --git a/lib/libc/gen/getgrent.3 b/lib/libc/gen/getgrent.3
index f32a901..b42f68e 100644
--- a/lib/libc/gen/getgrent.3
+++ b/lib/libc/gen/getgrent.3
@@ -47,7 +47,6 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.In sys/types.h
.In grp.h
.Ft struct group *
.Fn getgrent void
OpenPOWER on IntegriCloud