The operation of the dummy file for each function is as follows:
Function | Return Value | Condition | Error Number | I-O status |
---|---|---|---|---|
1 or greater | Successful | FA_ENOERR | 0 | |
0 | Successful | FA_ENOERR | 0 | |
-1 | Failed | FA_EENDFILE | 10 | |
-1 | Failed | FA_ENOREC | 23 | |
-1 | Failed | FA_ENOCURR | 43 | |
-1 | Failed | FA_ENOREC | 23 | |
Note
In file access routines, the specification of the record key can be omitted by opening the index file. In this case, it opens recognizing the index composition, the record format, and the record length of the existing file.
When the dummy file function is specified, the specification of the record key can be similarly omitted. However, the cobfa_indexinfo() to acquire the file information fails. The error number goes to FA_EUNDEFKEY, and the I/O status becomes 90.