#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 FILE_SIZE 8143 |
void test_main | ( | void | ) |
Definition at line 32 of file grow-two-files.c.
References buf_a, buf_b, CHECK, check_file(), close(), create(), FILE_SIZE, msg(), open(), random_bytes(), random_init(), and write_some_bytes().
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().
char buf_a[FILE_SIZE] [static] |
char buf_b[FILE_SIZE] [static] |