pintos/src/tests/filesys/extended/grow-two-files.c File Reference

#include <random.h>
#include <syscall.h>
#include "tests/lib.h"
#include "tests/main.h"

Go to the source code of this file.

Defines

#define FILE_SIZE   8143

Functions

static void write_some_bytes (const char *file_name, int fd, const char *buf, size_t *ofs)
void test_main (void)

Variables

static char buf_a [FILE_SIZE]
static char buf_b [FILE_SIZE]


Define Documentation

#define FILE_SIZE   8143

Definition at line 9 of file grow-two-files.c.

Referenced by test_main(), and write_some_bytes().


Function Documentation

void test_main ( void   ) 

static void write_some_bytes ( const char *  file_name,
int  fd,
const char *  buf,
size_t ofs 
) [static]

Definition at line 14 of file grow-two-files.c.

References block_size(), fail(), FILE_SIZE, random_ulong(), and write().

Referenced by test_main().


Variable Documentation

char buf_a[FILE_SIZE] [static]

Definition at line 10 of file grow-two-files.c.

Referenced by test_main().

char buf_b[FILE_SIZE] [static]

Definition at line 11 of file grow-two-files.c.

Referenced by test_main().


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6