CS318 - Pintos
Pintos source browser for JHU CS318 course
Functions
read-bad-ptr.c File Reference
#include <syscall.h>
#include "tests/lib.h"
#include "tests/main.h"
Include dependency graph for read-bad-ptr.c:

Go to the source code of this file.

Functions

void test_main (void)
 Passes an invalid pointer to the read system call. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Passes an invalid pointer to the read system call.

tests/main.h

The process must be terminated with -1 exit code.

Definition at line 9 of file read-bad-ptr.c.

References CHECK, fail(), open(), and read().

Here is the call graph for this function: