CS318 - Pintos
Pintos source browser for JHU CS318 course
src
tests
userprog
create-bad-ptr.c
Go to the documentation of this file.
1
/** Passes a bad pointer to the create system call,
2
which must cause the process to be terminated with exit code
3
-1. */
4
5
#include "
tests/lib.h
"
6
#include "
tests/main.h
"
7
8
void
9
test_main
(
void
)
10
{
11
msg
(
"create(0x20101234): %d"
,
create
((
char
*) 0x20101234, 0));
12
}
lib.h
test_main
void test_main(void)
Passes a bad pointer to the create system call, which must cause the process to be terminated with ex...
Definition:
create-bad-ptr.c:9
main.h
msg
void msg(const char *format,...)
Definition:
lib.c:28
create
bool create(const char *file, unsigned initial_size)
Definition:
syscall.c:91
Generated on Thu Aug 22 2019 10:19:15 for CS318 - Pintos by
1.8.16