Fossil SCM
check for S_dosFsLib_FILE_NOT_FOUND on vxworks
Commit
acbe8c41b1c7784ccf04f1ca7fd3eb93da1c2e48
Parent
1cef35ba55f8d98…
1 file changed
+4
+4
| --- src/sqlite3.c | ||
| +++ src/sqlite3.c | ||
| @@ -29825,10 +29825,14 @@ | ||
| 29825 | 29825 | UNUSED_PARAMETER(NotUsed); |
| 29826 | 29826 | SimulateIOError(return SQLITE_IOERR_DELETE); |
| 29827 | 29827 | if( osUnlink(zPath)==(-1) ){ |
| 29828 | 29828 | if( errno==ENOENT ){ |
| 29829 | 29829 | rc = SQLITE_IOERR_DELETE_NOENT; |
| 29830 | +#if OS_VXWORKS | |
| 29831 | + }else if( errno==0x380003 ){ /* == S_dosFsLib_FILE_NOT_FOUND */ | |
| 29832 | + rc = SQLITE_IOERR_DELETE_NOENT; | |
| 29833 | +#endif | |
| 29830 | 29834 | }else{ |
| 29831 | 29835 | rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath); |
| 29832 | 29836 | } |
| 29833 | 29837 | return rc; |
| 29834 | 29838 | } |
| 29835 | 29839 |
| --- src/sqlite3.c | |
| +++ src/sqlite3.c | |
| @@ -29825,10 +29825,14 @@ | |
| 29825 | UNUSED_PARAMETER(NotUsed); |
| 29826 | SimulateIOError(return SQLITE_IOERR_DELETE); |
| 29827 | if( osUnlink(zPath)==(-1) ){ |
| 29828 | if( errno==ENOENT ){ |
| 29829 | rc = SQLITE_IOERR_DELETE_NOENT; |
| 29830 | }else{ |
| 29831 | rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath); |
| 29832 | } |
| 29833 | return rc; |
| 29834 | } |
| 29835 |
| --- src/sqlite3.c | |
| +++ src/sqlite3.c | |
| @@ -29825,10 +29825,14 @@ | |
| 29825 | UNUSED_PARAMETER(NotUsed); |
| 29826 | SimulateIOError(return SQLITE_IOERR_DELETE); |
| 29827 | if( osUnlink(zPath)==(-1) ){ |
| 29828 | if( errno==ENOENT ){ |
| 29829 | rc = SQLITE_IOERR_DELETE_NOENT; |
| 29830 | #if OS_VXWORKS |
| 29831 | }else if( errno==0x380003 ){ /* == S_dosFsLib_FILE_NOT_FOUND */ |
| 29832 | rc = SQLITE_IOERR_DELETE_NOENT; |
| 29833 | #endif |
| 29834 | }else{ |
| 29835 | rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath); |
| 29836 | } |
| 29837 | return rc; |
| 29838 | } |
| 29839 |