repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FreeBSD regtest: add fakes for older versions in scalar
[valgrind.git]
/
memcheck
/
tests
/
execve1.c
blob
df36f145e057e67cee8a85f4453b31ce4652eac8
1
#include <unistd.h>
2
3
int
main
(
void
)
4
{
5
char
*
null_filename
=
NULL
;
6
char
*
bad
[
2
] = { (
char
*)
1
,
NULL
};
7
char
*
good
[
2
] = {
"true"
,
NULL
};
8
9
execve
(
null_filename
,
bad
,
bad
);
10
execve
(
"/bin/true"
,
good
,
good
);
11
12
return
0
;
13
}