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
1ae869c9
Commit
1ae869c9
authored
Apr 18, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added env ptr to new_process request
parent
78513941
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
server.h
include/server.h
+2
-0
process.c
server/process.c
+2
-0
trace.c
server/trace.c
+3
-1
make_requests
tools/make_requests
+2
-2
No files found.
include/server.h
View file @
1ae869c9
...
...
@@ -49,6 +49,7 @@ struct new_process_request
int
hstdin
;
/* handle for stdin */
int
hstdout
;
/* handle for stdout */
int
hstderr
;
/* handle for stderr */
void
*
env_ptr
;
/* pointer to environment (FIXME: hack) */
char
cmd_line
[
0
];
/* command line */
};
struct
new_process_reply
...
...
@@ -90,6 +91,7 @@ struct init_process_reply
int
hstdin
;
/* handle for stdin */
int
hstdout
;
/* handle for stdout */
int
hstderr
;
/* handle for stderr */
void
*
env_ptr
;
/* pointer to environment (FIXME: hack) */
};
...
...
server/process.c
View file @
1ae869c9
...
...
@@ -125,6 +125,7 @@ struct process *create_initial_process(void)
GENERIC_READ
|
GENERIC_WRITE
|
SYNCHRONIZE
,
1
);
info
->
hstderr
=
alloc_handle
(
&
initial_process
,
initial_process
.
console_out
,
GENERIC_READ
|
GENERIC_WRITE
|
SYNCHRONIZE
,
1
);
info
->
env_ptr
=
NULL
;
initial_process
.
info
=
info
;
grab_object
(
&
initial_process
);
/* so that we never free it */
return
&
initial_process
;
...
...
@@ -232,6 +233,7 @@ int get_process_init_info( struct process *process, struct init_process_reply *r
reply
->
hstdin
=
info
->
hstdin
;
reply
->
hstdout
=
info
->
hstdout
;
reply
->
hstderr
=
info
->
hstderr
;
reply
->
env_ptr
=
info
->
env_ptr
;
free
(
info
);
return
1
;
}
...
...
server/trace.c
View file @
1ae869c9
...
...
@@ -14,6 +14,7 @@ static int dump_new_process_request( struct new_process_request *req, int len )
fprintf
(
stderr
,
" hstdin=%d,"
,
req
->
hstdin
);
fprintf
(
stderr
,
" hstdout=%d,"
,
req
->
hstdout
);
fprintf
(
stderr
,
" hstderr=%d,"
,
req
->
hstderr
);
fprintf
(
stderr
,
" env_ptr=%p,"
,
req
->
env_ptr
);
fprintf
(
stderr
,
" cmd_line=
\"
%.*s
\"
"
,
len
-
(
int
)
sizeof
(
*
req
),
(
char
*
)(
req
+
1
)
);
return
len
;
}
...
...
@@ -57,7 +58,8 @@ static int dump_init_process_reply( struct init_process_reply *req, int len )
fprintf
(
stderr
,
" start_flags=%d,"
,
req
->
start_flags
);
fprintf
(
stderr
,
" hstdin=%d,"
,
req
->
hstdin
);
fprintf
(
stderr
,
" hstdout=%d,"
,
req
->
hstdout
);
fprintf
(
stderr
,
" hstderr=%d"
,
req
->
hstderr
);
fprintf
(
stderr
,
" hstderr=%d,"
,
req
->
hstderr
);
fprintf
(
stderr
,
" env_ptr=%p"
,
req
->
env_ptr
);
return
(
int
)
sizeof
(
*
req
);
}
...
...
tools/make_requests
View file @
1ae869c9
...
...
@@ -220,8 +220,8 @@ sub DO_REPLY
next
if
/^{$/
;
s!/\*.*\*/!!g
;
next
if
/^\s*$/
;
/ *(\w+\**( +\w+\**)*) +(\w+);/
or
die
"Unrecognized syntax $_"
;
my
$type
=
$1
;
/ *(\w+\**( +\w+\**)*) +(\w+)
(\[0\])?
;/
or
die
"Unrecognized syntax $_"
;
my
$type
=
$1
.
(
$4
||
""
)
;
my
$var
=
$3
;
die
"Unrecognized type $type"
unless
defined
(
$formats
{
$type
});
push
@struct
,
$type
,
$var
;
...
...
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