C problem...se megethos domhs

Stelios Bounanos sb at dial.pipex.com
Sun Jan 25 18:11:04 EET 2004


 >>>>> On Sat, 24 Jan 2004 22:36:12 +0200, V13 
 >>>>> <v13 at priest.com> was rumoured to have said:

 > On Saturday 24 January 2004 22:18, John Tsiombikas (Nuclear / the Lab) wrote:
 >> >>Kai genikos anti na kaneis dump ena struct sto disko, einai poly
 >> >>kalyteri idea na organoseis kapos ena fileformat. opote to packing ton
 >> >>structs kai alla tetoia den einai kan issue.
 >> >
 >> > To "na organoseis kapos ena fileformat" stereitai periexomenou.
 >> > Mhpws mporeis na to diatupwseis kalutera?
 >> 
 >> tora den katalabes ontos ti eipa i exeis oreksi gia koubenta?
 >> einai eleino na kaneis memory dump se arxeio, kai profanos mi efarmosimo se
 >> polles periptoseis (px an to structure sou exei pointers, dynamically
 >> allocated members klp), pio anthropini methodos einai na organoseis ena
 >> file structure analoga me ta dedomena sou kai na exeis mia synartisi pou
 >> diabazei apo to arxeio, kai mia na grafei sto arxeio.

 > Basika, yparxoyn 2 tropoy na grapseis dedomena se arxeio me portable tropo 
 > (portable == na perneis to arxeio me ta data se ena allo systhma kai na 
 > doylevei):

 > a) text
 > b) byte-byte, kathorizontas esy to endianess

 > To b (pleon) thoreitai ena apo ta xeirotera eidh mazoxismoy (ektos an 
 > prokeitai gia megalo ogko dedomenon, opoy kai pali einai mazoxismos ektos kai 
 > an grafeis kapoia dikia soy bash dedomenon)...

c) XDR (xdr(3), rfc1832) poy einai pio portable apo to b), symfwna me
   ton parapanw orismo, giati de se apasxolei to endianness.


 >> -- Nuclear / the Lab --
 > <<V13>>


Rgds,
/-sb.




More information about the Linux-greek-users mailing list