Reuse is only possible if your custom VFS's internal file object structure is compatible with struct unixFile as defined in os_unix.c und the selected locking strategy uses the same methods/system calls.
So my guess is "probably not", but grabbing code from os_unix.c might be a good starting point if your OS has similar system calls. -----Ursprüngliche Nachricht----- Von: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] Im Auftrag von Albert Banaszkiewicz Gesendet: Donnerstag, 20. Dezember 2018 11:31 An: sqlite-users@mailinglists.sqlite.org Betreff: [EXTERNAL] [sqlite] Reusing built-in sqlite3_io_methods Hello everybody, In our system we use our custom VFS implementation (sqlite3_vfs_register, sqlite3_vfs). Now we would like to come up with locking strategy. And here is the question: Is there a way to reuse one from the set of already implemented in sqlite ? Or is it necessary to write it from scratch or copy it from sqlite source code ? Best Regards, Albert Banaszkiewicz _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users ___________________________________________ Gunter Hick | Software Engineer | Scientific Games International GmbH | Klitschgasse 2-4, A-1130 Vienna | FN 157284 a, HG Wien, DVR: 0430013 | (O) +43 1 80100 - 0 May be privileged. May be confidential. Please delete if not the addressee. _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users