X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fpython%2Fyaffs_python_helper.c;h=14e894bede4404a47e261ff6a121cfc7bab500d3;hp=cbb434c880b30ef8ca75e71a8b342e0b9b77eea7;hb=00302ec53728a32022e3cb15123ed7192525ae68;hpb=1e40cf15e2e588fc4dc1af3493d822715e9bdfa7 diff --git a/direct/python/yaffs_python_helper.c b/direct/python/yaffs_python_helper.c index cbb434c..14e894b 100644 --- a/direct/python/yaffs_python_helper.c +++ b/direct/python/yaffs_python_helper.c @@ -2,7 +2,7 @@ /* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002-2007 Aleph One Ltd. + * Copyright (C) 2002-2010 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning @@ -22,6 +22,7 @@ */ #include "yaffsfs.h" +#include "yaffs_trace.h" int simulate_power_failure; int random_seed; @@ -46,3 +47,13 @@ int yaffs_O_TRUNC(void) { return O_TRUNC;} int yaffs_set_trace(unsigned int tm) { return yaffs_traceMask=tm; } int yaffs_get_trace(void) { return yaffs_traceMask; } + +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;}