2 * YAFFS: Yet another FFS. A NAND-flash specific file system.
3 * ydirectenv.h: Environment wrappers for direct.
5 * Copyright (C) 2002 Aleph One Ltd.
6 * for Toby Churchill Ltd and Brightstar Engineering
8 * Created by Charles Manning <charles@aleph1.co.uk>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License version 2.1 as
12 * published by the Free Software Foundation.
15 * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
17 * $Id: ydirectenv.h,v 1.1 2004-09-19 09:21:38 charles Exp $
21 #ifndef __YDIRECTENV_H__
22 #define __YDIRECTENV_H__
30 #define YMALLOC(x) malloc(x)
31 #define YFREE(x) free(x)
34 //#define YINFO(s) YPRINTF(( __FILE__ " %d %s\n",__LINE__,s))
35 //#define YALERT(s) YINFO(s)
40 #define TOUT(p) printf p
43 #define YAFFS_LOSTNFOUND_NAME "lost+found"
44 #define YAFFS_LOSTNFOUND_PREFIX "obj"
45 //#define YPRINTF(x) printf x
49 #define CURRENT_TIME yaffsfs_CurrentTime()
50 #define YAFFS_ROOT_MODE 0666
51 #define YAFFS_LOSTNFOUND_MODE 0666
53 #define yaffs_SumCompare(x,y) ((x) == (y))
54 #define yaffs_strcmp(a,b) strcmp(a,b)