Gitiles
Code Review
Sign In
192.168.1.100
/
T106_DC
/
9ed821d7e5d875a3395740a9cc2545671fa429b7
/
.
/
ap
/
build
/
uClibc
/
test
/
unistd
/
exec-null.c
blob: 3df99f3ce8b1144a36406cb63add9e8b0cb17e6d [
file
] [
log
] [
blame
]
/* make sure we handle argv[0] == NULL */
#include
<unistd.h>
int
main
(
int
argc
,
char
*
argv
[])
{
if
(
argc
==
0
)
return
0
;
char
*
exec_argv
[
1
],
*
exec_envp
[
1
];
exec_argv
[
0
]
=
exec_envp
[
0
]
=
NULL
;
return
execve
(
"./exec-null"
,
exec_argv
,
exec_envp
);
}