X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Fpython%2Fyaffs_python_helper.c;fp=direct%2Fpython%2Fyaffs_python_helper.c;h=0000000000000000000000000000000000000000;hb=c08faae4258b29a794ad55ca160c5a247145c838;hp=e473bb3295c09ec12802b7f8098e80c62de9aed6;hpb=87b33ecd1898c99b9aa2b0abcbb3e6002d6b3532;p=yaffs2.git diff --git a/direct/python/yaffs_python_helper.c b/direct/python/yaffs_python_helper.c deleted file mode 100644 index e473bb3..0000000 --- a/direct/python/yaffs_python_helper.c +++ /dev/null @@ -1,58 +0,0 @@ -/* - * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. - * - * Copyright (C) 2002-2011 Aleph One Ltd. - * for Toby Churchill Ltd and Brightstar Engineering - * - * Created by Charles Manning - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - */ - -/* - * These are some dangly bits that need to be built to wrap up the rest of the yaffs test harness. - * - * - * This is also the place where extra debugging stuff might end up. - * - */ - -#include "yaffsfs.h" -#include "yaffs_trace.h" - -int simulate_power_failure; -int random_seed; - -const char * yaffs_error_to_str(int err); /*this is not part of yaffs. it is a specialy built file for converting error codes to text*/ - -int yaffs_print_constants(void) -{ - printf( "O_CREAT........%d\n",O_CREAT); - printf( "O_RDONLY.......%d\n",O_RDONLY); - printf( "O_WRONLY.......%d\n",O_WRONLY); - printf( "O_RDWR.........%d\n",O_RDWR); - printf( "O_TRUNC........%d\n",O_TRUNC); - - printf( "sizeof(off_t)..%d\n",sizeof(off_t)); - return 0; -} - -int yaffs_O_CREAT(void) { return O_CREAT;} -int yaffs_O_RDONLY(void) { return O_RDONLY;} -int yaffs_O_WRONLY(void) { return O_WRONLY;} -int yaffs_O_RDWR(void) { return O_RDWR;} -int yaffs_O_TRUNC(void) { return O_TRUNC;} - - -int yaffs_S_IFMT(void){return S_IFMT;} -int yaffs_S_IFLNK(void){return S_IFLNK;} -int yaffs_S_IFDIR(void){return S_IFDIR;} -int yaffs_S_IFREG(void){return S_IFREG;} -int yaffs_S_IREAD(void){return S_IREAD;} -int yaffs_S_IWRITE(void){return S_IWRITE;} -int yaffs_S_IEXEC(void){return S_IEXEC;} -int yaffs_XATTR_CREATE(void){return XATTR_CREATE;} -int yaffs_XATTR_REPLACE(void){return XATTR_REPLACE;}