/*
** Test for access permissions. Return true if the requested permission
** is available, or false otherwise.
*/
        static int vfstraceAccess(
            sqlite3_vfs pVfs,
            string zPath,
            int flags,
            int pResOut
            )
        {
            vfstrace_info pInfo = (vfstrace_info)pVfs.pAppData;
            sqlite3_vfs   pRoot = pInfo.pRootVfs;
            int           rc;

            vfstrace_printf(pInfo, "%s.xDelete(\"%s\",%d)",
                            pInfo.zVfsName, zPath, flags);
            rc = pRoot.xAccess(pRoot, zPath, flags, out pResOut);
            vfstrace_print_errcode(pInfo, " . %s", rc);
            vfstrace_printf(pInfo, ", ref=%d\n", pResOut);
            return(rc);
        }
Beispiel #2
0
 static int sqlite3OsAccess( sqlite3_vfs pVfs, string zPath, int flags, ref int pResOut )
 {
   DO_OS_MALLOC_TEST( null );
   return pVfs.xAccess( pVfs, zPath, flags, ref pResOut );
 }
Beispiel #3
0
 static int sqlite3OsAccess(sqlite3_vfs pVfs, string zPath, int flags, ref int pResOut)
 {
     DO_OS_MALLOC_TEST(null);
     return(pVfs.xAccess(pVfs, zPath, flags, out pResOut));
 }