-C Added\ssupport\sfor\sproxy\sfile\slocking\sstyle\nAdded\spragma\ssupport\sfor\scontrolling\sproxy\sfile\slocking\nAdded\sfile\scontrol\saccess\sto\slast\serrno\sand\sproxy\slocking\nAdded\ssupport\sfor\sTMPDIR\senvironment\svariable\nExtended\sunit\stests\sto\scover\snew\sproxy\slocking\spragmas\sand\sfile\scontrol\sfeatures\s(CVS\s5934)
-D 2008-11-21T00:10:35
+C Fixes\sto\sthe\sproxy\slocking\sso\sthat\sos_unix.c\scompiles\son\slinux\swith\sproxy\nlocking\somitted.\s(CVS\s5935)
+D 2008-11-21T00:24:42
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
F Makefile.in 0aa7bbe3be6acc4045706e3bb3fd0b8f38f4a3b5
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
F src/os.h ef8abeb9afc694b82dbd169a91c9b7e26db3c892
F src/os_common.h 24525d8b7bce66c374dfc1810a6c9043f3359b60
F src/os_os2.c d12285d66df674c42f6f544a6f7c21bf1a954ee1
-F src/os_unix.c bdb0b66407141b7cd3520e92c685ea097b191c0e
+F src/os_unix.c 28cc4da7886c265c0a58f6975346b83180f03e5b
F src/os_win.c 3dff41670fb9798a869c636626bb7d6d8b6a45bb
F src/pager.c db12a8333e54e7bbf62dc621ada5507adb3a6493
F src/pager.h a02ef8e6cc7e78b54874166e5ce786c9d4c489bf
F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
-P eebacbc9d7d0625dfbe6367046fa4a0ca9c04e74
-R 91b324303811443cc8a01d95fd1a412a
-U aswift
-Z 225056935d0aa6350680303c08feb50b
+P b9bc36d3d5e35821ef69c0881a84c0afed253c9e
+R 51d99d1efef810ac91db46cd7349fd5c
+U drh
+Z 0b65fc7ed0458f20fc913219cf654811
**
** This file contains code that is specific to Unix systems.
**
-** $Id: os_unix.c,v 1.217 2008/11/21 00:10:35 aswift Exp $
+** $Id: os_unix.c,v 1.218 2008/11/21 00:24:42 drh Exp $
*/
#include "sqliteInt.h"
#if SQLITE_OS_UNIX /* This file is used on unix only */
static struct lockInfo *lockList = 0;
static struct openCnt *openList = 0;
+#ifdef SQLITE_TEST
+/* simulate multiple hosts by creating unique hostid file paths */
+int sqlite3_hostid_num = 0;
+#endif
+
+
#if IS_VXWORKS
/*
** This hash table is used to bind the canonical file name to a
newOffset = lseek(id->h, offset, SEEK_SET);
SimulateIOError( newOffset-- );
if( newOffset!=offset ){
- if( newOffet == -1 ){
+ if( newOffset == -1 ){
((unixFile*)id)->lastErrno = errno;
}else{
((unixFile*)id)->lastErrno = 0;
#else
newOffset = lseek(id->h, offset, SEEK_SET);
if( newOffset!=offset ){
- if( newOffet == -1 ){
+ if( newOffset == -1 ){
((unixFile*)id)->lastErrno = errno;
}else{
((unixFile*)id)->lastErrno = 0;
return SQLITE_OK;
}
-#ifdef SQLITE_TEST
-/* simulate multiple hosts by creating unique hostid file paths */
-int sqlite3_hostid_num = 0;
-#endif
-
/* writes the host id path to path, path should be an pre-allocated buffer
** with enough space for a path */
static int getHostIDPath(char *path, size_t len){
*(const char **)pArg = NULL;
}
#else
- *(void*)pArg = NULL;
+ *(void**)pArg = NULL;
#endif
return SQLITE_OK;
}
"abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"0123456789";
- int i, j;
+ unsigned int i, j;
struct stat buf;
const char *zDir = ".";
#else
unlink(zName);
#endif
- }else{
- ((unixFile *)pFile)->oflags = oflags;
}
+#if SQLITE_ENABLE_LOCKING_STYLE
+ else{
+ ((unixFile*)pFile)->oflags = oflags;
+ }
+#endif
if( pOutFlags ){
*pOutFlags = flags;
}