Commit 49e7a2c0 authored by Lars Hansen's avatar Lars Hansen
Browse files

(struct my_group): Added.

(getgrgid): Added.
parent 1e487ff8
......@@ -30,6 +30,7 @@ Boston, MA 02111-1307, USA. */
#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 @@ static struct passwd my_passwd =
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 @@ getpwuid (uid_t uid)
}
struct group *
getgrgid (gid_t gid)
{
return &my_group;
}
struct passwd *
getpwnam (const char *name)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment