Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0e45f7b4
Commit
0e45f7b4
authored
Jul 20, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Move various stub functions to the Unix library.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f298db72
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
63 additions
and
75 deletions
+63
-75
error.c
dlls/ntdll/error.c
+0
-11
loader.c
dlls/ntdll/loader.c
+0
-22
nt.c
dlls/ntdll/nt.c
+0
-32
ntdll.spec
dlls/ntdll/ntdll.spec
+10
-10
system.c
dlls/ntdll/unix/system.c
+42
-0
virtual.c
dlls/ntdll/unix/virtual.c
+11
-0
No files found.
dlls/ntdll/error.c
View file @
0e45f7b4
...
...
@@ -108,17 +108,6 @@ DWORD WINAPI RtlGetLastWin32Error(void)
return
NtCurrentTeb
()
->
LastErrorValue
;
}
/**********************************************************************
* NtRaiseHardError (NTDLL.@)
*/
NTSTATUS
WINAPI
NtRaiseHardError
(
NTSTATUS
ErrorStatus
,
ULONG
NumberOfParameters
,
PUNICODE_STRING
UnicodeStringParameterMask
,
PVOID
*
Parameters
,
HARDERROR_RESPONSE_OPTION
ResponseOption
,
PHARDERROR_RESPONSE
Response
)
{
FIXME
(
": stub. Errorstatus was %08x
\n
"
,
ErrorStatus
);
return
STATUS_NOT_IMPLEMENTED
;
}
/***********************************************************************
* RtlSetLastWin32Error (NTDLL.@)
* RtlRestoreLastWin32Error (NTDLL.@)
...
...
dlls/ntdll/loader.c
View file @
0e45f7b4
...
...
@@ -3877,28 +3877,6 @@ void WINAPI RtlReleasePath( PWSTR path )
}
/***********************************************************************
* NtLoadDriver (NTDLL.@)
* ZwLoadDriver (NTDLL.@)
*/
NTSTATUS
WINAPI
NtLoadDriver
(
const
UNICODE_STRING
*
DriverServiceName
)
{
FIXME
(
"(%p), stub!
\n
"
,
DriverServiceName
);
return
STATUS_NOT_IMPLEMENTED
;
}
/***********************************************************************
* NtUnloadDriver (NTDLL.@)
* ZwUnloadDriver (NTDLL.@)
*/
NTSTATUS
WINAPI
NtUnloadDriver
(
const
UNICODE_STRING
*
DriverServiceName
)
{
FIXME
(
"(%p), stub!
\n
"
,
DriverServiceName
);
return
STATUS_NOT_IMPLEMENTED
;
}
/******************************************************************
* DllMain (NTDLL.@)
*/
...
...
dlls/ntdll/nt.c
View file @
0e45f7b4
...
...
@@ -74,38 +74,6 @@ NTSTATUS WINAPI /* DECLSPEC_HOTPATCH */ RtlGetNativeSystemInformation(
}
/******************************************************************************
* NtCreatePagingFile [NTDLL.@]
* ZwCreatePagingFile [NTDLL.@]
*/
NTSTATUS
WINAPI
NtCreatePagingFile
(
PUNICODE_STRING
PageFileName
,
PLARGE_INTEGER
MinimumSize
,
PLARGE_INTEGER
MaximumSize
,
PLARGE_INTEGER
ActualSize
)
{
FIXME
(
"(%p %p %p %p) stub
\n
"
,
PageFileName
,
MinimumSize
,
MaximumSize
,
ActualSize
);
return
STATUS_SUCCESS
;
}
/******************************************************************************
* NtDisplayString [NTDLL.@]
*
* writes a string to the nt-textmode screen eg. during startup
*/
NTSTATUS
WINAPI
NtDisplayString
(
PUNICODE_STRING
string
)
{
STRING
stringA
;
NTSTATUS
ret
;
if
(
!
(
ret
=
RtlUnicodeStringToAnsiString
(
&
stringA
,
string
,
TRUE
)))
{
MESSAGE
(
"%.*s"
,
stringA
.
Length
,
stringA
.
Buffer
);
RtlFreeAnsiString
(
&
stringA
);
}
return
ret
;
}
/******************************************************************************
* VerSetConditionMask (NTDLL.@)
*/
ULONGLONG
WINAPI
VerSetConditionMask
(
ULONGLONG
dwlConditionMask
,
DWORD
dwTypeBitMask
,
...
...
dlls/ntdll/ntdll.spec
View file @
0e45f7b4
...
...
@@ -173,7 +173,7 @@
@ stdcall -syscall NtCreateMailslotFile(ptr long ptr ptr long long long ptr)
@ stdcall -syscall NtCreateMutant(ptr long ptr long)
@ stdcall -syscall NtCreateNamedPipeFile(ptr long ptr ptr long long long long long long long long long ptr)
@ stdcall NtCreatePagingFile(ptr ptr ptr ptr)
@ stdcall
-syscall
NtCreatePagingFile(ptr ptr ptr ptr)
@ stdcall -syscall NtCreatePort(ptr ptr long long ptr)
@ stdcall -syscall NtCreatePowerRequest(ptr ptr)
@ stub NtCreateProcess
...
...
@@ -199,7 +199,7 @@
# @ stub NtDeleteObjectAuditAlarm
@ stdcall -syscall NtDeleteValueKey(long ptr)
@ stdcall -syscall NtDeviceIoControlFile(long long ptr ptr ptr long ptr long ptr long)
@ stdcall NtDisplayString(ptr)
@ stdcall
-syscall
NtDisplayString(ptr)
@ stdcall -syscall NtDuplicateObject(long long long ptr long long long)
@ stdcall -syscall NtDuplicateToken(long long ptr long long ptr)
# @ stub NtEnumerateBootEntries
...
...
@@ -234,7 +234,7 @@
@ stdcall -syscall NtIsProcessInJob(long long)
# @ stub NtIsSystemResumeAutomatic
@ stdcall -syscall NtListenPort(ptr ptr)
@ stdcall NtLoadDriver(ptr)
@ stdcall
-syscall
NtLoadDriver(ptr)
@ stdcall -syscall NtLoadKey2(ptr ptr long)
@ stdcall -syscall NtLoadKey(ptr ptr)
@ stdcall -syscall NtLockFile(long long ptr ptr ptr ptr ptr ptr long long)
...
...
@@ -326,7 +326,7 @@
@ stdcall -syscall NtQueryVolumeInformationFile(long ptr ptr long long)
@ stdcall -syscall NtQueueApcThread(long ptr long long long)
@ stdcall -syscall NtRaiseException(ptr ptr long)
@ stdcall NtRaiseHardError(long long ptr ptr long ptr)
@ stdcall
-syscall
NtRaiseHardError(long long ptr ptr long ptr)
@ stdcall -syscall NtReadFile(long long ptr ptr ptr ptr long ptr ptr)
@ stdcall -syscall NtReadFileScatter(long long ptr ptr ptr ptr long ptr ptr)
@ stub NtReadRequestData
...
...
@@ -413,7 +413,7 @@
@ stub NtTestAlert
# @ stub NtTraceEvent
# @ stub NtTranslateFilePath
@ stdcall NtUnloadDriver(ptr)
@ stdcall
-syscall
NtUnloadDriver(ptr)
@ stdcall -syscall NtUnloadKey(ptr)
@ stub NtUnloadKeyEx
@ stdcall -syscall NtUnlockFile(long ptr ptr ptr ptr)
...
...
@@ -1162,7 +1162,7 @@
@ stdcall -private -syscall ZwCreateMailslotFile(ptr long ptr ptr long long long ptr) NtCreateMailslotFile
@ stdcall -private -syscall ZwCreateMutant(ptr long ptr long) NtCreateMutant
@ stdcall -private -syscall ZwCreateNamedPipeFile(ptr long ptr ptr long long long long long long long long long ptr) NtCreateNamedPipeFile
@ stdcall -private ZwCreatePagingFile(ptr ptr ptr ptr) NtCreatePagingFile
@ stdcall -private
-syscall
ZwCreatePagingFile(ptr ptr ptr ptr) NtCreatePagingFile
@ stdcall -private -syscall ZwCreatePort(ptr ptr long long ptr) NtCreatePort
@ stdcall -private -syscall ZwCreatePowerRequest(ptr ptr) NtCreatePowerRequest
@ stub ZwCreateProcess
...
...
@@ -1187,7 +1187,7 @@
# @ stub ZwDeleteObjectAuditAlarm
@ stdcall -private -syscall ZwDeleteValueKey(long ptr) NtDeleteValueKey
@ stdcall -private -syscall ZwDeviceIoControlFile(long long ptr ptr ptr long ptr long ptr long) NtDeviceIoControlFile
@ stdcall -private ZwDisplayString(ptr) NtDisplayString
@ stdcall -private
-syscall
ZwDisplayString(ptr) NtDisplayString
@ stdcall -private -syscall ZwDuplicateObject(long long long ptr long long long) NtDuplicateObject
@ stdcall -private -syscall ZwDuplicateToken(long long ptr long long ptr) NtDuplicateToken
# @ stub ZwEnumerateBootEntries
...
...
@@ -1222,7 +1222,7 @@
@ stdcall -private -syscall ZwIsProcessInJob(long long) NtIsProcessInJob
# @ stub ZwIsSystemResumeAutomatic
@ stdcall -private -syscall ZwListenPort(ptr ptr) NtListenPort
@ stdcall -private ZwLoadDriver(ptr) NtLoadDriver
@ stdcall -private
-syscall
ZwLoadDriver(ptr) NtLoadDriver
@ stdcall -private -syscall ZwLoadKey2(ptr ptr long) NtLoadKey2
@ stdcall -private -syscall ZwLoadKey(ptr ptr) NtLoadKey
@ stdcall -private -syscall ZwLockFile(long long ptr ptr ptr ptr ptr ptr long long) NtLockFile
...
...
@@ -1314,7 +1314,7 @@
@ stdcall -private -syscall ZwQueryVolumeInformationFile(long ptr ptr long long) NtQueryVolumeInformationFile
@ stdcall -private -syscall ZwQueueApcThread(long ptr long long long) NtQueueApcThread
@ stdcall -private -syscall ZwRaiseException(ptr ptr long) NtRaiseException
@ stdcall -private ZwRaiseHardError(long long ptr ptr long ptr) NtRaiseHardError
@ stdcall -private
-syscall
ZwRaiseHardError(long long ptr ptr long ptr) NtRaiseHardError
@ stdcall -private -syscall ZwReadFile(long long ptr ptr ptr ptr long ptr ptr) NtReadFile
@ stdcall -private -syscall ZwReadFileScatter(long long ptr ptr ptr ptr long ptr ptr) NtReadFileScatter
@ stub ZwReadRequestData
...
...
@@ -1401,7 +1401,7 @@
@ stub ZwTestAlert
# @ stub ZwTraceEvent
# @ stub ZwTranslateFilePath
@ stdcall -private ZwUnloadDriver(ptr) NtUnloadDriver
@ stdcall -private
-syscall
ZwUnloadDriver(ptr) NtUnloadDriver
@ stdcall -private -syscall ZwUnloadKey(ptr) NtUnloadKey
@ stub ZwUnloadKeyEx
@ stdcall -private -syscall ZwUnlockFile(long ptr ptr ptr ptr) NtUnlockFile
...
...
dlls/ntdll/unix/system.c
View file @
0e45f7b4
...
...
@@ -3022,6 +3022,48 @@ NTSTATUS WINAPI NtPowerInformation( POWER_INFORMATION_LEVEL level, void *input,
/******************************************************************************
* NtLoadDriver (NTDLL.@)
*/
NTSTATUS
WINAPI
NtLoadDriver
(
const
UNICODE_STRING
*
name
)
{
FIXME
(
"(%s), stub!
\n
"
,
debugstr_us
(
name
)
);
return
STATUS_NOT_IMPLEMENTED
;
}
/******************************************************************************
* NtUnloadDriver (NTDLL.@)
*/
NTSTATUS
WINAPI
NtUnloadDriver
(
const
UNICODE_STRING
*
name
)
{
FIXME
(
"(%s), stub!
\n
"
,
debugstr_us
(
name
)
);
return
STATUS_NOT_IMPLEMENTED
;
}
/******************************************************************************
* NtDisplayString (NTDLL.@)
*/
NTSTATUS
WINAPI
NtDisplayString
(
UNICODE_STRING
*
string
)
{
ERR
(
"%s
\n
"
,
debugstr_us
(
string
)
);
return
STATUS_SUCCESS
;
}
/******************************************************************************
* NtRaiseHardError (NTDLL.@)
*/
NTSTATUS
WINAPI
NtRaiseHardError
(
NTSTATUS
status
,
ULONG
count
,
UNICODE_STRING
*
params_mask
,
void
**
params
,
HARDERROR_RESPONSE_OPTION
option
,
HARDERROR_RESPONSE
*
response
)
{
FIXME
(
"%08x stub
\n
"
,
status
);
return
STATUS_NOT_IMPLEMENTED
;
}
/******************************************************************************
* NtInitiatePowerAction (NTDLL.@)
*/
NTSTATUS
WINAPI
NtInitiatePowerAction
(
POWER_ACTION
action
,
SYSTEM_POWER_STATE
state
,
...
...
dlls/ntdll/unix/virtual.c
View file @
0e45f7b4
...
...
@@ -4486,3 +4486,14 @@ void WINAPI NtFlushProcessWriteBuffers(void)
static
int
once
=
0
;
if
(
!
once
++
)
FIXME
(
"stub
\n
"
);
}
/**********************************************************************
* NtCreatePagingFile (NTDLL.@)
*/
NTSTATUS
WINAPI
NtCreatePagingFile
(
UNICODE_STRING
*
name
,
LARGE_INTEGER
*
min_size
,
LARGE_INTEGER
*
max_size
,
LARGE_INTEGER
*
actual_size
)
{
FIXME
(
"(%s %p %p %p) stub
\n
"
,
debugstr_us
(
name
),
min_size
,
max_size
,
actual_size
);
return
STATUS_SUCCESS
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment