Fix unmatched temporary buffer allocations
[yaffs2.git] / direct / test-framework / 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-2018 Aleph One Ltd.
5  *
6  * Created by Timothy Manning <timothy@yaffs.net>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License version 2.1 as
10  * published by the Free Software Foundation.
11  *
12  * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
13  */
14
15 #ifndef __linux_test_h__
16 #define __linux_test_h__
17 #include <stdio.h>
18 #include <stdlib.h>
19 #include <dirent.h>
20 #include <sys/stat.h>
21 #include <sys/types.h>
22 #include <unistd.h>
23 #include <sys/mount.h>
24 #include "lib.h"
25 #include <fcntl.h>
26 #include <time.h>
27 #include <getopt.h>
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