__futex(2): use outside Linux compat

2023-12-11 Thread tlaronde
In Mesa code implementations for futex_wake() and futex_wait() are provided for Linux, Windows, FreeBSD and OpenBSD. There is a __futex(2) syscall in NetBSD, used only for now, if I'm not mistaken, to implement Linux compat. Is it OK to use for NetBSD "native" code since it is not "advertised" by

Re: __futex(2): use outside Linux compat

2023-12-11 Thread Robert Swindells
tlaro...@kergis.com wrote: > In Mesa code implementations for futex_wake() and futex_wait() are > provided for Linux, Windows, FreeBSD and OpenBSD. > > There is a __futex(2) syscall in NetBSD, used only for now, if I'm not > mistaken, to implement Linux compat. The Linux emulation of futexes in

Re: __futex(2): use outside Linux compat

2023-12-11 Thread tlaronde
On Mon, Dec 11, 2023 at 01:00:38PM +, Robert Swindells wrote: > > tlaro...@kergis.com wrote: > > In Mesa code implementations for futex_wake() and futex_wait() are > > provided for Linux, Windows, FreeBSD and OpenBSD. > > > > There is a __futex(2) syscall in NetBSD, used only for now, if I'm n

Re: __futex(2): use outside Linux compat

2023-12-11 Thread Jason Thorpe
> On Dec 11, 2023, at 5:00 AM, Robert Swindells wrote: > >> Is it OK to use for NetBSD "native" code since it is not "advertised" >> by a man page? > > No. Heavy asterisk here. Thierry, let’s chat off-list. -- thorpej