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

Go to the source code of this file.

Functions

void test_main (void)
 Try a 0-byte write, which should return 0 without writing anything. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Try a 0-byte write, which should return 0 without writing anything.

tests/main.h

Definition at line 9 of file write-zero.c.

References buf, byte_cnt(), CHECK, fail(), open(), and write().

Here is the call graph for this function: