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
5e0b0d35
Commit
5e0b0d35
authored
Jul 05, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Rename cpu_type_t to client_cpu_t.
To avoid conflicts with mac headers. Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b0ae02be
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
26 deletions
+26
-26
process.c
dlls/kernel32/process.c
+1
-1
process.c
dlls/ntdll/process.c
+1
-1
server_protocol.h
include/wine/server_protocol.h
+8
-8
protocol.def
server/protocol.def
+7
-7
request.h
server/request.h
+1
-1
trace.c
server/trace.c
+7
-7
make_requests
tools/make_requests
+1
-1
No files found.
dlls/kernel32/process.c
View file @
5e0b0d35
...
...
@@ -174,7 +174,7 @@ static inline unsigned int is_path_prefix( const WCHAR *prefix, const WCHAR *fil
/***********************************************************************
* is_64bit_arch
*/
static
inline
BOOL
is_64bit_arch
(
c
pu_type
_t
cpu
)
static
inline
BOOL
is_64bit_arch
(
c
lient_cpu
_t
cpu
)
{
return
(
cpu
==
CPU_x86_64
||
cpu
==
CPU_ARM64
);
}
...
...
dlls/ntdll/process.c
View file @
5e0b0d35
...
...
@@ -62,7 +62,7 @@ static const BOOL is_win64 = (sizeof(void *) > sizeof(int));
static
const
char
*
const
cpu_names
[]
=
{
"x86"
,
"x86_64"
,
"PowerPC"
,
"ARM"
,
"ARM64"
};
static
inline
BOOL
is_64bit_arch
(
c
pu_type
_t
cpu
)
static
inline
BOOL
is_64bit_arch
(
c
lient_cpu
_t
cpu
)
{
return
(
cpu
==
CPU_x86_64
||
cpu
==
CPU_ARM64
);
}
...
...
include/wine/server_protocol.h
View file @
5e0b0d35
...
...
@@ -119,12 +119,12 @@ enum cpu_type
{
CPU_x86
,
CPU_x86_64
,
CPU_POWERPC
,
CPU_ARM
,
CPU_ARM64
};
typedef
int
c
pu_type
_t
;
typedef
int
c
lient_cpu
_t
;
typedef
struct
{
c
pu_type_t
cpu
;
c
lient_cpu_t
cpu
;
unsigned
int
flags
;
union
{
...
...
@@ -743,7 +743,7 @@ typedef struct
unsigned
int
header_size
;
unsigned
int
file_size
;
unsigned
int
checksum
;
c
pu_type_t
cpu
;
c
lient_cpu_t
cpu
;
int
__pad
;
}
pe_image_info_t
;
#define IMAGE_FLAGS_ComPlusNativeReady 0x01
...
...
@@ -774,7 +774,7 @@ struct new_process_request
int
socket_fd
;
obj_handle_t
exe_file
;
unsigned
int
access
;
c
pu_type_t
cpu
;
c
lient_cpu_t
cpu
;
data_size_t
info_size
;
/* VARARG(objattr,object_attributes); */
/* VARARG(info,startup_info,info_size); */
...
...
@@ -796,7 +796,7 @@ struct exec_process_request
struct
request_header
__header
;
int
socket_fd
;
obj_handle_t
exe_file
;
c
pu_type_t
cpu
;
c
lient_cpu_t
cpu
;
};
struct
exec_process_reply
{
...
...
@@ -881,7 +881,7 @@ struct init_thread_request
client_ptr_t
entry
;
int
reply_fd
;
int
wait_fd
;
c
pu_type_t
cpu
;
c
lient_cpu_t
cpu
;
char
__pad_52
[
4
];
};
struct
init_thread_reply
...
...
@@ -946,7 +946,7 @@ struct get_process_info_reply
timeout_t
end_time
;
int
exit_code
;
int
priority
;
c
pu_type_t
cpu
;
c
lient_cpu_t
cpu
;
short
int
debugger_present
;
short
int
debug_children
;
};
...
...
@@ -6691,6 +6691,6 @@ union generic_reply
struct
resume_process_reply
resume_process_reply
;
};
#define SERVER_PROTOCOL_VERSION 58
7
#define SERVER_PROTOCOL_VERSION 58
8
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/protocol.def
View file @
5e0b0d35
...
...
@@ -135,12 +135,12 @@ enum cpu_type
{
CPU_x86, CPU_x86_64, CPU_POWERPC, CPU_ARM, CPU_ARM64
};
typedef int c
pu_type
_t;
typedef int c
lient_cpu
_t;
/* context data */
typedef struct
{
c
pu_type_t
cpu; /* cpu type */
c
lient_cpu_t
cpu; /* cpu type */
unsigned int flags; /* SERVER_CTX_* flags */
union
{
...
...
@@ -759,7 +759,7 @@ typedef struct
unsigned int header_size;
unsigned int file_size;
unsigned int checksum;
c
pu_type_t
cpu;
c
lient_cpu_t
cpu;
int __pad;
} pe_image_info_t;
#define IMAGE_FLAGS_ComPlusNativeReady 0x01
...
...
@@ -788,7 +788,7 @@ struct rawinput_device
int socket_fd; /* file descriptor for process socket */
obj_handle_t exe_file; /* file handle for main exe */
unsigned int access; /* access rights for process object */
c
pu_type_t
cpu; /* CPU that the new process will use */
c
lient_cpu_t
cpu; /* CPU that the new process will use */
data_size_t info_size; /* size of startup info */
VARARG(objattr,object_attributes); /* object attributes */
VARARG(info,startup_info,info_size); /* startup information */
...
...
@@ -804,7 +804,7 @@ struct rawinput_device
@REQ(exec_process)
int socket_fd; /* file descriptor for process socket */
obj_handle_t exe_file; /* file handle for main exe */
c
pu_type_t
cpu; /* CPU that the new process will use */
c
lient_cpu_t
cpu; /* CPU that the new process will use */
@END
...
...
@@ -859,7 +859,7 @@ struct rawinput_device
client_ptr_t entry; /* entry point or PEB if initial thread (in thread address space) */
int reply_fd; /* fd for reply pipe */
int wait_fd; /* fd for blocking calls pipe */
c
pu_type_t
cpu; /* CPU that this thread is running on */
c
lient_cpu_t
cpu; /* CPU that this thread is running on */
@REPLY
process_id_t pid; /* process id of the new thread's process */
thread_id_t tid; /* thread id of the new thread */
...
...
@@ -902,7 +902,7 @@ struct rawinput_device
timeout_t end_time; /* process end time */
int exit_code; /* process exit code */
int priority; /* priority class */
c
pu_type_t
cpu; /* CPU that this process is running on */
c
lient_cpu_t
cpu; /* CPU that this process is running on */
short int debugger_present; /* process is being debugged */
short int debug_children; /* inherit debugger to child processes */
@END
...
...
server/request.h
View file @
5e0b0d35
...
...
@@ -722,8 +722,8 @@ C_ASSERT( sizeof(async_data_t) == 40 );
C_ASSERT
(
sizeof
(
atom_t
)
==
4
);
C_ASSERT
(
sizeof
(
char
)
==
1
);
C_ASSERT
(
sizeof
(
char_info_t
)
==
4
);
C_ASSERT
(
sizeof
(
client_cpu_t
)
==
4
);
C_ASSERT
(
sizeof
(
client_ptr_t
)
==
8
);
C_ASSERT
(
sizeof
(
cpu_type_t
)
==
4
);
C_ASSERT
(
sizeof
(
data_size_t
)
==
4
);
C_ASSERT
(
sizeof
(
file_pos_t
)
==
8
);
C_ASSERT
(
sizeof
(
hw_input_t
)
==
32
);
...
...
server/trace.c
View file @
5e0b0d35
...
...
@@ -129,7 +129,7 @@ static void dump_ioctl_code( const char *prefix, const ioctl_code_t *code )
}
}
static
void
dump_c
pu_type
(
const
char
*
prefix
,
const
cpu_type
_t
*
code
)
static
void
dump_c
lient_cpu
(
const
char
*
prefix
,
const
client_cpu
_t
*
code
)
{
switch
(
*
code
)
{
...
...
@@ -565,7 +565,7 @@ static void dump_varargs_context( const char *prefix, data_size_t size )
memcpy
(
&
ctx
,
context
,
size
);
fprintf
(
stderr
,
"%s{"
,
prefix
);
dump_c
pu_type
(
"cpu="
,
&
ctx
.
cpu
);
dump_c
lient_cpu
(
"cpu="
,
&
ctx
.
cpu
);
switch
(
ctx
.
cpu
)
{
case
CPU_x86
:
...
...
@@ -1196,7 +1196,7 @@ static void dump_varargs_pe_image_info( const char *prefix, data_size_t size )
info
.
zerobits
,
info
.
subsystem
,
info
.
subsystem_low
,
info
.
subsystem_high
,
info
.
gp
,
info
.
image_charact
,
info
.
dll_charact
,
info
.
machine
,
info
.
contains_code
,
info
.
image_flags
,
info
.
loader_flags
,
info
.
header_size
,
info
.
file_size
,
info
.
checksum
);
dump_c
pu_type
(
",cpu="
,
&
info
.
cpu
);
dump_c
lient_cpu
(
",cpu="
,
&
info
.
cpu
);
fputc
(
'}'
,
stderr
);
remove_data
(
size
);
}
...
...
@@ -1247,7 +1247,7 @@ static void dump_new_process_request( const struct new_process_request *req )
fprintf
(
stderr
,
", socket_fd=%d"
,
req
->
socket_fd
);
fprintf
(
stderr
,
", exe_file=%04x"
,
req
->
exe_file
);
fprintf
(
stderr
,
", access=%08x"
,
req
->
access
);
dump_c
pu_type
(
", cpu="
,
&
req
->
cpu
);
dump_c
lient_cpu
(
", cpu="
,
&
req
->
cpu
);
fprintf
(
stderr
,
", info_size=%u"
,
req
->
info_size
);
dump_varargs_object_attributes
(
", objattr="
,
cur_size
);
dump_varargs_startup_info
(
", info="
,
min
(
cur_size
,
req
->
info_size
)
);
...
...
@@ -1265,7 +1265,7 @@ static void dump_exec_process_request( const struct exec_process_request *req )
{
fprintf
(
stderr
,
" socket_fd=%d"
,
req
->
socket_fd
);
fprintf
(
stderr
,
", exe_file=%04x"
,
req
->
exe_file
);
dump_c
pu_type
(
", cpu="
,
&
req
->
cpu
);
dump_c
lient_cpu
(
", cpu="
,
&
req
->
cpu
);
}
static
void
dump_get_new_process_info_request
(
const
struct
get_new_process_info_request
*
req
)
...
...
@@ -1327,7 +1327,7 @@ static void dump_init_thread_request( const struct init_thread_request *req )
dump_uint64
(
", entry="
,
&
req
->
entry
);
fprintf
(
stderr
,
", reply_fd=%d"
,
req
->
reply_fd
);
fprintf
(
stderr
,
", wait_fd=%d"
,
req
->
wait_fd
);
dump_c
pu_type
(
", cpu="
,
&
req
->
cpu
);
dump_c
lient_cpu
(
", cpu="
,
&
req
->
cpu
);
}
static
void
dump_init_thread_reply
(
const
struct
init_thread_reply
*
req
)
...
...
@@ -1379,7 +1379,7 @@ static void dump_get_process_info_reply( const struct get_process_info_reply *re
dump_timeout
(
", end_time="
,
&
req
->
end_time
);
fprintf
(
stderr
,
", exit_code=%d"
,
req
->
exit_code
);
fprintf
(
stderr
,
", priority=%d"
,
req
->
priority
);
dump_c
pu_type
(
", cpu="
,
&
req
->
cpu
);
dump_c
lient_cpu
(
", cpu="
,
&
req
->
cpu
);
fprintf
(
stderr
,
", debugger_present=%d"
,
req
->
debugger_present
);
fprintf
(
stderr
,
", debug_children=%d"
,
req
->
debug_children
);
}
...
...
tools/make_requests
View file @
5e0b0d35
...
...
@@ -51,7 +51,7 @@ my %formats =
"irp_params_t"
=>
[
32
,
8
,
"&dump_irp_params"
],
"luid_t"
=>
[
8
,
4
,
"&dump_luid"
],
"ioctl_code_t"
=>
[
4
,
4
,
"&dump_ioctl_code"
],
"c
pu_type_t"
=>
[
4
,
4
,
"&dump_cpu_type
"
],
"c
lient_cpu_t"
=>
[
4
,
4
,
"&dump_client_cpu
"
],
"hw_input_t"
=>
[
32
,
8
,
"&dump_hw_input"
],
);
...
...
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