Lines 38-49
Link Here
|
38 |
#include <stdbool.h> |
38 |
#include <stdbool.h> |
39 |
#include <stringlist.h> |
39 |
#include <stringlist.h> |
40 |
|
40 |
|
41 |
#if defined(__FreeBSD__) |
|
|
42 |
#define RET_SETGRENT int |
43 |
#else |
44 |
#define RET_SETGRENT void |
45 |
#endif |
46 |
|
47 |
struct pwf { |
41 |
struct pwf { |
48 |
int _altdir; |
42 |
int _altdir; |
49 |
void (*_setpwent)(void); |
43 |
void (*_setpwent)(void); |
Lines 51-57
Link Here
|
51 |
struct passwd * (*_getpwent)(void); |
45 |
struct passwd * (*_getpwent)(void); |
52 |
struct passwd * (*_getpwuid)(uid_t uid); |
46 |
struct passwd * (*_getpwuid)(uid_t uid); |
53 |
struct passwd * (*_getpwnam)(const char * nam); |
47 |
struct passwd * (*_getpwnam)(const char * nam); |
54 |
RET_SETGRENT (*_setgrent)(void); |
48 |
void (*_setgrent)(void); |
55 |
void (*_endgrent)(void); |
49 |
void (*_endgrent)(void); |
56 |
struct group * (*_getgrent)(void); |
50 |
struct group * (*_getgrent)(void); |
57 |
struct group * (*_getgrgid)(gid_t gid); |
51 |
struct group * (*_getgrgid)(gid_t gid); |
Lines 141-147
Link Here
|
141 |
struct group * vgetgrent(void); |
135 |
struct group * vgetgrent(void); |
142 |
struct group * vgetgrgid(gid_t gid); |
136 |
struct group * vgetgrgid(gid_t gid); |
143 |
struct group * vgetgrnam(const char * nam); |
137 |
struct group * vgetgrnam(const char * nam); |
144 |
RET_SETGRENT vsetgrent(void); |
138 |
void vsetgrent(void); |
145 |
void vendgrent(void); |
139 |
void vendgrent(void); |
146 |
|
140 |
|
147 |
void copymkdir(int rootfd, char const * dir, int skelfd, mode_t mode, uid_t uid, |
141 |
void copymkdir(int rootfd, char const * dir, int skelfd, mode_t mode, uid_t uid, |