PKUOS - Pintos
Pintos source browser for PKU Operating System course
Functions | Variables
syn-write.c File Reference
#include <random.h>
#include <stdio.h>
#include <string.h>
#include <syscall.h>
#include "tests/filesys/base/syn-write.h"
#include "tests/lib.h"
#include "tests/main.h"
Include dependency graph for syn-write.c:

Go to the source code of this file.

Functions

void test_main (void)
 tests/main.h More...
 

Variables

char buf1 [BUF_SIZE]
 Spawns several child processes to write out different parts of the contents of a file and waits for them to finish. More...
 
char buf2 [BUF_SIZE]
 

Function Documentation

◆ test_main()

void test_main ( void  )

tests/main.h

Definition at line 17 of file syn-write.c.

References buf1, buf2, CHECK, CHILD_CNT, compare_bytes(), create(), exec_children(), file_name, open(), random_bytes(), read(), and wait_children().

Here is the call graph for this function:

Variable Documentation

◆ buf1

char buf1[BUF_SIZE]

Spawns several child processes to write out different parts of the contents of a file and waits for them to finish.

Then reads back the file and verifies its contents.

Definition at line 13 of file syn-write.c.

Referenced by test_main().

◆ buf2

char buf2[BUF_SIZE]

Definition at line 14 of file syn-write.c.

Referenced by test_main().