Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include Add getpwent_r, getgrent_r
details: https://anonhg.NetBSD.org/src/rev/c48e8b10f6bd
branches: trunk
changeset: 579948:c48e8b10f6bd
user: christos <christos%NetBSD.org@localhost>
date: Sat Apr 02 04:54:35 2005 +0000
description:
Add getpwent_r, getgrent_r
diffstat:
include/grp.h | 3 ++-
include/pwd.h | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 478d0acb5f7c -r c48e8b10f6bd include/grp.h
--- a/include/grp.h Sat Apr 02 04:53:53 2005 +0000
+++ b/include/grp.h Sat Apr 02 04:54:35 2005 +0000
@@ -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 @@
#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),
diff -r 478d0acb5f7c -r c48e8b10f6bd include/pwd.h
--- a/include/pwd.h Sat Apr 02 04:53:53 2005 +0000
+++ b/include/pwd.h Sat Apr 02 04:54:35 2005 +0000
@@ -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 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),
Home |
Main Index |
Thread Index |
Old Index