SQLite
Check-in [f01d42cc]
Not logged in
Overview
SHA1:f01d42cc8b00d2b7c4f14defcb05fdc493cf1bfd
Date: 2014-08-13 11:39:42
User: drh
Comment:Minor change to unixDelete for VxWorks with a DOS filesystem.
Tags And Properties
Context
2014-08-14
02:59
[f5cce9db] Add icon to the Windows shell executable. This is a resource change only, no changes to code. (user: mistachkin, tags: trunk)
2014-08-13
14:43
[d49455d9] Merge the trunk changes for 3.8.6 beta3 into the sessions branch. (user: drh, tags: sessions)
11:39
[f01d42cc] Minor change to unixDelete for VxWorks with a DOS filesystem. (user: drh, tags: trunk)
2014-08-12
20:13
[d46adf9d] Fix where9.test so that it works with the "no_optimization" permutation. (user: dan, tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

5879
5880
5881
5882
5883
5884
5885
5886




5887
5888
5889
5890
5891
5892
5893
  const char *zPath,        /* Name of file to be deleted */
  int dirSync               /* If true, fsync() directory after deleting file */
){
  int rc = SQLITE_OK;
  UNUSED_PARAMETER(NotUsed);
  SimulateIOError(return SQLITE_IOERR_DELETE);
  if( osUnlink(zPath)==(-1) ){
    if( errno==ENOENT ){




      rc = SQLITE_IOERR_DELETE_NOENT;
    }else{
      rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath);
    }
    return rc;
  }
#ifndef SQLITE_DISABLE_DIRSYNC







|
>
>
>
>







5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
  const char *zPath,        /* Name of file to be deleted */
  int dirSync               /* If true, fsync() directory after deleting file */
){
  int rc = SQLITE_OK;
  UNUSED_PARAMETER(NotUsed);
  SimulateIOError(return SQLITE_IOERR_DELETE);
  if( osUnlink(zPath)==(-1) ){
    if( errno==ENOENT
#if OS_VXWORKS
        || errno==0x380003
#endif
    ){
      rc = SQLITE_IOERR_DELETE_NOENT;
    }else{
      rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath);
    }
    return rc;
  }
#ifndef SQLITE_DISABLE_DIRSYNC