summaryrefslogtreecommitdiff
path: root/direct/timothy_tests/linux_tests/linux_test.h
blob: 97a634805e25cb354259da8edd0b7f9414f39d38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 * YAFFS: Yet another Flash File System . A NAND-flash specific file system. 
 *
 * Copyright (C) 2002-2010 Aleph One Ltd.
 *   for Toby Churchill Ltd and Brightstar Engineering
 *
 * Created by Timothy Manning <timothy@yaffs.net>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 2.1 as
 * published by the Free Software Foundation.
 *
 * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
 */

#ifndef __linux_test_h__
#define __linux_test_h__
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/mount.h>
#include "lib.h"
#include <fcntl.h>
#include <time.h>
#include <getopt.h>

typedef struct dir_struct_temp{ 
	node *path_list;
	int number_of_items;
}dir_struct;

int check_dir(dir_struct *old_dir);
dir_struct * scan_dir(void);
int link_test(void);
int symlink_test(void);
int mknod_test(void);
int mkdir_test(void);
int rename_test(void);
int rmdir_test(void);
int remount_test(void);
#endif