/ Check-in [19682e8f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix typos in the VxWorks code of os_unix.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:19682e8fdc4a3b7884dba3e4387763e435ec16e6
User & Date: drh 2014-08-12 12:19:25
Context
2014-08-12
13:38
If SQLITE_TEST_REALLOC_STRESS is defined, extend the op-code array used by virtual-machine programs by one element at a time, instead of doubling its size with each realloc(). check-in: 4c291827 user: dan tags: trunk
13:32
Remove support for Win9x. Leaf check-in: 169fc47e user: drh tags: drop-win9x-support
12:19
Fix typos in the VxWorks code of os_unix.c. check-in: 19682e8f user: drh tags: trunk
09:36
Add a test to ensure that the problem fixed by [a179e41e40] does not recur. check-in: 31356f2c user: dan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302

1303


1304
1305
1306
1307
1308
1309
1310
1311
  return SQLITE_OK;
}

/*
** Return TRUE if pFile has been renamed or unlinked since it was first opened.
*/
static int fileHasMoved(unixFile *pFile){
  struct stat buf;
  return pFile->pInode!=0 &&
#if OS_VXWORKS
         pFile->pId!=pFile->pInode->fileId.Pid;

#else


         (osStat(pFile->zPath, &buf)!=0 || buf.st_ino!=pFile->pInode->fileId.ino);
#endif
}


/*
** Check a unixFile that is a database.  Verify the following:
**







<
<

<
>

>
>
|







1292
1293
1294
1295
1296
1297
1298


1299

1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
  return SQLITE_OK;
}

/*
** Return TRUE if pFile has been renamed or unlinked since it was first opened.
*/
static int fileHasMoved(unixFile *pFile){


#if OS_VXWORKS

  return pFile->pInode!=0 && pFile->pId!=pFile->pInode->fileId.pId;
#else
  struct stat buf;
  return pFile->pInode!=0 &&
      (osStat(pFile->zPath, &buf)!=0 || buf.st_ino!=pFile->pInode->fileId.ino);
#endif
}


/*
** Check a unixFile that is a database.  Verify the following:
**