From 3926b70b2229c57badb1896f8bcbd3ba92986b59 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Tue, 17 Nov 2009 14:10:09 +0000 Subject: [PATCH] Remove dead mini_ds_retrieve_u32 code --- include/minix/ds.h | 3 --- lib/sysvipc/ds.c | 41 ----------------------------------------- 2 files changed, 44 deletions(-) delete mode 100644 lib/sysvipc/ds.c diff --git a/include/minix/ds.h b/include/minix/ds.h index ac368a4d7..ce6453b95 100644 --- a/include/minix/ds.h +++ b/include/minix/ds.h @@ -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 */ diff --git a/lib/sysvipc/ds.c b/lib/sysvipc/ds.c deleted file mode 100644 index c79796a8e..000000000 --- a/lib/sysvipc/ds.c +++ /dev/null @@ -1,41 +0,0 @@ -#define _SYSTEM 1 -#define _MINIX 1 - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include - -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; -} -