Gerhard Meier wrote:
On Fri, Mar 18, 2005 at 12:31:28PM +0100, Kyek, Andreas, VF-DE wrote:
Was geht hier vor? nach meiner Doku soll seek bei nicht gelingen ein RC=0 zurückgeben. Das File ist genau 16308 Bytes lang; ein seek auf Position 123456 dürfte doch gar nicht gehen, oder?
Doch, der seek ist gelungen, das perl seek macht auch nichts anderes als ein lseek(3):
The lseek() system call allows the file offset to be set beyond the end of the existing end-of-file of the file. If data is
OK, soweit kann ich folgen.
later written at this point, subsequent reads of the data in the gap return bytes of zeros (until data is actually written into the gap).
Und hier nicht mehr. Denn (s. mein anderes Posting): macht von so einen seek und schreibt danach in File, dann schreibt er eben _nicht_ ab seek-Position sondern ab altem EOF. Immer noch verwirrt. Andreas
participants (1)
-
Kyek, Andreas, VF-DE