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

Go to the source code of this file.

Functions

void test_main (void)
 Tries to open a file with the null pointer as its name. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Tries to open a file with the null pointer as its name.

tests/main.h

The process must be terminated with exit code -1.

Definition at line 9 of file open-null.c.

References NULL, and open().

Here is the call graph for this function: