58e3ccbc3837e1edfd72f856d97907ae873a5ae0
[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
28
29 typedef struct dir_struct_temp{ 
30         node *path_list;
31         int number_of_items;
32 }dir_struct;
33
34 int check_dir(dir_struct *old_dir);
35 dir_struct * scan_dir(void);
36 int link_test(void);
37 int symlink_test(void);
38 int mknod_test(void);
39 int mkdir_test(void);
40 int rename_test(void);
41 int rmdir_test(void);
42 int remount_test(void);
43 #endif