httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <>
Subject 2.0 ap_exec.e Header Questions...
Date Sat, 15 Apr 2000 00:43:12 GMT
What's with ap_exec.e???

It sure doesn't seem like it belongs in ap_config.h... 
this is a real tangled ap/apr mess.

APR seems to think it needs to undef what was done in the core config.
Here's a grep of what's going on with exec.e (ve/le)

We should NEVER be defining APR in terms of ap, if this ap_config code 
is needed, then it should be moved over to apr_lib:

 (639):#define NEED_HASHBANG_EMUL /* execve() doesn't start shell scripts by default */
(1203):extern int ap_execle(const char *filename, const char *arg,...);
(1204):extern int ap_execve(const char *filename, const char *argv[],
(1206):/* ap_execle() is a wrapper function around ap_execve(). */
(1207):#define execle  ap_execle
(1208):#define execve(path,argv,envp)  ap_execve(path,argv,envp)

 (96):#undef execle
 (97):#undef execve
(112):API_EXPORT_NONSTD(ap_status_t) ap_execle(const char *filename, const char *argv
(139):    ap_execve(filename, argv, envp);
(158):/* Emulate the execve call, respecting a #!/interpreter line if present.
(163):ap_status_t ap_execve(const char *filename, char * const argv[],
(174):    execve(filename, argv, envp);
(211):	    execve(filename, script_argv, envp);
(235):	    execve(SHELL_PATH, script_argv, envp);
(383):extern void ap_execve_is_not_here(void);
(384):void ap_execve_is_not_here(void) {}

(111):	execve (progname, newargs, environ);

(288):            execve(SHELL_PATH, (char **) newargs, env);
(294):            execve(progname, args, env);

(263):            execle(SUEXEC_BIN, SUEXEC_BIN, execuser, grpname, argv0,
(268):            execle(SUEXEC_BIN, SUEXEC_BIN, execuser, grpname, argv0,
(273):            execve(SUEXEC_BIN,
(282):            execle(SHELL_PATH, SHELL_PATH, "-c", argv0, NULL, env);
(286):            execle(r->filename, argv0, NULL, env);
(290):            execve(r->filename,
(849):    if (!ap_suexec_enabled) { 

(195):int execle(const char *path, const char *arg0, ...)
(201):int execve(const char *path, char *const argv[], char *const envp[])

(544):	ap_execve(cmd, &argv[3], environ);

(547):	ap_execve(cmd, &argv[3], environ);

View raw message