btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / system / user_runtime.h
blob9bd6d1712c9db25866d8f8272b3da0d2720be24a
1 /*
2 * Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
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_
12 #include <image.h>
13 #include <OS.h>
16 #define MAGIC_APP_NAME "_APP_"
18 #define MAX_PROCESS_ARGS_SIZE (128 * 1024)
19 // maximal total size needed for process arguments and environment strings
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
34 #endif /* KERNEL_USER_RUNTIME_H_ */