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


On Fri, Apr 16, 2004 at 09:18:24PM +0200, Bas van Gompel wrote:
> Op Wed, 14 Apr 2004 11:12:14 +0200
> schreef Corinna Vinschen:
> : > ttyname_r appears to be implemented only for linux
> : > (in newlib/libc/sys/linux/ttyname_r.c).
> : >
> : > ctime_r, asctime_r, getpwnam_r, getpwuid_r, gmtime_r, localtime_r,
> : > strerror_r and strtok_r are already exported.
> : >
> : > That leaves:
> : > ====
> : > rand_r
> : > readdir_r
> : > ====
> :
> :  Which actually leaves rand_r.  readdir_r is using the getdent interface
> :  which we don't have.  Our readdir is a home brew which implies that we
> :  need our own readdir_r implementation.
> :
> : > Is this any better?
> :
> :  Yes, I've added rand_r to the list of exports and implemented ttyname_r
> :  as a start.

As of the 20040416 snapsnot, ttyname_r seems to be exported, but the
prototype is missing from unistd.h.

This causes perl's Configure to complain:

>ttyname_r() found.
>ttyname_r() prototype NOT found.
>
>*** WHOA THERE!!! ***
>    The recommended value for $d_ttyname_r_proto on this machine was "define"!
>    Keep the recommended value? [y]  
>Prototype: int ttyname_r(int, char*, size_t);
 
but it does seem to guess the right prototype.

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