/ Check-in [adfa7ed2]
Login

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

Overview
Comment:Do not reference the ioctl() system call in the unix backend unless it is actually needed by the Batch Atomic Write extension. This should allow the build to work on VxWorks.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: adfa7ed2de3e833fff65935455e71236a59602aaf7b97ece667ab300dca9f673
User & Date: drh 2017-10-25 16:14:12
Context
2017-10-25
18:01
Add SQL scalar function rtreecheck() to the rtree module. For running checks to ensure the shadow tables used by an rtree virtual table are internally consistent. check-in: 7d264980 user: mistachkin tags: trunk
16:38
Add SQL scalar function rtreecheck() to the rtree module. For running checks to ensure the shadow tables used by an rtree virtual table are internally consistent. check-in: dde0bb3e user: dan tags: rtree-integrity-check
16:14
Do not reference the ioctl() system call in the unix backend unless it is actually needed by the Batch Atomic Write extension. This should allow the build to work on VxWorks. check-in: adfa7ed2 user: drh tags: trunk
01:34
Add the sqlite_btreeinfo eponymous-only table for introspecting the schema and estimating the sizes of various btrees. check-in: 1e30f477 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

   509    509   #if defined(HAVE_LSTAT)
   510    510     { "lstat",         (sqlite3_syscall_ptr)lstat,          0 },
   511    511   #else
   512    512     { "lstat",         (sqlite3_syscall_ptr)0,              0 },
   513    513   #endif
   514    514   #define osLstat      ((int(*)(const char*,struct stat*))aSyscall[27].pCurrent)
   515    515   
          516  +#if defined(__linux__) && defined(SQLITE_ENABLE_BATCH_ATOMIC_WRITE)
   516    517     { "ioctl",         (sqlite3_syscall_ptr)ioctl,          0 },
          518  +#else
          519  +  { "ioctl",         (sqlite3_syscall_ptr)0,              0 },
          520  +#endif
   517    521   #define osIoctl ((int(*)(int,int,...))aSyscall[28].pCurrent)
   518    522   
   519    523   }; /* End of the overrideable system calls */
   520    524   
   521    525   
   522    526   /*
   523    527   ** On some systems, calls to fchown() will trigger a message in a security