[Example] #define BUF_SIZE 2048*2GfsHn gfs; / * File handle * / Sint32 nsct = 2; / * Number of read sectors * / Sint32 stat; / * Server status * / Uint32 buf [BUF_SIZE / 4]; / * Reading area * /
gfs = GFS_Open (fid); / * Open file * / / * Request function * / GFS_NwFread (gfs, nsct, buf, BUF_SIZE); / * Read nsct sector to buf * / / * Immediate return * /
for (;;) { / * Server function * / stat = GFS_NwExecOne (gfs); / * Execution of reading * / if (stat == GFS_SVR_COMPLETED) {/ * Reading complete? * / break; } user (); / * Arbitrary user processing * / }
GFS_Close (gfs); / * File close * /