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
5d3fde08
Commit
5d3fde08
authored
May 21, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
May 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Move struct async_fileio to unix_private.h.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
97afac46
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
file.c
dlls/ntdll/unix/file.c
+0
-9
server.c
dlls/ntdll/unix/server.c
+2
-2
unix_private.h
dlls/ntdll/unix/unix_private.h
+9
-0
No files found.
dlls/ntdll/unix/file.c
View file @
5d3fde08
...
...
@@ -4610,15 +4610,6 @@ NTSTATUS WINAPI NtSetInformationFile( HANDLE handle, IO_STATUS_BLOCK *io,
* Asynchronous file I/O *
*/
typedef
NTSTATUS
async_callback_t
(
void
*
user
,
IO_STATUS_BLOCK
*
io
,
NTSTATUS
status
);
struct
async_fileio
{
async_callback_t
*
callback
;
/* must be the first field */
struct
async_fileio
*
next
;
HANDLE
handle
;
};
struct
async_fileio_read
{
struct
async_fileio
io
;
...
...
dlls/ntdll/unix/server.c
View file @
5d3fde08
...
...
@@ -390,12 +390,12 @@ static void invoke_system_apc( const apc_call_t *call, apc_result_t *result, BOO
case
APC_ASYNC_IO
:
{
IO_STATUS_BLOCK
*
iosb
=
wine_server_get_ptr
(
call
->
async_io
.
sb
);
NTSTATUS
(
**
user
)(
void
*
,
IO_STATUS_BLOCK
*
,
NTSTATUS
)
=
wine_server_get_ptr
(
call
->
async_io
.
user
);
struct
async_fileio
*
user
=
wine_server_get_ptr
(
call
->
async_io
.
user
);
void
*
saved_frame
=
get_syscall_frame
();
void
*
frame
;
result
->
type
=
call
->
type
;
result
->
async_io
.
status
=
(
*
user
)
(
user
,
iosb
,
call
->
async_io
.
status
);
result
->
async_io
.
status
=
user
->
callback
(
user
,
iosb
,
call
->
async_io
.
status
);
if
((
frame
=
get_syscall_frame
())
!=
saved_frame
)
{
...
...
dlls/ntdll/unix/unix_private.h
View file @
5d3fde08
...
...
@@ -75,6 +75,15 @@ static inline struct ntdll_thread_data *ntdll_get_thread_data(void)
return
(
struct
ntdll_thread_data
*
)
&
NtCurrentTeb
()
->
GdiTebBatch
;
}
typedef
NTSTATUS
async_callback_t
(
void
*
user
,
IO_STATUS_BLOCK
*
io
,
NTSTATUS
status
);
struct
async_fileio
{
async_callback_t
*
callback
;
struct
async_fileio
*
next
;
HANDLE
handle
;
};
static
const
SIZE_T
page_size
=
0x1000
;
static
const
SIZE_T
teb_size
=
0x3000
;
/* TEB64 + TEB32 */
static
const
SIZE_T
signal_stack_mask
=
0xffff
;
...
...
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