mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-14 20:37:06 +00:00
Use relatively new visibility primitives for conditionals. Document
unimplemented functions.
This commit is contained in:
parent
ca7850c313
commit
eb87df47cf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103515
|
@ -45,9 +45,7 @@
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/_types.h>
|
#include <sys/_types.h>
|
||||||
|
|
||||||
#ifndef _POSIX_SOURCE
|
|
||||||
#define _PATH_GROUP "/etc/group"
|
#define _PATH_GROUP "/etc/group"
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef _GID_T_DECLARED
|
#ifndef _GID_T_DECLARED
|
||||||
typedef __gid_t gid_t;
|
typedef __gid_t gid_t;
|
||||||
|
@ -62,16 +60,25 @@ struct group {
|
||||||
};
|
};
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
|
||||||
|
void endgrent(void);
|
||||||
|
struct group *getgrent(void);
|
||||||
|
#endif
|
||||||
struct group *getgrgid(gid_t);
|
struct group *getgrgid(gid_t);
|
||||||
struct group *getgrnam(const char *);
|
struct group *getgrnam(const char *);
|
||||||
#ifndef _POSIX_SOURCE
|
#if __BSD_VISIBLE
|
||||||
struct group *getgrent(void);
|
|
||||||
int setgrent(void);
|
|
||||||
void endgrent(void);
|
|
||||||
void setgrfile(const char *);
|
|
||||||
int setgroupent(int);
|
|
||||||
const char *group_from_gid(gid_t, int);
|
const char *group_from_gid(gid_t, int);
|
||||||
#endif
|
#endif
|
||||||
|
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
|
||||||
|
int setgrent(void);
|
||||||
|
#endif
|
||||||
|
#if __BSD_VISIBLE
|
||||||
|
void setgrfile(const char *);
|
||||||
|
int setgroupent(int);
|
||||||
|
#endif
|
||||||
|
/*
|
||||||
|
* XXX missing getgrgid_r(), getgrnam_r().
|
||||||
|
*/
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
#endif /* !_GRP_H_ */
|
#endif /* !_GRP_H_ */
|
||||||
|
|
Loading…
Reference in a new issue