Re: [libvirt] [PATCH 1/3] util: gettid() is Linux-specific

2017-12-05 Thread Daniel P. Berrange
On Mon, Dec 04, 2017 at 05:23:45PM +0100, Andrea Bolognani wrote: > The manual page clearly states that > > gettid() is Linux-specific and should not be used in programs > that are intended to be portable. > > Unfortunately, it looks like macOS implemented the functionality > and defined

[libvirt] [PATCH 1/3] util: gettid() is Linux-specific

2017-12-04 Thread Andrea Bolognani
The manual page clearly states that gettid() is Linux-specific and should not be used in programs that are intended to be portable. Unfortunately, it looks like macOS implemented the functionality and defined SYS_gettid accordingly, only to deprecate syscall() altogether with 10.12 (Sierra),