Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
20507a7c
Commit
20507a7c
authored
Jun 10, 2018
by
Zebediah Figura
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Implement esync_map_access().
parent
dbd67501
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
esync.c
server/esync.c
+12
-1
No files found.
server/esync.c
View file @
20507a7c
...
@@ -112,6 +112,7 @@ struct esync
...
@@ -112,6 +112,7 @@ struct esync
};
};
static
void
esync_dump
(
struct
object
*
obj
,
int
verbose
);
static
void
esync_dump
(
struct
object
*
obj
,
int
verbose
);
static
unsigned
int
esync_map_access
(
struct
object
*
obj
,
unsigned
int
access
);
static
void
esync_destroy
(
struct
object
*
obj
);
static
void
esync_destroy
(
struct
object
*
obj
);
const
struct
object_ops
esync_ops
=
const
struct
object_ops
esync_ops
=
...
@@ -126,7 +127,7 @@ const struct object_ops esync_ops =
...
@@ -126,7 +127,7 @@ const struct object_ops esync_ops =
NULL
,
/* satisfied */
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_get_fd
,
/* get_fd */
no_map_access
,
/* map_access */
esync_map_access
,
/* map_access */
default_get_sd
,
/* get_sd */
default_get_sd
,
/* get_sd */
default_set_sd
,
/* set_sd */
default_set_sd
,
/* set_sd */
default_get_full_name
,
/* get_full_name */
default_get_full_name
,
/* get_full_name */
...
@@ -146,6 +147,16 @@ static void esync_dump( struct object *obj, int verbose )
...
@@ -146,6 +147,16 @@ static void esync_dump( struct object *obj, int verbose )
fprintf
(
stderr
,
"esync fd=%d
\n
"
,
esync
->
fd
);
fprintf
(
stderr
,
"esync fd=%d
\n
"
,
esync
->
fd
);
}
}
static
unsigned
int
esync_map_access
(
struct
object
*
obj
,
unsigned
int
access
)
{
/* Sync objects have the same flags. */
if
(
access
&
GENERIC_READ
)
access
|=
STANDARD_RIGHTS_READ
|
EVENT_QUERY_STATE
;
if
(
access
&
GENERIC_WRITE
)
access
|=
STANDARD_RIGHTS_WRITE
|
EVENT_MODIFY_STATE
;
if
(
access
&
GENERIC_EXECUTE
)
access
|=
STANDARD_RIGHTS_EXECUTE
|
SYNCHRONIZE
;
if
(
access
&
GENERIC_ALL
)
access
|=
STANDARD_RIGHTS_ALL
|
EVENT_QUERY_STATE
|
EVENT_MODIFY_STATE
;
return
access
&
~
(
GENERIC_READ
|
GENERIC_WRITE
|
GENERIC_EXECUTE
|
GENERIC_ALL
);
}
static
void
esync_destroy
(
struct
object
*
obj
)
static
void
esync_destroy
(
struct
object
*
obj
)
{
{
struct
esync
*
esync
=
(
struct
esync
*
)
obj
;
struct
esync
*
esync
=
(
struct
esync
*
)
obj
;
...
...
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