On Fri, 4 Jul 2014 09:52:00 +0000
Andy Ling <andy.l...@quantel.com> wrote:

> #if OS_VXWORKS && USING_DOSFS
>     if ( errno == S_dosFsLib_FILE_NOT_FOUND )
> #else
>     if( errno==ENOENT )
> #endif

If I might suggest, unless ENOENT is defined:

#if OS_VXWORKS && USING_DOSFS
# define ENOENT S_dosFsLib_FILE_NOT_FOUND
#endif

If ENOENT is defined, modify osUnlink to set errno to ENOENT when
S_dosFsLib_FILE_NOT_FOUND is returned by the OS.  

The idea behind functions like osUnlink() is surely to isolate the
SQLite logic from the idiosyncracies of the OS, to make "unlink", in
whatever form, behave posixly.  You don't want DOSFS codes to escape in
to the main body of SQLite.  You want to trap them in the portability
layer.  

--jkl
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to