HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49e7a2c
)
(struct the_group): Added.
author
Lars Hansen
<larsh@soem.dk>
Sat, 22 Nov 2003 23:01:18 +0000
(23:01 +0000)
committer
Lars Hansen
<larsh@soem.dk>
Sat, 22 Nov 2003 23:01:18 +0000
(23:01 +0000)
(getgrgid): Added.
src/w32.c
patch
|
blob
|
blame
|
history
diff --git
a/src/w32.c
b/src/w32.c
index
bc37aeb
..
98d6305
100644
(file)
--- 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)
{