Sources and Sinks

int src_fd(int fd, unsigned int n_bytes, void *buf)

Source (unix FD)

Parameters
  • fd – file descriptor

  • n_bytes – number of bytes to read from fd

  • buf – buffer address

Returns

exit code

int sink_fd(int fd, unsigned int n_bytes, void *buf)

Sink (unix FD)

Parameters
  • fd – file descriptor

  • n_bytes – number of bytes to write to fd

  • buf – buffer address

Returns

exit code

int src_file(FILE *f, unsigned int n_bytes, void *buf)

Source (file)

Parameters
  • fFILE* handle

  • n_bytes – number of bytes to read from file

  • buf – buffer address

Returns

exit code

int sink_file(FILE *f, unsigned int n_bytes, void *buf)

Sink (file)

Parameters
  • fFILE* handle

  • n_bytes – number of bytes to write to file

  • buf – buffer address

Returns

exit code