PKUOS - Pintos
Pintos source browser for PKU Operating System course
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
8void
9test_main (void)
10{
11 msg ("create(0x20101234): %d", create ((char *) 0x20101234, 0));
12}
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
bool create(const char *file, unsigned initial_size)
Definition: syscall.c:91
void msg(const char *format,...)
Definition: lib.c:28