1 /* 2 * (c) 2010 Alexander Warg <warg@os.inf.tu-dresden.de> 3 * economic rights: Technische Universität Dresden (Germany) 4 * 5 * This file is part of TUD:OS and distributed under the terms of the 6 * GNU General Public License 2. 7 * Please see the COPYING-GPL-2 file for details. 8 * 9 * As a special exception, you may use this file as part of a free software 10 * library without restriction. Specifically, if other files instantiate 11 * templates or use macros or inline functions from this file, or you compile 12 * this file and link it with other files to produce an executable, this 13 * file does not by itself cause the resulting executable to be covered by 14 * the GNU General Public License. This exception does not however 15 * invalidate any other reasons why the executable file might be covered by 16 * the GNU General Public License. 17 */ 18 #include <l4/re/util/cap_alloc> 19 #include <l4/re/cap_alloc> 20 21 #include <cstring> 22 #include <cstdlib> 23 #include <l4/re/env> 24 #include <l4/crtn/initpriorities.h> 25 26 namespace Vfs_config { 27 28 using L4Re::Util::cap_alloc; 29 using ::memcpy; 30 using ::malloc; 31 using ::free; 32 33 inline allocator()34L4::Cap<L4Re::Mem_alloc> allocator() 35 { return L4Re::Env::env()->mem_alloc(); } 36 37 inline int load_module(char const *)38load_module(char const *) 39 { return -1; } 40 41 } 42 43 #include <l4/l4re_vfs/impl/ns_fs_impl.h> 44 #include <l4/l4re_vfs/impl/ro_file_impl.h> 45 #include <l4/l4re_vfs/impl/fd_store_impl.h> 46 #include <l4/l4re_vfs/impl/vcon_stream_impl.h> 47 #include <l4/l4re_vfs/impl/vfs_impl.h> 48 // must be the last 49 #include <l4/l4re_vfs/impl/default_ops_impl.h> 50