X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fmirror_tests%2Flinux_test_open.c;fp=direct%2Ftimothy_tests%2Fmirror_tests%2Flinux_test_open.c;h=7817c3acd379422a4f5053582fce25b79ffd7085;hb=137f935f6d622bffdef2fece0c5194e85f5174e9;hp=0000000000000000000000000000000000000000;hpb=d223baa0fa5644b48c2626f8d42b05ac45b1daf6;p=yaffs2.git diff --git a/direct/timothy_tests/mirror_tests/linux_test_open.c b/direct/timothy_tests/mirror_tests/linux_test_open.c new file mode 100644 index 0000000..7817c3a --- /dev/null +++ b/direct/timothy_tests/mirror_tests/linux_test_open.c @@ -0,0 +1,25 @@ +/* + * YAFFS: Yet another FFS. A NAND-flash specific file system. + * + * Copyright (C) 2002-2010 Aleph One Ltd. + * for Toby Churchill Ltd and Brightstar Engineering + * + * Created by Timothy 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. + */ + +#include "linux_test_open.h" + +int linux_test_open(arg_temp *args_struct) +{ + char path[200]; + char message[100]; + join_paths(linux_struct.root_path,args_struct->string1, path ); + sprintf(message,"file path: %s\n",path); + print_message(3,message); + + return open(path,args_struct->char1,args_struct->char2); +}