[Overview][Constants][Types][Procedures and functions][Variables] |
Truncate file on certain size.
Source position: oldlinux.pp line 1386
function fdTruncate( |
fd: LongInt; |
size: LongInt |
):Boolean; |
fdTruncatesets the length of a file in fdon sizebytes, where sizemust be less than or equal to the current length of the file in fd. The function returns Trueif the call was successful, falseif an error occurred.
Errors are returned in LinuxError.
|
Open file and return file descriptor |
|
|
Close file descriptor |
|
|
Read data from file descriptor |
|
|
Write data to file descriptor |
|
|
Flush kernel file buffer |
|
|
Set file pointer position. |