Module: wine Branch: master Commit: f9f23e109287b86bf3d1703cad374326c1eb4ccd URL: https://gitlab.winehq.org/wine/wine/-/commit/f9f23e109287b86bf3d1703cad37432...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Nov 16 14:08:00 2023 +0100
ntdll: Use the generated syscall list.
---
dlls/ntdll/unix/loader.c | 247 ++--------------------------------------------- 1 file changed, 7 insertions(+), 240 deletions(-)
diff --git a/dlls/ntdll/unix/loader.c b/dlls/ntdll/unix/loader.c index 5b6098df3bc..42b5aa9d84e 100644 --- a/dlls/ntdll/unix/loader.c +++ b/dlls/ntdll/unix/loader.c @@ -88,6 +88,7 @@ #include "winternl.h" #include "unix_private.h" #include "wine/list.h" +#include "ntsyscalls.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(module); @@ -118,247 +119,13 @@ static void *p__wine_syscall_dispatcher;
static void * const syscalls[] = { - NtAcceptConnectPort, - NtAccessCheck, - NtAccessCheckAndAuditAlarm, - NtAddAtom, - NtAdjustGroupsToken, - NtAdjustPrivilegesToken, - NtAlertResumeThread, - NtAlertThread, - NtAlertThreadByThreadId, - NtAllocateLocallyUniqueId, - NtAllocateUuids, - NtAllocateVirtualMemory, - NtAllocateVirtualMemoryEx, - NtAreMappedFilesTheSame, - NtAssignProcessToJobObject, - NtCallbackReturn, - NtCancelIoFile, - NtCancelIoFileEx, - NtCancelSynchronousIoFile, - NtCancelTimer, - NtClearEvent, - NtClose, - NtCommitTransaction, - NtCompareObjects, - NtCompleteConnectPort, - NtConnectPort, - NtContinue, - NtCreateDebugObject, - NtCreateDirectoryObject, - NtCreateEvent, - NtCreateFile, - NtCreateIoCompletion, - NtCreateJobObject, - NtCreateKey, - NtCreateKeyTransacted, - NtCreateKeyedEvent, - NtCreateLowBoxToken, - NtCreateMailslotFile, - NtCreateMutant, - NtCreateNamedPipeFile, - NtCreatePagingFile, - NtCreatePort, - NtCreateSection, - NtCreateSemaphore, - NtCreateSymbolicLinkObject, - NtCreateThread, - NtCreateThreadEx, - NtCreateTimer, - NtCreateToken, - NtCreateTransaction, - NtCreateUserProcess, - NtDebugActiveProcess, - NtDebugContinue, - NtDelayExecution, - NtDeleteAtom, - NtDeleteFile, - NtDeleteKey, - NtDeleteValueKey, - NtDeviceIoControlFile, - NtDisplayString, - NtDuplicateObject, - NtDuplicateToken, - NtEnumerateKey, - NtEnumerateValueKey, - NtFilterToken, - NtFindAtom, - NtFlushBuffersFile, - NtFlushInstructionCache, - NtFlushKey, - NtFlushProcessWriteBuffers, - NtFlushVirtualMemory, - NtFreeVirtualMemory, - NtFsControlFile, - NtGetContextThread, - NtGetCurrentProcessorNumber, - NtGetNextThread, - NtGetNlsSectionPtr, - NtGetWriteWatch, - NtImpersonateAnonymousToken, - NtInitializeNlsFiles, - NtInitiatePowerAction, - NtIsProcessInJob, - NtListenPort, - NtLoadDriver, - NtLoadKey, - NtLoadKey2, - NtLoadKeyEx, - NtLockFile, - NtLockVirtualMemory, - NtMakeTemporaryObject, - NtMapViewOfSection, - NtMapViewOfSectionEx, - NtNotifyChangeDirectoryFile, - NtNotifyChangeKey, - NtNotifyChangeMultipleKeys, - NtOpenDirectoryObject, - NtOpenEvent, - NtOpenFile, - NtOpenIoCompletion, - NtOpenJobObject, - NtOpenKey, - NtOpenKeyEx, - NtOpenKeyTransacted, - NtOpenKeyTransactedEx, - NtOpenKeyedEvent, - NtOpenMutant, - NtOpenProcess, - NtOpenProcessToken, - NtOpenProcessTokenEx, - NtOpenSection, - NtOpenSemaphore, - NtOpenSymbolicLinkObject , - NtOpenThread, - NtOpenThreadToken, - NtOpenThreadTokenEx, - NtOpenTimer, - NtPowerInformation, - NtPrivilegeCheck, - NtProtectVirtualMemory, - NtPulseEvent, - NtQueryAttributesFile, - NtQueryDefaultLocale, - NtQueryDefaultUILanguage, - NtQueryDirectoryFile, - NtQueryDirectoryObject, - NtQueryEaFile, - NtQueryEvent, - NtQueryFullAttributesFile, - NtQueryInformationAtom, - NtQueryInformationFile, - NtQueryInformationJobObject, - NtQueryInformationProcess, - NtQueryInformationThread, - NtQueryInformationToken, - NtQueryInstallUILanguage, - NtQueryIoCompletion, - NtQueryKey, - NtQueryLicenseValue, - NtQueryMultipleValueKey, - NtQueryMutant, - NtQueryObject, - NtQueryPerformanceCounter, - NtQuerySection, - NtQuerySecurityObject, - NtQuerySemaphore , - NtQuerySymbolicLinkObject, - NtQuerySystemEnvironmentValue, - NtQuerySystemEnvironmentValueEx, - NtQuerySystemInformation, - NtQuerySystemInformationEx, - NtQuerySystemTime, - NtQueryTimer, - NtQueryTimerResolution, - NtQueryValueKey, - NtQueryVirtualMemory, - NtQueryVolumeInformationFile, - NtQueueApcThread, - NtRaiseException, - NtRaiseHardError, - NtReadFile, - NtReadFileScatter, - NtReadVirtualMemory, - NtRegisterThreadTerminatePort, - NtReleaseKeyedEvent, - NtReleaseMutant, - NtReleaseSemaphore, - NtRemoveIoCompletion, - NtRemoveIoCompletionEx, - NtRemoveProcessDebug, - NtRenameKey, - NtReplaceKey, - NtReplyWaitReceivePort, - NtRequestWaitReplyPort, - NtResetEvent, - NtResetWriteWatch, - NtRestoreKey, - NtResumeProcess, - NtResumeThread, - NtRollbackTransaction, - NtSaveKey, - NtSecureConnectPort, - NtSetContextThread, - NtSetDebugFilterState, - NtSetDefaultLocale, - NtSetDefaultUILanguage, - NtSetEaFile, - NtSetEvent, - NtSetInformationDebugObject, - NtSetInformationFile, - NtSetInformationJobObject, - NtSetInformationKey, - NtSetInformationObject, - NtSetInformationProcess, - NtSetInformationThread, - NtSetInformationToken, - NtSetInformationVirtualMemory, - NtSetIntervalProfile, - NtSetIoCompletion, - NtSetLdtEntries, - NtSetSecurityObject, - NtSetSystemInformation, - NtSetSystemTime, - NtSetThreadExecutionState, - NtSetTimer, - NtSetTimerResolution, - NtSetValueKey, - NtSetVolumeInformationFile, - NtShutdownSystem, - NtSignalAndWaitForSingleObject, - NtSuspendProcess, - NtSuspendThread, - NtSystemDebugControl, - NtTerminateJobObject, - NtTerminateProcess, - NtTerminateThread, - NtTestAlert, - NtTraceControl, - NtUnloadDriver, - NtUnloadKey, - NtUnlockFile, - NtUnlockVirtualMemory, - NtUnmapViewOfSection, - NtUnmapViewOfSectionEx, - NtWaitForAlertByThreadId, - NtWaitForDebugEvent, - NtWaitForKeyedEvent, - NtWaitForMultipleObjects, - NtWaitForSingleObject, -#ifndef _WIN64 - NtWow64AllocateVirtualMemory64, - NtWow64GetNativeSystemInformation, - NtWow64IsProcessorFeaturePresent, - NtWow64ReadVirtualMemory64, - NtWow64WriteVirtualMemory64, +#define SYSCALL_ENTRY(id,name,args) name, +#ifdef _WIN64 + ALL_SYSCALLS64 +#else + ALL_SYSCALLS32 #endif - NtWriteFile, - NtWriteFileGather, - NtWriteVirtualMemory, - NtYieldExecution, - wine_nt_to_unix_file_name, - wine_unix_to_nt_file_name, +#undef SYSCALL_ENTRY };
static BYTE syscall_args[ARRAY_SIZE(syscalls)];