summaryrefslogtreecommitdiff
path: root/symbian/missing-pips.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 01:55:41 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 01:55:41 +0000
commit5932de4991e48ffcae71be6885ecdf9f10dd8f02 (patch)
treeb6122adb67ee8c306e158d92f276b5b0c088823d /symbian/missing-pips.c
parentc6af6b1b947f8b367c22904bd5b31079784059f6 (diff)
* symbian/README.SYMBIAN: symbian support added. great appreciate
to <alexandre.zavorine at symbian.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'symbian/missing-pips.c')
-rw-r--r--symbian/missing-pips.c101
1 files changed, 101 insertions, 0 deletions
diff --git a/symbian/missing-pips.c b/symbian/missing-pips.c
new file mode 100644
index 0000000000..43ee8b5d11
--- /dev/null
+++ b/symbian/missing-pips.c
@@ -0,0 +1,101 @@
+//#include "symbian.h"
+#include <sys/signal.h>
+#include <sys/resource.h>
+#include <fcntl.h>
+#include <pthreadtypes.h>
+
+char **environ = 0;
+
+typedef void (*sighandler_t)(int);
+sighandler_t signal(int signum, sighandler_t handler);
+
+int sigfillset(sigset_t *set);
+int sigdelset(sigset_t *set, int signum);
+int sigprocmask(int how, const sigset_t *set, sigset_t *oldset);
+int raise(int sig);
+int kill(pid_t pid, int sig);
+int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset);
+int execv(const char *path, char *const argv[]);
+int pthread_kill(pthread_t thread, int sig);
+
+sighandler_t signal(int signum, sighandler_t handler)
+{
+ return (sighandler_t)0;
+}
+
+int sigfillset(sigset_t *set)
+{
+ return 0;
+}
+
+int sigdelset(sigset_t *set, int signum)
+{
+ return 0;
+}
+
+int sigprocmask(int how, const sigset_t *set, sigset_t *oldset)
+{
+ return 0;
+}
+
+int raise(int sig)
+{
+ return 0;
+}
+
+int kill(pid_t pid, int sig)
+{
+ return 0;
+}
+
+int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
+{
+ return -1;
+}
+
+int execv(const char *path, char *const argv[])
+{
+ return 0;
+}
+
+int pthread_kill(pthread_t thread, int sig)
+{
+ return -1;
+}
+
+
+int sigmask(int signum) {
+ return -1;
+}
+
+int sigblock(int mask) {
+ return -1;
+}
+
+int sigsetmask(int mask) {
+ return -1;
+}
+
+sighandler_t posix_signal(int signum, sighandler_t handler)
+{
+ return signal((signum),(handler));
+}
+
+int getrlimit(int resource, struct rlimit *rlp)
+{
+ return 0;
+}
+
+int setrlimit(int resource, const struct rlimit *rlp)
+{
+ return 0;
+}
+
+int getrusage(int who, struct rusage *r_usage)
+{
+ return 0;
+}
+
+
+
+