5 #include <minix/callnr.h>
7 #include <minix/config.h>
9 #include <minix/endpoint.h>
10 #include <minix/sysutil.h>
11 #include <minix/syslib.h>
12 #include <minix/const.h>
13 #include <minix/type.h>
23 int minix_rs_lookup(const char *name
, endpoint_t
*value
)
28 len_key
= strlen(name
)+1;
30 m
.RS_NAME
= (char *) __UNCONST(name
);
31 m
.RS_NAME_LEN
= len_key
;
33 if (_syscall(RS_PROC_NR
, RS_LOOKUP
, &m
) != -1) {
34 *value
= m
.RS_ENDPOINT
;