Re: [sqlite] porting sqlite on ARM cortex M7

2019-06-26 Thread Mateusz Wajchęprzełóż
https://www.sqlite.org/custombuild.html https://www.sqlite.org/vfs.html śr., 26 cze 2019 o 08:34 napisał(a): > Dear SQLite Team, > > > > I am very new to SQLite and want to use SQLite in my project which is based > on ARM Cortex M7 core. Do we have any examples available for porting SQLite > to

Re: [sqlite] porting sqlite on ARM cortex M7

2019-06-26 Thread Jens Alfke
> On Jun 25, 2019, at 11:34 PM, vi...@ngxtech.com wrote: > > I am very new to SQLite and want to use SQLite in my project which is based > on ARM Cortex M7 core. Do we have any examples available for porting SQLite > to cortex M series microcontroller?? It’s written in highly portable C, so jus

Re: [sqlite] Porting SQLite: Stack error

2017-07-14 Thread Richard Hipp
Try commenting-out the three lines and https://www.sqlite.org/src/artifact/e384cb73f?ln=77-79 and see if that helps. Let us know either way. On 7/13/17, LukasOsswald wrote: > Hello, > > I am trying to port SQLite3 to an embedded system using an ARM926 running a > real time os. The VFS is based o

Re: [sqlite] Porting SQLite to another operating system (not supported out of the box)

2015-02-12 Thread J Decker
this contains a very basic vfs implementation; kinda uses internal file abstraction stuff so a lot can be stripped out and replaced with fopen/fread/etc... https://code.google.com/p/c-system-abstraction-component-gui/source/browse/src/sqlite/sqlite_interface.c maybe it's more cryptic than I think

Re: [sqlite] Porting SQLite to another operating system (not supported out of the box)

2015-02-12 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/10/2015 07:03 PM, Jay Kreibich wrote: > ... VFS is unlikely to make the cut. ... similar things about the > xBestIndex() and xFilter() functions I haven't read the book, but one thing that may help is not using C for these. I think it is easier

Re: [sqlite] Porting SQLite to another operating system (not supported out of the box)

2015-02-10 Thread Jay Kreibich
On Feb 10, 2015, at 11:21 AM, Peter Aronson wrote: > You could add VFS creation if you ever do a revised edition (along with a > virtual table example that actually used xBestIndex and xFilter…) Given that the book is over four years old and covers to the end of SQLIte3 3.6.x, there are a

Re: [sqlite] Porting SQLite to another operating system (not supported out of the box)

2015-02-10 Thread Dan Kennedy
On 02/11/2015 12:31 AM, Simon Slavin wrote: On 10 Feb 2015, at 5:01pm, Clemens Ladisch wrote: Janke, Julian wrote: In my opinion, this means, we must ""only"" write a VFS implementation for our target platform. What file API is there? It looks like a standard POXIS implementation. My guess

Re: [sqlite] Porting SQLite to another operating system (not supported out of the box)

2015-02-10 Thread Richard Hipp
On 2/10/15, Janke, Julian wrote: > > > I know there are two implementations for unix and windows systems in > os_unix.c and os_win.c, > but these are very large files, which are not very helpful for a first > rough > understanding. > See also: https://www.sqlite.org/src/artifact/0396f220561f --

Re: [sqlite] Porting SQLite to another operating system (not supported out of the box)

2015-02-10 Thread Simon Slavin
On 10 Feb 2015, at 5:01pm, Clemens Ladisch wrote: > Janke, Julian wrote: >> In my opinion, this means, we must ""only"" write a VFS implementation for >> our target platform. > > What file API is there? It looks like a standard POXIS implementation. My guess is that the best place to start w

Re: [sqlite] Porting SQLite to another operating system (not supported out of the box)

2015-02-10 Thread Peter Aronson
You could add VFS creation if you ever do a revised edition (along with a virtual table example that actually used xBestIndex and xFilter...). On Tuesday, February 10, 2015 9:58 AM, Jay Kreibich wrote: > > > > >No, it does not. Using SQLite covers Virtual Tables in great detail, but not >V

Re: [sqlite] Porting SQLite to another operating system (not supported out of the box)

2015-02-10 Thread Clemens Ladisch
Janke, Julian wrote: > In my opinion, this means, we must ""only"" write a VFS implementation for > our target platform. What file API is there? Regards, Clemens ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailm

Re: [sqlite] Porting SQLite to another operating system (not supported out of the box)

2015-02-10 Thread Stephan Beal
On Tue, Feb 10, 2015 at 5:58 PM, Jay Kreibich wrote: > No, it does not. Using SQLite covers Virtual Tables in great detail, but > not VFS systems. They’re somewhat unusual, after all. > My apologies - i mixed my terminology there! -- - stephan beal http://wanderinghorse.net/home/stephan/

Re: [sqlite] Porting SQLite to another operating system (not supported out of the box)

2015-02-10 Thread Jay Kreibich
No, it does not. Using SQLite covers Virtual Tables in great detail, but not VFS systems. They’re somewhat unusual, after all. I assume you’ve read the VFS docs: http://www.sqlite.org/vfs.html >From there, my suggestion is to look closely at the code for the VFS structure >(http://www.sqlit

Re: [sqlite] Porting SQLite to another operating system (not supported out of the box)

2015-02-10 Thread Stephan Beal
On Tue, Feb 10, 2015 at 5:27 PM, Janke, Julian wrote: > So my question is, if there is any additional information, how to write a > VFS? > Or does anyone have a clue how to start best? > This book: http://www.amazon.de/Using-SQLite-Jay-Kreibich-ebook/dp/B008IGK5QM/ resp. http://shop.oreilly.

Re: [sqlite] Porting SQLite to Nurit OS ver

2014-07-02 Thread Stephan Beal
On Wed, Jul 2, 2014 at 2:41 PM, Clemens Ladisch wrote: > > |Prototype causes non-standard conversion from `int' to > `sqlite3_int64' > > This is just an overzealous and absurdly useless warning. > Try to reduce the warning level. > AFAIK, any conversion from a less precise type to a more pre

Re: [sqlite] Porting SQLite to Nurit OS ver

2014-07-02 Thread Clemens Ladisch
Paulo Roberto wrote: > I'm trying to port SQLite (3.08.04.03) to the Nurit 8400 POS device that > has an ARM 7 processor and is running Nurit OS 7.50.13a > > The error appears when the compiler is building the sqlite.c file (the same > flags are used). > |Prototype causes non-standard conversi

Re: [sqlite] Porting SQLite to Nurit OS ver

2014-07-02 Thread Kees Nuyt
On Wed, 2 Jul 2014 12:02:01 +0100, Simon Slavin wrote: > > Thank you for your precise and useful description of what is happening. > > Unfortunately this list does not allow attachments, but can you paste > a copy of the final error, the one about the register map, > to one of your posts ? Make

Re: [sqlite] Porting SQLite to Nurit OS ver

2014-07-02 Thread Simon Slavin
On 1 Jul 2014, at 10:32pm, Paulo Roberto wrote: > There are a lot of warnings due to data type conversion and in the end an > error relative to register map that I didn't understand. > > I would appreciate any help to solve this issue and build it correctly. > > The compiler used is an hcarm 4

Re: [sqlite] Porting SQLite to plain C RTOS

2014-05-13 Thread mm.w
http://pubs.opengroup.org/onlinepubs/7908799/xsh/systime.h.html http://pubs.opengroup.org/onlinepubs/7908799/xsh/flockfile.html http://pubs.opengroup.org/onlinepubs/009695399/functions/fcntl.html // IEEE Std 1003.1, 2004 Edition @!!= linux On Tue, May 13, 2014 at 7:55 AM, Artur Deterer wrote:

