Re: First bits of a Haiku compatibility layer

Andrew Randrianasulu <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel,gmane.os.netbsd.general
Message-ID <CA+rFky4+B9zJ_A0=J2b7sJv-ZMa3nF2JZuRT7ZRnBP7wk50tyg@mail.gmail.com>
пт, 20 июн. 2025 г., 15:20 Stephan <[email protected]>:

> Hello waddlesplash,
>


as "external" observer I only can congratulate you on your persistence!

Once upon a time there was attempt at making BeOS/Haiku layer on top of
Linux, but it never left early prototype stage.

>
> thank you for responding and the additional information you provided.
>
> I have not received any feedback via the NetBSD mailing list
> unfortunately, so I kept working on this to come back with something
> more substantial.
>
> The following milestones have been reached:
>
> 1) There are now kernel drivers for ports, semaphores and areas. These
> were developed and tested carefully, so they should not be too bad.
>
> https://github.com/stephanwib/src/blob/trunk/sys/kern/uipc_port.c
> https://github.com/stephanwib/src/blob/trunk/sys/kern/uipc_hsem.c
> https://github.com/stephanwib/src/blob/trunk/sys/kern/uipc_area.c
>
>
> 2) libroot was also extended a lot.
>
> It provides the interfaces to the said kernel subsystems as Haiku/BeOS
> expect them.
>
> Also, the thread interface was introduced on top of NetBSDs
> libpthread, which was quite enjoyable as it provides some
> (non-standard) extensions which were necessary to get it working
> right. I also made a little change to libpthread to obtain
> kernel-level LWP IDs.
>
> A bunch of other functions, especially the get_team/thread/system_info
> functions were written based on the sysctl interface or libkvm.
>
> I have also included some files from Cosmoe or Haiku implementing
> certain other parts - these are only compile-tested at the moment.
>
> (As a side note, work on Cosmoe has been resumed recently, see
> https://gitlab.com/haydentech)
>
>
> 3) I have used tests from the Haiku source where available and there
> are no obvious issues anymore. (I have also some custom test programs
> which are not in the repo).
>
> Also, certain CLI programs work like listsem, listports, listarea and ps.
>
>
> 4) The process of integrating Haiku code has now started.
>
> https://github.com/stephanwib/haiku
>
> In this fork, I am implementing Makefiles to build libbe, which is
> already done except for the storage kit.
>
> There were only some small modifications needed to get the files compiled
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.