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


Positional write: write to file descriptor at a certain position.


Source position: bunxh.inc line 89

function FpPWrite(

  fd: cint;

  buf: PChar;

  nbytes: TSize;

  offset: TOff


function FppWrite(

  fd: cint;

  const buf;

  nbytes: TSize;

  offset: TOff



FpPWrite writes nbytes bytes from buffer buf into file descriptor fd starting at offset offset. Offset is measured from the start of the file. This function can only be used on files, not on pipes or sockets (i.e. any seekable file descriptor).

The function returns the number of bytes actually written, or -1 on error.


On error, -1 is returned.

See also



Positional read: read from file descriptor at a certain position.



Vector write: Write from multiple buffers to a file descriptor

Documentation generated on: Mar 17 2017