yaffs_norif1.o ynorsim.o \
yaffs_bitmap.o \
yaffs_verify.o \
- yaffs_yaffs1.o yaffs_yaffs2.o
+ yaffs_yaffs1.o yaffs_yaffs2.o \
+ yaffs_error.o
-YAFFSLIBOBJS = $(COMMONTESTOBJS) yaffs_python_helper.o yaffs_error_converter.o
+YAFFSLIBOBJS = $(COMMONTESTOBJS) yaffs_python_helper.o
yaffs_flashif.c yaffs_flashif.h yaffs_flashif2.h yaffs_list.h \
yaffs_nandif.c yaffs_nandif.h yaffs_qsort.c yaffs_nandemul2k.h \
yportenv.h yaffs_attribs.c \
- yaffs_hweight.c yaffs_hweight.h
+ yaffs_hweight.c yaffs_hweight.h \
+ yaffs_error.c
DIRECTEXTRASYMLINKS = yaffscfg2k.c yaffs_fileem2k.c yaffs_fileem2k.h\
yaffs_fileem.c yaffs_norif1.c yaffs_norif1.h \
+++ /dev/null
-/*
- * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
- *
- * Copyright (C) 2002-2010 Aleph One Ltd.
- * for Toby Churchill Ltd and Brightstar Engineering
- *
- * Created by Timothy Manning <timothy@yaffs.net>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 2.1 as
- * published by the Free Software Foundation.
- *
- * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
- */
-
-#ifndef __error_handler_h__
-#define __error_handler_h__
-#include <stdio.h>
-
-#include "yaffsfs.h"
-#include "yportenv.h"
-
-const char * yaffs_error_to_str(int err);
-#endif
#include "yaffsfs.h"
#include "yaffs_trace.h"
-#include "yaffs_error_converter.h"
int simulate_power_failure;
int random_seed;
yaffs_bitmap.o \
yaffs_yaffs1.o \
yaffs_yaffs2.o \
- yaffs_verify.o
+ yaffs_verify.o \
+ yaffs_error.o
# yaffs_checkptrwtest.o\
YAFFSTESTOBJS = $(COMMONTESTOBJS) $(TESTFILES)
-PYTONOSYMLINKS = yaffs_error_converter.c yaffs_error_converter.h
-PYTHONOBJS = yaffs_error_converter.o
-
-ALLOBJS = $(sort $(YAFFSTESTOBJS)) $(PYTHONOBJS)
+ALLOBJS = $(sort $(YAFFSTESTOBJS))
YAFFSSYMLINKS = yaffs_ecc.c yaffs_ecc.h yaffs_guts.c yaffs_guts.h yaffs_tagscompat.c yaffs_tagscompat.h \
yaffs_packedtags1.c yaffs_packedtags1.h yaffs_packedtags2.c yaffs_packedtags2.h \
yaffs_nandemul2k.h yaffs_list.h \
yaffs_attribs.c yaffs_osglue.h \
yaffs_nandif.c yaffs_nandif.h yportenv.h \
- yaffs_hweight.h yaffs_hweight.c
+ yaffs_hweight.h yaffs_hweight.c \
+ yaffs_error.c
DIRECTEXTRASYMLINKS = yaffscfg2k.c yaffs_fileem2k.c yaffs_fileem2k.h\
#include "test_yaffs_dup_EBADF.h"
#include "yaffsfs.h"
-#include "yaffs_error_converter.h"
#include "lib.h"
* published by the Free Software Foundation.
*/
-#include "yaffs_error_converter.h"
+#include "yaffsfs.h"
struct error_entry {
int code;
int yaffs_start_up(void);
int yaffsfs_GetLastError(void);
-int yaffs_set_error(int error);
+
/* Function to get the last error */
int yaffs_get_error(void);
+const char * yaffs_error_to_str(int err);
/* Function only for debugging */
void * yaffs_getdev(const YCHAR *path);
int yaffs_dump_dev(const YCHAR *path);
+int yaffs_set_error(int error);
/* Trace control functions */
unsigned yaffs_set_trace(unsigned tm);
#endif
+/*
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
+ *
+ * Copyright (C) 2002-2010 Aleph One Ltd.
+ * for Toby Churchill Ltd and Brightstar Engineering
+ *
+ * Created by Timothy Manning <timothy@yaffs.net>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 2.1 as
+ * published by the Free Software Foundation.
+ *
+ * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
+ */
+
+#ifndef __error_handler_h__
+#define __error_handler_h__
+#include <stdio.h>
+
+#include "yaffsfs.h"
+#include "yportenv.h"
+#endif