2 * YAFFS: Yet another FFS. A NAND-flash specific file system.
4 * Copyright (C) 2002-2018 Aleph One Ltd.
6 * Created by Timothy Manning <timothy@yaffs.net>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #include "linux_test_open.h"
15 int linux_test_open(arg_temp *args_struct)
20 join_paths(linux_struct.root_path,args_struct->string1, path );
21 sprintf(message,"file path: %s\n",path);
22 print_message(3,message);
24 output= open(path,args_struct->char1 & (O_TRUNC|O_EXCL|O_CREAT|O_APPEND) ,args_struct->char2& (S_IREAD|S_IWRITE));
28 print_message(3,"failed to close handle\n");
34 print_message(3,"failed to open file\n");