Removed dso.h
authorJarkko Sakkinen <jarkko.sakkinen@iki.fi>
Thu, 8 Nov 2012 07:39:05 +0000 (09:39 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@iki.fi>
Thu, 8 Nov 2012 07:39:05 +0000 (09:39 +0200)
We don't need this because we're using version script. Fixed init.c
accordingly.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@iki.fi>
libsmack/dso.h [deleted file]
libsmack/init.c

diff --git a/libsmack/dso.h b/libsmack/dso.h
deleted file mode 100644 (file)
index 88b9b72..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * This file is part of libsmack. Derived from libselinux/src/dso.h.
- *
- * Copyright (C) 2012 Intel Corporation
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- * Authors:
- * Passion Zhao <passion.zhao@intel.com>
- */
-
-#ifndef _SMACK_DSO_H
-#define _SMACK_DSO_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef SHARED
-# define hidden __attribute__ ((visibility ("hidden")))
-# define hidden_proto(fct) __hidden_proto (fct, fct##_internal)
-# define __hidden_proto(fct, internal) \
-     extern __typeof (fct) internal;   \
-     extern __typeof (fct) fct __asm (#internal) hidden;
-# if defined(__alpha__) || defined(__mips__)
-#  define hidden_def(fct) \
-     asm (".globl " #fct "\n" #fct " = " #fct "_internal");
-# else
-#  define hidden_def(fct) \
-     asm (".globl " #fct "\n.set " #fct ", " #fct "_internal");
-#endif
-#else
-# define hidden
-# define hidden_proto(fct)
-# define hidden_def(fct)
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
index 44e3e9c..bec59f2 100644 (file)
@@ -35,8 +35,6 @@
 #include <stdint.h>
 #include <limits.h>
 
-#include "dso.h"
-
 /*
  *  * smackfs magic number
  *   */
@@ -55,9 +53,6 @@ void set_smackmnt(const char *mnt)
        smack_mnt = strdup(mnt);
 }
 
-hidden_def(set_smackmnt)
-
-
 /* Verify the mount point for smack file system has a smackfs.
  * If the file system:
  * Exist,
@@ -118,8 +113,6 @@ int smackfs_exists(void)
        return exists;
 }
 
-hidden_def(smackfs_exists)
-
 static void init_smackmnt(void)
 {
        char *buf=NULL, *p;
@@ -181,8 +174,6 @@ void fini_smackmnt(void)
        smack_mnt = NULL;
 }
 
-hidden_def(fini_smackmnt)
-
 static void init_lib(void) __attribute__ ((constructor));
 static void init_lib(void)
 {