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
5c0b5f4d
Commit
5c0b5f4d
authored
Aug 22, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Move the select and APC support to server.c.
parent
a56ffb63
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
16 deletions
+13
-16
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+3
-6
server.c
dlls/ntdll/server.c
+0
-0
sync.c
dlls/ntdll/sync.c
+0
-0
thread.c
dlls/ntdll/thread.c
+1
-1
virtual.c
dlls/ntdll/virtual.c
+9
-9
No files found.
dlls/ntdll/ntdll_misc.h
View file @
5c0b5f4d
...
...
@@ -62,10 +62,6 @@ extern void call_thread_entry_point( LPTHREAD_START_ROUTINE entry, void *arg ) D
extern
LPCSTR
debugstr_us
(
const
UNICODE_STRING
*
str
)
DECLSPEC_HIDDEN
;
extern
LPCSTR
debugstr_ObjectAttributes
(
const
OBJECT_ATTRIBUTES
*
oa
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
NTDLL_queue_process_apc
(
HANDLE
process
,
const
apc_call_t
*
call
,
apc_result_t
*
result
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
server_select
(
const
select_op_t
*
select_op
,
data_size_t
size
,
UINT
flags
,
const
LARGE_INTEGER
*
timeout
)
DECLSPEC_HIDDEN
;
/* init routines */
extern
NTSTATUS
signal_alloc_thread
(
TEB
**
teb
)
DECLSPEC_HIDDEN
;
extern
void
signal_free_thread
(
TEB
*
teb
)
DECLSPEC_HIDDEN
;
...
...
@@ -87,14 +83,15 @@ extern int is_wow64 DECLSPEC_HIDDEN;
extern
void
server_init_process
(
void
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
server_init_process_done
(
void
)
DECLSPEC_HIDDEN
;
extern
size_t
server_init_thread
(
void
*
entry_point
)
DECLSPEC_HIDDEN
;
extern
void
DECLSPEC_NORETURN
server_protocol_error
(
const
char
*
err
,
...
)
DECLSPEC_HIDDEN
;
extern
void
DECLSPEC_NORETURN
server_protocol_perror
(
const
char
*
err
)
DECLSPEC_HIDDEN
;
extern
void
DECLSPEC_NORETURN
abort_thread
(
int
status
)
DECLSPEC_HIDDEN
;
extern
void
DECLSPEC_NORETURN
terminate_thread
(
int
status
)
DECLSPEC_HIDDEN
;
extern
void
DECLSPEC_NORETURN
exit_thread
(
int
status
)
DECLSPEC_HIDDEN
;
extern
sigset_t
server_block_set
DECLSPEC_HIDDEN
;
extern
void
server_enter_uninterrupted_section
(
RTL_CRITICAL_SECTION
*
cs
,
sigset_t
*
sigset
)
DECLSPEC_HIDDEN
;
extern
void
server_leave_uninterrupted_section
(
RTL_CRITICAL_SECTION
*
cs
,
sigset_t
*
sigset
)
DECLSPEC_HIDDEN
;
extern
unsigned
int
server_select
(
const
select_op_t
*
select_op
,
data_size_t
size
,
UINT
flags
,
const
LARGE_INTEGER
*
timeout
)
DECLSPEC_HIDDEN
;
extern
unsigned
int
server_queue_process_apc
(
HANDLE
process
,
const
apc_call_t
*
call
,
apc_result_t
*
result
)
DECLSPEC_HIDDEN
;
extern
int
server_remove_fd_from_cache
(
HANDLE
handle
)
DECLSPEC_HIDDEN
;
extern
int
server_get_unix_fd
(
HANDLE
handle
,
unsigned
int
access
,
int
*
unix_fd
,
int
*
needs_close
,
enum
server_fd_type
*
type
,
unsigned
int
*
options
)
DECLSPEC_HIDDEN
;
...
...
dlls/ntdll/server.c
View file @
5c0b5f4d
This diff is collapsed.
Click to expand it.
dlls/ntdll/sync.c
View file @
5c0b5f4d
This diff is collapsed.
Click to expand it.
dlls/ntdll/thread.c
View file @
5c0b5f4d
...
...
@@ -449,7 +449,7 @@ NTSTATUS WINAPI RtlCreateUserThread( HANDLE process, const SECURITY_DESCRIPTOR *
call
.
create_thread
.
reserve
=
stack_reserve
;
call
.
create_thread
.
commit
=
stack_commit
;
call
.
create_thread
.
suspend
=
suspended
;
status
=
NTDLL
_queue_process_apc
(
process
,
&
call
,
&
result
);
status
=
server
_queue_process_apc
(
process
,
&
call
,
&
result
);
if
(
status
!=
STATUS_SUCCESS
)
return
status
;
if
(
result
.
create_thread
.
status
==
STATUS_SUCCESS
)
...
...
dlls/ntdll/virtual.c
View file @
5c0b5f4d
...
...
@@ -1893,7 +1893,7 @@ NTSTATUS WINAPI NtAllocateVirtualMemory( HANDLE process, PVOID *ret, ULONG zero_
call
.
virtual_alloc
.
zero_bits
=
zero_bits
;
call
.
virtual_alloc
.
op_type
=
type
;
call
.
virtual_alloc
.
prot
=
protect
;
status
=
NTDLL
_queue_process_apc
(
process
,
&
call
,
&
result
);
status
=
server
_queue_process_apc
(
process
,
&
call
,
&
result
);
if
(
status
!=
STATUS_SUCCESS
)
return
status
;
if
(
result
.
virtual_alloc
.
status
==
STATUS_SUCCESS
)
...
...
@@ -2026,7 +2026,7 @@ NTSTATUS WINAPI NtFreeVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T *si
call
.
virtual_free
.
addr
=
wine_server_client_ptr
(
addr
);
call
.
virtual_free
.
size
=
size
;
call
.
virtual_free
.
op_type
=
type
;
status
=
NTDLL
_queue_process_apc
(
process
,
&
call
,
&
result
);
status
=
server
_queue_process_apc
(
process
,
&
call
,
&
result
);
if
(
status
!=
STATUS_SUCCESS
)
return
status
;
if
(
result
.
virtual_free
.
status
==
STATUS_SUCCESS
)
...
...
@@ -2140,7 +2140,7 @@ NTSTATUS WINAPI NtProtectVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T
call
.
virtual_protect
.
addr
=
wine_server_client_ptr
(
addr
);
call
.
virtual_protect
.
size
=
size
;
call
.
virtual_protect
.
prot
=
new_prot
;
status
=
NTDLL
_queue_process_apc
(
process
,
&
call
,
&
result
);
status
=
server
_queue_process_apc
(
process
,
&
call
,
&
result
);
if
(
status
!=
STATUS_SUCCESS
)
return
status
;
if
(
result
.
virtual_protect
.
status
==
STATUS_SUCCESS
)
...
...
@@ -2276,7 +2276,7 @@ NTSTATUS WINAPI NtQueryVirtualMemory( HANDLE process, LPCVOID addr,
call
.
virtual_query
.
type
=
APC_VIRTUAL_QUERY
;
call
.
virtual_query
.
addr
=
wine_server_client_ptr
(
addr
);
status
=
NTDLL
_queue_process_apc
(
process
,
&
call
,
&
result
);
status
=
server
_queue_process_apc
(
process
,
&
call
,
&
result
);
if
(
status
!=
STATUS_SUCCESS
)
return
status
;
if
(
result
.
virtual_query
.
status
==
STATUS_SUCCESS
)
...
...
@@ -2399,7 +2399,7 @@ NTSTATUS WINAPI NtLockVirtualMemory( HANDLE process, PVOID *addr, SIZE_T *size,
call
.
virtual_lock
.
type
=
APC_VIRTUAL_LOCK
;
call
.
virtual_lock
.
addr
=
wine_server_client_ptr
(
*
addr
);
call
.
virtual_lock
.
size
=
*
size
;
status
=
NTDLL
_queue_process_apc
(
process
,
&
call
,
&
result
);
status
=
server
_queue_process_apc
(
process
,
&
call
,
&
result
);
if
(
status
!=
STATUS_SUCCESS
)
return
status
;
if
(
result
.
virtual_lock
.
status
==
STATUS_SUCCESS
)
...
...
@@ -2436,7 +2436,7 @@ NTSTATUS WINAPI NtUnlockVirtualMemory( HANDLE process, PVOID *addr, SIZE_T *size
call
.
virtual_unlock
.
type
=
APC_VIRTUAL_UNLOCK
;
call
.
virtual_unlock
.
addr
=
wine_server_client_ptr
(
*
addr
);
call
.
virtual_unlock
.
size
=
*
size
;
status
=
NTDLL
_queue_process_apc
(
process
,
&
call
,
&
result
);
status
=
server
_queue_process_apc
(
process
,
&
call
,
&
result
);
if
(
status
!=
STATUS_SUCCESS
)
return
status
;
if
(
result
.
virtual_unlock
.
status
==
STATUS_SUCCESS
)
...
...
@@ -2601,7 +2601,7 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
call
.
map_view
.
zero_bits
=
zero_bits
;
call
.
map_view
.
alloc_type
=
alloc_type
;
call
.
map_view
.
prot
=
protect
;
res
=
NTDLL
_queue_process_apc
(
process
,
&
call
,
&
result
);
res
=
server
_queue_process_apc
(
process
,
&
call
,
&
result
);
if
(
res
!=
STATUS_SUCCESS
)
return
res
;
if
((
NTSTATUS
)
result
.
map_view
.
status
>=
0
)
...
...
@@ -2742,7 +2742,7 @@ NTSTATUS WINAPI NtUnmapViewOfSection( HANDLE process, PVOID addr )
call
.
unmap_view
.
type
=
APC_UNMAP_VIEW
;
call
.
unmap_view
.
addr
=
wine_server_client_ptr
(
addr
);
status
=
NTDLL
_queue_process_apc
(
process
,
&
call
,
&
result
);
status
=
server
_queue_process_apc
(
process
,
&
call
,
&
result
);
if
(
status
==
STATUS_SUCCESS
)
status
=
result
.
unmap_view
.
status
;
return
status
;
}
...
...
@@ -2780,7 +2780,7 @@ NTSTATUS WINAPI NtFlushVirtualMemory( HANDLE process, LPCVOID *addr_ptr,
call
.
virtual_flush
.
type
=
APC_VIRTUAL_FLUSH
;
call
.
virtual_flush
.
addr
=
wine_server_client_ptr
(
addr
);
call
.
virtual_flush
.
size
=
*
size_ptr
;
status
=
NTDLL
_queue_process_apc
(
process
,
&
call
,
&
result
);
status
=
server
_queue_process_apc
(
process
,
&
call
,
&
result
);
if
(
status
!=
STATUS_SUCCESS
)
return
status
;
if
(
result
.
virtual_flush
.
status
==
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