PATHNAME_CONVERT_OUT(path, pout);
for (argc = 0; argv[argc]; argc++);
- {
+
+ do {
/* c99ified */
char *new_argv[argc+1];
for (i = 0; i < argc; i++) {
}
new_argv[argc] = NULL;
return execvp(pout, new_argv);
- }
+ } while (0);
}
#endif /* ENCAPSULATE_EXECVP */
+
+int raw_execvp(const char *path, char *const *argv)
+{
+ return execvp(path, argv);
+}
+
\f
/************************************************************************/
/* Emulations of missing system calls */
# define sys_execvp execvp
#endif
+int raw_execvp(const char *, char *const *);
+
/* How long can a source filename be in DOC (including "\037S" at the start
and "\n" at the end) ? */
#define DOC_MAX_FILENAME_LENGTH 2048