]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/mach/port_descriptions.c
xnu-6153.81.5.tar.gz
[apple/xnu.git] / libsyscall / mach / port_descriptions.c
index a5d8a93e1dc85bbb917e7d03895eee8e0837e4ab..2e086c80d061ccf1a7943b9e67e02238ba244bc7 100644 (file)
@@ -69,9 +69,11 @@ mach_host_special_port_description(int port)
                [HOST_RESOURCE_NOTIFY_PORT] = "resource notify",
                [HOST_CLOSURED_PORT] = "closured",
                [HOST_SYSPOLICYD_PORT] = "syspolicyd",
                [HOST_RESOURCE_NOTIFY_PORT] = "resource notify",
                [HOST_CLOSURED_PORT] = "closured",
                [HOST_SYSPOLICYD_PORT] = "syspolicyd",
+               [HOST_FILECOORDINATIOND_PORT] = "filecoordinationd",
+               [HOST_FAIRPLAYD_PORT] = "fairplayd",
        };
        };
-       _Static_assert(HOST_SYSPOLICYD_PORT == HOST_MAX_SPECIAL_PORT,
-                       "all host special ports must have descriptions");
+       _Static_assert(HOST_FAIRPLAYD_PORT == HOST_MAX_SPECIAL_PORT,
+           "all host special ports must have descriptions");
 
        return hsp_descs[port_index];
 }
 
        return hsp_descs[port_index];
 }
@@ -96,7 +98,7 @@ mach_task_special_port_description(int port)
                [TASK_RESOURCE_NOTIFY_PORT] = "resource notify",
        };
        _Static_assert(TASK_RESOURCE_NOTIFY_PORT == TASK_MAX_SPECIAL_PORT,
                [TASK_RESOURCE_NOTIFY_PORT] = "resource notify",
        };
        _Static_assert(TASK_RESOURCE_NOTIFY_PORT == TASK_MAX_SPECIAL_PORT,
-                       "all task special ports must have descriptions");
+           "all task special ports must have descriptions");
 
        return tsp_descs[port_index];
 }
 
        return tsp_descs[port_index];
 }
@@ -149,10 +151,11 @@ mach_host_special_port_for_id(const char *id)
                SP_ENTRY(HOST_RESOURCE_NOTIFY_PORT),
                SP_ENTRY(HOST_CLOSURED_PORT),
                SP_ENTRY(HOST_SYSPOLICYD_PORT),
                SP_ENTRY(HOST_RESOURCE_NOTIFY_PORT),
                SP_ENTRY(HOST_CLOSURED_PORT),
                SP_ENTRY(HOST_SYSPOLICYD_PORT),
+               SP_ENTRY(HOST_FILECOORDINATIOND_PORT),
        };
 
        return port_for_id_internal(id, hsp_ids,
        };
 
        return port_for_id_internal(id, hsp_ids,
-                       sizeof(hsp_ids) / sizeof(hsp_ids[0]));
+                  sizeof(hsp_ids) / sizeof(hsp_ids[0]));
 }
 
 int
 }
 
 int
@@ -171,5 +174,5 @@ mach_task_special_port_for_id(const char *id)
        };
 
        return port_for_id_internal(id, tsp_ids,
        };
 
        return port_for_id_internal(id, tsp_ids,
-                       sizeof(tsp_ids) / sizeof(tsp_ids[0]));
+                  sizeof(tsp_ids) / sizeof(tsp_ids[0]));
 }
 }