develooper Front page | perl.perl5.porters | Postings from November 2000

Re: [ID 20001109.006] [MAILER-DAEMON@tmtowtdi.perl.org: failure notice]

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
November 9, 2000 06:34
Subject:
Re: [ID 20001109.006] [MAILER-DAEMON@tmtowtdi.perl.org: failure notice]
Message ID:
20001109143400.E44741@plum.flirble.org
On Thu, Nov 09, 2000 at 03:07:29PM +0100, Jens Hamisch wrote:
> Running the C preprocessor on this code shows, what goes wrong:
> 
>         ch =  SOCKSgetc ( ( ( XPVIO * ) ( io ) -> sv_any ) -> xio_ifp );
>         if (ch !=  ( - 1 )) {
>             (void) ungetc ( ch , ( ( XPVIO * ) ( io ) -> sv_any ) -> xio_ifp );
>             return  ( 0 );
>         }
> 
> The getc funktion is replaced by the SOCKSgetc while ungetc is left
> unchanged.


Does SOCKS state that it provides full ANSI stdio?
If does then I interpret this as SOCKS is buggy because ungetc() is
defined by ANSI. [as you can get a FILE* without using the non-ANSI
fdopen() if you're a child of inetd, for example]

Note that if SOCKS is buggy it doesn't stop perl working around it.

Nicholas Clark


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About