Re: [sqlite] Porting Sqlite to MQX Operating system

2013-06-15 Thread JCharavda
Geoff, Did you manage to get sqlite working with MQX? -- Jay -- View this message in context: http://sqlite.1065341.n5.nabble.com/Porting-Sqlite-to-MQX-Operating-system-tp16685p69428.html Sent from the SQLite mailing list archive at Nabble.com. ___ s

Re: [sqlite] Porting Sqlite to MQX Operating system

2013-04-25 Thread Richard Hipp
On Thu, Apr 25, 2013 at 7:38 AM, arun.pradeep wrote: > > Hi Geoff > > I am currently working on porting of SQLITE to MQX RTOS in MPC5125 > Platform. > > I am trying to rewrite the sqlite_os_init() for MQX and I have taken Win32 > VFS implementation as the reference. > Have you considered using

Re: [sqlite] Porting Sqlite to MQX Operating system

2013-04-25 Thread arun.pradeep
Hi Geoff I am currently working on porting of SQLITE to MQX RTOS in MPC5125 Platform. I am trying to rewrite the sqlite_os_init() for MQX and I have taken Win32 VFS implementation as the reference. But I am not able to map all of the Win32 file system calls with that of MQX functions. Pleas

Re: [sqlite] Porting Sqlite to MQX Operating system

2013-04-25 Thread arun.pradeep
Hi Geoff I am currently working on porting of SQLITE to MQX RTOS in MPC5125 Platform. I am trying to rewrite the sqlite_os_init() for MQX and I have taken Win32 VFS implementation as the reference. But I am not able to map all of the Win32 file system calls with that of MQX functions. Pleas

Re: [sqlite] Porting a simple logon script to SQLite3 from MySQL

2011-10-05 Thread David Garfield
C Lindgren writes: > $sql=$db->exec("INSERT INTO users(ID,username,password) > VALUES > ('0','".$username."','".$password."')"); In MYSQL, null and 0 are magic for a INTEGER PRIMARY KEY AUTO_INCREMENT column. In SQLite,

Re: [sqlite] Porting a simple logon script to SQLite3 from MySQL

