#define PM_SIG_SET m2_sigset /* sigset_t */
#define PM_SIG_CTX m2_p1 /* struct sigcontext * */
-/* Field names for the setsid(2) call. */
-#define PM_GETSID_PID m1_i1 /* pid_t */
-
/* Field names for the getmcontext(2)/setmcontext(2) calls. */
#define PM_MCONTEXT_CTX m1_p1 /* mcontext_t * */
} mess_sigcalls;
_ASSERT_MSG_SIZE(mess_sigcalls);
+typedef struct {
+ pid_t pid;
+
+ uint8_t padding[52];
+} mess_lc_pm_getsid;
+_ASSERT_MSG_SIZE(mess_lc_pm_getsid);
+
typedef struct {
int num;
vir_bytes ptr; /* gid_t * */
mess_fs_vfs_readsuper m_fs_vfs_readsuper;
mess_fs_vfs_readwrite m_fs_vfs_readwrite;
+ mess_lc_pm_getsid m_lc_pm_getsid;
mess_lc_pm_groups m_lc_pm_groups;
mess_lc_pm_itimer m_lc_pm_itimer;
mess_lc_pm_priority m_lc_pm_priority;
message m;
memset(&m, 0, sizeof(m));
- m.PM_GETSID_PID = p;
+ m.m_lc_pm_getsid.pid = p;
return(_syscall(PM_PROC_NR, PM_GETSID, &m));
}
case PM_GETSID:
{
struct mproc *target;
- pid_t p = m_in.PM_GETSID_PID;
+ pid_t p = m_in.m_lc_pm_getsid.pid;
target = p ? find_proc(p) : &mproc[who_p];
r = ESRCH;
if(target)