Ruby  1.9.3p448(2013-06-27revision41675)
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 
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 
int execl(const char *path, const char *arg0,...)
Definition: missing-pips.c:27
int setrlimit(int resource, const struct rlimit *rlp)
Definition: missing-pips.c:53
int kill(pid_t pid, int sig)
Definition: missing-pips.c:17
sighandler_t posix_signal(int signum, sighandler_t handler)
Definition: missing-pips.c:43
void(* sighandler_t)(int)
Definition: missing-pips.c:8
int execv(const char *path, char *const argv[])
Definition: missing-pips.c:32
int getrlimit(int resource, struct rlimit *rlp)
Definition: missing-pips.c:48
int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
Definition: missing-pips.c:22
int pthread_kill(pthread_t thread, int sig)
Definition: missing-pips.c:37
sighandler_t signal(int signum, sighandler_t handler)
int getrusage(int who, struct rusage *r_usage)
Definition: missing-pips.c:58
char ** environ
Definition: missing-pips.c:6
char ** argv
Definition: ruby.c:121