2018-10-01 08:19:06 +00:00
|
|
|
//+build darwin,macnative
|
|
|
|
|
2015-01-14 02:37:10 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <libproc.h>
|
|
|
|
#include <mach/mach.h>
|
|
|
|
#include <mach/mach_vm.h>
|
|
|
|
#include "mach_exc.h"
|
|
|
|
#include "exc.h"
|
|
|
|
|
|
|
|
#ifdef mig_external
|
|
|
|
mig_external
|
|
|
|
#else
|
|
|
|
extern
|
|
|
|
#endif /* mig_external */
|
|
|
|
boolean_t exc_server(
|
|
|
|
mach_msg_header_t *InHeadP,
|
|
|
|
mach_msg_header_t *OutHeadP);
|
|
|
|
|
|
|
|
#ifdef mig_external
|
|
|
|
mig_external
|
|
|
|
#else
|
|
|
|
extern
|
|
|
|
#endif /* mig_external */
|
|
|
|
boolean_t mach_exc_server(
|
|
|
|
mach_msg_header_t *InHeadP,
|
|
|
|
mach_msg_header_t *OutHeadP);
|
|
|
|
|
|
|
|
kern_return_t
|
2016-04-13 05:53:13 +00:00
|
|
|
acquire_mach_task(int, task_t*, mach_port_t*, mach_port_t*, mach_port_t*);
|
2015-01-14 02:37:10 +00:00
|
|
|
|
|
|
|
char *
|
|
|
|
find_executable(int pid);
|
|
|
|
|
|
|
|
kern_return_t
|
2016-01-08 08:43:37 +00:00
|
|
|
get_threads(task_t task, void *data,int limit);
|
2015-01-14 02:37:10 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
thread_count(task_t task);
|
|
|
|
|
2015-03-20 21:07:26 +00:00
|
|
|
mach_port_t
|
2016-11-10 10:20:08 +00:00
|
|
|
mach_port_wait(mach_port_t, task_t*, int);
|
2015-04-13 22:17:06 +00:00
|
|
|
|
2015-08-12 00:12:37 +00:00
|
|
|
kern_return_t
|
|
|
|
mach_send_reply(mach_msg_header_t);
|
|
|
|
|
2015-04-13 22:17:06 +00:00
|
|
|
kern_return_t
|
|
|
|
raise_exception(mach_port_t, mach_port_t, mach_port_t, exception_type_t);
|
2016-11-10 10:20:08 +00:00
|
|
|
|
|
|
|
kern_return_t
|
|
|
|
reset_exception_ports(task_t task, mach_port_t *exception_port, mach_port_t *notification_port);
|
|
|
|
|
|
|
|
task_t
|
|
|
|
get_task_for_pid(int pid);
|
|
|
|
|
|
|
|
int
|
|
|
|
task_is_valid(task_t task);
|