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
06fdbd6e
Commit
06fdbd6e
authored
Dec 10, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Rename the "flags" field of struct poll_req to "mask".
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7747bf95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
sock.c
server/sock.c
+7
-7
No files found.
server/sock.c
View file @
06fdbd6e
...
...
@@ -128,7 +128,7 @@ struct poll_req
struct
{
struct
sock
*
sock
;
int
flags
;
int
mask
;
}
sockets
[
1
];
};
...
...
@@ -862,13 +862,13 @@ static void complete_async_polls( struct sock *sock, int event, int error )
for
(
i
=
0
;
i
<
req
->
count
;
++
i
)
{
if
(
req
->
sockets
[
i
].
sock
!=
sock
)
continue
;
if
(
!
(
req
->
sockets
[
i
].
flags
&
flags
))
continue
;
if
(
!
(
req
->
sockets
[
i
].
mask
&
flags
))
continue
;
if
(
debug_level
)
fprintf
(
stderr
,
"completing poll for socket %p, wanted %#x got %#x
\n
"
,
sock
,
req
->
sockets
[
i
].
flags
,
flags
);
sock
,
req
->
sockets
[
i
].
mask
,
flags
);
req
->
output
[
i
].
flags
=
req
->
sockets
[
i
].
flags
&
flags
;
req
->
output
[
i
].
flags
=
req
->
sockets
[
i
].
mask
&
flags
;
req
->
output
[
i
].
status
=
sock_get_ntstatus
(
error
);
complete_async_poll
(
req
,
STATUS_SUCCESS
);
...
...
@@ -1220,7 +1220,7 @@ static int sock_get_poll_events( struct fd *fd )
{
if
(
req
->
sockets
[
i
].
sock
!=
sock
)
continue
;
ev
|=
poll_flags_from_afd
(
sock
,
req
->
sockets
[
i
].
flags
);
ev
|=
poll_flags_from_afd
(
sock
,
req
->
sockets
[
i
].
mask
);
}
}
...
...
@@ -2936,7 +2936,7 @@ static void poll_socket( struct sock *poll_sock, struct async *async, int exclus
free
(
output
);
return
;
}
req
->
sockets
[
i
].
flags
=
input
[
i
].
flags
;
req
->
sockets
[
i
].
mask
=
input
[
i
].
flags
;
}
req
->
exclusive
=
exclusive
;
...
...
@@ -2954,7 +2954,7 @@ static void poll_socket( struct sock *poll_sock, struct async *async, int exclus
for
(
i
=
0
;
i
<
count
;
++
i
)
{
struct
sock
*
sock
=
req
->
sockets
[
i
].
sock
;
int
mask
=
req
->
sockets
[
i
].
flags
;
int
mask
=
req
->
sockets
[
i
].
mask
;
int
flags
=
poll_single_socket
(
sock
,
mask
);
if
(
flags
)
...
...
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