Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Context Navigation
Back to Ticket #323
Ticket #323
: spawn.c
File spawn.c,
279 bytes
(added by
KO Myung-Hun
,
10 years ago
)
testcase
Line
1
#include
<stdio.h>
2
#include
<stdlib.h>
3
#include
<process.h>
4
5
#define NAME "ls"
6
7
int
main
(
void
)
8
{
9
mkdir
(
NAME
,
0755
);
10
11
printf
(
"spawnlp() = %d
\n
"
,
spawnlp
(
P_WAIT
,
NAME
,
NAME
,
NULL
));
12
perror
(
"spawnlp: "
NAME
);
13
14
rmdir
(
NAME
);
15
16
return
0
;
17
}
Download in other formats:
Original Format