Created execl stub as a missing PIPS function

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
azav 2009-02-06 12:54:52 +00:00
parent 4e2141622f
commit 7ecbd56af4
2 changed files with 20 additions and 17 deletions

View File

@ -1097,9 +1097,7 @@ rb_proc_exec(const char *str)
exit(status);
#else
before_exec();
#ifndef __SYMBIAN32__
execl("/bin/sh", "sh", "-c", str, (char *)NULL);
#endif
preserving_errno(after_exec());
#endif
return -1;

View File

@ -1,4 +1,3 @@
//#include "symbian.h"
#include <sys/signal.h>
#include <sys/resource.h>
#include <fcntl.h>
@ -15,6 +14,7 @@ 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);
@ -53,6 +53,11 @@ 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;