#include <mach/mach_host_server.h>
#include <mach/host_priv_server.h>
+#include <libkern/section_keywords.h>
/*
* Actual clock alarm structure. Used for user clock_sleep() and
clock_attr_t attr,
mach_msg_type_number_t *count);
-struct clock_ops sysclk_ops = {
+SECURITY_READ_ONLY_EARLY(struct clock_ops) sysclk_ops = {
NULL, rtclock_init,
rtclock_gettime,
rtclock_getattr,
clock_attr_t attr,
mach_msg_type_number_t *count);
-struct clock_ops calend_ops = {
+SECURITY_READ_ONLY_EARLY(struct clock_ops) calend_ops = {
NULL, NULL,
calend_gettime,
calend_getattr,
int sleep_nsec = args->sleep_nsec;
mach_vm_address_t wakeup_time_addr = args->wakeup_time;
clock_t clock;
- mach_timespec_t swtime;
+ mach_timespec_t swtime = {};
kern_return_t rvalue;
/*