yaffs Finshed direct/timothy_tests/linux_test.
[yaffs2.git] / direct / timothy_tests / linux_tests / linux_test.h
1 /*
2  * YAFFS: Yet another Flash File System . A NAND-flash specific file system. 
3  *
4  * Copyright (C) 2002-2010 Aleph One Ltd.
5  *   for Toby Churchill Ltd and Brightstar Engineering
6  *
7  * Created by Timothy Manning <timothy@yaffs.net>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU Lesser General Public License version 2.1 as
11  * published by the Free Software Foundation.
12  *
13  * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
14  */
15
16 #ifndef __linux_test_h__
17 #define __linux_test_h__
18 #include <stdio.h>
19 #include <dirent.h>
20 #include "yaffsfs.h"
21 #include <sys/stat.h>
22 #include <sys/types.h>
23 #include <unistd.h>
24 #include <sys/mount.h>
25 #include "lib.h"
26 #include <fcntl.h>
27 #include <time.h>
28 #include <getopt.h>
29
30 typedef struct dir_struct_temp{ 
31         node *path_list;
32         int number_of_items;
33 }dir_struct;
34
35 int check_dir(dir_struct *old_dir);
36 dir_struct * scan_dir(void);
37 int link_test(void);
38 int symlink_test(void);
39 int mknod_test(void);
40 int mkdir_test(void);
41 int rename_test(void);
42 int rmdir_test(void);
43 int remount_test(void);
44 #endif