Re: -lpthread vs -pthread: does -D_REENTRANT matter?

2012-10-14 Thread Jilles Tjoelker
On Mon, Oct 08, 2012 at 12:17:08PM -0400, Eitan Adler wrote: > The only difference between -lpthread and -pthread that I could see is > that the latter also sets -D_REENTRANT. > However, I can't find any uses of _REENTRANT anywhere outside of a few > utilities that seem to define it manually. > Te

Re: Fast syscalls via sysenter

2012-10-14 Thread Daniil Cherednik
On 06/23/2012 08:58 PM, Konstantin Belousov wrote: On Sat, Jun 23, 2012 at 02:17:53PM +0800, David Xu wrote: On 2012/06/21 20:11, John Baldwin wrote: On Monday, June 18, 2012 2:56:30 pm Daniil Cherednik wrote: Hi! I am trying to continue the work started by DavidXu on implemention of fast sys

Re: -lpthread vs -pthread: does -D_REENTRANT matter?

2012-10-14 Thread Raphael Kubo da Costa
Jilles Tjoelker writes: > On Mon, Oct 08, 2012 at 12:17:08PM -0400, Eitan Adler wrote: >> The only difference between -lpthread and -pthread that I could see is >> that the latter also sets -D_REENTRANT. >> However, I can't find any uses of _REENTRANT anywhere outside of a few >> utilities that s

Re: -lpthread vs -pthread: does -D_REENTRANT matter?

2012-10-14 Thread Eitan Adler
On 14 October 2012 10:42, Jilles Tjoelker wrote: > Because C99 does not specify threading, it allows these transformations. > In C11, they are forbidden. Passing -pthread disables them as well. Is the man page wrong or do I misunderstand? This option sets flags for both the preproces