Guardian Programming Reference Summary for C
Functions Summary (R-Z)
Guardian Programming Reference Summary for C—522630-001
8-4
READLOCK[X] 
Sequentially locks and reads records in a disk file, exactly like the combination of 
LOCKREC and READ[X]. This procedure operates only on Guardian objects.
READUPDATE[X] 
Reads data from a disk or process file in anticipation of a subsequent write to the file.
#include <cextdecs(READLOCK)>
_cc_status READLOCK ( short filenum /* i */
  ,short _near *buffer /* o */
  ,short read-count /* i */
  ,[ short *count-read ] /* o */
 ,[ long tag ] ); /* i */
#include <cextdecs(READLOCKX)>
_cc_status READLOCKX ( short filenum /* i */
  ,char *buffer /* o */
  ,short read-count /* i */
  ,[ short _near *count-read ] /* o */
 ,[ long tag ] ); /* i */
_status_lt (<returned_value>) An error occurred (call FILEINFO).
_status_eq (<returned_value>) The READLOCK[X] is successful.
_status_gt (<returned_value>) End of file (EOF). There are no more records 
in this subset.
#include <cextdecs(READUPDATE)>
_cc_status READUPDATE ( short filenum /* i */
  ,short _near *buffer /* o */
  ,short read-count /* i */
  ,[ short _near *count-read ] /* o */
 ,[ long tag ] ); /* i */
#include <cextdecs(READUPDATEX)>
_cc_status READUPDATEX ( short filenum /* i */
  ,char *buffer /* o */
  ,short read-count /* i */
  ,[ short _near *count-read ] /* o */
 ,[ long tag ] ); /* i */










