repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
nscd: Release read lock after resetting timeout.
[glibc.git]
/
posix
/
tst-execl1.c
blob
1cfa36df1237318eb4e8ce4d43bf3bf5f11d9fce
1
#include <errno.h>
2
#include <stdio.h>
3
#include <unistd.h>
4
5
static int
6
do_test
(
void
)
7
{
8
static const char
prog
[] =
"does-not-exist"
;
9
errno
=
0
;
10
execl
(
prog
,
prog
,
NULL
);
11
12
if
(
errno
!=
ENOENT
)
13
{
14
printf
(
"errno = %d (%m), expected ENOENT
\n
"
,
errno
);
15
return
1
;
16
}
17
18
return
0
;
19
}
20
21
#define TEST_FUNCTION do_test ()
22
#include
"../test-skeleton.c"