17777dab0Sopenharmony_ci/* Copyright Joyent, Inc. and other Node contributors. All rights reserved. 27777dab0Sopenharmony_ci * 37777dab0Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a copy 47777dab0Sopenharmony_ci * of this software and associated documentation files (the "Software"), to 57777dab0Sopenharmony_ci * deal in the Software without restriction, including without limitation the 67777dab0Sopenharmony_ci * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 77777dab0Sopenharmony_ci * sell copies of the Software, and to permit persons to whom the Software is 87777dab0Sopenharmony_ci * furnished to do so, subject to the following conditions: 97777dab0Sopenharmony_ci * 107777dab0Sopenharmony_ci * The above copyright notice and this permission notice shall be included in 117777dab0Sopenharmony_ci * all copies or substantial portions of the Software. 127777dab0Sopenharmony_ci * 137777dab0Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 147777dab0Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 157777dab0Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 167777dab0Sopenharmony_ci * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 177777dab0Sopenharmony_ci * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 187777dab0Sopenharmony_ci * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 197777dab0Sopenharmony_ci * IN THE SOFTWARE. 207777dab0Sopenharmony_ci */ 217777dab0Sopenharmony_ci 227777dab0Sopenharmony_ci#ifndef UV_SUNOS_H 237777dab0Sopenharmony_ci#define UV_SUNOS_H 247777dab0Sopenharmony_ci 257777dab0Sopenharmony_ci#include <sys/port.h> 267777dab0Sopenharmony_ci#include <port.h> 277777dab0Sopenharmony_ci 287777dab0Sopenharmony_ci/* For the sake of convenience and reduced #ifdef-ery in src/unix/sunos.c, 297777dab0Sopenharmony_ci * add the fs_event fields even when this version of SunOS doesn't support 307777dab0Sopenharmony_ci * file watching. 317777dab0Sopenharmony_ci */ 327777dab0Sopenharmony_ci#define UV_PLATFORM_LOOP_FIELDS \ 337777dab0Sopenharmony_ci uv__io_t fs_event_watcher; \ 347777dab0Sopenharmony_ci int fs_fd; \ 357777dab0Sopenharmony_ci 367777dab0Sopenharmony_ci#if defined(PORT_SOURCE_FILE) 377777dab0Sopenharmony_ci 387777dab0Sopenharmony_ci# define UV_PLATFORM_FS_EVENT_FIELDS \ 397777dab0Sopenharmony_ci file_obj_t fo; \ 407777dab0Sopenharmony_ci int fd; \ 417777dab0Sopenharmony_ci 427777dab0Sopenharmony_ci#endif /* defined(PORT_SOURCE_FILE) */ 437777dab0Sopenharmony_ci 447777dab0Sopenharmony_ci#endif /* UV_SUNOS_H */ 45