Lines Matching refs:aSyscall
39269 } aSyscall[] = { variable
39271 #define osOpen ((int(*)(const char*,int,int))aSyscall[0].pCurrent)
39274 #define osClose ((int(*)(int))aSyscall[1].pCurrent)
39277 #define osAccess ((int(*)(const char*,int))aSyscall[2].pCurrent)
39280 #define osGetcwd ((char*(*)(char*,size_t))aSyscall[3].pCurrent)
39283 #define osStat ((int(*)(const char*,struct stat*))aSyscall[4].pCurrent)
39296 #define osFstat ((int(*)(int,struct stat*))aSyscall[5].pCurrent)
39300 #define osFtruncate ((int(*)(int,off_t))aSyscall[6].pCurrent)
39303 #define osFcntl ((int(*)(int,int,...))aSyscall[7].pCurrent)
39306 #define osRead ((ssize_t(*)(int,void*,size_t))aSyscall[8].pCurrent)
39313 #define osPread ((ssize_t(*)(int,void*,size_t,off_t))aSyscall[9].pCurrent)
39320 #define osPread64 ((ssize_t(*)(int,void*,size_t,off64_t))aSyscall[10].pCurrent)
39323 #define osWrite ((ssize_t(*)(int,const void*,size_t))aSyscall[11].pCurrent)
39331 aSyscall[12].pCurrent)
39339 aSyscall[13].pCurrent)
39346 #define osFchmod ((int(*)(int,mode_t))aSyscall[14].pCurrent)
39353 #define osFallocate ((int(*)(int,off_t,off_t))aSyscall[15].pCurrent)
39356 #define osUnlink ((int(*)(const char*))aSyscall[16].pCurrent)
39359 #define osOpenDirectory ((int(*)(const char*,int*))aSyscall[17].pCurrent)
39362 #define osMkdir ((int(*)(const char*,mode_t))aSyscall[18].pCurrent)
39365 #define osRmdir ((int(*)(const char*))aSyscall[19].pCurrent)
39372 #define osFchown ((int(*)(int,uid_t,gid_t))aSyscall[20].pCurrent)
39379 #define osGeteuid ((uid_t(*)(void))aSyscall[21].pCurrent)
39387 #define osMmap ((void*(*)(void*,size_t,int,int,int,off_t))aSyscall[22].pCurrent)
39395 #define osMunmap ((int(*)(void*,size_t))aSyscall[23].pCurrent)
39402 #define osMremap ((void*(*)(void*,size_t,size_t,int,...))aSyscall[24].pCurrent)
39409 #define osGetpagesize ((int(*)(void))aSyscall[25].pCurrent)
39416 #define osReadlink ((ssize_t(*)(const char*,char*,size_t))aSyscall[26].pCurrent)
39423 #define osLstat ((int(*)(const char*,struct stat*))aSyscall[27].pCurrent)
39428 #define osIoctl ((int(*)(int,int,...))aSyscall[28].pCurrent)
39431 #define osIoctl ((int(*)(int,unsigned long,...))aSyscall[28].pCurrent)
39473 for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){ in unixSetSystemCall()
39474 if( aSyscall[i].pDefault ){ in unixSetSystemCall()
39475 aSyscall[i].pCurrent = aSyscall[i].pDefault; in unixSetSystemCall()
39482 for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){ in unixSetSystemCall()
39483 if( strcmp(zName, aSyscall[i].zName)==0 ){ in unixSetSystemCall()
39484 if( aSyscall[i].pDefault==0 ){ in unixSetSystemCall()
39485 aSyscall[i].pDefault = aSyscall[i].pCurrent; in unixSetSystemCall()
39488 if( pNewFunc==0 ) pNewFunc = aSyscall[i].pDefault; in unixSetSystemCall()
39489 aSyscall[i].pCurrent = pNewFunc; in unixSetSystemCall()
39509 for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){ in unixGetSystemCall()
39510 if( strcmp(zName, aSyscall[i].zName)==0 ) return aSyscall[i].pCurrent; in unixGetSystemCall()
39526 for(i=0; i<ArraySize(aSyscall)-1; i++){ in unixNextSystemCall()
39527 if( strcmp(zName, aSyscall[i].zName)==0 ) break; in unixNextSystemCall()
39530 for(i++; i<ArraySize(aSyscall); i++){ in unixNextSystemCall()
39531 if( aSyscall[i].pCurrent!=0 ) return aSyscall[i].zName; in unixNextSystemCall()
47074 assert( ArraySize(aSyscall)==29 ); in sqlite3_os_init()
47648 } aSyscall[] = { variable
47656 #define osAreFileApisANSI ((BOOL(WINAPI*)(VOID))aSyscall[0].pCurrent)
47665 #define osCharLowerW ((LPWSTR(WINAPI*)(LPWSTR))aSyscall[1].pCurrent)
47673 #define osCharUpperW ((LPWSTR(WINAPI*)(LPWSTR))aSyscall[2].pCurrent)
47677 #define osCloseHandle ((BOOL(WINAPI*)(HANDLE))aSyscall[3].pCurrent)
47686 LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE))aSyscall[4].pCurrent)
47695 LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE))aSyscall[5].pCurrent)
47706 DWORD,DWORD,DWORD,LPCSTR))aSyscall[6].pCurrent)
47716 DWORD,DWORD,DWORD,LPCWSTR))aSyscall[7].pCurrent)
47725 LPCWSTR))aSyscall[8].pCurrent)
47733 #define osDeleteFileA ((BOOL(WINAPI*)(LPCSTR))aSyscall[9].pCurrent)
47741 #define osDeleteFileW ((BOOL(WINAPI*)(LPCWSTR))aSyscall[10].pCurrent)
47750 LPFILETIME))aSyscall[11].pCurrent)
47759 LPSYSTEMTIME))aSyscall[12].pCurrent)
47763 #define osFlushFileBuffers ((BOOL(WINAPI*)(HANDLE))aSyscall[13].pCurrent)
47772 DWORD,va_list*))aSyscall[14].pCurrent)
47781 DWORD,va_list*))aSyscall[15].pCurrent)
47789 #define osFreeLibrary ((BOOL(WINAPI*)(HMODULE))aSyscall[16].pCurrent)
47793 #define osGetCurrentProcessId ((DWORD(WINAPI*)(VOID))aSyscall[17].pCurrent)
47802 LPDWORD))aSyscall[18].pCurrent)
47811 LPDWORD))aSyscall[19].pCurrent)
47819 #define osGetFileAttributesA ((DWORD(WINAPI*)(LPCSTR))aSyscall[20].pCurrent)
47827 #define osGetFileAttributesW ((DWORD(WINAPI*)(LPCWSTR))aSyscall[21].pCurrent)
47836 LPVOID))aSyscall[22].pCurrent)
47844 #define osGetFileSize ((DWORD(WINAPI*)(HANDLE,LPDWORD))aSyscall[23].pCurrent)
47853 LPSTR*))aSyscall[24].pCurrent)
47862 LPWSTR*))aSyscall[25].pCurrent)
47872 #define osGetLastError ((DWORD(WINAPI*)(VOID))aSyscall[26].pCurrent)
47888 LPCSTR))aSyscall[27].pCurrent)
47896 #define osGetSystemInfo ((VOID(WINAPI*)(LPSYSTEM_INFO))aSyscall[28].pCurrent)
47900 #define osGetSystemTime ((VOID(WINAPI*)(LPSYSTEMTIME))aSyscall[29].pCurrent)
47909 LPFILETIME))aSyscall[30].pCurrent)
47917 #define osGetTempPathA ((DWORD(WINAPI*)(DWORD,LPSTR))aSyscall[31].pCurrent)
47925 #define osGetTempPathW ((DWORD(WINAPI*)(DWORD,LPWSTR))aSyscall[32].pCurrent)
47933 #define osGetTickCount ((DWORD(WINAPI*)(VOID))aSyscall[33].pCurrent)
47942 LPOSVERSIONINFOA))aSyscall[34].pCurrent)
47952 LPOSVERSIONINFOW))aSyscall[35].pCurrent)
47957 SIZE_T))aSyscall[36].pCurrent)
47966 SIZE_T))aSyscall[37].pCurrent)
47974 #define osHeapDestroy ((BOOL(WINAPI*)(HANDLE))aSyscall[38].pCurrent)
47978 #define osHeapFree ((BOOL(WINAPI*)(HANDLE,DWORD,LPVOID))aSyscall[39].pCurrent)
47983 SIZE_T))aSyscall[40].pCurrent)
47988 LPCVOID))aSyscall[41].pCurrent)
47997 LPCVOID))aSyscall[42].pCurrent)
48005 #define osHeapCompact ((UINT(WINAPI*)(HANDLE,DWORD))aSyscall[43].pCurrent)
48013 #define osLoadLibraryA ((HMODULE(WINAPI*)(LPCSTR))aSyscall[44].pCurrent)
48022 #define osLoadLibraryW ((HMODULE(WINAPI*)(LPCWSTR))aSyscall[45].pCurrent)
48030 #define osLocalFree ((HLOCAL(WINAPI*)(HLOCAL))aSyscall[46].pCurrent)
48040 DWORD))aSyscall[47].pCurrent)
48051 LPOVERLAPPED))aSyscall[48].pCurrent)
48062 SIZE_T))aSyscall[49].pCurrent)
48067 int))aSyscall[50].pCurrent)
48072 LARGE_INTEGER*))aSyscall[51].pCurrent)
48077 LPOVERLAPPED))aSyscall[52].pCurrent)
48081 #define osSetEndOfFile ((BOOL(WINAPI*)(HANDLE))aSyscall[53].pCurrent)
48090 DWORD))aSyscall[54].pCurrent)
48098 #define osSleep ((VOID(WINAPI*)(DWORD))aSyscall[55].pCurrent)
48103 LPFILETIME))aSyscall[56].pCurrent)
48113 DWORD))aSyscall[57].pCurrent)
48123 LPOVERLAPPED))aSyscall[58].pCurrent)
48131 #define osUnmapViewOfFile ((BOOL(WINAPI*)(LPCVOID))aSyscall[59].pCurrent)
48136 LPCSTR,LPBOOL))aSyscall[60].pCurrent)
48141 LPOVERLAPPED))aSyscall[61].pCurrent)
48150 DWORD,DWORD))aSyscall[62].pCurrent)
48161 DWORD))aSyscall[63].pCurrent)
48170 BOOL))aSyscall[64].pCurrent)
48179 PLARGE_INTEGER,DWORD))aSyscall[65].pCurrent)
48188 FILE_INFO_BY_HANDLE_CLASS,LPVOID,DWORD))aSyscall[66].pCurrent)
48197 SIZE_T))aSyscall[67].pCurrent)
48206 LPCREATEFILE2_EXTENDED_PARAMETERS))aSyscall[68].pCurrent)
48215 DWORD))aSyscall[69].pCurrent)
48223 #define osGetTickCount64 ((ULONGLONG(WINAPI*)(VOID))aSyscall[70].pCurrent)
48232 LPSYSTEM_INFO))aSyscall[71].pCurrent)
48240 #define osOutputDebugStringA ((VOID(WINAPI*)(LPCSTR))aSyscall[72].pCurrent)
48248 #define osOutputDebugStringW ((VOID(WINAPI*)(LPCWSTR))aSyscall[73].pCurrent)
48252 #define osGetProcessHeap ((HANDLE(WINAPI*)(VOID))aSyscall[74].pCurrent)
48261 LPSECURITY_ATTRIBUTES,ULONG,ULONG64,LPCWSTR))aSyscall[75].pCurrent)
48276 SQLITE_WIN32_VOLATILE*, LONG,LONG))aSyscall[76].pCurrent)
48285 #define osUuidCreate ((RPC_STATUS(RPC_ENTRY*)(UUID*))aSyscall[77].pCurrent)
48294 ((RPC_STATUS(RPC_ENTRY*)(UUID*))aSyscall[78].pCurrent)
48303 ((BOOL(WINAPI*)(LPCVOID,SIZE_T))aSyscall[79].pCurrent)
48320 aSyscall[80].pCurrent \
48337 #define osCancelIo ((BOOL(WINAPI*)(HANDLE))aSyscall[81].pCurrent)
48345 #define osGetModuleHandleW ((HMODULE(WINAPI*)(LPCWSTR))aSyscall[82].pCurrent)
48353 #define osGetenv ((const char *(*)(const char *))aSyscall[83].pCurrent)
48361 #define osGetcwd ((char*(*)(char*,size_t))aSyscall[84].pCurrent)
48369 #define osReadlink ((ssize_t(*)(const char*,char*,size_t))aSyscall[85].pCurrent)
48377 #define osLstat ((int(*)(const char*,struct stat*))aSyscall[86].pCurrent)
48385 #define osErrno (*((int*(*)(void))aSyscall[87].pCurrent)())
48394 const void *, void *, size_t))aSyscall[88].pCurrent)
48418 for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){ in winSetSystemCall()
48419 if( aSyscall[i].pDefault ){ in winSetSystemCall()
48420 aSyscall[i].pCurrent = aSyscall[i].pDefault; in winSetSystemCall()
48427 for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){ in winSetSystemCall()
48428 if( strcmp(zName, aSyscall[i].zName)==0 ){ in winSetSystemCall()
48429 if( aSyscall[i].pDefault==0 ){ in winSetSystemCall()
48430 aSyscall[i].pDefault = aSyscall[i].pCurrent; in winSetSystemCall()
48433 if( pNewFunc==0 ) pNewFunc = aSyscall[i].pDefault; in winSetSystemCall()
48434 aSyscall[i].pCurrent = pNewFunc; in winSetSystemCall()
48454 for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){ in winGetSystemCall()
48455 if( strcmp(zName, aSyscall[i].zName)==0 ) return aSyscall[i].pCurrent; in winGetSystemCall()
48471 for(i=0; i<ArraySize(aSyscall)-1; i++){ in winNextSystemCall()
48472 if( strcmp(zName, aSyscall[i].zName)==0 ) break; in winNextSystemCall()
48475 for(i++; i<ArraySize(aSyscall); i++){ in winNextSystemCall()
48476 if( aSyscall[i].pCurrent!=0 ) return aSyscall[i].zName; in winNextSystemCall()
53764 assert( ArraySize(aSyscall)==89 );