diff options
| author | Lars Hansen | 2003-11-22 23:01:18 +0000 |
|---|---|---|
| committer | Lars Hansen | 2003-11-22 23:01:18 +0000 |
| commit | 3d19b645957675f634257ab0d8fcc298ac5de341 (patch) | |
| tree | 59fbe94a9083a861786edf9486dac3f6714b81e0 /src | |
| parent | 49e7a2c0b12aa4189b55c2f7c6c40c6f6a93434a (diff) | |
| download | emacs-3d19b645957675f634257ab0d8fcc298ac5de341.tar.gz emacs-3d19b645957675f634257ab0d8fcc298ac5de341.zip | |
(struct the_group): Added.
(getgrgid): Added.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32.c | 14 |
1 files changed, 14 insertions, 0 deletions
| @@ -66,6 +66,7 @@ Boston, MA 02111-1307, USA. | |||
| 66 | #include "lisp.h" | 66 | #include "lisp.h" |
| 67 | 67 | ||
| 68 | #include <pwd.h> | 68 | #include <pwd.h> |
| 69 | #include <grp.h> | ||
| 69 | 70 | ||
| 70 | #ifdef __GNUC__ | 71 | #ifdef __GNUC__ |
| 71 | #define _ANONYMOUS_UNION | 72 | #define _ANONYMOUS_UNION |
| @@ -385,6 +386,13 @@ static struct passwd the_passwd = | |||
| 385 | the_passwd_shell, | 386 | the_passwd_shell, |
| 386 | }; | 387 | }; |
| 387 | 388 | ||
| 389 | static struct group the_group = | ||
| 390 | { | ||
| 391 | /* There are no groups on NT, so we just return "root" as the | ||
| 392 | group name. */ | ||
| 393 | "root", | ||
| 394 | }; | ||
| 395 | |||
| 388 | int | 396 | int |
| 389 | getuid () | 397 | getuid () |
| 390 | { | 398 | { |
| @@ -420,6 +428,12 @@ getpwuid (int uid) | |||
| 420 | return NULL; | 428 | return NULL; |
| 421 | } | 429 | } |
| 422 | 430 | ||
| 431 | struct group * | ||
| 432 | getgrgid (gid_t gid) | ||
| 433 | { | ||
| 434 | return &the_group; | ||
| 435 | } | ||
| 436 | |||
| 423 | struct passwd * | 437 | struct passwd * |
| 424 | getpwnam (char *name) | 438 | getpwnam (char *name) |
| 425 | { | 439 | { |