summaryrefslogtreecommitdiff
path: root/src/pwd/getpwnam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pwd/getpwnam.c')
-rw-r--r--src/pwd/getpwnam.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/pwd/getpwnam.c b/src/pwd/getpwnam.c
deleted file mode 100644
index 14ba3690..00000000
--- a/src/pwd/getpwnam.c
+++ /dev/null
@@ -1,29 +0,0 @@
-#if 0
-
-#include <sys/types.h>
-#include <pwd.h>
-#include <string.h>
-#include "_pwd.h"
-
-struct passwd * getpwnam(const char * name)
-{
- struct passwd *pwd = NULL;
- setpwent();
-
- while ((pwd = getpwent()) != NULL) {
- if (strcmp(name, pwd->pw_name) == 0) {
- endpwent();
- return pwd;
- }
- }
-
- endpwent();
- return NULL;
-}
-
-/*
-POSIX(1)
-*/
-
-
-#endif