Commit 3d19b645 authored by Lars Hansen's avatar Lars Hansen
Browse files

(struct the_group): Added.

(getgrgid): Added.
parent 49e7a2c0
......@@ -66,6 +66,7 @@ Boston, MA 02111-1307, USA.
#include "lisp.h"
#include <pwd.h>
#include <grp.h>
#ifdef __GNUC__
#define _ANONYMOUS_UNION
......@@ -385,6 +386,13 @@ static struct passwd the_passwd =
the_passwd_shell,
};
static struct group the_group =
{
/* There are no groups on NT, so we just return "root" as the
group name. */
"root",
};
int
getuid ()
{
......@@ -420,6 +428,12 @@ getpwuid (int uid)
return NULL;
}
struct group *
getgrgid (gid_t gid)
{
return &the_group;
}
struct passwd *
getpwnam (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