Fossil SCM

Cherry-pick [http://www.sqlite.org/src/info/f01d42cc8b00d2b7c4f14defcb05fdc493cf1bfd|f01d42cc8b]: Minor change to unixDelete for VxWorks with a DOS filesystem.

jan.nijtmans 2014-08-14 07:06 trunk merge
Commit 119cc97040a4e3da0a7f8fa31d9cd6b116aa22a7
2 files changed +5 -1 +5 -1
+5 -1
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -30152,11 +30152,15 @@
3015230152
){
3015330153
int rc = SQLITE_OK;
3015430154
UNUSED_PARAMETER(NotUsed);
3015530155
SimulateIOError(return SQLITE_IOERR_DELETE);
3015630156
if( osUnlink(zPath)==(-1) ){
30157
- if( errno==ENOENT ){
30157
+ if( errno==ENOENT
30158
+#if OS_VXWORKS
30159
+ || errno==0x380003
30160
+#endif
30161
+ ){
3015830162
rc = SQLITE_IOERR_DELETE_NOENT;
3015930163
}else{
3016030164
rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath);
3016130165
}
3016230166
return rc;
3016330167
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -30152,11 +30152,15 @@
30152 ){
30153 int rc = SQLITE_OK;
30154 UNUSED_PARAMETER(NotUsed);
30155 SimulateIOError(return SQLITE_IOERR_DELETE);
30156 if( osUnlink(zPath)==(-1) ){
30157 if( errno==ENOENT ){
 
 
 
 
30158 rc = SQLITE_IOERR_DELETE_NOENT;
30159 }else{
30160 rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath);
30161 }
30162 return rc;
30163
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -30152,11 +30152,15 @@
30152 ){
30153 int rc = SQLITE_OK;
30154 UNUSED_PARAMETER(NotUsed);
30155 SimulateIOError(return SQLITE_IOERR_DELETE);
30156 if( osUnlink(zPath)==(-1) ){
30157 if( errno==ENOENT
30158 #if OS_VXWORKS
30159 || errno==0x380003
30160 #endif
30161 ){
30162 rc = SQLITE_IOERR_DELETE_NOENT;
30163 }else{
30164 rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath);
30165 }
30166 return rc;
30167
+5 -1
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -30152,11 +30152,15 @@
3015230152
){
3015330153
int rc = SQLITE_OK;
3015430154
UNUSED_PARAMETER(NotUsed);
3015530155
SimulateIOError(return SQLITE_IOERR_DELETE);
3015630156
if( osUnlink(zPath)==(-1) ){
30157
- if( errno==ENOENT ){
30157
+ if( errno==ENOENT
30158
+#if OS_VXWORKS
30159
+ || errno==0x380003
30160
+#endif
30161
+ ){
3015830162
rc = SQLITE_IOERR_DELETE_NOENT;
3015930163
}else{
3016030164
rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath);
3016130165
}
3016230166
return rc;
3016330167
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -30152,11 +30152,15 @@
30152 ){
30153 int rc = SQLITE_OK;
30154 UNUSED_PARAMETER(NotUsed);
30155 SimulateIOError(return SQLITE_IOERR_DELETE);
30156 if( osUnlink(zPath)==(-1) ){
30157 if( errno==ENOENT ){
 
 
 
 
30158 rc = SQLITE_IOERR_DELETE_NOENT;
30159 }else{
30160 rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath);
30161 }
30162 return rc;
30163
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -30152,11 +30152,15 @@
30152 ){
30153 int rc = SQLITE_OK;
30154 UNUSED_PARAMETER(NotUsed);
30155 SimulateIOError(return SQLITE_IOERR_DELETE);
30156 if( osUnlink(zPath)==(-1) ){
30157 if( errno==ENOENT
30158 #if OS_VXWORKS
30159 || errno==0x380003
30160 #endif
30161 ){
30162 rc = SQLITE_IOERR_DELETE_NOENT;
30163 }else{
30164 rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath);
30165 }
30166 return rc;
30167

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button