/*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002-2010 Aleph One Ltd.
+ * Copyright (C) 2002-2011 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
#include "yaffs_nandemul2k.h"
#include "yaffs_norif1.h"
#include "yaffs_trace.h"
-
+#include <assert.h>
#include <errno.h>
u32 yaffsfs_CurrentTime(void)
{
- return 0;
+ return time(NULL);
}
static size_t total_malloced = 0;
static size_t malloc_limit = 0 & 6000000;
-void *yaffs_malloc(size_t size)
+void *yaffsfs_malloc(size_t size)
{
void * this;
if(yaffs_kill_alloc)
return this;
}
-void yaffs_free(void *ptr)
+void yaffsfs_free(void *ptr)
{
free(ptr);
}
}
+void yaffs_bug_fn(const char *file_name, int line_no)
+{
+ printf("yaffs bug detected %s:%d\n",
+ file_name, line_no);
+ assert(0);
+}