#define PM_GROUPS_NUM m1_i1 /* int */
#define PM_GROUPS_PTR m1_p1 /* gid_t * */
-/* Field names for the getpriority(2)/setpriority(2) calls. */
-#define PM_PRIORITY_WHICH m1_i1 /* int */
-#define PM_PRIORITY_WHO m1_i2 /* int */
-#define PM_PRIORITY_PRIO m1_i3 /* int */
-
/* Field names for the getmcontext(2)/setmcontext(2) calls. */
#define PM_MCONTEXT_CTX m1_p1 /* mcontext_t * */
} mess_lc_pm_itimer;
_ASSERT_MSG_SIZE(mess_lc_pm_itimer);
+typedef struct {
+ int which;
+ int who;
+ int prio;
+
+ uint8_t padding[44];
+} mess_lc_pm_priority;
+_ASSERT_MSG_SIZE(mess_lc_pm_priority);
+
typedef struct {
pid_t pid;
int req;
mess_fs_vfs_readwrite m_fs_vfs_readwrite;
mess_lc_pm_itimer m_lc_pm_itimer;
+ mess_lc_pm_priority m_lc_pm_priority;
mess_lc_pm_ptrace m_lc_pm_ptrace;
mess_lc_pm_sysuname m_lc_pm_sysuname;
mess_lc_pm_time m_lc_pm_time;
message m;
memset(&m, 0, sizeof(m));
- m.PM_PRIORITY_WHICH = which;
- m.PM_PRIORITY_WHO = who;
+ m.m_lc_pm_priority.which = which;
+ m.m_lc_pm_priority.who = who;
/* GETPRIORITY returns negative for error.
* Otherwise, it returns the priority plus the minimum
message m;
memset(&m, 0, sizeof(m));
- m.PM_PRIORITY_WHICH = which;
- m.PM_PRIORITY_WHO = who;
- m.PM_PRIORITY_PRIO = prio;
+ m.m_lc_pm_priority.which = which;
+ m.m_lc_pm_priority.who = who;
+ m.m_lc_pm_priority.prio = prio;
return _syscall(PM_PROC_NR, PM_SETPRIORITY, &m);
}
int r, arg_which, arg_who, arg_pri;
struct mproc *rmp;
- arg_which = m_in.PM_PRIORITY_WHICH;
- arg_who = m_in.PM_PRIORITY_WHO;
- arg_pri = m_in.PM_PRIORITY_PRIO; /* for SETPRIORITY */
+ arg_which = m_in.m_lc_pm_priority.which;
+ arg_who = m_in.m_lc_pm_priority.who;
+ arg_pri = m_in.m_lc_pm_priority.prio; /* for SETPRIORITY */
/* Code common to GETPRIORITY and SETPRIORITY. */