Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
49e7a2c0
Commit
49e7a2c0
authored
Nov 22, 2003
by
Lars Hansen
Browse files
(struct my_group): Added.
(getgrgid): Added.
parent
1e487ff8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
src/mac.c
src/mac.c
+15
-0
No files found.
src/mac.c
View file @
49e7a2c0
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment