summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/libcruft/getpwuid.c
blob: bca6a8a0cfb38e8e4eb781dc41d83a7d75bbe4e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <pwd.h>
#include <string.h>
#include <stdlib.h>

extern struct passwd __passwd_pw;
extern char __passwd_buf[1000];

struct passwd *getpwuid(uid_t uid) {
  struct passwd *tmp;
  getpwuid_r(uid,&__passwd_pw,__passwd_buf,sizeof(__passwd_buf),&tmp);
  return tmp;
}