1 <assertions> 2 <assertion id="1" tag="ref:XSH6:{System Interfaces:sched_getparam:DESCRIPTION}"> 3 The sched_getparam() function shall return the scheduling parameters of a 4 process specified by pid in the sched_param structure pointed to by param. 5 </assertion> 6 <assertion id="2" tag="ref:XSH6:{System Interfaces:sched_getparam:DESCRIPTION}"> 7 When pid = 0, the scheduling parameters are returned for the calling process 8 </assertion> 9 <assertion id="3" tag="ref:XSH6:{System Interfaces:sched_getparam:RETURN VALUE}"> 10 sched_getparam() returns 0 on success 11 </assertion> 12 <assertion id="4" tag="ref:XSH6:{System Interfaces:sched_getparam:RETURN VALUE}"> 13 sched_getparam() returns -1 on failure 14 </assertion> 15 <assertion id="5" tag="ref:XSH6:{System Interfaces:sched_getparam:ERRORS}"> 16 sched_getparam() sets errno == ESRCH if the pid cannot be found 17 </assertion> 18 <assertion id="6" tag="ref:XSH6:{System Interfaces:sched_getparam:ERRORS}"> 19 sched_getparam() sets errno == EPERM if the requesting process does not 20 have permission 21 </assertion> 22 <assertion id="7" tag="oth:"> 23 sched_getparam() sets errno == EFAULT or EINVAL if param points to NULL 24 </assertion> 25 </assertions> 26