Ruby 2.0.0p247(2013-06-27revision41674)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

missing-pips.c
Go to the documentation of this file.
1 #include <sys/signal.h>
2 #include <sys/resource.h>
3 #include <fcntl.h>
4 #include <pthreadtypes.h>
5
6 char **environ = 0;
7
8 typedef void (*sighandler_t)(int);
9 sighandler_t signal(int signum, sighandler_t handler);
10
11 int kill(pid_t pid, int sig);
12 int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset);
13 int execl(const char *path, const char *arg0, ... /*, (char *)0 */);
14 int execv(const char *path, char *const argv[]);
15 int pthread_kill(pthread_t thread, int sig);
16
17 int kill(pid_t pid, int sig)
18 {
19 return 0;
20 }
21
22 int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
23 {
24 return -1;
25 }
26
27 int execl(const char *path, const char *arg0, ...)
28 {
29 return 0;
30 }
31
32 int execv(const char *path, char *const argv[])
33 {
34 return 0;
35 }
36
37 int pthread_kill(pthread_t thread, int sig)
38 {
39 return -1;
40 }
41
42
43 sighandler_t posix_signal(int signum, sighandler_t handler)
44 {
45 return signal((signum),(handler));
46 }
47
48 int getrlimit(int resource, struct rlimit *rlp)
49 {
50 return 0;
51 }
52
53 int setrlimit(int resource, const struct rlimit *rlp)
54 {
55 return 0;
56 }
57
58 int getrusage(int who, struct rusage *r_usage)
59 {
60 return 0;
61 }
62
63
64
65
66