summaryrefslogtreecommitdiff
path: root/hurd/exec_startup.defs
blob: 697f6b228066f21fbcf04ed904f384ee0d52e24d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* Interface definitions for process startup.
   Copyright (C) 1995 Free Software Foundation, Inc.

This file is part of the GNU Hurd.

The GNU Hurd is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

The GNU Hurd is distributed in the hope that it will be useful, 
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with the GNU Hurd; see the file COPYING.  If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */

/* Written by Roland McGrath.  */

subsystem exec_startup 30500;

#include <hurd/hurd_types.defs>

#ifdef	EXEC_STARTUP_IMPORTS
EXEC_STARTUP_IMPORTS
#endif

/* This call is made by a new task to its bootstrap port to get its
   startup ports and information.  */

routine exec_startup_get_info (
	bootstrap: exec_startup_t;
	/* These describe the entry point and program header data
	   of the user program loaded into the task.  */
	out user_entry: vm_address_t;
	out phdr_data: vm_address_t;
	out phdr_size: vm_size_t;
	/* These are the base address and size of the initial stack
	   allocated by the exec server.   */
	out stack_base: vm_address_t;
	out stack_size: vm_size_t;
	/* The rest of the information is that passed by exec_exec.  */
	out flags: int;
	out argv: data_t, dealloc;
	out envp: data_t, dealloc;
	out dtable: portarray_t, dealloc;
	out portarray: portarray_t, dealloc;
	out intarray: intarray_t, dealloc);