diff options
Diffstat (limited to 'guts/getresgid.c')
-rw-r--r-- | guts/getresgid.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/guts/getresgid.c b/guts/getresgid.c new file mode 100644 index 0000000..3eb4fac --- /dev/null +++ b/guts/getresgid.c @@ -0,0 +1,20 @@ +/* + * static int + * wrap_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid) { + * int rc = -1; + */ + if (rgid) + *rgid = pseudo_rgid; + if (egid) + *egid = pseudo_egid; + if (sgid) + *sgid = pseudo_sgid; + if (rgid && egid && sgid) { + rc = 0; + } else { + rc = -1; + errno = EFAULT; + } +/* return rc; + * } + */ |