diff options
Diffstat (limited to 'mdk-stage1/dietlibc/libcruft/getpwnam_r.c')
-rw-r--r-- | mdk-stage1/dietlibc/libcruft/getpwnam_r.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/mdk-stage1/dietlibc/libcruft/getpwnam_r.c b/mdk-stage1/dietlibc/libcruft/getpwnam_r.c deleted file mode 100644 index 55f0bf634..000000000 --- a/mdk-stage1/dietlibc/libcruft/getpwnam_r.c +++ /dev/null @@ -1,14 +0,0 @@ -#include <string.h> -#include <pwd.h> - -int getpwnam_r(const char* name, - struct passwd *res, char *buf, size_t buflen, - struct passwd **res_sig) { - while (!getpwent_r(res,buf,buflen,res_sig)) - if (!strcmp(name,res->pw_name)) - goto ok; - *res_sig=0; -ok: - endpwent(); - return *res_sig?0:-1; -} |