PKUOS - Pintos
Pintos source browser for PKU Operating System course
Functions
open-bad-ptr.c File Reference
#include <syscall.h>
#include "tests/lib.h"
#include "tests/main.h"
Include dependency graph for open-bad-ptr.c:

Go to the source code of this file.

Functions

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

Function Documentation

◆ test_main()

void test_main ( void  )

Passes an invalid pointer to the open system call.

tests/main.h

The process must be terminated with -1 exit code.

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

References fail(), msg(), and open().

Here is the call graph for this function: