[haikuports] Re: Posix compatibility

  • From: Alexandru Popa <alpopa@xxxxxxxxx>
  • To: haikuports@xxxxxxxxxxxxx
  • Date: Fri, 10 Apr 2020 09:46:18 +0300

Thank you Adrien for information.

Hopefully it not necessary to implement all these symbols / functions in
Haiku especially if some of them are out of POSIX standard. The code
contains many OS specific conditions, some of these functions are not
imported in SBCL for Solaris and Windows support of POSIX in SBCL is very
limited at least. I just want to ensure existing Haiku functionality is
really used.

The functions mlockall and munlockall are imported without OS specific
conditions. Still I have to check where they are really used. The same is
true for symbols.

чт, 9 апр. 2020 г. в 15:33, Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>:

Some of these appear to not be in POSIX:

functions: setfsuid, setresuid, setfsgid, setresgid.
errno constants: check
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html
signal constants: check
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html
open() flags: check
https://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html

They are probably specific to other operating systems. If they are really
required, we can look into how to implement them in Haiku.

This leaves us with a shorter list of functions from POSIX actually not in
Haiku:

2. Functions
fdatasync
mlockall
munlockall
tcgetsid

And these defines which should be researched, I'm not sure what they are:

S_IFWHT
MCL_CURRENT
MCL_FUTURE
F_GETOWN
F_SETOWN
SOCK_RDM

--
Adrien.



Other related posts: