| 406 | } |
| 407 | |
| 408 | int |
| 409 | rsrc_dlb_fread(char *buf, int size, int quan, dlb *dp) |
| 410 | { |
| 411 | int nread; |
| 412 | |
| 413 | if (size < 0 || quan < 0) |
| 414 | return 0; |
| 415 | nread = ReadHandleFile(dp->fd, buf, (unsigned) size * (unsigned) quan); |
| 416 | |
| 417 | return nread / size; /* # of whole pieces (== quan in normal case) */ |
| 418 | } |
| 419 | |
| 420 | int |
| 421 | rsrc_dlb_fseek(dlb *dp, long pos, int whence) |
nothing calls this directly
no test coverage detected