2 * Copyright 2002-2012 Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
25 /* traverse the user password database */
26 extern struct passwd
*getpwent(void);
27 extern int getpwent_r(struct passwd
* pwbuf
, char* buf
, size_t buflen
,
28 struct passwd
** pwbufp
);
29 extern void setpwent(void);
30 extern void endpwent(void);
32 /* search the user password database */
33 extern struct passwd
*getpwnam(const char *name
);
34 extern int getpwnam_r(const char *name
, struct passwd
*passwd
, char *buffer
,
35 size_t bufferSize
, struct passwd
**result
);
36 extern struct passwd
*getpwuid(uid_t uid
);
37 extern int getpwuid_r(uid_t uid
, struct passwd
*passwd
, char *buffer
,
38 size_t bufferSize
, struct passwd
**result
);