PKUOS - Pintos
Pintos source browser for PKU Operating System course
Functions
mk-tree.c File Reference
#include <stdio.h>
#include <syscall.h>
#include "tests/filesys/extended/mk-tree.h"
#include "tests/lib.h"
Include dependency graph for mk-tree.c:

Go to the source code of this file.

Functions

static void do_mkdir (const char *format,...) PRINTF_FORMAT(1
 Library function for creating a tree of directories. More...
 
static void static void do_touch (const char *format,...) PRINTF_FORMAT(1
 
static void static void void make_tree (int at, int bt, int ct, int dt)
 tests/filesys/extended/mk-tree.h More...
 

Function Documentation

◆ do_mkdir()

static void do_mkdir ( const char *  format,
  ... 
)
static

Library function for creating a tree of directories.

Definition at line 44 of file mk-tree.c.

References CHECK, mkdir(), va_end, va_start, and vsnprintf().

Referenced by make_tree().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_touch()

static void do_touch ( const char *  format,
  ... 
)
static

Definition at line 57 of file mk-tree.c.

References CHECK, create(), va_end, va_start, and vsnprintf().

Referenced by make_tree().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_tree()

static void static void void make_tree ( int  at,
int  bt,
int  ct,
int  dt 
)

tests/filesys/extended/mk-tree.h

Definition at line 12 of file mk-tree.c.

References CHECK, close(), do_mkdir(), do_touch(), msg(), open(), quiet, and snprintf().

Referenced by test_main().

Here is the call graph for this function:
Here is the caller graph for this function: