help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'oldlinux' (#rtl)

fdTruncate

Truncate file on certain size.

Declaration

Source position: oldlinux.pp line 1386

function fdTruncate(

  fd: LongInt;

  size: LongInt

):Boolean;

Description

fdTruncate sets the length of a file in fd on size bytes, where size must be less than or equal to the current length of the file in fd. The function returns True if the call was successful, false if an error occurred.

Errors

Errors are returned in LinuxError.

See also

fdOpen

  

Open file and return file descriptor

fdClose

  

Close file descriptor

fdRead

  

Read data from file descriptor

fdWrite

  

Write data to file descriptor

fdFlush

  

Flush kernel file buffer

fdSeek

  

Set file pointer position.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505