aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-wasi.h
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2023-07-13 01:48:53 +0000
committerstephan <stephan@noemail.net>2023-07-13 01:48:53 +0000
commita5512fb17910ca7369fb93302cf92bafdcead360 (patch)
treeb6b3dc6edd2c950c31bf16d3d92554fde057d648 /ext/wasm/api/sqlite3-wasi.h
parentb3b64179dfca82f9bb5d7ad6e9fe48eb6b0acd36 (diff)
downloadsqlite-a5512fb17910ca7369fb93302cf92bafdcead360.tar.gz
sqlite-a5512fb17910ca7369fb93302cf92bafdcead360.zip
Remove obsolete ext/wasm/api/sqlite3-wasi.h.
FossilOrigin-Name: f661a6e0c1ac081ee402e64590eabd427440db1b717be9166bdfc025d0b0d899
Diffstat (limited to 'ext/wasm/api/sqlite3-wasi.h')
-rw-r--r--ext/wasm/api/sqlite3-wasi.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/ext/wasm/api/sqlite3-wasi.h b/ext/wasm/api/sqlite3-wasi.h
deleted file mode 100644
index 096f45dfe..000000000
--- a/ext/wasm/api/sqlite3-wasi.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/**
- Dummy function stubs to get sqlite3.c compiling with
- wasi-sdk. This requires, in addition:
-
- -D_WASI_EMULATED_MMAN -D_WASI_EMULATED_GETPID
-
- -lwasi-emulated-getpid
-*/
-typedef unsigned mode_t;
-int fchmod(int fd, mode_t mode);
-int fchmod(int fd, mode_t mode){
- return (fd && mode) ? 0 : 0;
-}
-typedef unsigned uid_t;
-typedef uid_t gid_t;
-int fchown(int fd, uid_t owner, gid_t group);
-int fchown(int fd, uid_t owner, gid_t group){
- return (fd && owner && group) ? 0 : 0;
-}
-uid_t geteuid(void);
-uid_t geteuid(void){return 0;}
-#if !defined(F_WRLCK)
-enum {
-F_WRLCK,
-F_RDLCK,
-F_GETLK,
-F_SETLK,
-F_UNLCK
-};
-#endif
-
-#undef HAVE_PREAD
-
-#include <wasi/api.h>
-#define WASM__KEEP __attribute__((used))
-
-#if 0
-/**
- wasi-sdk cannot build sqlite3's default VFS without at least the following
- functions. They are apparently syscalls which clients have to implement or
- otherwise obtain.
-
- https://github.com/WebAssembly/WASI/blob/main/phases/snapshot/docs.md
-*/
-environ_get
-environ_sizes_get
-clock_time_get
-fd_close
-fd_fdstat_get
-fd_fdstat_set_flags
-fd_filestat_get
-fd_filestat_set_size
-fd_pread
-fd_prestat_get
-fd_prestat_dir_name
-fd_read
-fd_seek
-fd_sync
-fd_write
-path_create_directory
-path_filestat_get
-path_filestat_set_times
-path_open
-path_readlink
-path_remove_directory
-path_unlink_file
-poll_oneoff
-proc_exit
-#endif