Re: [libvirt] PATCH: 15/25: Prohibit non-threadsafe POSIX apis

2009-01-19 Thread Jim Meyering
"Daniel P. Berrange" wrote: > There are a huge list of functions in POSIX which are not > safe to use from multiple threads currently. I generated > the list by looking at all libc symbol exports for variants > which have a parallel _r symbol. > >nm -D --defined-only /lib/libc.so.6 \ >

Re: [libvirt] PATCH: 15/25: Prohibit non-threadsafe POSIX apis

2009-01-16 Thread Daniel Veillard
On Tue, Jan 13, 2009 at 05:44:51PM +, Daniel P. Berrange wrote: > There are a huge list of functions in POSIX which are not > safe to use from multiple threads currently. I generated > the list by looking at all libc symbol exports for variants > which have a parallel _r symbol. > >nm -D -

Re: [libvirt] PATCH: 15/25: Prohibit non-threadsafe POSIX apis

2009-01-16 Thread Richard W.M. Jones
On Tue, Jan 13, 2009 at 05:44:51PM +, Daniel P. Berrange wrote: > The readdir one is also unneccessary, since reading from a single > DIR* is safe from a single thread. readdir_r is also horrific > > http://womble.decadentplace.org.uk/readdir_r-advisory.html That web page also says that readd

Re: [libvirt] PATCH: 15/25: Prohibit non-threadsafe POSIX apis

2009-01-15 Thread Richard W.M. Jones
On Tue, Jan 13, 2009 at 05:44:51PM +, Daniel P. Berrange wrote: > There are a huge list of functions in POSIX which are not > safe to use from multiple threads currently. I generated > the list by looking at all libc symbol exports for variants > which have a parallel _r symbol. > >nm -D -

Re: [libvirt] PATCH: 15/25: Prohibit non-threadsafe POSIX apis

2009-01-13 Thread Daniel P. Berrange
There are a huge list of functions in POSIX which are not safe to use from multiple threads currently. I generated the list by looking at all libc symbol exports for variants which have a parallel _r symbol. nm -D --defined-only /lib/libc.so.6 \ | grep '_r$' \ | awk '{print $3}' \