2014-04-07 16:15:40 +02:00
|
|
|
/*
|
|
|
|
* \brief Types used by VFS
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2014-04-07
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Genode Labs GmbH
|
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INCLUDE__VFS__TYPES_H_
|
|
|
|
#define _INCLUDE__VFS__TYPES_H_
|
|
|
|
|
|
|
|
#include <util/list.h>
|
|
|
|
#include <util/misc_math.h>
|
|
|
|
#include <util/xml_node.h>
|
|
|
|
#include <util/string.h>
|
|
|
|
#include <base/lock.h>
|
|
|
|
#include <base/env.h>
|
|
|
|
#include <base/signal.h>
|
|
|
|
#include <base/printf.h>
|
|
|
|
#include <dataspace/client.h>
|
|
|
|
#include <os/path.h>
|
|
|
|
|
|
|
|
namespace Vfs {
|
|
|
|
|
|
|
|
enum { MAX_PATH_LEN = 512 };
|
|
|
|
|
|
|
|
using Genode::Ram_dataspace_capability;
|
|
|
|
using Genode::Dataspace_capability;
|
|
|
|
using Genode::Dataspace_client;
|
|
|
|
using Genode::env;
|
|
|
|
using Genode::min;
|
|
|
|
using Genode::ascii_to;
|
|
|
|
using Genode::strncpy;
|
|
|
|
using Genode::strcmp;
|
|
|
|
using Genode::strlen;
|
2014-09-09 14:32:31 +02:00
|
|
|
typedef long long file_offset;
|
2014-04-07 16:15:40 +02:00
|
|
|
using Genode::memcpy;
|
|
|
|
using Genode::memset;
|
2014-09-09 14:32:31 +02:00
|
|
|
typedef unsigned long long file_size;
|
2014-04-07 16:15:40 +02:00
|
|
|
using Genode::Lock;
|
|
|
|
using Genode::List;
|
|
|
|
using Genode::Xml_node;
|
|
|
|
using Genode::Signal_context_capability;
|
|
|
|
using Genode::static_cap_cast;
|
|
|
|
|
|
|
|
typedef Genode::Path<MAX_PATH_LEN> Absolute_path;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__VFS__TYPES_H_ */
|