PKUOS - Pintos
Pintos source browser for PKU Operating System course
src
tests
userprog
exec-arg.c
Go to the documentation of this file.
1
/** Tests argument passing to child processes. */
2
3
#include <syscall.h>
4
#include "
tests/main.h
"
5
6
void
7
test_main
(
void
)
8
{
9
wait
(
exec
(
"child-args childarg"
));
10
}
test_main
void test_main(void)
Tests argument passing to child processes.
Definition:
exec-arg.c:7
wait
static void wait(struct intq *q, struct thread **waiter)
exec
pid_t exec(const char *file)
Definition:
syscall.c:79
main.h
Generated on Thu Nov 4 2021 19:31:01 for PKUOS - Pintos by
1.9.2