28.10.2014 Views

Synergy User Manual and Tutorial. - THE CORE MEMORY

Synergy User Manual and Tutorial. - THE CORE MEMORY

Synergy User Manual and Tutorial. - THE CORE MEMORY

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Synergy</strong> <strong>User</strong> <strong>Manual</strong> <strong>and</strong> <strong>Tutorial</strong><br />

PARAMETERS:<br />

RETURNS:<br />

int id – The index into cnf_map global data structure where the<br />

actual channel number or file pointer is stored<br />

char *buf -<br />

int bufsize – the number of bytes to send<br />

int e_type -<br />

int status - number of bytes written, 0 if error writing or an error<br />

code otherwise<br />

cnf_xdr_fread(id, buf, bufsize, nitems, e_type)<br />

PURPOSE:<br />

PARAMETERS:<br />

RETURNS:<br />

Read the external data representation of a 'record' from file into<br />

buffer (starting at address xdr_buff) <strong>and</strong> translates it to C language.<br />

int id – The index into cnf_map global data structure where the<br />

actual channel number or file pointer is stored<br />

char *buf -<br />

int bufsize – the number of bytes to read<br />

int nitems -<br />

int e_type -<br />

int status - number of bytes read, 0 if error writing or an error code<br />

otherwise<br />

cnf_xdr_fwrite(id, buf, bufsize, nitems, e_type)<br />

PURPOSE:<br />

PARAMETERS:<br />

RETURNS:<br />

Translates a 'record` to it's external data representation <strong>and</strong> sends it<br />

to file from buffer (starting at address xdr_buff).<br />

int id – The index into cnf_map global data structure where the<br />

actual channel number or file pointer is stored<br />

char *buf -<br />

int bufsize – the number of bytes to send<br />

int nitems -<br />

int e_type -<br />

Number of bytes written or an error code or -1 on error<br />

cnf_xdr_read(id, buf, bufsize, e_type)<br />

PURPOSE:<br />

Read the external data representation of a 'record' from file or pipe<br />

into buffer (starting at address xdr_buff) <strong>and</strong> translates it to C<br />

language.<br />

209

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!