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
a286cd30
Commit
a286cd30
authored
May 22, 2001
by
Mike Bond
Committed by
Alexandre Julliard
May 22, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed spawnlp and added exec variants.
parent
99abdec3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
8 deletions
+85
-8
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+6
-6
process.c
dlls/msvcrt/process.c
+79
-2
No files found.
dlls/msvcrt/msvcrt.spec
View file @
a286cd30
...
...
@@ -211,14 +211,14 @@ debug_channels (msvcrt)
@ cdecl _errno() MSVCRT__errno
@ cdecl _except_handler2(ptr ptr ptr ptr) _except_handler2
@ cdecl _except_handler3(ptr ptr ptr ptr) _except_handler3
@
stub _execl #(str str) varargs
@
varargs _execl(str str) _execl
@ stub _execle #(str str) varargs
@
stub _execlp #(str str) varargs
@
varargs _execlp(str str) _execlp
@ stub _execlpe #(str str) varargs
@
stub _execv #(str str)
@
stub _execve #(str str str)
@
stub _execvp #(str str)
@
stub _execvpe #(str str str)
@
cdecl _execv(str str) _execv
@
cdecl _execve(str str str) _execve
@
cdecl _execvp(str str) _execvp
@
cdecl _execvpe(str str str) _execvpe
@ cdecl _exit(long) MSVCRT__exit
@ cdecl _expand(ptr long) _expand
@ cdecl _fcloseall() _fcloseall
...
...
dlls/msvcrt/process.c
View file @
a286cd30
...
...
@@ -182,6 +182,83 @@ int _cwait(int *status, int pid, int action)
}
/*********************************************************************
* _execl (MSVCRT.@)
*/
int
_execl
(
const
char
*
name
,
const
char
*
arg0
,
...)
{
va_list
ap
;
char
*
args
;
int
ret
;
va_start
(
ap
,
arg0
);
args
=
msvcrt_valisttos
(
arg0
,
ap
,
' '
);
va_end
(
ap
);
ret
=
msvcrt_spawn
(
_P_OVERLAY
,
name
,
args
,
NULL
);
MSVCRT_free
(
args
);
return
ret
;
}
/*********************************************************************
* _execlp (MSVCRT.@)
*/
int
_execlp
(
const
char
*
name
,
const
char
*
arg0
,
...)
{
va_list
ap
;
char
*
args
;
int
ret
;
char
fullname
[
MAX_PATH
];
_searchenv
(
name
,
"PATH"
,
fullname
);
va_start
(
ap
,
arg0
);
args
=
msvcrt_valisttos
(
arg0
,
ap
,
' '
);
va_end
(
ap
);
ret
=
msvcrt_spawn
(
_P_OVERLAY
,
fullname
[
0
]
?
fullname
:
name
,
args
,
NULL
);
MSVCRT_free
(
args
);
return
ret
;
}
/*********************************************************************
* _execv (MSVCRT.@)
*/
int
_execv
(
const
char
*
name
,
char
*
const
*
argv
)
{
return
_spawnve
(
_P_OVERLAY
,
name
,
(
const
char
*
const
*
)
argv
,
NULL
);
}
/*********************************************************************
* _execve (MSVCRT.@)
*/
int
_execve
(
const
char
*
name
,
char
*
const
*
argv
,
const
char
*
const
*
envv
)
{
return
_spawnve
(
_P_OVERLAY
,
name
,
(
const
char
*
const
*
)
argv
,
envv
);
}
/*********************************************************************
* _execvpe (MSVCRT.@)
*/
int
_execvpe
(
const
char
*
name
,
char
*
const
*
argv
,
const
char
*
const
*
envv
)
{
char
fullname
[
MAX_PATH
];
_searchenv
(
name
,
"PATH"
,
fullname
);
return
_spawnve
(
_P_OVERLAY
,
fullname
[
0
]
?
fullname
:
name
,
(
const
char
*
const
*
)
argv
,
envv
);
}
/*********************************************************************
* _execvp (MSVCRT.@)
*/
int
_execvp
(
const
char
*
name
,
char
*
const
*
argv
)
{
return
_execvpe
(
name
,
argv
,
NULL
);
}
/*********************************************************************
* _spawnl (MSVCRT.@)
*/
int
_spawnl
(
int
flags
,
const
char
*
name
,
const
char
*
arg0
,
...)
...
...
@@ -201,7 +278,7 @@ int _spawnl(int flags, const char* name, const char* arg0, ...)
}
/*********************************************************************
* _spawnl (MSVCRT.@)
* _spawnl
p
(MSVCRT.@)
*/
int
_spawnlp
(
int
flags
,
const
char
*
name
,
const
char
*
arg0
,
...)
{
...
...
@@ -216,7 +293,7 @@ int _spawnlp(int flags, const char* name, const char* arg0, ...)
args
=
msvcrt_valisttos
(
arg0
,
ap
,
' '
);
va_end
(
ap
);
ret
=
msvcrt_spawn
(
flags
,
name
,
args
,
NULL
);
ret
=
msvcrt_spawn
(
flags
,
fullname
[
0
]
?
fullname
:
name
,
args
,
NULL
);
MSVCRT_free
(
args
);
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