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

Go to the source code of this file.

Functions

void test_main (void)
 Opens a file and then tries to close it twice. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Opens a file and then tries to close it twice.

tests/main.h

The second close must either fail silently or terminate with exit code -1.

Definition at line 10 of file close-twice.c.

References CHECK, close(), msg(), and open().

Here is the call graph for this function: