changeset 53123:e86b5bc46cca

(struct the_group): Added. (getgrgid): Added.
author Lars Hansen <larsh@soem.dk>
date Sat, 22 Nov 2003 23:01:18 +0000
parents 5544010b4c66
children 43d778d4fc91
files src/w32.c
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32.c	Sat Nov 22 23:00:59 2003 +0000
+++ b/src/w32.c	Sat Nov 22 23:01:18 2003 +0000
@@ -66,6 +66,7 @@
 #include "lisp.h"
 
 #include <pwd.h>
+#include <grp.h>
 
 #ifdef __GNUC__
 #define _ANONYMOUS_UNION
@@ -385,6 +386,13 @@
   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 @@
   return NULL;
 }
 
+struct group *
+getgrgid (gid_t gid)
+{
+  return &the_group;
+}
+
 struct passwd *
 getpwnam (char *name)
 {