Function fdWrite (fd:longint;var buf;size:longint : longint;
fdWrite writes at most size bytes from buf to file descriptor fd.
The function returns the number of bytes actually written, or -1 if an error occurred.
Errors are returned in LinuxError.
fdOpen, fdClose, fdRead,fdTruncate, fdSeek, fdFlush