summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-03-08 10:38:52 +0100
committerJo-Philipp Wich <jo@mein.io>2021-03-08 19:18:58 +0100
commitd02d1a304f709e66edb9443ec2a4aff09dca1c0b (patch)
tree29bd51558b95d6a8842f9ef3e85079d45af61626
parenta92fae81c7a4a540eb6cbb1e2c38756eaab46097 (diff)
fs: make error function available on directory, process and file handles
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--lib/fs.c3
1 files changed, 3 insertions, 0 deletions
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[] = {