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
43ac582d
Commit
43ac582d
authored
Apr 09, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libport: Rename spawnvp to _spawnvp to avoid the deprecated name.
parent
c8ada1fc
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
14 additions
and
21 deletions
+14
-21
configure
configure
+0
-1
configure.ac
configure.ac
+0
-1
config.h.in
include/config.h.in
+0
-3
port.h
include/wine/port.h
+2
-2
spawn.c
libs/port/spawn.c
+5
-7
desktop.c
programs/explorer/desktop.c
+1
-1
main.c
programs/winebrowser/main.c
+1
-1
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+2
-2
winevdm.c
programs/winevdm/winevdm.c
+1
-1
utils.c
tools/winebuild/utils.c
+1
-1
utils.c
tools/winegcc/utils.c
+1
-1
No files found.
configure
View file @
43ac582d
...
...
@@ -13066,7 +13066,6 @@ for ac_func in \
sigaltstack
\
sigprocmask
\
snprintf
\
spawnvp
\
statfs
\
statvfs
\
strcasecmp
\
...
...
configure.ac
View file @
43ac582d
...
...
@@ -2011,7 +2011,6 @@ AC_CHECK_FUNCS(\
sigaltstack \
sigprocmask \
snprintf \
spawnvp \
statfs \
statvfs \
strcasecmp \
...
...
include/config.h.in
View file @
43ac582d
...
...
@@ -734,9 +734,6 @@
/* Define to 1 if you have the `socketpair' function. */
#undef HAVE_SOCKETPAIR
/* Define to 1 if you have the `spawnvp' function. */
#undef HAVE_SPAWNVP
/* Define to 1 if the system has the type `ssize_t'. */
#undef HAVE_SSIZE_T
...
...
include/wine/port.h
View file @
43ac582d
...
...
@@ -353,8 +353,8 @@ extern int mkstemps(char *template, int suffix_len);
# define _P_NOWAITO 3
# define _P_DETACH 4
#endif
#ifndef HAVE_SPAWNVP
extern
int
spawnvp
(
int
mode
,
const
char
*
cmdname
,
const
char
*
const
argv
[]);
#ifndef HAVE_
_
SPAWNVP
extern
int
_
spawnvp
(
int
mode
,
const
char
*
cmdname
,
const
char
*
const
argv
[]);
#endif
/* Interlocked functions */
...
...
libs/port/spawn.c
View file @
43ac582d
...
...
@@ -21,6 +21,8 @@
#include "config.h"
#include "wine/port.h"
#ifndef HAVE__SPAWNVP
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
...
...
@@ -32,10 +34,8 @@
# include <unistd.h>
#endif
#ifndef HAVE_SPAWNVP
int
spawnvp
(
int
mode
,
const
char
*
cmdname
,
const
char
*
const
argv
[])
int
_spawnvp
(
int
mode
,
const
char
*
cmdname
,
const
char
*
const
argv
[])
{
#ifndef HAVE__SPAWNVP
int
pid
,
status
,
wret
;
if
(
mode
==
_P_OVERLAY
)
...
...
@@ -93,8 +93,6 @@ int spawnvp(int mode, const char *cmdname, const char *const argv[])
}
return
pid
;
#else
/* HAVE__SPAWNVP */
return
_spawnvp
(
mode
,
cmdname
,
argv
);
#endif
/* HAVE__SPAWNVP */
}
#endif
/* HAVE_SPAWNVP */
#endif
/* HAVE__SPAWNVP */
programs/explorer/desktop.c
View file @
43ac582d
...
...
@@ -45,7 +45,7 @@ static BOOL start_screensaver( void )
if
(
using_root
)
{
const
char
*
argv
[
3
]
=
{
"xdg-screensaver"
,
"activate"
,
NULL
};
int
pid
=
spawnvp
(
_P_DETACH
,
argv
[
0
],
argv
);
int
pid
=
_
spawnvp
(
_P_DETACH
,
argv
[
0
],
argv
);
if
(
pid
>
0
)
{
WINE_TRACE
(
"started process %d
\n
"
,
pid
);
...
...
programs/winebrowser/main.c
View file @
43ac582d
...
...
@@ -90,7 +90,7 @@ static int launch_app( WCHAR *candidates, const WCHAR *argv1 )
argv_new
[
1
]
=
cmdline
;
argv_new
[
2
]
=
NULL
;
spawnvp
(
_P_OVERLAY
,
app
,
argv_new
);
/* only returns on error */
_
spawnvp
(
_P_OVERLAY
,
app
,
argv_new
);
/* only returns on error */
app
=
strtok
(
NULL
,
","
);
/* grab the next app */
}
WINE_ERR
(
"could not find a suitable app to run
\n
"
);
...
...
programs/winemenubuilder/winemenubuilder.c
View file @
43ac582d
...
...
@@ -3371,11 +3371,11 @@ static void RefreshFileTypeAssociations(void)
argv
[
0
]
=
"update-mime-database"
;
argv
[
1
]
=
mime_dir
;
argv
[
2
]
=
NULL
;
spawnvp
(
_P_DETACH
,
argv
[
0
],
argv
);
_
spawnvp
(
_P_DETACH
,
argv
[
0
],
argv
);
argv
[
0
]
=
"update-desktop-database"
;
argv
[
1
]
=
applications_dir
;
spawnvp
(
_P_DETACH
,
argv
[
0
],
argv
);
_
spawnvp
(
_P_DETACH
,
argv
[
0
],
argv
);
}
end:
...
...
programs/winevdm/winevdm.c
View file @
43ac582d
...
...
@@ -198,7 +198,7 @@ static void start_dosbox( const char *appname, const char *args )
args
[
1
]
=
"-conf"
;
args
[
2
]
=
config_file
;
args
[
3
]
=
NULL
;
ret
=
spawnvp
(
_P_WAIT
,
args
[
0
],
args
);
ret
=
_
spawnvp
(
_P_WAIT
,
args
[
0
],
args
);
}
CloseHandle
(
file
);
DeleteFileW
(
config
);
...
...
tools/winebuild/utils.c
View file @
43ac582d
...
...
@@ -268,7 +268,7 @@ void spawn( struct strarray *args )
for
(
i
=
0
;
args
->
str
[
i
];
i
++
)
fprintf
(
stderr
,
"%s%c"
,
args
->
str
[
i
],
args
->
str
[
i
+
1
]
?
' '
:
'\n'
);
if
((
status
=
spawnvp
(
_P_WAIT
,
args
->
str
[
0
],
args
->
str
)))
if
((
status
=
_
spawnvp
(
_P_WAIT
,
args
->
str
[
0
],
args
->
str
)))
{
if
(
status
>
0
)
fatal_error
(
"%s failed with status %u
\n
"
,
args
->
str
[
0
],
status
);
else
fatal_perror
(
"winebuild"
);
...
...
tools/winegcc/utils.c
View file @
43ac582d
...
...
@@ -334,7 +334,7 @@ void spawn(const strarray* prefix, const strarray* args, int ignore_errors)
printf
(
"
\n
"
);
}
if
((
status
=
spawnvp
(
_P_WAIT
,
argv
[
0
],
argv
))
&&
!
ignore_errors
)
if
((
status
=
_
spawnvp
(
_P_WAIT
,
argv
[
0
],
argv
))
&&
!
ignore_errors
)
{
if
(
status
>
0
)
error
(
"%s failed
\n
"
,
argv
[
0
]);
else
perror
(
"winegcc"
);
...
...
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