View Single Post
Old 15th April 2009
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Quote:
Originally Posted by BSDfan666 View Post
Short history lesson; The first Unix system was the PDP-7, this system had 18-bit integers.. not 16-bit.
Interesting, as that's an odd size. At any rate, my comment re K&R referred to page 164 where they say:

Quote:
Originally Posted by K&R
In pre-version 7 UNIX, the basic entry point to the I/O system is called seek. seek is identical to lseek, except that its offset argument is an int rather than a long. Accordingly, since PDP-11 integers have only 16 bits, the offset specified by seek is limited to 65,535.
I'll try to edit the post to include 18-bits as well.

Quote:
Also.. fseeko/ftello use off_t, under OpenBSD this type is always 64-bit.. but you'll need to define _FILE_OFFSET_BITS=64 on Linux.
Correct, that is what I wrote too, but maybe the headings were not clear. I'll see if I can punctuate them better or something. Thanks.
Reply With Quote