[ubuntu-it] possibile bug, segmentation fault

zakplus enjoytheillusion a virgilio.it
Lun 10 Lug 2006 11:56:17 UTC


Il giorno lun, 10/07/2006 alle 12.33 +0200, Filippo Biondi ha scritto:
> Il giorno lun, 10/07/2006 alle 12.25 +0200, Filippo Biondi ha scritto:
> 
> > provato a dare una occhiata agli header delle lib per vedere come sono
> > tipizzate le variabili?? Magari dico una fesseria ma considerato
> > l'aumento di spazio di indirizzamento e' probabile che sia cambiata
> > anche la tipizzazione tra 32 e 64 bit.
> 
> 
> da
> http://www.hcs.ufl.edu/~park/porting.html
> 
> e' il punto 6
> 
> "In 32-bit architecture (in Linux/x86), struct in_addr type has only one
> element s_addr which is of type in_addr_t and this is defined as
> unsigned long type (4 bytes). However in 64-bit architecture(in
> Linux/x86_64), it is defined as unsigned int type (4bytes). Therefore
> when you try to print out dot notated ip address (xxx.xxx.xxx.xxx) using
> received data. It would not work:"
> 
> HTH
> Ciao
> Filo

Caspita, grazie 1000, non ci avrei mai pensato! Questo link che mi hai
passato รจ molto utile!
Grazie anche a stc per la risposta!

Ciao!

-- 
Zakplus

Godetevi ogni illusione...





Maggiori informazioni sulla lista ubuntu-it