-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathfake_getpwent.c
More file actions
48 lines (38 loc) · 808 Bytes
/
fake_getpwent.c
File metadata and controls
48 lines (38 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <pwd.h>
#include "libiosexec.h"
struct passwd *
ie_getpwent(void) {
return getpwent();
}
struct passwd *
ie_getpwnam(const char *name) {
return getpwnam(name);
}
int
ie_getpwnam_r(const char *name, struct passwd *pw, char *buf, size_t buflen, struct passwd **pwretp) {
return getpwnam_r(name, pw, buf, buflen, pwretp);
}
struct passwd *
ie_getpwuid(uid_t uid) {
return getpwuid(uid);
}
int
ie_getpwuid_r(uid_t uid, struct passwd *pw, char *buf, size_t buflen, struct passwd **pwretp) {
return getpwuid_r(uid, pw, buf, buflen, pwretp);
}
int
ie_setpassent(int stayopen) {
return setpassent(stayopen);
}
void
ie_setpwent(void) {
return setpwent();
}
void
ie_endpwent(void) {
return endpwent();
}
char *
ie_user_from_uid(uid_t uid, int nouser) {
return user_from_uid(uid, nouser);
}