5#if defined HAVE_SYS_PARAM_H
8static void* stub_options(
int argc,
char **argv);
9#define ruby_options stub_options
14stub_options(
int argc,
char **argv)
17 char *xargv[4] = {NULL, xflag};
21#if defined __CYGWIN__ || defined _WIN32
24#elif defined __linux__
26 char selfexe[MAXPATHLEN];
27 ssize_t len = readlink(
"/proc/self/exe", selfexe,
sizeof(selfexe));
29 perror(
"readlink(\"/proc/self/exe\")");
35#elif defined HAVE_DLADDR
38 if (!dladdr(stub_options, &dli)) {
42 cmd = (
char *)dli.dli_fname;
46#ifndef HAVE_SETPROCTITLE
48 ruby_init_setproctitle(argc, argv);
void ruby_set_argv(int argc, char **argv)
Sets argv that ruby understands.
void * ruby_options(int argc, char **argv)
Processes command line arguments and compiles the Ruby source to execute.