From 2f1bd14d3ddf792af661b72c3f50861bc08e936b Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Tue, 24 Jun 2008 14:31:59 +0000 Subject: [PATCH] prototypes for getpwnam_r() and getpwuid_r() --- src/include/pwd.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/include/pwd.h b/src/include/pwd.h index 4d3d6495..572ee679 100644 --- a/src/include/pwd.h +++ b/src/include/pwd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pwd.h,v 1.18 2005/12/13 00:35:22 millert Exp $ */ +/* $OpenBSD: pwd.h,v 1.19 2008/06/24 14:31:59 deraadt Exp $ */ /* $NetBSD: pwd.h,v 1.9 1996/05/15 21:36:45 jtc Exp $ */ /*- @@ -93,6 +93,10 @@ struct passwd { __BEGIN_DECLS struct passwd *getpwuid(uid_t); struct passwd *getpwnam(const char *); +int getpwnam_r(const char *, struct passwd *, char *, size_t, + struct passwd **result); +int getpwuid_r(uid_t uid, struct passwd *, char *buf, size_t buflen, + struct passwd **result); #if __BSD_VISIBLE || __XPG_VISIBLE struct passwd *getpwent(void); void setpwent(void);