Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
646d621f
Commit
646d621f
authored
23 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Added get_file_info support to named pipes and sockets to avoid
breaking the get_handle_fd request.
parent
32aee1ae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
server/named_pipe.c
+20
-1
20 additions, 1 deletion
server/named_pipe.c
server/sock.c
+20
-1
20 additions, 1 deletion
server/sock.c
with
40 additions
and
2 deletions
server/named_pipe.c
+
20
−
1
View file @
646d621f
...
...
@@ -84,6 +84,7 @@ static const struct object_ops named_pipe_ops =
static
void
pipe_user_dump
(
struct
object
*
obj
,
int
verbose
);
static
void
pipe_user_destroy
(
struct
object
*
obj
);
static
int
pipe_user_get_fd
(
struct
object
*
obj
);
static
int
pipe_user_get_info
(
struct
object
*
obj
,
struct
get_file_info_request
*
req
);
static
const
struct
object_ops
pipe_user_ops
=
{
...
...
@@ -97,7 +98,7 @@ static const struct object_ops pipe_user_ops =
default_poll_event
,
/* poll_event */
pipe_user_get_fd
,
/* get_fd */
no_flush
,
/* flush */
no_get_file
_info
,
/* get_file_info */
pipe_user_get
_info
,
/* get_file_info */
pipe_user_destroy
/* destroy */
};
...
...
@@ -167,6 +168,24 @@ static int pipe_user_get_fd( struct object *obj )
return
user
->
obj
.
fd
;
}
static
int
pipe_user_get_info
(
struct
object
*
obj
,
struct
get_file_info_request
*
req
)
{
if
(
req
)
{
req
->
type
=
FILE_TYPE_PIPE
;
req
->
attr
=
0
;
req
->
access_time
=
0
;
req
->
write_time
=
0
;
req
->
size_high
=
0
;
req
->
size_low
=
0
;
req
->
links
=
0
;
req
->
index_high
=
0
;
req
->
index_low
=
0
;
req
->
serial
=
0
;
}
return
FD_TYPE_DEFAULT
;
}
static
struct
named_pipe
*
create_named_pipe
(
const
WCHAR
*
name
,
size_t
len
)
{
struct
named_pipe
*
pipe
;
...
...
This diff is collapsed.
Click to expand it.
server/sock.c
+
20
−
1
View file @
646d621f
...
...
@@ -54,6 +54,7 @@ static int sock_signaled( struct object *obj, struct thread *thread );
static
int
sock_get_poll_events
(
struct
object
*
obj
);
static
void
sock_poll_event
(
struct
object
*
obj
,
int
event
);
static
int
sock_get_fd
(
struct
object
*
obj
);
static
int
sock_get_info
(
struct
object
*
obj
,
struct
get_file_info_request
*
req
);
static
void
sock_destroy
(
struct
object
*
obj
);
static
int
sock_get_error
(
int
err
);
static
void
sock_set_error
(
void
);
...
...
@@ -70,7 +71,7 @@ static const struct object_ops sock_ops =
sock_poll_event
,
/* poll_event */
sock_get_fd
,
/* get_fd */
no_flush
,
/* flush */
no
_get_
file_
info
,
/* get_file_info */
sock
_get_info
,
/* get_file_info */
sock_destroy
/* destroy */
};
...
...
@@ -266,6 +267,24 @@ static int sock_get_fd( struct object *obj )
return
sock
->
obj
.
fd
;
}
static
int
sock_get_info
(
struct
object
*
obj
,
struct
get_file_info_request
*
req
)
{
if
(
req
)
{
req
->
type
=
FILE_TYPE_PIPE
;
req
->
attr
=
0
;
req
->
access_time
=
0
;
req
->
write_time
=
0
;
req
->
size_high
=
0
;
req
->
size_low
=
0
;
req
->
links
=
0
;
req
->
index_high
=
0
;
req
->
index_low
=
0
;
req
->
serial
=
0
;
}
return
FD_TYPE_DEFAULT
;
}
static
void
sock_destroy
(
struct
object
*
obj
)
{
struct
sock
*
sock
=
(
struct
sock
*
)
obj
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment