Browse Source

prototypes for getpwnam_r() and getpwuid_r()

OPENBSD_4_4
deraadt 16 years ago
parent
commit
2f1bd14d3d
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/include/pwd.h

+ 5
- 1
src/include/pwd.h View File

@ -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 $ */ /* $NetBSD: pwd.h,v 1.9 1996/05/15 21:36:45 jtc Exp $ */
/*- /*-
@ -93,6 +93,10 @@ struct passwd {
__BEGIN_DECLS __BEGIN_DECLS
struct passwd *getpwuid(uid_t); struct passwd *getpwuid(uid_t);
struct passwd *getpwnam(const char *); 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 #if __BSD_VISIBLE || __XPG_VISIBLE
struct passwd *getpwent(void); struct passwd *getpwent(void);
void setpwent(void); void setpwent(void);


Loading…
Cancel
Save