OSDN Git Service

hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing...
[uclinux-h8/uClibc.git] / libc / signal / raise.c
index 5a964c4..09beba0 100644 (file)
@@ -3,18 +3,18 @@
  * under the GNU Library General Public License.
  */
 
-#define kill __kill
-
 #include <unistd.h>
 #include <string.h>
 #include <signal.h>
 #include <sys/types.h>
 
-#undef raise
-int attribute_hidden __raise(int signo)
+libc_hidden_proto(raise)
+
+libc_hidden_proto(getpid)
+libc_hidden_proto(kill)
+
+int raise(int signo)
 {
-    return kill(__getpid(), signo);
+    return kill(getpid(), signo);
 }
-
-/* psm: keep this weak, because the one in libpthread.so could overwrite it */
-weak_alias(__raise, raise)
+libc_hidden_def(raise)