From 67fa50fb8f0a6894e5ed6534936afb8044e66613 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Wed, 26 May 2010 00:15:37 +0200 Subject: Add a new exec_exec_paths RPC * hurd/exec.defs (exec_exec): Label as deprecated. (exec_exec_paths): New RPC. * doc/hurd.texi: Update accordingly. * exec/hashexec.c (check_hashbang): Add file_name_exec argument. Don't guess the file name if file_name_exec is set. * exec/priv.h (check_hashbang): Add path argument. * exec/exec.c (S_exec_exec): Label as deprecated. (S_exec_exec_paths): New function. (do_exec): Add path and abspath arguments, pass path to check_hashbang. --- exec/priv.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'exec/priv.h') diff --git a/exec/priv.h b/exec/priv.h index be085803..e84d8150 100644 --- a/exec/priv.h +++ b/exec/priv.h @@ -1,5 +1,6 @@ /* GNU Hurd standard exec server, private declarations. - Copyright (C) 1992,93,94,95,96,99,2000,02, 04 Free Software Foundation, Inc. + Copyright (C) 1992, 1993, 1994, 1995, 1996, 1999, 2000, 2002, 2004, + 2010 Free Software Foundation, Inc. Written by Roland McGrath. This file is part of the GNU Hurd. @@ -135,6 +136,7 @@ void check_hashbang (struct execdata *e, file_t file, task_t oldtask, int flags, + char *filename, char *argv, u_int argvlen, boolean_t argv_copy, char *envp, u_int envplen, boolean_t envp_copy, mach_port_t *dtable, u_int dtablesize, -- cgit v1.2.3