repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
posixc.library: refactor __exec_do to make clear separate between regular code path...
[AROS.git]
/
test
/
clib
/
execl2_slave.c
blob
39733e67148fcca9ecb2be96de76a7b58648012d
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <string.h>
4
5
#include
"test.h"
6
7
int
main
(
int
argc
,
const char
*
argv
[])
8
{
9
int
fd
;
10
FILE
*
f
;
11
12
sscanf
(
argv
[
1
],
"%d"
, &
fd
);
13
f
=
fdopen
(
fd
,
"r"
);
14
TEST
(
f
!=
NULL
);
15
16
char
line
[
10
];
17
fseek
(
f
,
0
,
SEEK_SET
);
18
TEST
(
fgets
(
line
,
10
,
f
) !=
NULL
);
19
20
TEST
(
strcmp
(
line
,
"OK
\n
"
) ==
0
);
21
22
return
0
;
23
}
24
25
void
cleanup
(
void
)
26
{
27
/* NOP */
28
return
;
29
}