delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/09/10:13:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
MIME-Version: 1.0
Subject: RE: reentrant functions
Date: Fri, 9 Apr 2004 10:12:56 -0400
Message-ID: <C1A7FA5F2793A94BA223673B8ADAF4A1C989D6@exchange.air2web.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Richard Campbell" <richard DOT campbell AT air2web DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i39ED6v0005912

>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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019