summaryrefslogtreecommitdiffstats
path: root/ffi.c
diff options
context:
space:
mode:
authorPaul A. Patience <paul@apatience.com>2021-10-03 20:11:20 -0400
committerKaz Kylheku <kaz@kylheku.com>2021-10-04 06:53:50 -0700
commit6b4a2eeaa2d8a0198a9199656ee5fbbb8dc9ab76 (patch)
treee30ad313eadd77cf29e17402fc2afb8f8f7f9553 /ffi.c
parentad102c8e19b2aa69b0647dbf1c72c9402de4c79d (diff)
downloadtxr-6b4a2eeaa2d8a0198a9199656ee5fbbb8dc9ab76.tar.gz
txr-6b4a2eeaa2d8a0198a9199656ee5fbbb8dc9ab76.tar.bz2
txr-6b4a2eeaa2d8a0198a9199656ee5fbbb8dc9ab76.zip
exceptions: fix leftover uw_throwfs with errno.
* ffi.c (mmap_wrap, mmap_op): Switch to uw_ethrowf. * sysif.c (getresgid_wrap): Same.
Diffstat (limited to 'ffi.c')
-rw-r--r--ffi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ffi.c b/ffi.c
index b857ecb2..a77c48a4 100644
--- a/ffi.c
+++ b/ffi.c
@@ -6239,8 +6239,8 @@ val mmap_wrap(val type, val len, val prot, val flags,
if (ad_out == MAP_FAILED) {
int eno = errno;
- uw_throwf(system_error_s, lit("~a: mmap failed: ~d/~s"),
- self, num(eno), errno_to_str(eno), nao);
+ uw_ethrowf(system_error_s, lit("~a: mmap failed: ~d/~s"),
+ self, num(eno), errno_to_str(eno), nao);
} else {
val ca = make_carray(type, ad_out, nelem, nil, 0);
struct carray *scry = carray_struct(ca);
@@ -6306,8 +6306,8 @@ static val mmap_op(val carray, val offset_in, val size_in,
if (op_fn(scry->data + off, sz, c_int(arg, self)) < 0) {
int eno = errno;
- uw_throwf(system_error_s, lit("~a: ~s: ~a failed: ~d/~s"),
- self, carray, self, num(eno), errno_to_str(eno), nao);
+ uw_ethrowf(system_error_s, lit("~a: ~s: ~a failed: ~d/~s"),
+ self, carray, self, num(eno), errno_to_str(eno), nao);
}
return t;