summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu27@gmail.com>2010-05-26 00:15:37 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-08 22:40:18 +0100
commit67fa50fb8f0a6894e5ed6534936afb8044e66613 (patch)
tree1097db000b7c9520a67a0f07b481cc487585a895 /hurd
parent6868c17b7def25beb69e7b685496e078340d8b12 (diff)
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.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/exec.defs19
1 files changed, 18 insertions, 1 deletions
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);