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
f7ffd71f
Commit
f7ffd71f
authored
Jun 24, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Remove the no longer used get_socket_event request.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fb3956fc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
98 deletions
+1
-98
server_protocol.h
include/wine/server_protocol.h
+1
-21
protocol.def
server/protocol.def
+0
-12
request.h
server/request.h
+0
-9
sock.c
server/sock.c
+0
-39
trace.c
server/trace.c
+0
-17
No files found.
include/wine/server_protocol.h
View file @
f7ffd71f
...
@@ -1730,23 +1730,6 @@ struct unlock_file_reply
...
@@ -1730,23 +1730,6 @@ struct unlock_file_reply
struct
get_socket_event_request
{
struct
request_header
__header
;
obj_handle_t
handle
;
int
service
;
obj_handle_t
c_event
;
};
struct
get_socket_event_reply
{
struct
reply_header
__header
;
unsigned
int
mask
;
unsigned
int
pmask
;
/* VARARG(errors,ints); */
};
struct
recv_socket_request
struct
recv_socket_request
{
{
struct
request_header
__header
;
struct
request_header
__header
;
...
@@ -5456,7 +5439,6 @@ enum request
...
@@ -5456,7 +5439,6 @@ enum request
REQ_get_volume_info
,
REQ_get_volume_info
,
REQ_lock_file
,
REQ_lock_file
,
REQ_unlock_file
,
REQ_unlock_file
,
REQ_get_socket_event
,
REQ_recv_socket
,
REQ_recv_socket
,
REQ_poll_socket
,
REQ_poll_socket
,
REQ_send_socket
,
REQ_send_socket
,
...
@@ -5736,7 +5718,6 @@ union generic_request
...
@@ -5736,7 +5718,6 @@ union generic_request
struct
get_volume_info_request
get_volume_info_request
;
struct
get_volume_info_request
get_volume_info_request
;
struct
lock_file_request
lock_file_request
;
struct
lock_file_request
lock_file_request
;
struct
unlock_file_request
unlock_file_request
;
struct
unlock_file_request
unlock_file_request
;
struct
get_socket_event_request
get_socket_event_request
;
struct
recv_socket_request
recv_socket_request
;
struct
recv_socket_request
recv_socket_request
;
struct
poll_socket_request
poll_socket_request
;
struct
poll_socket_request
poll_socket_request
;
struct
send_socket_request
send_socket_request
;
struct
send_socket_request
send_socket_request
;
...
@@ -6014,7 +5995,6 @@ union generic_reply
...
@@ -6014,7 +5995,6 @@ union generic_reply
struct
get_volume_info_reply
get_volume_info_reply
;
struct
get_volume_info_reply
get_volume_info_reply
;
struct
lock_file_reply
lock_file_reply
;
struct
lock_file_reply
lock_file_reply
;
struct
unlock_file_reply
unlock_file_reply
;
struct
unlock_file_reply
unlock_file_reply
;
struct
get_socket_event_reply
get_socket_event_reply
;
struct
recv_socket_reply
recv_socket_reply
;
struct
recv_socket_reply
recv_socket_reply
;
struct
poll_socket_reply
poll_socket_reply
;
struct
poll_socket_reply
poll_socket_reply
;
struct
send_socket_reply
send_socket_reply
;
struct
send_socket_reply
send_socket_reply
;
...
@@ -6238,7 +6218,7 @@ union generic_reply
...
@@ -6238,7 +6218,7 @@ union generic_reply
/* ### protocol_version begin ### */
/* ### protocol_version begin ### */
#define SERVER_PROTOCOL_VERSION 71
5
#define SERVER_PROTOCOL_VERSION 71
6
/* ### protocol_version end ### */
/* ### protocol_version end ### */
...
...
server/protocol.def
View file @
f7ffd71f
...
@@ -1423,18 +1423,6 @@ enum server_fd_type
...
@@ -1423,18 +1423,6 @@ enum server_fd_type
@END
@END
/* Get socket event parameters */
@REQ(get_socket_event)
obj_handle_t handle; /* handle to the socket */
int service; /* clear pending? */
obj_handle_t c_event; /* event to clear */
@REPLY
unsigned int mask; /* event mask */
unsigned int pmask; /* pending events */
VARARG(errors,ints); /* event errors */
@END
/* Perform a recv on a socket */
/* Perform a recv on a socket */
@REQ(recv_socket)
@REQ(recv_socket)
int oob; /* are we receiving OOB data? */
int oob; /* are we receiving OOB data? */
...
...
server/request.h
View file @
f7ffd71f
...
@@ -172,7 +172,6 @@ DECL_HANDLER(get_file_info);
...
@@ -172,7 +172,6 @@ DECL_HANDLER(get_file_info);
DECL_HANDLER
(
get_volume_info
);
DECL_HANDLER
(
get_volume_info
);
DECL_HANDLER
(
lock_file
);
DECL_HANDLER
(
lock_file
);
DECL_HANDLER
(
unlock_file
);
DECL_HANDLER
(
unlock_file
);
DECL_HANDLER
(
get_socket_event
);
DECL_HANDLER
(
recv_socket
);
DECL_HANDLER
(
recv_socket
);
DECL_HANDLER
(
poll_socket
);
DECL_HANDLER
(
poll_socket
);
DECL_HANDLER
(
send_socket
);
DECL_HANDLER
(
send_socket
);
...
@@ -451,7 +450,6 @@ static const req_handler req_handlers[REQ_NB_REQUESTS] =
...
@@ -451,7 +450,6 @@ static const req_handler req_handlers[REQ_NB_REQUESTS] =
(
req_handler
)
req_get_volume_info
,
(
req_handler
)
req_get_volume_info
,
(
req_handler
)
req_lock_file
,
(
req_handler
)
req_lock_file
,
(
req_handler
)
req_unlock_file
,
(
req_handler
)
req_unlock_file
,
(
req_handler
)
req_get_socket_event
,
(
req_handler
)
req_recv_socket
,
(
req_handler
)
req_recv_socket
,
(
req_handler
)
req_poll_socket
,
(
req_handler
)
req_poll_socket
,
(
req_handler
)
req_send_socket
,
(
req_handler
)
req_send_socket
,
...
@@ -1034,13 +1032,6 @@ C_ASSERT( FIELD_OFFSET(struct unlock_file_request, handle) == 12 );
...
@@ -1034,13 +1032,6 @@ C_ASSERT( FIELD_OFFSET(struct unlock_file_request, handle) == 12 );
C_ASSERT
(
FIELD_OFFSET
(
struct
unlock_file_request
,
offset
)
==
16
);
C_ASSERT
(
FIELD_OFFSET
(
struct
unlock_file_request
,
offset
)
==
16
);
C_ASSERT
(
FIELD_OFFSET
(
struct
unlock_file_request
,
count
)
==
24
);
C_ASSERT
(
FIELD_OFFSET
(
struct
unlock_file_request
,
count
)
==
24
);
C_ASSERT
(
sizeof
(
struct
unlock_file_request
)
==
32
);
C_ASSERT
(
sizeof
(
struct
unlock_file_request
)
==
32
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_socket_event_request
,
handle
)
==
12
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_socket_event_request
,
service
)
==
16
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_socket_event_request
,
c_event
)
==
20
);
C_ASSERT
(
sizeof
(
struct
get_socket_event_request
)
==
24
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_socket_event_reply
,
mask
)
==
8
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_socket_event_reply
,
pmask
)
==
12
);
C_ASSERT
(
sizeof
(
struct
get_socket_event_reply
)
==
16
);
C_ASSERT
(
FIELD_OFFSET
(
struct
recv_socket_request
,
oob
)
==
12
);
C_ASSERT
(
FIELD_OFFSET
(
struct
recv_socket_request
,
oob
)
==
12
);
C_ASSERT
(
FIELD_OFFSET
(
struct
recv_socket_request
,
async
)
==
16
);
C_ASSERT
(
FIELD_OFFSET
(
struct
recv_socket_request
,
async
)
==
16
);
C_ASSERT
(
FIELD_OFFSET
(
struct
recv_socket_request
,
status
)
==
56
);
C_ASSERT
(
FIELD_OFFSET
(
struct
recv_socket_request
,
status
)
==
56
);
...
...
server/sock.c
View file @
f7ffd71f
...
@@ -2976,45 +2976,6 @@ struct object *create_socket_device( struct object *root, const struct unicode_s
...
@@ -2976,45 +2976,6 @@ struct object *create_socket_device( struct object *root, const struct unicode_s
return
create_named_object
(
root
,
&
socket_device_ops
,
name
,
attr
,
sd
);
return
create_named_object
(
root
,
&
socket_device_ops
,
name
,
attr
,
sd
);
}
}
/* get socket event parameters */
DECL_HANDLER
(
get_socket_event
)
{
unsigned
int
errors
[
FD_MAX_EVENTS
]
=
{
0
};
struct
sock
*
sock
;
if
(
!
(
sock
=
(
struct
sock
*
)
get_handle_obj
(
current
->
process
,
req
->
handle
,
FILE_READ_ATTRIBUTES
,
&
sock_ops
)))
return
;
if
(
get_unix_fd
(
sock
->
fd
)
==
-
1
)
return
;
reply
->
mask
=
afd_poll_flag_to_win32
(
sock
->
mask
);
reply
->
pmask
=
afd_poll_flag_to_win32
(
sock
->
pending_events
);
errors
[
FD_READ_BIT
]
=
sock_get_error
(
sock
->
errors
[
AFD_POLL_BIT_READ
]
);
errors
[
FD_WRITE_BIT
]
=
sock_get_error
(
sock
->
errors
[
AFD_POLL_BIT_WRITE
]
);
errors
[
FD_OOB_BIT
]
=
sock_get_error
(
sock
->
errors
[
AFD_POLL_BIT_OOB
]
);
errors
[
FD_ACCEPT_BIT
]
=
sock_get_error
(
sock
->
errors
[
AFD_POLL_BIT_ACCEPT
]
);
errors
[
FD_CONNECT_BIT
]
=
sock_get_error
(
sock
->
errors
[
AFD_POLL_BIT_CONNECT_ERR
]
);
if
(
!
(
errors
[
FD_CLOSE_BIT
]
=
sock_get_error
(
sock
->
errors
[
AFD_POLL_BIT_HUP
]
)))
errors
[
FD_CLOSE_BIT
]
=
sock_get_error
(
sock
->
errors
[
AFD_POLL_BIT_RESET
]
);
set_reply_data
(
errors
,
min
(
get_reply_max_size
(),
sizeof
(
errors
)
));
if
(
req
->
service
)
{
if
(
req
->
c_event
)
{
struct
event
*
cevent
=
get_event_obj
(
current
->
process
,
req
->
c_event
,
EVENT_MODIFY_STATE
);
if
(
cevent
)
{
reset_event
(
cevent
);
release_object
(
cevent
);
}
}
sock
->
pending_events
=
0
;
sock_reselect
(
sock
);
}
release_object
(
&
sock
->
obj
);
}
DECL_HANDLER
(
recv_socket
)
DECL_HANDLER
(
recv_socket
)
{
{
struct
sock
*
sock
=
(
struct
sock
*
)
get_handle_obj
(
current
->
process
,
req
->
async
.
handle
,
0
,
&
sock_ops
);
struct
sock
*
sock
=
(
struct
sock
*
)
get_handle_obj
(
current
->
process
,
req
->
async
.
handle
,
0
,
&
sock_ops
);
...
...
server/trace.c
View file @
f7ffd71f
...
@@ -2073,20 +2073,6 @@ static void dump_unlock_file_request( const struct unlock_file_request *req )
...
@@ -2073,20 +2073,6 @@ static void dump_unlock_file_request( const struct unlock_file_request *req )
dump_uint64
(
", count="
,
&
req
->
count
);
dump_uint64
(
", count="
,
&
req
->
count
);
}
}
static
void
dump_get_socket_event_request
(
const
struct
get_socket_event_request
*
req
)
{
fprintf
(
stderr
,
" handle=%04x"
,
req
->
handle
);
fprintf
(
stderr
,
", service=%d"
,
req
->
service
);
fprintf
(
stderr
,
", c_event=%04x"
,
req
->
c_event
);
}
static
void
dump_get_socket_event_reply
(
const
struct
get_socket_event_reply
*
req
)
{
fprintf
(
stderr
,
" mask=%08x"
,
req
->
mask
);
fprintf
(
stderr
,
", pmask=%08x"
,
req
->
pmask
);
dump_varargs_ints
(
", errors="
,
cur_size
);
}
static
void
dump_recv_socket_request
(
const
struct
recv_socket_request
*
req
)
static
void
dump_recv_socket_request
(
const
struct
recv_socket_request
*
req
)
{
{
fprintf
(
stderr
,
" oob=%d"
,
req
->
oob
);
fprintf
(
stderr
,
" oob=%d"
,
req
->
oob
);
...
@@ -4571,7 +4557,6 @@ static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
...
@@ -4571,7 +4557,6 @@ static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
(
dump_func
)
dump_get_volume_info_request
,
(
dump_func
)
dump_get_volume_info_request
,
(
dump_func
)
dump_lock_file_request
,
(
dump_func
)
dump_lock_file_request
,
(
dump_func
)
dump_unlock_file_request
,
(
dump_func
)
dump_unlock_file_request
,
(
dump_func
)
dump_get_socket_event_request
,
(
dump_func
)
dump_recv_socket_request
,
(
dump_func
)
dump_recv_socket_request
,
(
dump_func
)
dump_poll_socket_request
,
(
dump_func
)
dump_poll_socket_request
,
(
dump_func
)
dump_send_socket_request
,
(
dump_func
)
dump_send_socket_request
,
...
@@ -4847,7 +4832,6 @@ static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
...
@@ -4847,7 +4832,6 @@ static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
(
dump_func
)
dump_get_volume_info_reply
,
(
dump_func
)
dump_get_volume_info_reply
,
(
dump_func
)
dump_lock_file_reply
,
(
dump_func
)
dump_lock_file_reply
,
NULL
,
NULL
,
(
dump_func
)
dump_get_socket_event_reply
,
(
dump_func
)
dump_recv_socket_reply
,
(
dump_func
)
dump_recv_socket_reply
,
(
dump_func
)
dump_poll_socket_reply
,
(
dump_func
)
dump_poll_socket_reply
,
(
dump_func
)
dump_send_socket_reply
,
(
dump_func
)
dump_send_socket_reply
,
...
@@ -5123,7 +5107,6 @@ static const char * const req_names[REQ_NB_REQUESTS] = {
...
@@ -5123,7 +5107,6 @@ static const char * const req_names[REQ_NB_REQUESTS] = {
"get_volume_info"
,
"get_volume_info"
,
"lock_file"
,
"lock_file"
,
"unlock_file"
,
"unlock_file"
,
"get_socket_event"
,
"recv_socket"
,
"recv_socket"
,
"poll_socket"
,
"poll_socket"
,
"send_socket"
,
"send_socket"
,
...
...
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