/ Check-in [3e135748]
Login

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

Overview
Comment:Change the prototype for the open() system call to agree with Posix. Though a faulty function prototype in a pointer cast is a seemingly innocuous error, the correct prototype is necessary for pthreads to work correctly on NetBSD.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3e135748f1efacb52b414b3ac3f4ae2c08bcd8fb
User & Date: drh 2011-04-17 17:09:58
Context
2011-04-19
06:43
Avoid passing NULL to the xOpen method of an FTS3/4 tokenizer. check-in: 0dd09fc0 user: dan tags: trunk
2011-04-18
17:30
Merge trunk changes into sessions branch. check-in: b91b4c31 user: dan tags: sessions
2011-04-17
17:09
Change the prototype for the open() system call to agree with Posix. Though a faulty function prototype in a pointer cast is a seemingly innocuous error, the correct prototype is necessary for pthreads to work correctly on NetBSD. check-in: 3e135748 user: drh tags: trunk
00:55
Adjust some test cases in triggerC.test to handle non-default SQLITE_MAX_TRIGGER_DEPTH settings. check-in: 9d6c6129 user: shaneh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

   289    289   */
   290    290   static struct unix_syscall {
   291    291     const char *zName;            /* Name of the sytem call */
   292    292     sqlite3_syscall_ptr pCurrent; /* Current value of the system call */
   293    293     sqlite3_syscall_ptr pDefault; /* Default value */
   294    294   } aSyscall[] = {
   295    295     { "open",         (sqlite3_syscall_ptr)open,       0  },
   296         -#define osOpen      ((int(*)(const char*,int,int))aSyscall[0].pCurrent)
          296  +#define osOpen      ((int(*)(const char*,int,...))aSyscall[0].pCurrent)
   297    297   
   298    298     { "close",        (sqlite3_syscall_ptr)close,      0  },
   299    299   #define osClose     ((int(*)(int))aSyscall[1].pCurrent)
   300    300   
   301    301     { "access",       (sqlite3_syscall_ptr)access,     0  },
   302    302   #define osAccess    ((int(*)(const char*,int))aSyscall[2].pCurrent)
   303    303