about summary refs log tree commit diff stats
path: root/src/lfs.h
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-03-14 17:26:13 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-03-14 17:26:13 -0700
commit5e976554dd933842b46eeb8a8e451b9fd3d4cabe (patch)
tree8200d0254b068b87f53d9dbe2e3948e1c5da7d1f /src/lfs.h
parent6f5f6849dd1550f0ae91c32cc442b6f0b518b8ea (diff)
downloadteliva-5e976554dd933842b46eeb8a8e451b9fd3d4cabe.tar.gz
drop the lfs library
I can't feel confident about its sandboxing story yet. And if we can't
build a file navigator, what are we even doing with it.
Diffstat (limited to 'src/lfs.h')
-rw-r--r--src/lfs.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/lfs.h b/src/lfs.h
deleted file mode 100644
index 13b60a9..0000000
--- a/src/lfs.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
-** LuaFileSystem
-** Copyright Kepler Project 2003 - 2020
-** (http://keplerproject.github.io/luafilesystem)
-*/
-
-/* Define 'chdir' for systems that do not implement it */
-#ifdef NO_CHDIR
-#define chdir(p)	(-1)
-#define chdir_error	"Function 'chdir' not provided by system"
-#else
-#define chdir_error	strerror(errno)
-#endif
-
-#ifdef _WIN32
-#define chdir(p) (_chdir(p))
-#define getcwd(d, s) (_getcwd(d, s))
-#define rmdir(p) (_rmdir(p))
-#define LFS_EXPORT __declspec (dllexport)
-#ifndef fileno
-#define fileno(f) (_fileno(f))
-#endif
-#else
-#define LFS_EXPORT
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-  LFS_EXPORT int luaopen_lfs(lua_State * L);
-
-#ifdef __cplusplus
-}
-#endif