#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: R1 Component: System/POSIX | Version: R1/Development Resolution: | Keywords: Blocked By: | Has a Patch: 0 Platform: All | Blocking: ---------------------------+------------------------------ Comment (by leavengood): Replying to [comment:9 bonefish]: > > The main difference is that the nice value would be stored in the kernel team structure. Ah, OK. > Well, it's a kernel change and, though not really complicated, it certainly isn't a no-brainer either. So I don't quite agree that there isn't any potential for breakage. Anyway, it's not like others don't break stuff on a regular basis, and reverting the change is always an option. :-) Hmmm, I was thinking it would just be a userland libroot change which called set_thread_priority and similar. I still think I could do it, but having it as a kernel change is a bit more complicated indeed. So I may just do it as a patch then, which I could later commit once it was reviewed. How do you do kernel work while actually running Haiku? I imagine it isn't too safe to mess with the kernel on the running system. Could I test with Qemu or similar? Or do you build onto another partition and test on that? Pardon my ignorance on doing kernel-level changes. But while I did do some kernel stuff in school it has been a while. But I'd like to get into some Haiku kernel stuff though so this might be a nice start. -- Ticket URL: <http://dev.haiku-os.org/ticket/2817#comment:10> Haiku <http://dev.haiku-os.org> Haiku - the operating system.