CS318 - Pintos
Pintos source browser for JHU CS318 course
src
tests
userprog
exec-bound.c
Go to the documentation of this file.
1
/** Exec a child with an exec string that spans a page boundary. */
2
3
#include <syscall.h>
4
#include "
tests/userprog/boundary.h
"
5
#include "
tests/lib.h
"
6
#include "
tests/main.h
"
7
8
void
9
test_main
(
void
)
10
{
11
wait
(
exec
(
copy_string_across_boundary
(
"child-args arg1 arg2"
)));
12
}
lib.h
exec
pid_t exec(const char *file)
Definition:
syscall.c:79
copy_string_across_boundary
char * copy_string_across_boundary(const char *src)
Returns a copy of SRC split across the boundary between two pages.
Definition:
boundary.c:29
wait
static void wait(struct intq *q, struct thread **waiter)
main.h
boundary.h
test_main
void test_main(void)
Exec a child with an exec string that spans a page boundary.
Definition:
exec-bound.c:9
Generated on Thu Aug 22 2019 10:19:15 for CS318 - Pintos by
1.8.16