#define PM_SIG_SET m2_sigset /* sigset_t */
#define PM_SIG_CTX m2_p1 /* struct sigcontext * */
-/* Field names for the getgid(2) call. */
-#define PM_GETGID_EGID m1_i1 /* gid_t */
-
/* Field names for the setuid(2)/seteuid(2) calls. */
#define PM_SETUID_UID m1_i1 /* uid_t */
} mess_lsys_vfs_mapdriver;
_ASSERT_MSG_SIZE(mess_lsys_vfs_mapdriver);
+typedef struct {
+ uid_t egid;
+
+ uint8_t padding[52];
+} mess_pm_lc_getgid;
+_ASSERT_MSG_SIZE(mess_pm_lc_getgid);
+
typedef struct {
uid_t euid;
mess_pm_lexec_exec_new m_pm_lexec_exec_new;
+ mess_pm_lc_getgid m_pm_lc_getgid;
mess_pm_lc_getuid m_pm_lc_getuid;
mess_pm_lc_ptrace m_pm_lc_ptrace;
mess_pm_lc_time m_pm_lc_time;
* are not always successful and Minix returns the unreserved value
* (gid_t) -1 when there is an error.
*/
- if (_syscall(PM_PROC_NR, PM_GETGID, &m) < 0) return ( (gid_t) -1);
- return( (gid_t) m.PM_GETGID_EGID);
+ if (_syscall(PM_PROC_NR, PM_GETGID, &m) < 0) return(-1);
+ return(m.m_pm_lc_getgid.egid);
}
case PM_GETGID:
r = rmp->mp_realgid;
- rmp->mp_reply.PM_GETGID_EGID = rmp->mp_effgid;
+ rmp->mp_reply.m_pm_lc_getgid.egid = rmp->mp_effgid;
break;
case PM_GETPID: