aboutsummaryrefslogtreecommitdiff
path: root/include/pwd_.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pwd_.h')
-rw-r--r--include/pwd_.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/pwd_.h b/include/pwd_.h
index d086f86e3..32b5b366e 100644
--- a/include/pwd_.h
+++ b/include/pwd_.h
@@ -43,21 +43,21 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
43 * in order to not collide with libc names. */ 43 * in order to not collide with libc names. */
44 44
45/* Rewind the password-file stream. */ 45/* Rewind the password-file stream. */
46extern void setpwent(void); 46void FAST_FUNC setpwent(void);
47 47
48/* Close the password-file stream. */ 48/* Close the password-file stream. */
49extern void endpwent(void); 49void FAST_FUNC endpwent(void);
50 50
51#ifdef UNUSED_SINCE_WE_AVOID_STATIC_BUFS 51#ifdef UNUSED_SINCE_WE_AVOID_STATIC_BUFS
52/* Read an entry from the password-file stream, opening it if necessary. */ 52/* Read an entry from the password-file stream, opening it if necessary. */
53extern struct passwd *getpwent(void); 53struct passwd* FAST_FUNC getpwent(void);
54#endif 54#endif
55 55
56/* Search for an entry with a matching user ID. */ 56/* Search for an entry with a matching user ID. */
57extern struct passwd *getpwuid(uid_t __uid); 57struct passwd* FAST_FUNC getpwuid(uid_t __uid);
58 58
59/* Search for an entry with a matching username. */ 59/* Search for an entry with a matching username. */
60extern struct passwd *getpwnam(const char *__name); 60struct passwd* FAST_FUNC getpwnam(const char *__name);
61 61
62/* Reentrant versions of some of the functions above. 62/* Reentrant versions of some of the functions above.
63 63
@@ -67,11 +67,11 @@ extern struct passwd *getpwnam(const char *__name);
67 other reentrant functions so the chances are good this is what the 67 other reentrant functions so the chances are good this is what the
68 POSIX people would choose. */ 68 POSIX people would choose. */
69 69
70extern int getpwent_r(struct passwd *__restrict __resultbuf, 70int FAST_FUNC getpwent_r(struct passwd *__restrict __resultbuf,
71 char *__restrict __buffer, size_t __buflen, 71 char *__restrict __buffer, size_t __buflen,
72 struct passwd **__restrict __result); 72 struct passwd **__restrict __result);
73 73
74extern int getpwnam_r(const char *__restrict __name, 74int FAST_FUNC getpwnam_r(const char *__restrict __name,
75 struct passwd *__restrict __resultbuf, 75 struct passwd *__restrict __resultbuf,
76 char *__restrict __buffer, size_t __buflen, 76 char *__restrict __buffer, size_t __buflen,
77 struct passwd **__restrict __result); 77 struct passwd **__restrict __result);