Functions which generate Fail errors but not System errors

The following functions can generate fail errors but not system errors. All can generate Fail Error 9 and Fail Error 13, except for sf_open() which generates only 9.

Function

Additional Error code on fail 13

Other fail errors

sf_cksum()

64

 

sf_close()

27

27

sf_flush()

26

22, 25, 26

sf_get_size()

20

20

sf_get_position()

21

21

sf_open()

 

3, 17, 18, 19

sf_read()

23

22, 23, 25, 26

sf_read_record()

23

22, 23, 24, 25, 26

sf_seek()

22

 

sf_track()

30

 

sf_write()

25

22, 25, 26

sf_write_record()

25

22, 25, 26

sf_buff_mode()

26

22, 25, 26

tf_discard()

65

 

The tf_() versions of these functions generate the same errors, except that they cannot generate fail 9. tf_() files typically generate errors with a filename. Errors from sf_() versions never have a filename (except a spurious one in some 4.4xx releases).

The sf_() functions can also generate fail 7 errors in a network environment when the network fails.

The return codes of these functions are corrupt in the event of a fail, so that continuing execution may cause problems.