From d02d1a304f709e66edb9443ec2a4aff09dca1c0b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 8 Mar 2021 10:38:52 +0100 Subject: fs: make error function available on directory, process and file handles Signed-off-by: Jo-Philipp Wich --- lib/fs.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/fs.c b/lib/fs.c index a784b23..6ea4ec1 100644 --- a/lib/fs.c +++ b/lib/fs.c @@ -658,6 +658,7 @@ static const uc_cfunction_list proc_fns[] = { { "read", uc_fs_pread }, { "write", uc_fs_pwrite }, { "close", uc_fs_pclose }, + { "error", uc_fs_error }, }; static const uc_cfunction_list file_fns[] = { @@ -666,6 +667,7 @@ static const uc_cfunction_list file_fns[] = { { "seek", uc_fs_seek }, { "tell", uc_fs_tell }, { "close", uc_fs_close }, + { "error", uc_fs_error }, }; static const uc_cfunction_list dir_fns[] = { @@ -673,6 +675,7 @@ static const uc_cfunction_list dir_fns[] = { { "seek", uc_fs_seekdir }, { "tell", uc_fs_telldir }, { "close", uc_fs_closedir }, + { "error", uc_fs_error }, }; static const uc_cfunction_list global_fns[] = { -- cgit v1.2.3