From: Ben Gras Date: Mon, 21 Sep 2009 19:56:30 +0000 (+0000) Subject: forgot to svn add this. X-Git-Tag: v3.1.5~112 X-Git-Url: http://zhaoyanbai.com/repos/dnssec-importkey.html?a=commitdiff_plain;h=813021b56b7bbce3912da6df774560f0c17895a4;p=minix.git forgot to svn add this. --- diff --git a/lib/other/minix_rs.c b/lib/other/minix_rs.c new file mode 100644 index 000000000..cba0c5a0a --- /dev/null +++ b/lib/other/minix_rs.c @@ -0,0 +1,39 @@ +#define _SYSTEM 1 +#define _MINIX 1 + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +int minix_rs_lookup(const char *name, endpoint_t *value) +{ + int r; + message m; + size_t len_key; + + len_key = strlen(name)+1; + + m.RS_NAME = name; + m.RS_NAME_LEN = len_key; + + r = _taskcall(RS_PROC_NR, RS_LOOKUP, &m); + + if(r == OK) { + *value = m.RS_ENDPOINT; + } + + return r; +} +