Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:02:26

0001 /* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
0002  *
0003  * Permission is hereby granted, free of charge, to any person obtaining a copy
0004  * of this software and associated documentation files (the "Software"), to
0005  * deal in the Software without restriction, including without limitation the
0006  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
0007  * sell copies of the Software, and to permit persons to whom the Software is
0008  * furnished to do so, subject to the following conditions:
0009  *
0010  * The above copyright notice and this permission notice shall be included in
0011  * all copies or substantial portions of the Software.
0012  *
0013  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0014  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0015  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
0016  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0017  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0018  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
0019  * IN THE SOFTWARE.
0020  */
0021 
0022 #ifndef UV_SUNOS_H
0023 #define UV_SUNOS_H
0024 
0025 #include <sys/port.h>
0026 #include <port.h>
0027 
0028 /* For the sake of convenience and reduced #ifdef-ery in src/unix/sunos.c,
0029  * add the fs_event fields even when this version of SunOS doesn't support
0030  * file watching.
0031  */
0032 #define UV_PLATFORM_LOOP_FIELDS                                               \
0033   uv__io_t fs_event_watcher;                                                  \
0034   int fs_fd;                                                                  \
0035 
0036 #if defined(PORT_SOURCE_FILE)
0037 
0038 # define UV_PLATFORM_FS_EVENT_FIELDS                                          \
0039   file_obj_t fo;                                                              \
0040   int fd;                                                                     \
0041 
0042 #endif /* defined(PORT_SOURCE_FILE) */
0043 
0044 #endif /* UV_SUNOS_H */