PKUOS - Pintos
Pintos source browser for PKU Operating System course
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>
5#include "tests/lib.h"
6#include "tests/main.h"
7
8void
9test_main (void)
10{
11 wait (exec (copy_string_across_boundary("child-args arg1 arg2")));
12}
char * copy_string_across_boundary(const char *src)
Returns a copy of SRC split across the boundary between two pages.
Definition: boundary.c:29
void test_main(void)
Exec a child with an exec string that spans a page boundary.
Definition: exec-bound.c:9
static void wait(struct intq *q, struct thread **waiter)
pid_t exec(const char *file)
Definition: syscall.c:79