Mailing List archive

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

[vdr] Re: thread proof/reentrance



Rainer Zocholl wrote:


>> All functions that have a thread safe implementation (and some more
>> unfortunately):  apropos _r|egrep '^[a-z_]*_r '
> 
> Nice idea
> msi:~/video/VDR# apropos r|egrep '^[a-z]*_r '

apropos _r|egrep '^[a-z_]*_r '
asctime_r [ctime]    (3)  - transform date and time to broken-down time
or ASCII
ctime_r [ctime]      (3)  - transform date and time to broken-down time
or ASCII
ecvt_r               (3)  - convert a floating-point number to a string
encrypt_r [encrypt]  (3)  - encrypt 64-bit messages
ether_aton_r [ether_aton] (3)  - Ethernet address manipulation routines
ether_ntoa_r [ether_aton] (3)  - Ethernet address manipulation routines
fcvt_r [ecvt_r]      (3)  - convert a floating-point number to a string
fgetgrent_r [getgrent_r] (3)  - get group file entry reentrantly
fgetpwent_r [getpwent_r] (3)  - get passwd file entry reentrantly
getaliasbyname_r [setaliasent] (3)  - read an alias entry
getaliasent_r [setaliasent] (3)  - read an alias entry
getgrent_r           (3)  - get group file entry reentrantly
getgrgid_r [getgrnam] (3)  - get group file entry
getgrnam_r [getgrnam] (3)  - get group file entry
getlogin_r [getlogin] (3)  - get user name
getmntent_r [getmntent] (3)  - get file system descriptor file entry
getpwent_r           (3)  - get passwd file entry reentrantly
getpwnam_r [getpwnam] (3)  - get password file entry
getpwuid_r [getpwnam] (3)  - get password file entry
gmtime_r [ctime]     (3)  - transform date and time to broken-down time
or ASCII
lgamma_r [lgamma]    (3)  - log gamma function
lgammaf_r [lgamma]   (3)  - log gamma function
lgammal_r [lgamma]   (3)  - log gamma function
localtime_r [ctime]  (3)  - transform date and time to broken-down time
or ASCII
qecvt_r [ecvt_r]     (3)  - convert a floating-point number to a string
qfcvt_r [ecvt_r]     (3)  - convert a floating-point number to a string
rand_r [rand]        (3)  - pseudo-random number generator
setkey_r [encrypt]   (3)  - encrypt 64-bit messages
strerror_r [strerror] (3)  - return string describing error code
strtok_r [strtok]    (3)  - extract tokens from strings
tmpnam_r [tmpnam]    (3)  - create a name for a temporary file
ttyname_r [ttyname]  (3)  - return name of a terminal

> apropos: warning: LM983[1/2/3] based USB flatbed scanners contains a
> pointer loop apropos: warning: SANE backend for Plustek parallel port
> and contains a pointer loop strtok_r (3)         - extract tokens
> from strings 
> That's not much.

I find more, you are missing the _ <- !

/hgm.bg






Home | Main Index | Thread Index