diff options
Diffstat (limited to 'src/pwd/getpwuid.c')
| -rw-r--r-- | src/pwd/getpwuid.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/pwd/getpwuid.c b/src/pwd/getpwuid.c deleted file mode 100644 index 7c8eaadf..00000000 --- a/src/pwd/getpwuid.c +++ /dev/null @@ -1,28 +0,0 @@ -#if 0 - -#include <sys/types.h> -#include <pwd.h> -#include "_pwd.h" - -struct passwd * getpwuid(uid_t uid) -{ - struct passwd *pwd = NULL; - setpwent(); - - while ((pwd = getpwent()) != NULL) { - if (pwd->pw_uid == uid) { - endpwent(); - return pwd; - } - } - - endpwent(); - return NULL; -} - -/* -POSIX(1) -*/ - - -#endif |
