This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
[Fwd: reentrant functions]
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: cygwin-developers at cygwin dot com
- Date: Wed, 7 Apr 2004 11:24:50 +0200
- Subject: [Fwd: reentrant functions]
- Reply-to: cygwin-developers at cygwin dot com
Is there any other reason besides "nobody did it so far", that we
have a lot of the reentrant functions missing in cygwin.din?
Corinna
----- Forwarded message from Oleg Ostrozhansky -----
> Date: Tue, 6 Apr 2004 23:43:53 -0500
> From: Oleg Ostrozhansky
> Subject: reentrant functions
> To: cygwin ML
>
> I have a question about writing a multi-threaded program (using POSIX.1
> threads) in Cygwin. "info libc" has a nice chapter about reentrancy,
> which talks about _<func>_r reentrant variants for functions that are
> not thread-safe. But when as an example I try using _gets_r(), I'm
> getting a link error that this function does not exist:
>
> ~ $ gcc -g threadtest.c
> /cygdrive/c/.../cc3s8dTu.o(.text+0xb4): In function `main':
> threadtest.c:26: undefined reference to `__gets_r'
> collect2: ld returned 1 exit status
> ~ $
>
> I can't find it anywhere in the libraries. The prototype is in stdio.h,
> so the compile step works. What do I need to do to make it work?
> [...]
----- End forwarded message -----
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.