TestU01: upgrade to 17.05 release
- Correct spelling of 'Alphabet' test to 'Alphabit' - Remove config library dependency Ref #74
This commit is contained in:
@@ -1,22 +1,13 @@
|
||||
#include <os/config.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
void gdef_GetHostName (char machine[], int n)
|
||||
{
|
||||
try { Genode::config()->xml_node().attribute("hostname").value(machine, n); }
|
||||
catch (...) { Genode::strncpy(machine, "genode", n); }
|
||||
strncpy(machine, "genode", n);
|
||||
}
|
||||
|
||||
void gdef_WriteHostName (void)
|
||||
{
|
||||
enum { MAXBYTES = 255 };
|
||||
|
||||
char machine[1 + MAXBYTES] = {'\0'};
|
||||
gdef_GetHostName(machine, MAXBYTES);
|
||||
printf("%s\n", machine);
|
||||
}
|
||||
void gdef_WriteHostName (void) { }
|
||||
|
||||
}
|
||||
@@ -6,7 +6,7 @@ extern "C" {
|
||||
#include "bbattery.h"
|
||||
}
|
||||
|
||||
void Libc::Component::construct(Genode::Env &env)
|
||||
void Libc::Component::construct(Libc::Env &env)
|
||||
{
|
||||
using namespace Genode;
|
||||
|
||||
@@ -12,7 +12,7 @@ extern "C" {
|
||||
Genode::size_t Libc::Component::stack_size() { return 64*1024*sizeof(Genode::addr_t); }
|
||||
|
||||
|
||||
void Libc::Component::construct(Genode::Env &env)
|
||||
void Libc::Component::construct(Libc::Env &env)
|
||||
{
|
||||
using namespace Genode;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user