]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/mach/slot_name.c
xnu-4570.71.2.tar.gz
[apple/xnu.git] / libsyscall / mach / slot_name.c
index a059c1c5988fe400efe00bda58d3b87dd9b12860..180b97b45d8198d187f18f22ffd03b0c7a769286 100644 (file)
 #include <mach-o/arch.h>
 #include <stddef.h>
 
-/*
- *     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();
 }