2 * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
4 * Copyright (C) 2002-2010 Aleph One Ltd.
5 * for Toby Churchill Ltd and Brightstar Engineering
7 * Created by Charles Manning <charles@aleph1.co.uk>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
16 * These are some dangly bits that need to be built to wrap up the rest of the yaffs test harness.
19 * This is also the place where extra debugging stuff might end up.
24 #include "yaffs_trace.h"
26 int simulate_power_failure;
29 int yaffs_print_constants(void)
31 printf( "O_CREAT........%d\n",O_CREAT);
32 printf( "O_RDONLY.......%d\n",O_RDONLY);
33 printf( "O_WRONLY.......%d\n",O_WRONLY);
34 printf( "O_RDWR.........%d\n",O_RDWR);
35 printf( "O_TRUNC........%d\n",O_TRUNC);
37 printf( "sizeof(off_t)..%d\n",sizeof(off_t));
41 int yaffs_O_CREAT(void) { return O_CREAT;}
42 int yaffs_O_RDONLY(void) { return O_RDONLY;}
43 int yaffs_O_WRONLY(void) { return O_WRONLY;}
44 int yaffs_O_RDWR(void) { return O_RDWR;}
45 int yaffs_O_TRUNC(void) { return O_TRUNC;}
47 int yaffs_set_trace(unsigned int tm) { return yaffs_traceMask=tm; }
48 int yaffs_get_trace(void) { return yaffs_traceMask; }