yaffs More tests added to direct/timothy_tests/quick_tests
[yaffs2.git] / direct / timothy_tests / quick_tests / lib.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 _lib_h__
17 #define _lib_h__
18
19 #include <stdio.h>
20 #include <string.h>
21 #include "yaffsfs.h"
22
23
24
25
26
27 #define YAFFS_MOUNT_POINT "/yaffs2/"
28 #define FILE_NAME "foo"
29 #define FILE_SIZE 10
30
31 #define FILE_MODE (S_IREAD | S_IWRITE)
32 #define FILE_SIZE_TRUNCATED 100
33 #define FILE_TEXT "file foo "   /* keep space at end of string */
34 #define FILE_TEXT_NBYTES 10
35
36 #define DIR_PATH "/yaffs2/new_directory"
37
38 #define SYMLINK_PATH "/yaffs2/sym_foo"
39
40 #define HARD_LINK_PATH "/yaffs2/hard_link"
41
42 #define NODE_PATH "/yaffs2/node"
43
44 #define RENAME_PATH "/yaffs2/foo2"
45
46 #define RENAME_DIR_PATH "/yaffs2/dir2"
47
48 #define ELOOP_PATH "/yaffs2/ELOOP"
49 #define ELOOP2_PATH "/yaffs2/ELOOP2"
50
51 /* warning do not define anything as FILE because there seems to be a conflict with stdio.h */ 
52 #define FILE_PATH "/yaffs2/foo"
53
54 void join_paths(char *path1,char *path2,char *new_path );
55 void print_message(char *message,char print_level);
56 void set_print_level(int new_level);
57 void set_exit_on_error(int num);
58 int get_exit_on_error(void);
59 int set_up_ELOOP(void);
60 int EROFS_setup(void);
61 int EROFS_clean(void);
62 #endif