summaryrefslogtreecommitdiff
path: root/jni/ruby/nacl/dirent.h
diff options
context:
space:
mode:
authorJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-16 18:49:26 +0900
committerJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-30 00:39:06 +0900
commitfcbf63e62c627deae76c1b8cb8c0876c536ed811 (patch)
tree64cb17de3f41a2b6fef2368028fbd00349946994 /jni/ruby/nacl/dirent.h
Fresh start
Diffstat (limited to 'jni/ruby/nacl/dirent.h')
-rw-r--r--jni/ruby/nacl/dirent.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/jni/ruby/nacl/dirent.h b/jni/ruby/nacl/dirent.h
new file mode 100644
index 0000000..31bdad3
--- /dev/null
+++ b/jni/ruby/nacl/dirent.h
@@ -0,0 +1,15 @@
+/*
+ * Copyright 2011 Google Inc. All Rights Reserved.
+ * Author: yugui@google.com (Yugui Sonoda)
+ */
+#ifndef RUBY_NACL_DIRENT_H
+#define RUBY_NACL_DIRENT_H
+
+/* NaCl SDK 0.3 has implementations of dir functions but no declaration in
+ * dirent.h */
+int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
+void rewinddir(DIR *dirp);
+long telldir(DIR *dirp);
+void seekdir(DIR *dirp, long offset);
+
+#endif