[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



"Daniel P. Berrange" <berrange redhat com> 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  \
>       | grep '_r$' \
>       | awk '{print $3}' \
>       | grep -v __ \
>       | grep -v qsort \
>       | grep -v readdir \
>       | sort \
>       | uniq \
>       | sed -e 's/_r//'

Nice.  ACK.

FYI, I get the identical list on x86_64 F10 with this:
nm -D --defined-only /lib64/libc.so.6 \
  | perl -nle '/ ([^_]\w+)_r$/ and print $1'|grep -vE 'qsort|readdir'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]