Remove dead mini_ds_retrieve_u32 code

This commit is contained in:
David van Moolenbroek 2009-11-17 14:10:09 +00:00
parent c85bd7edb9
commit 3926b70b22
2 changed files with 0 additions and 44 deletions

View file

@ -34,8 +34,5 @@ _PROTOTYPE( int ds_retrieve_str, (char *name, char *val, size_t len));
_PROTOTYPE( int ds_check_u32, (char *n, size_t namelen, u32_t *val));
_PROTOTYPE( int ds_check_str, (char *n, size_t namelen, char *v, size_t vlen));
/* lib/sysvipc/ds.c */
_PROTOTYPE( int mini_ds_retrieve_u32, (char *name, u32_t *val) );
#endif /* _MINIX_DS_H */

View file

@ -1,41 +0,0 @@
#define _SYSTEM 1
#define _MINIX 1
#include <minix/callnr.h>
#include <minix/com.h>
#include <minix/config.h>
#include <minix/ipc.h>
#include <minix/endpoint.h>
#include <minix/sysutil.h>
#include <minix/syslib.h>
#include <minix/const.h>
#include <minix/type.h>
#include <minix/ds.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
int mini_ds_retrieve_u32(char *ds_name, u32_t *value)
{
int r;
message m;
size_t len_key;
len_key = strlen(ds_name)+1;
m.DS_KEY_GRANT = ds_name;
m.DS_KEY_LEN = len_key;
m.DS_FLAGS = DS_TYPE_U32;
r = _taskcall(DS_PROC_NR, DS_RETRIEVE_LIBC, &m);
if(r == OK) {
/* Assign u32 value. */
*value = m.DS_VAL;
}
return r;
}