This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: reentrant functions


>For a reference of what is acceptable, you can use The Single Unix
>Specification v3:
>
>http://www.opengroup.org/onlinepubs/007904975/toc.htm
>

All System Interfaces from that specification ending in "_r":

asctime_r
ctime_r
getgrgid_r
getgrnam_r
getlogin_r
getpwnam_r
getpwuid_r
gmtime_r
localtime_r
rand_r
readdir_r
strerror_r
strtok_r
ttyname_r

>This reference would be adequate in determining what to include but,
>if in doubt about something that seems like a useful function, then
>double checking with linux should be adequate.

All functions from libc ending in _r:
http://www.gnu.org/software/libc/manual/html_node/Function-Index.html#Function%20Index

asctime_r
crypt_r
ctime_r
drand48_r
ecvt_r
encrypt_r
erand48_r
fcvt_r
fgetgrent_r
fgetpwent_r
getdate_r
getgrent_r
getgrgid_r
getgrnam_r
gethostbyaddr_r
gethostbyname2_r
gethostbyname_r
getmntent_r
getnetgrent_r
getpwent_r
getpwnam_r
getpwuid_r
getutent_r
getutid_r
getutline_r
gmtime_r
hcreate_r
hdestroy_r
hsearch_r
initstate_r
jrand48_r
lcong48_r
lgamma_r
lgammaf_r
lgammal_r
localtime_r
lrand48_r
mrand48_r
nrand48_r
ptsname_r
qecvt_r
qfcvt_r
rand_r
random_r
readdir64_r
readdir_r
seed48_r
setkey_r
setstate_r
srand48_r
srandom_r
strerror_r
strtok_r
tmpnam_r
ttyname_r

List from Buzz of newlib _r functions where we're already exporting the 
non _r version (remove leading _):
_atoi_r
_atol_r
_calloc_r
_close_r
_creat_r
_execve_r
_fcntl_r
_fgetpos_r
_fork_r
_free_r
_freopen_r
_fseek_r
_fseeko_r
_fsetpos_r
_fstat_r
_ftell_r
_ftello_r
_getenv_r
_getpid_r
_gettimeofday_r
_iprintf_r
_kill_r
_link_r
_lseek_r
_mallinfo_r
_malloc_r
_malloc_stats_r
_malloc_trim_r
_malloc_usable_size_r
_mallopt_r
_mblen_r
_memalign_r
_open_r
_printf_r
_read_r
_realloc_r
_remove_r
_rewind_r
_sbrk_r
_stat_r
_strtoll_r
_strtoull_r
_times_r
_tzset_r
_unlink_r
_valloc_r
_wait_r
_write_r

Intersection of (newlib _r listing where cygwin exports the non-_r version) and (the union of the opengroup and libc _r functions) (remove leading _):

(null set)

Unless I missed something, there was nothing there.

-Richard Campbell.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]