]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/mach/slot_name.c
xnu-1699.32.7.tar.gz
[apple/xnu.git] / libsyscall / mach / slot_name.c
index a059c1c5988fe400efe00bda58d3b87dd9b12860..fa733527c3ef0a4f623d1f5ea9ea4bbb20f0e266 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) {
        return KERN_FAILURE;
 }