30 |
#include <sys/stat.h> |
#include <sys/stat.h> |
31 |
#include <string.h> |
#include <string.h> |
32 |
#include <pwd.h> |
#include <pwd.h> |
33 |
|
#include <grp.h> |
34 |
#include <sys/param.h> |
#include <sys/param.h> |
35 |
#include <stdlib.h> |
#include <stdlib.h> |
36 |
#include <fcntl.h> |
#include <fcntl.h> |
1165 |
my_passwd_dir, |
my_passwd_dir, |
1166 |
}; |
}; |
1167 |
|
|
1168 |
|
static struct group my_group = |
1169 |
|
{ |
1170 |
|
/* There are no groups on the mac, so we just return "root" as the |
1171 |
|
group name. */ |
1172 |
|
"root", |
1173 |
|
}; |
1174 |
|
|
1175 |
|
|
1176 |
/* Initialized by main () in macterm.c to pathname of emacs directory. */ |
/* Initialized by main () in macterm.c to pathname of emacs directory. */ |
1177 |
|
|
1266 |
} |
} |
1267 |
|
|
1268 |
|
|
1269 |
|
struct group * |
1270 |
|
getgrgid (gid_t gid) |
1271 |
|
{ |
1272 |
|
return &my_group; |
1273 |
|
} |
1274 |
|
|
1275 |
|
|
1276 |
struct passwd * |
struct passwd * |
1277 |
getpwnam (const char *name) |
getpwnam (const char *name) |
1278 |
{ |
{ |