]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Change the prototype for the open() system call to agree with Posix.
authordrh <drh@noemail.net>
Sun, 17 Apr 2011 17:14:03 +0000 (17:14 +0000)
committerdrh <drh@noemail.net>
Sun, 17 Apr 2011 17:14:03 +0000 (17:14 +0000)
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.

FossilOrigin-Name: 986f2f25baf21d0d6a4b3749e5ea76502d26536e

manifest
manifest.uuid
src/os_unix.c

index 9d9119efefe5f92c228717d5f020c332e59ced9a..e9fde1070c3fb63e132bcfa8a6869e1c6ff64d47 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Version\s3.7.6.1
-D 2011-04-13T14:40:25.366
+C Change\sthe\sprototype\sfor\sthe\sopen()\ssystem\scall\sto\sagree\swith\sPosix.\s\nThough\sa\sfaulty\sfunction\sprototype\sin\sa\spointer\scast\sis\sa\sseemingly\sinnocuous\nerror,\sthe\scorrect\sprototype\sis\snecessary\sfor\spthreads\sto\swork\scorrectly\non\sNetBSD.
+D 2011-04-17T17:14:03.504
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in 7a4d9524721d40ef9ee26f93f9bd6a51dba106f2
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -162,7 +162,7 @@ F src/os.c 22ac61d06e72a0dac900400147333b07b13d8e1d
 F src/os.h 9dbed8c2b9c1f2f2ebabc09e49829d4777c26bf9
 F src/os_common.h a8f95b81eca8a1ab8593d23e94f8a35f35d4078f
 F src/os_os2.c 4a75888ba3dfc820ad5e8177025972d74d7f2440
-F src/os_unix.c b2d4cd9976bbcc798f33746d3fab12b3ea57ffa9
+F src/os_unix.c 4389231d079f8e323d9e24db6658bfd31f6d27a2
 F src/os_win.c 24d72407a90551969744cf9bcbb1b4c72c5fa845
 F src/pager.c 055239dcdfe12b3f5d97f6f01f85da01e2d6d912
 F src/pager.h 3f8c783de1d4706b40b1ac15b64f5f896bcc78d1
@@ -929,7 +929,11 @@ F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
 F tool/split-sqlite3c.tcl d9be87f1c340285a3e081eb19b4a247981ed290c
 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
-P 5f0c394a5ab308946e72f20d6351c08c6737c63f
-R 7fdf1bc9f85c04d95a52ad8e53811995
+P a35e83eac7b185f4d363d7fa51677f2fdfa27695
+R 96e26e852f391396caf345acff2553d0
+T *bgcolor * #80bbd6
+T *branch * branch-3.7.6
+T *sym-branch-3.7.6 *
+T -sym-trunk *
 U drh
-Z 0a32cef0eaf644f20ba71a7034d19246
+Z 7050e8c404d8caa4f2c84e7a6416c670
index 99bc59a3699e70825a8f1cb41df9e40149de1161..251588d5a30f7afb145bf17e9277e5288856d4dd 100644 (file)
@@ -1 +1 @@
-a35e83eac7b185f4d363d7fa51677f2fdfa27695
\ No newline at end of file
+986f2f25baf21d0d6a4b3749e5ea76502d26536e
\ No newline at end of file
index 744d85776796a7e720391b271805aa048c21679a..2626ab4d32b9c859bb5ac9af762b45e83b4546a1 100644 (file)
@@ -293,7 +293,7 @@ static struct unix_syscall {
   sqlite3_syscall_ptr pDefault; /* Default value */
 } aSyscall[] = {
   { "open",         (sqlite3_syscall_ptr)open,       0  },
-#define osOpen      ((int(*)(const char*,int,int))aSyscall[0].pCurrent)
+#define osOpen      ((int(*)(const char*,int,...))aSyscall[0].pCurrent)
 
   { "close",        (sqlite3_syscall_ptr)close,      0  },
 #define osClose     ((int(*)(int))aSyscall[1].pCurrent)