aboutsummaryrefslogtreecommitdiff
path: root/src/Platform/Posix
diff options
context:
space:
mode:
Diffstat (limited to 'src/Platform/Posix')
-rw-r--r--src/Platform/Posix/File.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Platform/Posix/File.c b/src/Platform/Posix/File.c
index c91a46f..16a6109 100644
--- a/src/Platform/Posix/File.c
+++ b/src/Platform/Posix/File.c
@@ -306,3 +306,12 @@ BH_IO *BH_FileNew(const char *path,
return (BH_IO*)file;
}
+
+
+int BH_IOIsFile(BH_IO *device)
+{
+ if (!device)
+ return 0;
+
+ return device->callback == (BH_IOCallback)fileCallback;
+}