Per POSIX <grp.h> doesn't require <sys/types.h>.

Submitted by:	ache
This commit is contained in:
Maxim Sobolev 2002-02-25 17:20:40 +00:00
parent 60769b19cd
commit b73aa6457c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91245
2 changed files with 3 additions and 3 deletions

View file

@ -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 *));

View file

@ -47,7 +47,6 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
.In sys/types.h
.In grp.h
.Ft struct group *
.Fn getgrent void