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 ClarkThread Previous | Thread Next