2002-07-09 12:24:59 +00:00
|
|
|
/*
|
2007-07-27 02:32:19 +00:00
|
|
|
* Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de.
|
2005-06-14 11:23:29 +00:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Copyright 2002, Manuel J. Petit. All rights reserved.
|
|
|
|
* Distributed under the terms of the NewOS License.
|
|
|
|
*/
|
2003-01-12 16:22:09 +00:00
|
|
|
#ifndef KERNEL_USER_RUNTIME_H_
|
|
|
|
#define KERNEL_USER_RUNTIME_H_
|
2002-07-09 12:24:59 +00:00
|
|
|
|
2005-06-14 11:23:29 +00:00
|
|
|
|
2003-01-12 16:22:09 +00:00
|
|
|
#include <image.h>
|
2004-02-23 03:14:49 +00:00
|
|
|
#include <OS.h>
|
2002-07-09 12:24:59 +00:00
|
|
|
|
2005-06-14 11:23:29 +00:00
|
|
|
|
2003-01-12 16:22:09 +00:00
|
|
|
#define MAGIC_APP_NAME "_APP_"
|
2002-07-09 12:24:59 +00:00
|
|
|
|
2008-06-24 03:37:07 +00:00
|
|
|
#define MAX_PROCESS_ARGS_SIZE (128 * 1024)
|
|
|
|
// maximal total size needed for process arguments and environment strings
|
|
|
|
|
|
|
|
|
2007-07-27 02:32:19 +00:00
|
|
|
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;
|
2006-01-06 03:48:11 +00:00
|
|
|
};
|
|
|
|
|
2003-01-12 16:22:09 +00:00
|
|
|
#endif /* KERNEL_USER_RUNTIME_H_ */
|