summaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
authorKaz Kyheku <kaz@kylheku.com>2020-01-28 08:28:21 -0800
committerKaz Kylheku <kaz@kylheku.com>2020-01-28 08:28:21 -0800
commitabc74473ed37336a924b135e656ba40eeecc064b (patch)
tree037a26ff6a0d0173ea2d23f66a8948624c6f6c0e /vm.c
parent9c5fbe2bfbd85f5fd14973d4fe83cde34f00a1a9 (diff)
downloadtxr-abc74473ed37336a924b135e656ba40eeecc064b.tar.gz
txr-abc74473ed37336a924b135e656ba40eeecc064b.tar.bz2
txr-abc74473ed37336a924b135e656ba40eeecc064b.zip
ftw: throw exception on failure.
The ftw function just returns -1 if, for instance, given a bad path (nonexistent or no permissions). The documentation also has issues. * ftw.c (ftw_wrap): If the return value is -1, convert it to a file-error using errno_to_file_error and throw a diagnostic exception. This situation can, of course, arise if the callback function returns -1, in which case it should prepare a value in errno. * txr.1: Return value of callbackfn documented better. Documented exception throwing behavior, and failed termination if the callback returns -1.
Diffstat (limited to 'vm.c')
0 files changed, 0 insertions, 0 deletions