xref: /haiku/headers/private/system/user_runtime.h (revision 52f7c9389475e19fc21487b38064b4390eeb6fea)
1 /*
2  * Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de.
3  * Distributed under the terms of the MIT License.
4  *
5  * Copyright 2002, Manuel J. Petit. All rights reserved.
6  * Distributed under the terms of the NewOS License.
7  */
8 #ifndef KERNEL_USER_RUNTIME_H_
9 #define KERNEL_USER_RUNTIME_H_
10 
11 
12 #include <image.h>
13 #include <OS.h>
14 
15 
16 #define MAGIC_APP_NAME	"_APP_"
17 
18 #define MAX_PROCESS_ARGS_SIZE	(256 * 1024)
19 	// maximal total size needed for process arguments and environment strings
20 
21 
22 struct user_space_program_args {
23 	char	program_name[B_OS_NAME_LENGTH];
24 	char	program_path[B_PATH_NAME_LENGTH];
25 	port_id	error_port;
26 	uint32	error_token;
27 	int		arg_count;
28 	int		env_count;
29 	char	**args;
30 	char	**env;
31 	mode_t	umask;	// (mode_t)-1 means not set
32 	bool	disable_user_addons;
33 };
34 
35 #endif	/* KERNEL_USER_RUNTIME_H_ */
36