Mailing List archive

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

[vdr] Re: thread proof/reentrance



On Samstag 04 Dezember 2004 20:08, Stefan Taferner wrote:
> All functions that have a thread safe implementation (and some
> more unfortunately):  apropos _r|egrep '^[a-z_]*_r '

This script shows the offending source lines. There are lots of them

Usage:

name_of_this_script directory

where directory will be searched recursively.

funcfile=/tmp/func.$$
trap "rm -f $funcfile" 0

apropos _r|egrep '^[a-z_]*_r ' |
        sed 's/_r.*//' >$funcfile

find $1 -follow -type f -name '*.[ch]' -exec grep -wf $funcfile {} \;


-- 
Wolfgang




Home | Main Index | Thread Index