X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..d26ffc64f583ab2d29df48f13518685602bc8832:/libsyscall/mach/slot_name.c?ds=sidebyside diff --git a/libsyscall/mach/slot_name.c b/libsyscall/mach/slot_name.c index a059c1c59..180b97b45 100644 --- a/libsyscall/mach/slot_name.c +++ b/libsyscall/mach/slot_name.c @@ -46,43 +46,28 @@ #include #include -/* - * Convert the specified cpu_type/cpu_subtype pair to their - * human readable form. - */ -void slot_name(cpu_type, cpu_subtype, cpu_name, cpu_subname) - cpu_type_t cpu_type; - cpu_subtype_t cpu_subtype; - char **cpu_name, **cpu_subname; -{ - register char *name = "Unknown CPU"; - register char *subname = ""; - const NXArchInfo *ai = NXGetArchInfoFromCpuType(cpu_type, cpu_subtype); - if (ai != NULL) { - name = (char *)ai->name; - subname = (char *)ai->description; - } - *cpu_name = name; - *cpu_subname = subname; -} - -kern_return_t msg_rpc(void) { +kern_return_t +msg_rpc(void) { return KERN_FAILURE; } -kern_return_t msg_send(void) { +kern_return_t +msg_send(void) { return KERN_FAILURE; } -kern_return_t msg_receive(void) { +kern_return_t +msg_receive(void) { return KERN_FAILURE; } -mach_port_t task_self_(void) { +mach_port_t +task_self_(void) { return mach_task_self(); } -mach_port_t host_self(void) { +mach_port_t +host_self(void) { return mach_host_self(); }