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

Re: [ID 20001114.002] Code-Cleanups concerning SOCKS5 and Solaris

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
November 14, 2000 09:57
Subject:
Re: [ID 20001114.002] Code-Cleanups concerning SOCKS5 and Solaris
Message ID:
E13vkL7-0003Xn-00@serv1.is1.u-net.net
Jens Hamisch <jens@Strawberry.COM> writes:
>
>I started from APC 7680. The asserts were already defined.

I guessed as much.

>
>
>> I dislike the 
>> 
>> ! #if defined(sun) && !defined(_LP64)
>> 
>> even more !
>> 
>> Sun in _LP64 mode should be handled by the Configure stuff - as I understand
>> it in _LP64 mode FILE * is opaque - and so FILE_ptr et. al. should
>> not be defined at all.
>> 
>> What the patch is attempting to do is handle the fact that Configure
>> has mis-guessed STDCHAR because FILE is defined under another name 
>> in file other than <stdio.h>.   It would be better handled 
>> with a hints file that set STDCHAR
>
>
>
>Solaris 8 defines the FILE type in /usr/include/stdio_impl.h as follows:

Solaris 7 is similar.

>
>
>so we have a full structure defined in 32 bit mode 

And hence can have FILE_ptr() et. al.

>and some paddings
>in 64 bit mode. 

and hence no "fast" access to stdio.

>
>So _ptr should be (unsigned char *) on a sun system unless _LP64 is defined  ?!?!

Quite. But chasing off into <stdio_impl.h> and looking for struct __FILE_TAG
may be the wrong thing for Configure to do - it might be easier for 
hints/solaris_2.sh to just provide the answers.

-- 
Nick Ing-Simmons


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