This is the mail archive of the
mailing list for the Cygwin project.
Re: reentrant functions
Op Thu, 8 Apr 2004 16:02:23 -0400
schreef Christopher Faylor <cgf-no-personal-reply-please van cygwin.com>
: On Thu, Apr 08, 2004 at 09:30:47PM +0200, Bas van Gompel wrote:
: > $ grep -oR '_[^ ]\+_r *( *struct \+_reent' .|sed 's, *(.*,,'|sort|uniq
: > _remove_r and _stat64_r only occur in winsup/cygwin/syscalls.cc.
: > _fstat_r, _getpid_r and _stat_r are in winsup/cygwin/syscalls.cc
: > and newlib/libc.
: > The others are only in newlib/libc.
: > Is this the info you wanted?
: Not really. The above list includes at least one function that are
: already exported by the DLL.
True, _fcloseall_r, _fscanf_r, _scanf_r and _sscanf_r are already in
: We also do not want to export _r functions which are unique only to
: newlib. For instance, I suspect that _mallopt_r is probably not
: something that we want to export since no other UNIX has it.
That's not what was asked...
| Cygwin. Any volunteer to collect these non-exported newlib functions
| so that we can add all of them?
Ok, here goes again (this time assuming if <function> is exported
_<function>_r may also be exported):
for f in $(grep -hoR '_[^ ]\+_r *( *struct \+_reent' .|sed 's, *(.*,,' \
|sort|uniq) ; do
grep "^$f" winsup/cygwin/cygwin.din >/dev/null || (
grep "^$(echo $f|sed 's,^_\(.*\)_r$,\1,')" winsup/cygwin/cygwin.din \
>/dev/null && echo $f )
'_mallopt_r' is still there... Is there any reason it
should not be exported, when 'mallopt' is?
: This is not something that will be solved by grep. It actually
: involves some research.
And here I was, thinking you were mean...
) | | ---/ ---/ Yes, this | This message consists of true | I do not
-- | | / / really is | and false bits entirely. | mail for
) | | / / a 72 by 4 +-------------------------------+ any1 but
-- \--| /--- /--- .sigfile. | |perl -pe "s.u(z)\1.as." | me. 4^re
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html