summaryrefslogtreecommitdiff
path: root/src/mac.c
diff options
context:
space:
mode:
authorLars Hansen <larsh@soem.dk>2003-11-22 23:00:59 +0000
committerLars Hansen <larsh@soem.dk>2003-11-22 23:00:59 +0000
commit49e7a2c0b12aa4189b55c2f7c6c40c6f6a93434a (patch)
treeeca9715db627aca87b97d1c5b63e1dd5a0318aec /src/mac.c
parent1e487ff85c7db46b1c45fa26397be84e70529df8 (diff)
downloademacs-49e7a2c0b12aa4189b55c2f7c6c40c6f6a93434a.tar.gz
(struct my_group): Added.
(getgrgid): Added.
Diffstat (limited to 'src/mac.c')
-rw-r--r--src/mac.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mac.c b/src/mac.c
index 9d3af053495..9f3455ab5dc 100644
--- a/src/mac.c
+++ b/src/mac.c
@@ -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)
{