genode/repos/dde_rump/src/lib/rump/misc.cc
Josef Söntgen c04ddbf6d8 dde_rump: move memcpy() to rump lib
On ARM in one way or another 'string.h' prototypes will be used. Move
the definitions from rump_fs to the rump library because it is needed
by all rump based servers running on ARM.

Issue #1141.
2014-05-27 11:14:45 +02:00

31 lines
593 B
C++

/**
* \brief Misc functions
* \author Sebastian Sumpf
* \date 2014-01-17
*/
/*
* 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.
*/
/* Genode includes */
#include <util/string.h>
/*
* On some platforms (namely ARM) we end-up pulling in string.h prototypes
*/
extern "C" void *memcpy(void *d, void *s, Genode::size_t n)
{
return Genode::memcpy(d, s, n);
}
extern "C" void *memset(void *s, int c, Genode::size_t n)
{
return Genode::memset(s, c, n);
}