Lines Matching defs:kret
225 kern_return_t kret;
319 kret = semaphore_create(mach_task_self(), &wakeup_semaphore, SYNC_POLICY_FIFO, 0);
320 if (kret != KERN_SUCCESS) {
321 printf("Couldn't allocate semaphore %d\n", kret);
325 kret = semaphore_create(mach_task_self(), &return_semaphore, SYNC_POLICY_FIFO, 0);
326 if (kret != KERN_SUCCESS) {
327 printf("Couldn't allocate semaphore %d\n", kret);
366 kret = mach_wait_until(target_time);
381 kret = semaphore_signal(wakeup_semaphore);
382 if (kret != KERN_SUCCESS) {
386 kret = semaphore_wait(return_semaphore);
387 if (kret != KERN_SUCCESS) {
430 kern_return_t kret;
448 kret = semaphore_wait(secargs->wakeup_semaphore);
449 if (kret != KERN_SUCCESS) {
450 errx(1, "semaphore_wait %d", kret);
472 kret = semaphore_signal(secargs->return_semaphore);
473 if (kret != KERN_SUCCESS) {
474 errx(1, "semaphore_signal %d", kret);