arxeio > 2 GB

Giorgos Keramidas charon at hades.hell.gr
Sun Dec 5 15:11:49 EET 1999


On Sun, Dec 05, 1999 at 02:52:02AM +0200, I.Ioannou wrote:
| On 04-Dec-99 Yannis Tsakiris wrote:
| > Geia..
| > exw akousei diafora kai 8a i8ela mia pliri eksigisi gia to problima
| > me to orio sta file sizes twn 2GB.
| > ti einai ayto pou bazei ayton ton periorismo, kai ti lyseis exoun
| 
| Apla apo tin pleyra toy programmatisti : h metabliti pou xrisimopoeitai san
| deiktis se arxeia (px stin lseek) einai paradosiaka h long integer, pou se 32bit
| sistimata einai enas signed arithmos twn 32 bit, dil. exei 31 bit diathesima,
| kai 2^31 = 2G. 

Kanonika, den prepei na basizetai kaneis oti einai 'long' to offset se
eva arxeio.  TO `off_t' einai theorotika o swstos tupos.

Apo tin alli, kapou eixe parei to mati mou oti to `long' einai se kathe
arxitektoniki to megalutero word-sized pragma pou mporei na diabasei o
upologisti -- pou ontws sta x86 einai 32 bit.

Opws kai na exei pantws, to merced exei arghsei :)

-- 
Giorgos Keramidas, <keramida at ceid.upatras.gr>
"What we have to learn to do, we learn by doing."
[Aristotle, Ethica Nicomachea]
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/lgu.html
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list