Mercurial > emacs
changeset 53122:5544010b4c66
(struct my_group): Added.
(getgrgid): Added.
author | Lars Hansen <larsh@soem.dk> |
---|---|
date | Sat, 22 Nov 2003 23:00:59 +0000 |
parents | 7bc3983467ea |
children | e86b5bc46cca |
files | src/mac.c |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mac.c Sat Nov 22 22:44:31 2003 +0000 +++ b/src/mac.c Sat Nov 22 23:00:59 2003 +0000 @@ -30,6 +30,7 @@ #include <sys/stat.h> #include <string.h> #include <pwd.h> +#include <grp.h> #include <sys/param.h> #include <stdlib.h> #include <fcntl.h> @@ -1164,6 +1165,13 @@ my_passwd_dir, }; +static struct group my_group = +{ + /* There are no groups on the mac, so we just return "root" as the + group name. */ + "root", +}; + /* Initialized by main () in macterm.c to pathname of emacs directory. */ @@ -1258,6 +1266,13 @@ } +struct group * +getgrgid (gid_t gid) +{ + return &my_group; +} + + struct passwd * getpwnam (const char *name) {