Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
1d0cb0d000768c01536d61cbb0a2d6e8a9af52eb
/
.
/
none
/
tests
/
execve.c
blob: 5f9766695608c861b6f4cf9db587be3c41a7f331 [
file
] [
log
] [
blame
]
#include
<stdio.h>
#include
<stdlib.h>
#include
<unistd.h>
int
main
(
int
argc
,
char
**
argv
)
{
if
(
argc
==
1
)
{
if
(
execve
(
argv
[
0
],
NULL
,
NULL
)
<
0
)
{
perror
(
"execve"
);
exit
(
1
);
}
}
exit
(
0
);
}