526669de6f
* Resolves an issue compiling icu70 * FreeBSD is 262,144 * Linux is 2,097,152 * Haiku was 131,072 This roughly doubles the maximum args length, and makes us function inline with FreeBSD today. If we're the shortest straw, we're going to find a lot of things broken (such as ICU 70.1) Matching FreeBSD means any limitations we see will also be seen on FreeBSD, making fewer "Haiku issues". Change-Id: I677c0523a2f27c9e9901fda4180445bcb6da31b2 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4991 Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com> Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
36 lines
812 B
C
36 lines
812 B
C
/*
|
|
* Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Copyright 2002, Manuel J. Petit. All rights reserved.
|
|
* Distributed under the terms of the NewOS License.
|
|
*/
|
|
#ifndef KERNEL_USER_RUNTIME_H_
|
|
#define KERNEL_USER_RUNTIME_H_
|
|
|
|
|
|
#include <image.h>
|
|
#include <OS.h>
|
|
|
|
|
|
#define MAGIC_APP_NAME "_APP_"
|
|
|
|
#define MAX_PROCESS_ARGS_SIZE (256 * 1024)
|
|
// maximal total size needed for process arguments and environment strings
|
|
|
|
|
|
struct user_space_program_args {
|
|
char program_name[B_OS_NAME_LENGTH];
|
|
char program_path[B_PATH_NAME_LENGTH];
|
|
port_id error_port;
|
|
uint32 error_token;
|
|
int arg_count;
|
|
int env_count;
|
|
char **args;
|
|
char **env;
|
|
mode_t umask; // (mode_t)-1 means not set
|
|
bool disable_user_addons;
|
|
};
|
|
|
|
#endif /* KERNEL_USER_RUNTIME_H_ */
|