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

Go to the source code of this file.

Functions

void test_main (void)
 Tries to write to an invalid fd, which must either fail silently or terminate the process with exit code -1. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Tries to write to an invalid fd, which must either fail silently or terminate the process with exit code -1.

tests/main.h

Definition at line 10 of file write-bad-fd.c.

References buf, INT_MAX, INT_MIN, and write().

Here is the call graph for this function: