#2817: setpriority and getpriority are missing to compile ocaml out of the box under Haiku ----------------------------+---------------------------- Reporter: oco | Owner: nobody Type: enhancement | Status: new Priority: normal | Milestone: Unscheduled Component: System/POSIX | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 1 | Platform: All ----------------------------+---------------------------- Comment (by Timothy_Gu): Replying to [comment:18 pulkomandy]: > When setpriority is called, the "nice" value for the team should be updated, and the priority for each running thread adjusted to match. When a new thread is spawned, its priority should be adjusted according to the current nice value. This still does not answer the question of what should the proc niceness be when the user changes the priority of a thread. > > In headers/private/kernel/thread_types.h is the definition of {{{struct Team}}} which is the place where the process nice value can be stored. OK > > Of course we need a way to get it on the kernel side, and for this getthreadpriority and setthreadpriority must probably use a new system call. How do syscalls work? Is there a simple example somewhere? -- Ticket URL: <https://dev.haiku-os.org/ticket/2817#comment:19> Haiku <https://dev.haiku-os.org> Haiku - the operating system.