this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add task_name_for_pid() implementation

+11 -2
+11 -2
src/kernel/emulation/linux/mach/mach_traps.c
··· 550 550 int pid, 551 551 mach_port_name_t *tn) 552 552 { 553 - UNIMPLEMENTED_TRAP(); 554 - return KERN_FAILURE; 553 + kern_return_t rv; 554 + struct task_name_for_pid args = { 555 + .task_port = target_tport, 556 + .pid = pid 557 + }; 558 + 559 + rv = ioctl(driver_fd, NR_task_name_for_pid_trap, &args); 560 + if (rv == KERN_SUCCESS) 561 + *tn = args.name_out; 562 + 563 + return rv; 555 564 } 556 565 557 566 kern_return_t pid_for_task_impl(