Lines Matching refs:err
156 int err; \
161 err = (handle)->cf_error; \
177 if (err != 0 && !uv__is_closing((handle)) && uv__is_active((handle))) \
178 (handle)->cb((handle), NULL, 0, err); \
197 int err) { in uv__fsevents_push_event() argument
198 assert(events != NULL || err != 0); in uv__fsevents_push_event()
206 if (err != 0) in uv__fsevents_push_event()
207 handle->cf_error = err; in uv__fsevents_push_event()
407 int err; in uv__fsevents_reschedule() local
412 err = 0; in uv__fsevents_reschedule()
431 err = UV_ENOMEM; in uv__fsevents_reschedule()
459 err = 0; in uv__fsevents_reschedule()
465 err = UV_ENOMEM; in uv__fsevents_reschedule()
468 err = uv__fsevents_create_stream(state, loop, cf_paths); in uv__fsevents_reschedule()
473 if (err != 0) { in uv__fsevents_reschedule()
487 uv__fsevents_push_event(curr, NULL, err); in uv__fsevents_reschedule()
507 int err; in uv__fsevents_global_init() local
509 err = 0; in uv__fsevents_global_init()
519 err = UV_ENOSYS; in uv__fsevents_global_init()
534 err = UV_ENOENT; in uv__fsevents_global_init()
561 err = 0; in uv__fsevents_global_init()
564 if (err && core_services_handle != NULL) { in uv__fsevents_global_init()
569 if (err && core_foundation_handle != NULL) { in uv__fsevents_global_init()
575 return err; in uv__fsevents_global_init()
584 int err; in uv__fsevents_loop_init() local
589 err = uv__fsevents_global_init(); in uv__fsevents_loop_init()
590 if (err) in uv__fsevents_loop_init()
591 return err; in uv__fsevents_loop_init()
597 err = uv_mutex_init(&loop->cf_mutex); in uv__fsevents_loop_init()
598 if (err) in uv__fsevents_loop_init()
601 err = uv_sem_init(&loop->cf_sem, 0); in uv__fsevents_loop_init()
602 if (err) in uv__fsevents_loop_init()
607 err = uv_sem_init(&state->fsevent_sem, 0); in uv__fsevents_loop_init()
608 if (err) in uv__fsevents_loop_init()
611 err = uv_mutex_init(&state->fsevent_mutex); in uv__fsevents_loop_init()
612 if (err) in uv__fsevents_loop_init()
624 err = UV_ENOMEM; in uv__fsevents_loop_init()
637 err = UV__ERR(pthread_create(&loop->cf_thread, &attr, uv__cf_loop_runner, loop)); in uv__fsevents_loop_init()
642 if (err) in uv__fsevents_loop_init()
666 return err; in uv__fsevents_loop_init()
793 int err; in uv__fsevents_init() local
796 err = uv__fsevents_loop_init(handle->loop); in uv__fsevents_init()
797 if (err) in uv__fsevents_init()
798 return err; in uv__fsevents_init()
820 err = UV_ENOMEM; in uv__fsevents_init()
829 err = uv_mutex_init(&handle->cf_mutex); in uv__fsevents_init()
830 if (err) in uv__fsevents_init()
843 err = uv__cf_loop_signal(handle->loop, handle, kUVCFLoopSignalRegular); in uv__fsevents_init()
844 if (err) in uv__fsevents_init()
861 return err; in uv__fsevents_init()
867 int err; in uv__fsevents_close() local
883 err = uv__cf_loop_signal(handle->loop, handle, kUVCFLoopSignalClosing); in uv__fsevents_close()
884 if (err) in uv__fsevents_close()
885 return UV__ERR(err); in uv__fsevents_close()