int sqFTruncate(filenum, fileoffset)


Parms:
filenum file number
fileoffset file byte offset to truncate to.
return: 0 if ok. non-zero to fail the primitive call.

From: Interpreter, file plugin
Why:
To truncate the file, this removes bytes from the end, or extends the file depending on the meaning of truncate in the file system.

Responsibility:

By default it is defined as
#define sqFTruncate(filenum, fileoffset) true

MacIntosh
os-9/OSXCarbon
#define sqFTruncate(f,o) ftruncate(fileno(f), o)

Cocoa:
See iPhone

iPhone
#define sqFTruncate(f,o) ftruncate(fileno(f), o)

Unix
#define sqFTruncate(f,o) ftruncate(fileno(f), o)

Windows
??? It's unclear I think it inherits the #define sqFTruncate(filenum, fileoffset) true

BUGS
Does Windows support sqFTruncate???

There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki