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
27b1aec9
Commit
27b1aec9
authored
Dec 09, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use attributes instead of inherit flag in file requests.
parent
bc30303c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
13 deletions
+15
-13
file.c
dlls/ntdll/file.c
+1
-1
server.c
dlls/ntdll/server.c
+3
-3
server_protocol.h
include/wine/server_protocol.h
+3
-3
file.c
server/file.c
+4
-2
protocol.def
server/protocol.def
+2
-2
trace.c
server/trace.c
+2
-2
No files found.
dlls/ntdll/file.c
View file @
27b1aec9
...
...
@@ -214,7 +214,7 @@ NTSTATUS WINAPI NtCreateFile( PHANDLE handle, ACCESS_MASK access, POBJECT_ATTRIB
SERVER_START_REQ
(
create_file
)
{
req
->
access
=
access
;
req
->
inherit
=
(
attr
->
Attributes
&
OBJ_INHERIT
)
!=
0
;
req
->
attributes
=
attr
->
Attributes
;
req
->
sharing
=
sharing
;
req
->
create
=
disposition
;
req
->
options
=
options
;
...
...
dlls/ntdll/server.c
View file @
27b1aec9
...
...
@@ -455,9 +455,9 @@ int wine_server_fd_to_handle( int fd, unsigned int access, int inherit, obj_hand
SERVER_START_REQ
(
alloc_file_handle
)
{
req
->
access
=
access
;
req
->
inherit
=
inherit
;
req
->
fd
=
fd
;
req
->
access
=
access
;
req
->
attributes
=
inherit
?
OBJ_INHERIT
:
0
;
req
->
fd
=
fd
;
if
(
!
(
ret
=
wine_server_call
(
req
)))
*
handle
=
reply
->
handle
;
}
SERVER_END_REQ
;
...
...
include/wine/server_protocol.h
View file @
27b1aec9
...
...
@@ -754,7 +754,7 @@ struct create_file_request
{
struct
request_header
__header
;
unsigned
int
access
;
int
inherit
;
unsigned
int
attributes
;
unsigned
int
sharing
;
int
create
;
unsigned
int
options
;
...
...
@@ -773,7 +773,7 @@ struct alloc_file_handle_request
{
struct
request_header
__header
;
unsigned
int
access
;
int
inherit
;
unsigned
int
attributes
;
int
fd
;
};
struct
alloc_file_handle_reply
...
...
@@ -4316,6 +4316,6 @@ union generic_reply
struct
query_symlink_reply
query_symlink_reply
;
};
#define SERVER_PROTOCOL_VERSION 20
8
#define SERVER_PROTOCOL_VERSION 20
9
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/file.c
View file @
27b1aec9
...
...
@@ -356,7 +356,8 @@ DECL_HANDLER(create_file)
if
((
file
=
create_file
(
get_req_data
(),
get_req_data_size
(),
req
->
access
,
req
->
sharing
,
req
->
create
,
req
->
options
,
req
->
attrs
)))
{
reply
->
handle
=
alloc_handle
(
current
->
process
,
file
,
req
->
access
,
req
->
inherit
);
reply
->
handle
=
alloc_handle
(
current
->
process
,
file
,
req
->
access
,
req
->
attributes
&
OBJ_INHERIT
);
release_object
(
file
);
}
}
...
...
@@ -375,7 +376,8 @@ DECL_HANDLER(alloc_file_handle)
}
if
((
file
=
create_file_for_fd
(
fd
,
req
->
access
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
)))
{
reply
->
handle
=
alloc_handle
(
current
->
process
,
file
,
req
->
access
,
req
->
inherit
);
reply
->
handle
=
alloc_handle
(
current
->
process
,
file
,
req
->
access
,
req
->
attributes
&
OBJ_INHERIT
);
release_object
(
file
);
}
}
...
...
server/protocol.def
View file @
27b1aec9
...
...
@@ -590,7 +590,7 @@ enum event_op { PULSE_EVENT, SET_EVENT, RESET_EVENT };
/* Create a file */
@REQ(create_file)
unsigned int access; /* wanted access rights */
int inherit; /* inherit flag
*/
unsigned int attributes; /* object attributes
*/
unsigned int sharing; /* sharing flags */
int create; /* file create action */
unsigned int options; /* file options */
...
...
@@ -604,7 +604,7 @@ enum event_op { PULSE_EVENT, SET_EVENT, RESET_EVENT };
/* Allocate a file handle for a Unix fd */
@REQ(alloc_file_handle)
unsigned int access; /* wanted access rights */
int inherit; /* inherit flag
*/
unsigned int attributes; /* object attributes
*/
int fd; /* file descriptor on the client side */
@REPLY
obj_handle_t handle; /* handle to the file */
...
...
server/trace.c
View file @
27b1aec9
...
...
@@ -1008,7 +1008,7 @@ static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
static
void
dump_create_file_request
(
const
struct
create_file_request
*
req
)
{
fprintf
(
stderr
,
" access=%08x,"
,
req
->
access
);
fprintf
(
stderr
,
"
inherit=%d,"
,
req
->
inherit
);
fprintf
(
stderr
,
"
attributes=%08x,"
,
req
->
attributes
);
fprintf
(
stderr
,
" sharing=%08x,"
,
req
->
sharing
);
fprintf
(
stderr
,
" create=%d,"
,
req
->
create
);
fprintf
(
stderr
,
" options=%08x,"
,
req
->
options
);
...
...
@@ -1025,7 +1025,7 @@ static void dump_create_file_reply( const struct create_file_reply *req )
static
void
dump_alloc_file_handle_request
(
const
struct
alloc_file_handle_request
*
req
)
{
fprintf
(
stderr
,
" access=%08x,"
,
req
->
access
);
fprintf
(
stderr
,
"
inherit=%d,"
,
req
->
inherit
);
fprintf
(
stderr
,
"
attributes=%08x,"
,
req
->
attributes
);
fprintf
(
stderr
,
" fd=%d"
,
req
->
fd
);
}
...
...
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