summaryrefslogtreecommitdiff
path: root/demo/bsdopendirtype_build.py
diff options
context:
space:
mode:
Diffstat (limited to 'demo/bsdopendirtype_build.py')
-rw-r--r--demo/bsdopendirtype_build.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/demo/bsdopendirtype_build.py b/demo/bsdopendirtype_build.py
deleted file mode 100644
index 3c5bb0b..0000000
--- a/demo/bsdopendirtype_build.py
+++ /dev/null
@@ -1,23 +0,0 @@
-from cffi import FFI
-
-ffibuilder = FFI()
-ffibuilder.cdef("""
- typedef ... DIR;
- struct dirent {
- unsigned char d_type; /* type of file */
- char d_name[]; /* filename */
- ...;
- };
- DIR *opendir(const char *name);
- int closedir(DIR *dirp);
- struct dirent *readdir(DIR *dirp);
- static const int DT_BLK, DT_CHR, DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK;
-""")
-
-ffibuilder.set_source("_bsdopendirtype", """
- #include <sys/types.h>
- #include <dirent.h>
-""")
-
-if __name__ == '__main__':
- ffibuilder.compile(verbose=True)