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
cleanup composer/compositing/composition -> compositor
[AROS.git]
/
test
/
clib
/
execl2.c
blob
0e75519cd9a0ff1b4ae209787b8d629f9fafc8b9
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <unistd.h>
4
#include <fcntl.h>
5
6
#include
"test.h"
7
8
int
main
(
void
)
9
{
10
int
fd
;
11
FILE
*
f
;
12
13
fd
=
open
(
"execl2_out"
,
O_RDWR
|
O_CREAT
,
00700
);
14
TEST
(
fd
!= -
1
);
15
16
f
=
fdopen
(
fd
,
"w"
);
17
TEST
(
f
!=
NULL
);
18
19
fputs
(
"OK
\n
"
,
f
);
20
fflush
(
f
);
21
22
char
arg
[
10
];
23
sprintf
(
arg
,
"%d"
,
fd
);
24
execl
(
"execl2_slave"
,
"execl2_slave"
,
arg
,
NULL
);
25
TEST
(
0
);
/* Should not be reached */
26
27
exit
(
20
);
28
}
29
30
void
cleanup
(
void
)
31
{
32
/* NOP */
33
return
;
34
}