Index: uspace/lib/posix/Makefile
===================================================================
--- uspace/lib/posix/Makefile	(revision 230fcfe45c32bef719d48089c7cb84cffedc15a2)
+++ uspace/lib/posix/Makefile	(revision 7530a00c06d3debfe6ebc740404ab150bef793a6)
@@ -44,4 +44,5 @@
 	math.c \
 	pwd.c \
+	signal.c \
 	stdio.c \
 	stdlib.c \
Index: uspace/lib/posix/signal.c
===================================================================
--- uspace/lib/posix/signal.c	(revision 7530a00c06d3debfe6ebc740404ab150bef793a6)
+++ uspace/lib/posix/signal.c	(revision 7530a00c06d3debfe6ebc740404ab150bef793a6)
@@ -0,0 +1,73 @@
+/*
+ * Copyright (c) 2011 Jiri Zarevucky
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ *   notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ *   notice, this list of conditions and the following disclaimer in the
+ *   documentation and/or other materials provided with the distribution.
+ * - The name of the author may not be used to endorse or promote products
+ *   derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/** @addtogroup libposix
+ * @{
+ */
+/** @file
+ */
+
+#define LIBPOSIX_INTERNAL
+
+#include "signal.h"
+#include "internal/common.h"
+
+void (*posix_signal(int sig, void (*func)(int)))(int)
+{
+	// TODO
+	not_implemented();
+}
+
+int posix_raise(int sig)
+{
+	// TODO
+	not_implemented();
+}
+
+int posix_kill(posix_pid_t pid, int sig)
+{
+	// TODO
+	not_implemented();
+}
+
+int posix_sigemptyset(posix_sigset_t *set)
+{
+	// TODO
+	not_implemented();
+}
+
+int posix_sigprocmask(int how, const posix_sigset_t *restrict set,
+    posix_sigset_t *restrict oset)
+{
+	// TODO
+	not_implemented();
+}
+
+/** @}
+ */
+
Index: uspace/lib/posix/signal.h
===================================================================
--- uspace/lib/posix/signal.h	(revision 230fcfe45c32bef719d48089c7cb84cffedc15a2)
+++ uspace/lib/posix/signal.h	(revision 7530a00c06d3debfe6ebc740404ab150bef793a6)
@@ -57,8 +57,4 @@
 #define SIG_IGN ((void (*)(int)) 0)
 
-#define signal(sig,func) (errno = ENOTSUP, SIG_ERR)
-#define raise(sig) ((int) -1)
-#define kill(pid,sig) (errno = ENOTSUP, (int) -1)
-
 typedef int posix_sig_atomic_t;
 typedef int posix_sigset_t;
@@ -87,6 +83,6 @@
 	int si_errno;
 
-	pid_t si_pid;
-	uid_t si_uid;
+	posix_pid_t si_pid;
+	posix_uid_t si_uid;
 	void *si_addr;
 	int si_status;
@@ -195,5 +191,8 @@
 };
 
-/* Just declared to avoid compiler warnings. */
+extern void (*posix_signal(int sig, void (*func)(int)))(int);
+extern int posix_raise(int sig);
+extern int posix_kill(posix_pid_t pid, int sig);
+
 extern int posix_sigemptyset(posix_sigset_t *set);
 extern int posix_sigprocmask(int how, const posix_sigset_t *restrict set,
@@ -210,4 +209,8 @@
 	#define stack_t posix_stack_t
 	#define siginfo_t posix_siginfo_t
+
+	#define signal posix_signal
+	#define raise posix_raise
+	#define kill posix_kill
 	#define sigemptyset posix_sigemptyset
 	#define sigprocmask posix_sigprocmask
Index: uspace/lib/posix/unistd.c
===================================================================
--- uspace/lib/posix/unistd.c	(revision 230fcfe45c32bef719d48089c7cb84cffedc15a2)
+++ uspace/lib/posix/unistd.c	(revision 7530a00c06d3debfe6ebc740404ab150bef793a6)
@@ -41,5 +41,5 @@
 
 /* Array of environment variable strings (NAME=VALUE). */
-char **environ = NULL;
+char **posix_environ = NULL;
 
 /**
