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. --- hurd/exec.defs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'hurd') diff --git a/hurd/exec.defs b/hurd/exec.defs index 2888fb1e1..d879df1a1 100644 --- a/hurd/exec.defs +++ b/hurd/exec.defs @@ -1,5 +1,6 @@ /* Interface definitions for the exec servers. - Copyright (C) 1991,92,93,94,95,2001 Free Software Foundation, Inc. + Copyright (C) 1991, 1992, 1993, 1994, 1995, 2001, 2010 + Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -29,6 +30,7 @@ EXEC_IMPORTS INTR_INTERFACE +/* Deprecated: use exec_exec_paths instead. */ routine exec_exec ( execserver: file_t; file: mach_port_send_t; @@ -55,3 +57,18 @@ simpleroutine exec_setexecdata ( execserver: file_t; ports: portarray_t SCP; ints: intarray_t SCP); + +routine exec_exec_paths ( + execserver: file_t; + file: mach_port_send_t; + oldtask: task_t; + flags: int; + path: string_t; + abspath: string_t; + argv: data_t SCP; + envp: data_t SCP; + dtable: portarray_t SCP; + portarray: portarray_t SCP; + intarray: intarray_t SCP; + deallocnames: mach_port_name_array_t; + destroynames: mach_port_name_array_t); -- cgit v1.2.3