Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1b5ea62e
Commit
1b5ea62e
authored
May 28, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Introduce wine_unix_call.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
69ef7374
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-0
loader.c
dlls/ntdll/unix/loader.c
+9
-0
winternl.h
include/winternl.h
+3
-0
No files found.
dlls/ntdll/ntdll.spec
View file @
1b5ea62e
...
...
@@ -1612,6 +1612,7 @@
@ cdecl -syscall wine_server_handle_to_fd(long long ptr ptr)
# Unix interface
@ cdecl -syscall __wine_unix_call(int64 long ptr)
@ cdecl __wine_set_unix_funcs(long ptr)
@ cdecl __wine_init_unix_lib(long long ptr ptr)
@ extern __wine_syscall_dispatcher
...
...
dlls/ntdll/unix/loader.c
View file @
1b5ea62e
...
...
@@ -1124,6 +1124,15 @@ static NTSTATUS CDECL init_unix_lib( void *module, DWORD reason, const void *ptr
/***********************************************************************
* __wine_unix_call
*/
NTSTATUS
CDECL
__wine_unix_call
(
UINT64
handle
,
unsigned
int
code
,
void
*
args
)
{
return
((
unixlib_entry_t
*
)(
UINT_PTR
)
handle
)[
code
](
args
);
}
/***********************************************************************
* load_so_dll
*/
static
NTSTATUS
CDECL
load_so_dll
(
UNICODE_STRING
*
nt_name
,
void
**
module
)
...
...
include/winternl.h
View file @
1b5ea62e
...
...
@@ -4561,6 +4561,9 @@ static inline PLIST_ENTRY RemoveTailList(PLIST_ENTRY le)
/* Wine internal functions */
extern
NTSTATUS
CDECL
__wine_init_unix_lib
(
HMODULE
module
,
DWORD
reason
,
const
void
*
ptr_in
,
void
*
ptr_out
);
extern
NTSTATUS
CDECL
__wine_unix_call
(
UINT64
handle
,
unsigned
int
code
,
void
*
args
);
typedef
NTSTATUS
(
*
unixlib_entry_t
)(
void
*
args
);
/* The thread information for 16-bit threads */
/* NtCurrentTeb()->SubSystemTib points to this */
...
...
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