diff options
author | russ <russ@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-12-18 22:40:58 +0000 |
---|---|---|
committer | russ <russ@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-12-18 22:40:58 +0000 |
commit | fbc6c27a527575dc2477ddda738c8126881a86d5 (patch) | |
tree | 59da8113d1decbb3ae5731d06487e56c426afb0f | |
parent | 6664296f009660a416208c69fcd86fff16138e4b (diff) | |
download | busybox-w32-fbc6c27a527575dc2477ddda738c8126881a86d5.tar.gz busybox-w32-fbc6c27a527575dc2477ddda738c8126881a86d5.tar.bz2 busybox-w32-fbc6c27a527575dc2477ddda738c8126881a86d5.zip |
rename __getgrent so that it doesn't conflict with some libc's
git-svn-id: svn://busybox.net/trunk/busybox@8117 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | include/grp_.h | 2 | ||||
-rw-r--r-- | libpwdgrp/__getgrent.c | 2 | ||||
-rw-r--r-- | libpwdgrp/fgetgrent.c | 2 | ||||
-rw-r--r-- | libpwdgrp/getgrgid.c | 2 | ||||
-rw-r--r-- | libpwdgrp/getgrnam.c | 2 | ||||
-rw-r--r-- | libpwdgrp/grent.c | 2 | ||||
-rw-r--r-- | libpwdgrp/initgroups.c | 4 |
7 files changed, 8 insertions, 8 deletions
diff --git a/include/grp_.h b/include/grp_.h index 0ce274cf0..7cb0d4af6 100644 --- a/include/grp_.h +++ b/include/grp_.h | |||
@@ -32,7 +32,7 @@ extern struct group * fgetgrent __P ((FILE * file)); | |||
32 | extern int setgroups __P ((size_t n, __const gid_t * groups)); | 32 | extern int setgroups __P ((size_t n, __const gid_t * groups)); |
33 | extern int initgroups __P ((__const char * user, gid_t gid)); | 33 | extern int initgroups __P ((__const char * user, gid_t gid)); |
34 | 34 | ||
35 | extern struct group * __getgrent __P ((int grp_fd)); | 35 | extern struct group * bb_getgrent __P ((int grp_fd)); |
36 | 36 | ||
37 | #endif /* USE_SYSTEM_PWD_GRP */ | 37 | #endif /* USE_SYSTEM_PWD_GRP */ |
38 | #endif /* __CONFIG_GRP_H */ | 38 | #endif /* __CONFIG_GRP_H */ |
diff --git a/libpwdgrp/__getgrent.c b/libpwdgrp/__getgrent.c index 392301048..a20b3a260 100644 --- a/libpwdgrp/__getgrent.c +++ b/libpwdgrp/__getgrent.c | |||
@@ -71,7 +71,7 @@ | |||
71 | * getgrent() except that it is passed a file descriptor. getgrent() | 71 | * getgrent() except that it is passed a file descriptor. getgrent() |
72 | * is just a wrapper for this function. | 72 | * is just a wrapper for this function. |
73 | */ | 73 | */ |
74 | struct group *__getgrent(int grp_fd) | 74 | struct group *bb_getgrent(int grp_fd) |
75 | { | 75 | { |
76 | #ifndef GR_SCALE_DYNAMIC | 76 | #ifndef GR_SCALE_DYNAMIC |
77 | static char line_buff[GR_MAX_LINE_LEN]; | 77 | static char line_buff[GR_MAX_LINE_LEN]; |
diff --git a/libpwdgrp/fgetgrent.c b/libpwdgrp/fgetgrent.c index 1492a1a95..da4ca053f 100644 --- a/libpwdgrp/fgetgrent.c +++ b/libpwdgrp/fgetgrent.c | |||
@@ -31,5 +31,5 @@ struct group *fgetgrent(FILE * file) | |||
31 | return NULL; | 31 | return NULL; |
32 | } | 32 | } |
33 | 33 | ||
34 | return __getgrent(fileno(file)); | 34 | return bb_getgrent(fileno(file)); |
35 | } | 35 | } |
diff --git a/libpwdgrp/getgrgid.c b/libpwdgrp/getgrgid.c index 7ffe8c5c3..0f5ce1cac 100644 --- a/libpwdgrp/getgrgid.c +++ b/libpwdgrp/getgrgid.c | |||
@@ -33,7 +33,7 @@ struct group *getgrgid(const gid_t gid) | |||
33 | if ((grp_fd = open(bb_path_group_file, O_RDONLY)) < 0) | 33 | if ((grp_fd = open(bb_path_group_file, O_RDONLY)) < 0) |
34 | return NULL; | 34 | return NULL; |
35 | 35 | ||
36 | while ((group = __getgrent(grp_fd)) != NULL) | 36 | while ((group = bb_getgrent(grp_fd)) != NULL) |
37 | if (group->gr_gid == gid) { | 37 | if (group->gr_gid == gid) { |
38 | close(grp_fd); | 38 | close(grp_fd); |
39 | return group; | 39 | return group; |
diff --git a/libpwdgrp/getgrnam.c b/libpwdgrp/getgrnam.c index bf7f7646d..46950e2b6 100644 --- a/libpwdgrp/getgrnam.c +++ b/libpwdgrp/getgrnam.c | |||
@@ -39,7 +39,7 @@ struct group *getgrnam(const char *name) | |||
39 | if ((grp_fd = open(bb_path_group_file, O_RDONLY)) < 0) | 39 | if ((grp_fd = open(bb_path_group_file, O_RDONLY)) < 0) |
40 | return NULL; | 40 | return NULL; |
41 | 41 | ||
42 | while ((group = __getgrent(grp_fd)) != NULL) | 42 | while ((group = bb_getgrent(grp_fd)) != NULL) |
43 | if (!strcmp(group->gr_name, name)) { | 43 | if (!strcmp(group->gr_name, name)) { |
44 | close(grp_fd); | 44 | close(grp_fd); |
45 | return group; | 45 | return group; |
diff --git a/libpwdgrp/grent.c b/libpwdgrp/grent.c index 609ed1a46..ff3c49e68 100644 --- a/libpwdgrp/grent.c +++ b/libpwdgrp/grent.c | |||
@@ -50,5 +50,5 @@ struct group *getgrent(void) | |||
50 | { | 50 | { |
51 | if (grp_fd == -1) | 51 | if (grp_fd == -1) |
52 | return NULL; | 52 | return NULL; |
53 | return __getgrent(grp_fd); | 53 | return bb_getgrent(grp_fd); |
54 | } | 54 | } |
diff --git a/libpwdgrp/initgroups.c b/libpwdgrp/initgroups.c index ce63adb18..f97948379 100644 --- a/libpwdgrp/initgroups.c +++ b/libpwdgrp/initgroups.c | |||
@@ -89,9 +89,9 @@ int initgroups(__const char *user, gid_t gid) | |||
89 | group_list[num_groups] = gid; | 89 | group_list[num_groups] = gid; |
90 | #ifndef GR_DYNAMIC_GROUP_LIST | 90 | #ifndef GR_DYNAMIC_GROUP_LIST |
91 | while (num_groups < GR_MAX_GROUPS && | 91 | while (num_groups < GR_MAX_GROUPS && |
92 | (group = __getgrent(grp_fd)) != NULL) | 92 | (group = bb_getgrent(grp_fd)) != NULL) |
93 | #else | 93 | #else |
94 | while ((group = __getgrent(grp_fd)) != NULL) | 94 | while ((group = bb_getgrent(grp_fd)) != NULL) |
95 | #endif | 95 | #endif |
96 | { | 96 | { |
97 | if (group->gr_gid != gid) | 97 | if (group->gr_gid != gid) |