gitlab.com/Raven-IO/raven-delve@v1.22.4/pkg/proc/native/proc_darwin.h (about)

     1  //+build darwin,macnative
     2  
     3  #include <sys/types.h>
     4  #include <libproc.h>
     5  #include <mach/mach.h>
     6  #include <mach/mach_vm.h>
     7  #include "mach_exc.h"
     8  #include "exc.h"
     9  
    10  #ifdef	mig_external
    11  mig_external
    12  #else
    13  extern
    14  #endif	/* mig_external */
    15  boolean_t exc_server(
    16  		mach_msg_header_t *InHeadP,
    17  		mach_msg_header_t *OutHeadP);
    18  
    19  #ifdef	mig_external
    20  mig_external
    21  #else
    22  extern
    23  #endif	/* mig_external */
    24  boolean_t mach_exc_server(
    25  		mach_msg_header_t *InHeadP,
    26  		mach_msg_header_t *OutHeadP);
    27  
    28  kern_return_t
    29  acquire_mach_task(int, task_t*, mach_port_t*, mach_port_t*, mach_port_t*);
    30  
    31  char *
    32  find_executable(int pid);
    33  
    34  kern_return_t
    35  get_threads(task_t task, void *data,int limit);
    36  
    37  int
    38  thread_count(task_t task);
    39  
    40  mach_port_t
    41  mach_port_wait(mach_port_t, task_t*, int);
    42  
    43  kern_return_t
    44  mach_send_reply(mach_msg_header_t);
    45  
    46  kern_return_t
    47  raise_exception(mach_port_t, mach_port_t, mach_port_t, exception_type_t);
    48  
    49  kern_return_t
    50  reset_exception_ports(task_t task, mach_port_t *exception_port, mach_port_t *notification_port);
    51  
    52  task_t
    53  get_task_for_pid(int pid);
    54  
    55  int
    56  task_is_valid(task_t task);