summaryrefslogtreecommitdiff
path: root/symbian/missing-pips.c
blob: ed0d90de8b6f25d82c5631af7ef39acb23f96c73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#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 execl(const char *path, const char *arg0, ... /*, (char *)0 */);
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 execl(const char *path, const char *arg0, ...)
{
	return 0;
}

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;
}