aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/grp_.h11
-rw-r--r--include/pwd_.h14
-rw-r--r--include/shadow_.h26
3 files changed, 25 insertions, 26 deletions
diff --git a/include/grp_.h b/include/grp_.h
index f7b8d836f..db13ce3b4 100644
--- a/include/grp_.h
+++ b/include/grp_.h
@@ -36,31 +36,30 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
36#define getgrouplist bb_internal_getgrouplist 36#define getgrouplist bb_internal_getgrouplist
37#define initgroups bb_internal_initgroups 37#define initgroups bb_internal_initgroups
38 38
39
40/* All function names below should be remapped by #defines above 39/* All function names below should be remapped by #defines above
41 * in order to not collide with libc names. */ 40 * in order to not collide with libc names. */
42 41
43/* Close the group-file stream. */ 42/* Close the group-file stream. */
44extern void endgrent(void); 43void FAST_FUNC endgrent(void);
45 44
46/* Search for an entry with a matching group ID. */ 45/* Search for an entry with a matching group ID. */
47extern struct group *getgrgid(gid_t __gid); 46struct group* FAST_FUNC getgrgid(gid_t __gid);
48 47
49/* Search for an entry with a matching group name. */ 48/* Search for an entry with a matching group name. */
50extern struct group *getgrnam(const char *__name); 49struct group* FAST_FUNC getgrnam(const char *__name);
51 50
52/* Reentrant versions of some of the functions above. */ 51/* Reentrant versions of some of the functions above. */
53 52
54/* Store at most *NGROUPS members of the group set for USER into 53/* Store at most *NGROUPS members of the group set for USER into
55 *GROUPS. Also include GROUP. The actual number of groups found is 54 *GROUPS. Also include GROUP. The actual number of groups found is
56 returned in *NGROUPS. Return -1 if the if *NGROUPS is too small. */ 55 returned in *NGROUPS. Return -1 if the if *NGROUPS is too small. */
57extern int getgrouplist(const char *__user, gid_t __group, 56int FAST_FUNC getgrouplist(const char *__user, gid_t __group,
58 gid_t *__groups, int *__ngroups); 57 gid_t *__groups, int *__ngroups);
59 58
60/* Initialize the group set for the current user 59/* Initialize the group set for the current user
61 by reading the group database and using all groups 60 by reading the group database and using all groups
62 of which USER is a member. Also include GROUP. */ 61 of which USER is a member. Also include GROUP. */
63extern int initgroups(const char *__user, gid_t __group); 62int FAST_FUNC initgroups(const char *__user, gid_t __group);
64 63
65POP_SAVED_FUNCTION_VISIBILITY 64POP_SAVED_FUNCTION_VISIBILITY
66 65
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);
diff --git a/include/shadow_.h b/include/shadow_.h
index 7babe4f30..8e2581e7c 100644
--- a/include/shadow_.h
+++ b/include/shadow_.h
@@ -57,48 +57,48 @@ struct spwd {
57 57
58#ifdef UNUSED_FOR_NOW 58#ifdef UNUSED_FOR_NOW
59/* Open database for reading */ 59/* Open database for reading */
60extern void setspent(void); 60void FAST_FUNC setspent(void);
61 61
62/* Close database */ 62/* Close database */
63extern void endspent(void); 63void FAST_FUNC endspent(void);
64 64
65/* Get next entry from database, perhaps after opening the file */ 65/* Get next entry from database, perhaps after opening the file */
66extern struct spwd *getspent(void); 66struct spwd* FAST_FUNC getspent(void);
67 67
68/* Get shadow entry matching NAME */ 68/* Get shadow entry matching NAME */
69extern struct spwd *getspnam(const char *__name); 69struct spwd* FAST_FUNC getspnam(const char *__name);
70 70
71/* Read shadow entry from STRING */ 71/* Read shadow entry from STRING */
72extern struct spwd *sgetspent(const char *__string); 72struct spwd* FAST_FUNC sgetspent(const char *__string);
73 73
74/* Read next shadow entry from STREAM */ 74/* Read next shadow entry from STREAM */
75extern struct spwd *fgetspent(FILE *__stream); 75struct spwd* FAST_FUNC fgetspent(FILE *__stream);
76 76
77/* Write line containing shadow password entry to stream */ 77/* Write line containing shadow password entry to stream */
78extern int putspent(const struct spwd *__p, FILE *__stream); 78int FAST_FUNC putspent(const struct spwd *__p, FILE *__stream);
79 79
80/* Reentrant versions of some of the functions above */ 80/* Reentrant versions of some of the functions above */
81extern int getspent_r(struct spwd *__result_buf, char *__buffer, 81int FAST_FUNC getspent_r(struct spwd *__result_buf, char *__buffer,
82 size_t __buflen, struct spwd **__result); 82 size_t __buflen, struct spwd **__result);
83#endif 83#endif
84 84
85extern int getspnam_r(const char *__name, struct spwd *__result_buf, 85int FAST_FUNC getspnam_r(const char *__name, struct spwd *__result_buf,
86 char *__buffer, size_t __buflen, 86 char *__buffer, size_t __buflen,
87 struct spwd **__result); 87 struct spwd **__result);
88 88
89#ifdef UNUSED_FOR_NOW 89#ifdef UNUSED_FOR_NOW
90extern int sgetspent_r(const char *__string, struct spwd *__result_buf, 90int FAST_FUNC sgetspent_r(const char *__string, struct spwd *__result_buf,
91 char *__buffer, size_t __buflen, 91 char *__buffer, size_t __buflen,
92 struct spwd **__result); 92 struct spwd **__result);
93 93
94extern int fgetspent_r(FILE *__stream, struct spwd *__result_buf, 94int FAST_FUNC fgetspent_r(FILE *__stream, struct spwd *__result_buf,
95 char *__buffer, size_t __buflen, 95 char *__buffer, size_t __buflen,
96 struct spwd **__result); 96 struct spwd **__result);
97/* Protect password file against multi writers */ 97/* Protect password file against multi writers */
98extern int lckpwdf(void); 98int FAST_FUNC lckpwdf(void);
99 99
100/* Unlock password file */ 100/* Unlock password file */
101extern int ulckpwdf(void); 101int FAST_FUNC ulckpwdf(void);
102#endif 102#endif
103 103
104POP_SAVED_FUNCTION_VISIBILITY 104POP_SAVED_FUNCTION_VISIBILITY