Libc: internal accessor for <libc/> config

Add an internal accessor for the libc configuration node.

Ref #2919
This commit is contained in:
Ehmry - 2018-07-16 17:00:30 +02:00 committed by Christian Helmuth
parent 64a63885d1
commit 9f6838ae42
2 changed files with 13 additions and 0 deletions

View File

@ -951,6 +951,12 @@ void Libc::execute_in_application_context(Libc::Application_code &app_code)
}
Genode::Xml_node Libc::libc_config()
{
return kernel->libc_env().libc_config();
}
/***************************
** Component entry point **
***************************/

View File

@ -21,6 +21,8 @@
#ifndef _LIBC__TASK_H_
#define _LIBC__TASK_H_
#include <util/xml_node.h>
namespace Libc {
/**
@ -66,6 +68,11 @@ namespace Libc {
* Schedule select handler that is deblocked by ready fd sets
*/
void schedule_select(Select_handler_base *);
/**
* Access libc configuration Xml_node.
*/
Genode::Xml_node libc_config();
}
#endif /* _LIBC__TASK_H_ */