Removing unused declarations
authorLukas Humbel <lukas.humbel@inf.ethz.ch>
Mon, 2 Oct 2017 09:33:14 +0000 (11:33 +0200)
committerLukas Humbel <lukas.humbel@inf.ethz.ch>
Mon, 2 Oct 2017 09:33:41 +0000 (11:33 +0200)
Signed-off-by: Lukas Humbel <lukas.humbel@inf.ethz.ch>

.gitignore
include/barrelfish/nameservice_client.h
lib/posixcompat/shm.c

index 03bed4d..19005b2 100644 (file)
@@ -47,3 +47,4 @@ bin/
 
 # clang
 .clang_complete
+compile_commands.json
index dc44b7c..0bb4b0d 100644 (file)
@@ -19,10 +19,6 @@ errval_t nameservice_blocking_lookup(const char *iface, iref_t *retiref);
 errval_t nameservice_register(const char *iface, iref_t iref);
 errval_t nameservice_client_blocking_bind(void);
 
-errval_t nameservice_get_capability(const char *key, struct capref *retcap);
-errval_t nameservice_put_capability(const char *key, struct capref cap);
-errval_t nameservice_remove_capability(const char *key);
-
 __END_DECLS
 
 #endif // BARRELFISH_NAMESERVICE_CLIENT_H
index 0a32937..0d727be 100644 (file)
@@ -143,7 +143,7 @@ int shmget(key_t key, size_t size, int shmflg)
         // XXX: Not multi-processing safe!
         errval_t err = oct_get_capability(skey, &s->frame);
         if(err_is_fail(err) && err_no(err) != OCT_ERR_CAP_NAME_UNKNOWN) {
-            USER_PANIC_ERR(err, "nameservice_get_capability");
+            USER_PANIC_ERR(err, "oct_get_capability");
         }
         if(err == OCT_ERR_CAP_NAME_UNKNOWN) {
             if(!(shmflg & IPC_CREAT)) {
@@ -168,7 +168,7 @@ int shmget(key_t key, size_t size, int shmflg)
             // XXX: This can fail if someone else won the race
             err = oct_put_capability(skey, s->frame);
             if(err_is_fail(err)) {
-                USER_PANIC_ERR(err, "nameservice_put_capability");
+                USER_PANIC_ERR(err, "oct_put_capability");
             }
 
             s->ds.shm_nattch = 0;