diff options
author | drh <drh@noemail.net> | 2011-07-28 00:14:45 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-07-28 00:14:45 +0000 |
commit | 58384f17204a615d9d42c01bfd78f4e16448c477 (patch) | |
tree | 1e93a46b503c98380edfd923d2b1e21243954ceb /src/os_unix.c | |
parent | 7d2dc7156ce267ca844793c20cd0c510a698de4b (diff) | |
download | sqlite-58384f17204a615d9d42c01bfd78f4e16448c477.tar.gz sqlite-58384f17204a615d9d42c01bfd78f4e16448c477.zip |
Use osStat() instead of stat() consistently in os_unix.c
FossilOrigin-Name: 9109128cb5640d687251dfbefa2fd998063cd9fb
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index dce13e536..7f0013e82 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -4789,7 +4789,7 @@ static UnixUnusedFd *findReusableFd(const char *zPath, int flags){ ** ** Even if a subsequent open() call does succeed, the consequences of ** not searching for a resusable file descriptor are not dire. */ - if( 0==stat(zPath, &sStat) ){ + if( 0==osStat(zPath, &sStat) ){ unixInodeInfo *pInode; unixEnterMutex(); @@ -4865,7 +4865,7 @@ static int findCreateFileMode( memcpy(zDb, zPath, nDb); zDb[nDb] = '\0'; - if( 0==stat(zDb, &sStat) ){ + if( 0==osStat(zDb, &sStat) ){ *pMode = sStat.st_mode & 0777; }else{ rc = SQLITE_IOERR_FSTAT; @@ -5210,7 +5210,7 @@ static int unixAccess( *pResOut = (osAccess(zPath, amode)==0); if( flags==SQLITE_ACCESS_EXISTS && *pResOut ){ struct stat buf; - if( 0==stat(zPath, &buf) && buf.st_size==0 ){ + if( 0==osStat(zPath, &buf) && buf.st_size==0 ){ *pResOut = 0; } } |