X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Fpython%2Fyaffs_python_helper.c;h=333ad586d6c2f846a04b2dee021266928f34f0d2;hb=8cbfc1e273db791447911631e80c0495c6171ca8;hp=425bcda1e83bfc1ab990839699361a4d367c4a59;hpb=0333f489a25b05a4c0176258204eee1db9e8c9e0;p=yaffs2.git diff --git a/direct/python/yaffs_python_helper.c b/direct/python/yaffs_python_helper.c index 425bcda..333ad58 100644 --- a/direct/python/yaffs_python_helper.c +++ b/direct/python/yaffs_python_helper.c @@ -1,4 +1,3 @@ - /* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * @@ -27,6 +26,8 @@ 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); @@ -45,5 +46,13 @@ 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_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;}