Add getpwent_r, getgrent_r

This commit is contained in:
christos 2005-04-02 04:54:35 +00:00
parent 184974e05a
commit a4d6d34976
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: grp.h,v 1.20 2005/02/03 04:39:32 perry Exp $ */
/* $NetBSD: grp.h,v 1.21 2005/04/02 04:54:35 christos Exp $ */
/*-
* Copyright (c) 1989, 1993
@ -69,6 +69,7 @@ int getgrnam_r(const char *, struct group *, char *, size_t,
#if defined(_NETBSD_SOURCE)
void setgrfile(const char *);
int setgroupent(int);
int getgrent_r(struct group *, char *, size_t, struct group **);
const char *group_from_gid(gid_t, int);
int gid_from_group(const char *, gid_t *);
int pwcache_groupdb(int (*)(int), void (*)(void),

View File

@ -1,4 +1,4 @@
/* $NetBSD: pwd.h,v 1.37 2005/02/03 04:39:32 perry Exp $ */
/* $NetBSD: pwd.h,v 1.38 2005/04/02 04:54:35 christos Exp $ */
/*-
* Copyright (c) 1989, 1993
@ -133,6 +133,7 @@ int getpwuid_r(uid_t, struct passwd *, char *, size_t,
int pw_gensalt(char *, size_t, const char *, const char *);
int pw_scan(char *, struct passwd *, int *);
int setpassent(int);
int getpwent_r(struct passwd *, char *, size_t, struct passwd **);
const char *user_from_uid(uid_t, int);
int uid_from_user(const char *, uid_t *);
int pwcache_userdb(int (*)(int), void (*)(void),