Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9d3ee0d7
Commit
9d3ee0d7
authored
Jul 16, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented _spawnle and _spawnlpe.
parent
314150f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
4 deletions
+43
-4
process.c
dlls/msvcrt/process.c
+43
-4
No files found.
dlls/msvcrt/process.c
View file @
9d3ee0d7
...
...
@@ -356,8 +356,26 @@ int _spawnl(int flags, const char* name, const char* arg0, ...)
*/
int
_spawnle
(
int
flags
,
const
char
*
name
,
const
char
*
arg0
,
...)
{
FIXME
(
"stub
\n
"
);
return
-
1
;
va_list
ap
;
char
*
args
,
*
envs
=
NULL
;
const
char
*
const
*
envp
;
int
ret
;
va_start
(
ap
,
arg0
);
args
=
msvcrt_valisttos
(
arg0
,
ap
,
' '
);
va_end
(
ap
);
va_start
(
ap
,
arg0
);
while
(
va_arg
(
ap
,
char
*
)
!=
NULL
)
/*nothing*/
;
envp
=
va_arg
(
ap
,
const
char
*
const
*
);
if
(
envp
)
envs
=
msvcrt_argvtos
(
envp
,
0
);
va_end
(
ap
);
ret
=
msvcrt_spawn
(
flags
,
name
,
args
,
envs
);
MSVCRT_free
(
args
);
if
(
envs
)
MSVCRT_free
(
envs
);
return
ret
;
}
...
...
@@ -391,8 +409,29 @@ int _spawnlp(int flags, const char* name, const char* arg0, ...)
*/
int
_spawnlpe
(
int
flags
,
const
char
*
name
,
const
char
*
arg0
,
...)
{
FIXME
(
"stub
\n
"
);
return
-
1
;
va_list
ap
;
char
*
args
,
*
envs
=
NULL
;
const
char
*
const
*
envp
;
int
ret
;
char
fullname
[
MAX_PATH
];
_searchenv
(
name
,
"PATH"
,
fullname
);
va_start
(
ap
,
arg0
);
args
=
msvcrt_valisttos
(
arg0
,
ap
,
' '
);
va_end
(
ap
);
va_start
(
ap
,
arg0
);
while
(
va_arg
(
ap
,
char
*
)
!=
NULL
)
/*nothing*/
;
envp
=
va_arg
(
ap
,
const
char
*
const
*
);
if
(
envp
)
envs
=
msvcrt_argvtos
(
envp
,
0
);
va_end
(
ap
);
ret
=
msvcrt_spawn
(
flags
,
fullname
[
0
]
?
fullname
:
name
,
args
,
envs
);
MSVCRT_free
(
args
);
if
(
envs
)
MSVCRT_free
(
envs
);
return
ret
;
}
/*********************************************************************
...
...
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