/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.1*2* Permission is hereby granted, free of charge, to any person obtaining a copy3* of this software and associated documentation files (the "Software"), to4* deal in the Software without restriction, including without limitation the5* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or6* sell copies of the Software, and to permit persons to whom the Software is7* furnished to do so, subject to the following conditions:8*9* The above copyright notice and this permission notice shall be included in10* all copies or substantial portions of the Software.11*12* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR13* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,14* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE15* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER16* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING17* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS18* IN THE SOFTWARE.19*/2021#ifndef UV_DARWIN_H22#define UV_DARWIN_H2324#if defined(__APPLE__) && defined(__MACH__)25# include <mach/mach.h>26# include <mach/task.h>27# include <mach/semaphore.h>28# include <TargetConditionals.h>29# define UV_PLATFORM_SEM_T semaphore_t30#endif3132#define UV_IO_PRIVATE_PLATFORM_FIELDS \33int rcount; \34int wcount; \3536#define UV_PLATFORM_LOOP_FIELDS \37uv_thread_t cf_thread; \38void* _cf_reserved; \39void* cf_state; \40uv_mutex_t cf_mutex; \41uv_sem_t cf_sem; \42void* cf_signals[2]; \4344#define UV_PLATFORM_FS_EVENT_FIELDS \45uv__io_t event_watcher; \46char* realpath; \47int realpath_len; \48int cf_flags; \49uv_async_t* cf_cb; \50void* cf_events[2]; \51void* cf_member[2]; \52int cf_error; \53uv_mutex_t cf_mutex; \5455#define UV_STREAM_PRIVATE_PLATFORM_FIELDS \56void* select; \5758#define UV_HAVE_KQUEUE 15960#endif /* UV_DARWIN_H */616263