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

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

 



"Daniel P. Berrange" <berrange@xxxxxxxxxx> 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'

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]