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

Go to the source code of this file.

Functions

void test_main (void)
 Try reading from fd 1 (stdout), which may just fail or terminate the process with -1 exit code. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Try reading from fd 1 (stdout), which may just fail or terminate the process with -1 exit code.

tests/main.h

Definition at line 10 of file read-stdout.c.

References buf, read(), and STDOUT_FILENO.

Here is the call graph for this function: