1 /* prio.c - prio command for BeOs, change priority of a given thread
2 * (c) 2001, 2002, François Revol (mmu_man) for OpenBeOS
3 * released under the MIT licence.
7 * fixed a typo on error (Priority changed failed.)
9 * Initial. Used my renice.c code to rewrite 'prio' BeOS command for OpenBeOS.
11 * prio is a stripped-down version of renice
12 * seems to behave the same way as the original BeOS version. :)
19 int main(int argc
, char **argv
)
26 puts("Usage: prio pid newpriority");
33 // ret > 0 means successful, and is the previous priority
34 ret
= set_thread_priority(th
, prio
);
37 puts("Priority change failed.");