diff options
author | Lars Hansen <larsh@soem.dk> | 2003-11-22 23:01:18 +0000 |
---|---|---|
committer | Lars Hansen <larsh@soem.dk> | 2003-11-22 23:01:18 +0000 |
commit | 3d19b645957675f634257ab0d8fcc298ac5de341 (patch) | |
tree | 59fbe94a9083a861786edf9486dac3f6714b81e0 /src/w32.c | |
parent | 49e7a2c0b12aa4189b55c2f7c6c40c6f6a93434a (diff) | |
download | emacs-3d19b645957675f634257ab0d8fcc298ac5de341.tar.gz |
(struct the_group): Added.
(getgrgid): Added.
Diffstat (limited to 'src/w32.c')
-rw-r--r-- | src/w32.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/w32.c b/src/w32.c index bc37aebeef8..98d630529e6 100644 --- a/src/w32.c +++ b/src/w32.c @@ -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) { |