2011-10-05 Thread C Lindgren
Quoting Stephan Beal : On Wed, Oct 5, 2011 at 6:56 PM, C Lindgren wrote: if (isset ($_post ['submit'] )) { Aside from this use of POST being a huge security hole, $_post is spelled wrong: it whould be $_POST (or $_REQUEST if you want to treat GET/POST the same). $

Re: [sqlite] Porting a simple logon script to SQLite3 from MySQL

2011-10-05 Thread Simon Slavin
On 5 Oct 2011, at 5:56pm, C Lindgren wrote: > I'm trying to port a simple logon script that was originally for MySQL to > SQLite3. MySQL uses connections to a server with a password. SQLite accesses a file on a hard disk. Make sure your web app (probably apache or httpd) has enough access

Re: [sqlite] Porting a simple logon script to SQLite3 from MySQL

2011-10-05 Thread Stephan Beal
On Wed, Oct 5, 2011 at 6:56 PM, C Lindgren wrote: > if (isset ($_post ['submit'] )) { Aside from this use of POST being a huge security hole, $_post is spelled wrong: it whould be $_POST (or $_REQUEST if you want to treat GET/POST the same). >$sql=$db->exec("INSERT INT

Re: [sqlite] Porting Sqlite to MQX OS: Question 3

2011-03-07 Thread thedigitalsean
Geoff, I know this is an old post, but I am investigating designs for a project that might benefit from Sqlite support on MQX. In your initial post you mentioned posting your results. Were you ever able to get this working? Thanks, Sean -- View this message in context: http://old.nabble.com

Re: [sqlite] Porting SQLite 3.7.2 to vxWorks 6.7

2010-10-11 Thread Scott A Mintz
Thanks. I took a guess that it was fixed in 3.7.3 and manually downloaded the source. Of course hitting refresh in my browser brought up the correct page. PEBKAC. -Scott sqlite-users-boun...@sqlite.org wrote on 10/11/2010 04:04:32 PM: > See: > > http://www.sqlite.org/src/info/d1ed743b6e >

Re: [sqlite] Porting SQLite 3.7.2 to vxWorks 6.7

2010-10-11 Thread Shane Harrelson
See: http://www.sqlite.org/src/info/d1ed743b6e for changes for SQLITE_OMIT_WAL. 3.7.3 should be available from the downloads page: http://www.sqlite.org/download.html as of October 8, 2010. You might need to refresh your browser cache. Direct link to the amalgamation is: http://www.sqlite.o

Re: [sqlite] Porting SQLite 3.7.2 to vxWorks 6.7

2010-10-11 Thread Scott A Mintz
I think there is a bug in 3.7.2 when you define SQLITE_OMIT_WAL. There are references to pagerPagecount() that cannot be resolved because that function is defined inside of a #ifndef SQLITE_OMIT_WAL. I also keep seeing references to 3.7.3 in this list. But the SQLite download page only has li

Re: [sqlite] Porting SQLite 3.7.2 to vxWorks 6.7

2010-10-11 Thread Scott A Mintz
I am a little reluctant to modify our kernel configuration. Primarily out of ignorance because I know very little about vxWorks. Do you happen to know if these functions are used by the new WAL logic? I'm assuming by the names that they could be related to memory mapped files. What switches

Re: [sqlite] Porting SQLite 3.7.2 to vxWorks 6.7

2010-10-09 Thread ZhiHua Huang
Hello Scott, I did some searching with these symbols, they should be in 'libos.a'. rtpLib.o - rtpVerifyAndLock pgMgrLib.o - pgMgrPageFree, pgMgrPageAllocAt you should modify kernel components with your VIP project. Best Regards, Huang ZhiHua 2010/10/9 Scott A Mintz > Thank you. Th

Re: [sqlite] Porting SQLite 3.7.2 to vxWorks 6.7

2010-10-08 Thread Scott A Mintz
Thank you. Those changes (modified slightly for 3.7.2) allowed me to create a DKM project that compiles sqlite3.c to libSQLite3.a. However, when I link my main VIP project, I get the following unresolved errors: dld: warning: Undefined symbol 'rtpVerifyAndLock' in file 'partialImage.o' dld: war

Re: [sqlite] Porting SQLite 3.7.2 to vxWorks 6.7

2010-10-08 Thread ZhiHua Huang
Hello Scott, Below is my patch on the latest SQLite 3.7.3. Please notice that I only verify it with GCC 4.1.2 compiler in VxWorks 6.6/6.7/6.8(I have not verify it with my real target machine yet). *** sqlite3.c.orig2010-10-08 10:42:22.0 +0800 --- sqlite3.c2010-10-08 19:24:18.3

Re: [sqlite] Porting Sqlite to MQX OS: Question 3

2010-03-23 Thread Pavel Ivanov
If task 1 will have only one connection to customer.db and task 2 will have only one connection to fault.db then it looks like you don't need any locking indeed. And most part of mutexes is not necessary too, although probably you'll need ones that protect some global variables (can't say how many

Re: [sqlite] Porting Sqlite to MQX OS: Question 2

2010-03-16 Thread GeoffW
Hello Dan >Do the tasks share a heap? And do you have multiple connections >to the database (multiple calls to sqlite3_open() or sqlite3_open_v2(). I would like to keep the implementation as general purpose as possible so we can use sqlite in the future in differient Applications. Therefore I w

Re: [sqlite] Porting Sqlite to MQX OS: Question 2

2010-03-15 Thread Dan Kennedy
On Mar 16, 2010, at 5:22 AM, GeoffW wrote: > > Hello Dan > > Thanks for your useful input. To answer your questions. > >> Do you have any file-locking primitives provided by the OS? > There are no file locking OS Primitives at all that I can use. > >> Do you have clients connecting to the databas

Re: [sqlite] Porting Sqlite to MQX OS: Question 2

2010-03-15 Thread GeoffW
Hello Dan Thanks for your useful input. To answer your questions. >Do you have any file-locking primitives provided by the OS? There are no file locking OS Primitives at all that I can use. >Do you have clients connecting to the database from multiple >processes? Or only multiple threads within

Re: [sqlite] Porting Sqlite to MQX OS: Question 2

2010-03-15 Thread Dan Kennedy
On Mar 15, 2010, at 10:04 PM, GeoffW wrote: > > Hi Kees > > Thanks for the response and giving me a clue to look at dot locking, > I had > missed the dot lock mechanism as I had concentrated mainly on the > osWin.c > file. I cant find any documentation other than the source code on > how th

Re: [sqlite] Porting Sqlite to MQX OS: Question 2

2010-03-15 Thread GeoffW
Hi Kees Thanks for the response and giving me a clue to look at dot locking, I had missed the dot lock mechanism as I had concentrated mainly on the osWin.c file. I cant find any documentation other than the source code on how this low level file locking stuff is implemented. I am currently read

Re: [sqlite] Porting Sqlite to MQX OS: Question 2

2010-03-12 Thread Kees Nuyt
On Fri, 12 Mar 2010 02:22:31 -0800 (PST), GeoffW wrote: > >Hi > >Now I have got a half ported version of Sqlite up and running on MQX I cant >put off any longer the question of file locking and how I tackle that ? For >the moment i had made the xLock() and xUnlock() the same as in osWin.c >versio

Re: [sqlite] Porting Sqlite to MQX Operating system

2010-03-12 Thread GeoffW
hello I thought I had better update this and confess to my sins. Good job no one is reading this thread as it is an embarassingly stupid mistake :rules: I cant believe I did this and then took so long to spot it. int sqlite3_os_init(void) { static sqlite3_vfs mqxVfs = { 1,

Re: [sqlite] Porting Sqlite to MQX Operating system

2010-03-08 Thread GeoffW
Hi I wasted another entire day on this without really being able to grasp what the problem is. The call sequence is for the sqlite3OsClose() function Working Windows version pager_unlock() pPager->jfpd where pMethods =0 releaseAllSavepoints() pPager->sjfpd where pMethods =0 above 2 lines repe

Re: [sqlite] Porting Sqlite to MQX Operating system

2010-03-05 Thread GeoffW
hello Dan Thanks for the very speedy reply. I have just been experimenting with the working Windows version. I only get one hit of the winOpen() function and that is with a filename parameter of the full path to my test.db file So maybe it is not a temporary journal file or maybe I am misunder

Re: [sqlite] Porting Sqlite to MQX Operating system

2010-03-05 Thread Dan Kennedy
> > http://old.nabble.com/file/p27792715/stack.jpg > > I know its a long shot but does Dr Hipp or anyone have any possible > ideas > what could give rise to a premature file close ? Sorry my message > was so > long. Thanks for any ideas SQLite thinks it is closing the statement journal here,

Re: [sqlite] Porting into a microcontroller, minimum requirements

2008-05-13 Thread Dennis Jenkins
Jay A. Kreibich wrote: > On Wed, May 07, 2008 at 10:25:49PM -0400, Andrew Cunningham scratched on the > wall: > > >> "I have doubts that you will be able to get SQLite to work on anything >> less than a 32-bit processor. >> D. Richard Hipp" >> > > >> I was under the impression as long a

Re: [sqlite] Porting into a microcontroller, minimum requirements

2008-05-09 Thread Jay A. Kreibich
On Wed, May 07, 2008 at 10:25:49PM -0400, Andrew Cunningham scratched on the wall: > "I have doubts that you will be able to get SQLite to work on anything > less than a 32-bit processor. > D. Richard Hipp" > I was under the impression as long as the processor had enough room to > hold the progr

Re: [sqlite] Porting into a microcontroller, minimum requirements

2008-05-07 Thread Andrew Cunningham
*snip* "I have doubts that you will be able to get SQLite to work on anything less than a 32-bit processor. D. Richard Hipp" I was under the impression as long as the processor had enough room to hold the program (and RAM) it would work. The difference I would have expected would simply be speed

Re: [sqlite] Porting into a microcontroller, minimum requirements

2008-05-07 Thread Eduardo Morras
At 02:43 07/05/2008, you wrote: >Hi, > >I was wondering if anyone has any basic guide lines on embedding SQLite into >a microcontroller. For example, I am considering using an 8/16 bit processor >with 1 MB flash, 1 MB SRAM and 2 GB data storage (SD card). Has anyone ported >this before to an emb

Re: [sqlite] Porting into a microcontroller, minimum requirements

2008-05-06 Thread D. Richard Hipp
On May 6, 2008, at 8:43 PM, Andrew Cunningham wrote: > Hi, > > I was wondering if anyone has any basic guide lines on embedding > SQLite into > a microcontroller. For example, I am considering using an 8/16 bit > processor > with 1 MB flash, 1 MB SRAM and 2 GB data storage (SD card). Has

Re: [sqlite] porting sqlite3 to embeded os-----lock question

2007-05-14 Thread allen . zhang
thank you for your reply. I have make it run on our embeded os and make some simple tests. it runs ok. great!! "Nuno Lucas" <[EMAIL PROTECTED]> 2007-05-12 07:03 Please respond to sqlite-users@sqlite.org To sqlite-users@sqlite.org cc Subject Re: [sqlite] porting sqlit

Re: [sqlite] porting sqlite3 to embeded os-----lock question

2007-05-11 Thread Nuno Lucas
On 5/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I am porting sqlite3 to the embeded os,such as threadx,nucleus,ect.. I am writing the file such as os_threadx.c,os_nucleus.c according to the os_win.c,os_unix.c. I have read the os_win.c and find that there is a switcher OS_WINCE in the stru

[sqlite] Re : [sqlite] Porting sqlite3 library problems....

2006-05-22 Thread Fred a
... Best regards, Fred - Message d'origine De : [EMAIL PROTECTED] À : sqlite-users@sqlite.org; Fred a <[EMAIL PROTECTED]> Envoyé le : Dimanche, 21 Mai 2006, 8h09mn 57s Objet : Re: [sqlite] Porting sqlite3 library problems Fred a <[EMAIL PROTECTED]> wrote: > Hel

Re: [sqlite] Porting sqlite3 library problems....

2006-05-21 Thread drh
Fred a <[EMAIL PROTECTED]> wrote: > Hello all, > > I port successfully sqlite3 library on other platform... > But i have some problems... > > When i try to insert some records, if for example i insert > 80: good; if i try to insert 81 records the database is corrupted This suggests to me

Re: [sqlite] Porting sqlite3 library problems....

2006-05-21 Thread Jay Sprenkle
On 5/21/06, Fred a <[EMAIL PROTECTED]> wrote: Hello all, I port successfully sqlite3 library on other platform... But i have some problems... When i try to insert some records, if for example i insert 80: good; if i try to insert 81 records the database is corrupted I don t understand

Re: [sqlite] Porting SQL to run on a proprietary operating system

2006-01-11 Thread Axel Mammes
I gave up on this port. Far more complicated than what I initially thought. Guess I'll have to implement stupid flat files manually. :(( On 12/30/05, Jay Sprenkle <[EMAIL PROTECTED]> wrote: > Yes, most people load the data to persistant memory when shutting > down, or periodically > to save a

Re: [sqlite] Porting SQL to run on a proprietary operating system

2005-12-30 Thread Jay Sprenkle
Yes, most people load the data to persistant memory when shutting down, or periodically to save a snapshot, and load it when booting up. It's fast but if your hardware can't detect a power failure and write the data with what power remains in the power supply capacitors you risk losing some data in

Re: [sqlite] Porting SQL to run on a proprietary operating system

2005-12-30 Thread Axel Mammes
be used for seldom changed tables or config parameters. > > > > Otherwise I am limited to the battery backed up RAM-based file system. > > > > > > > > -Original Message- > > From: Jay Sprenkle [mailto:[EMAIL PROTECTED] > > Sent: Jueves, 29 de Di

Re: [sqlite] Porting SQL to run on a proprietary operating system

2005-12-29 Thread Jay Sprenkle
005 12:10 p.m. > To: [EMAIL PROTECTED] > Subject: Re: [sqlite] Porting SQL to run on a proprietary operating system > > I did a project using sqlite under web server CGI. It worked very well and > was pretty light on required resources. My guess is this will work for you > as well

RE: [sqlite] Porting SQL to run on a proprietary operating system

2005-12-29 Thread Axel Mammes \(gmail\)
: Re: [sqlite] Porting SQL to run on a proprietary operating system I did a project using sqlite under web server CGI. It worked very well and was pretty light on required resources. My guess is this will work for you as well but you'll need to research some changes to the database engine to

Re: [sqlite] Porting...

2005-09-15 Thread Christian Smith
On Wed, 14 Sep 2005, Jay Siegel wrote: >I'm on my second day of porting SQLite to an embedded >environment. I'm not sure if this is the appropriate >place to put these comments about the experience. >I've seen some type of "ticket" mechanism in CVS but I >don't know if these comments raise to the

Re: [sqlite] Porting...

2005-09-14 Thread D. Richard Hipp
On Wed, 2005-09-14 at 11:55 -0700, Jay Siegel wrote: > I turned on almost all of the OMIT definitions > since size is very important on my embedded platform. > This causes a few problems with definitions in > parse.c. This is documented somewhere and I expected > it. It shouldn't be necessary to

Re: [sqlite] Porting...

2005-09-14 Thread Jay Sprenkle
On 9/14/05, Jay Siegel <[EMAIL PROTECTED]> wrote: > > The porting effort has now turned to a testing > effort... Don't forget there are a lot of regression test cases provided with the source. --- The Castles of Dereth Calendar: a tour of the art and architecture of Asheron's Call http://ww

Re: [sqlite] Porting SQLite to platform with no 64-bit integer support

2005-06-03 Thread F.W.A. van Leeuwen
Never mind, the native compiler DOES support 64-bit integers :-)

Re: [sqlite] Porting help please :-)

2005-05-18 Thread Gé Weijers
David, It looks like LockRecord does what you'd want to get this port done. If a single-threaded port is all you want you can probably use the logic in the os_win.c file. The difference in the Win32 and Posix models are the following: Win32: locks are held by file handles Posix: locks are held

Re: [sqlite] Porting help please :-)

2005-05-17 Thread David Pitcher
Thanks for responding Gé There are the usual options of buffered and unbuffered file i/o in AmigaOS. A given file can be opened either in a shared mode, or an exclusive mode by a process, but it can also be locked first and then opened. It cannot be locked individually for a given pthread runnin

Re: [sqlite] Porting help please :-)

2005-05-17 Thread Gé Weijers
David Pitcher wrote: > The claim that it works over a networked drive has made me > start to think that operating system specific locking mechanisms are totally > the wrong way to go, and that I have misunderstood the code. OS locking mechanisms are supposed to work over a network. >[...] or s

Re: [sqlite] Porting help please :-)

2005-05-17 Thread Gé Weijers
Dave, The os_unix.c locking code is extremely convoluted because of the rather insane Posix locking semantics, which tend to make writing threaded code excessively complicated, e.g. if two threads are accessing the same file and one thread closes its file handle the other thread loses all its lock