/ src / startup / mldr / loader.h
loader.h
 1  #ifndef _MLDR_LOADER_H_
 2  #define _MLDR_LOADER_H_
 3  
 4  #include <stdint.h>
 5  #include <stdbool.h>
 6  #include <stddef.h>
 7  
 8  struct load_results {
 9  	unsigned long mh;
10  	unsigned long entry_point;
11  	unsigned long stack_size;
12  	unsigned long dyld_all_image_location;
13  	unsigned long dyld_all_image_size;
14  	uint8_t uuid[16];
15  
16  	unsigned long vm_addr_max;
17  	bool _32on64;
18  	unsigned long base;
19  	uint32_t bprefs[4];
20  	char* root_path;
21  	size_t root_path_length;
22  	unsigned long stack_top;
23  	char* socket_path;
24  	int kernfd;
25  	int lifetime_pipe;
26  
27  	size_t argc;
28  	size_t envc;
29  	char** argv;
30  	char** envp;
31  };
32  
33  #endif // _MLDR_LOADER_H_