11cb0ef41Sopenharmony_ci/* Copyright Joyent, Inc. and other Node contributors. All rights reserved. 21cb0ef41Sopenharmony_ci * 31cb0ef41Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a copy 41cb0ef41Sopenharmony_ci * of this software and associated documentation files (the "Software"), to 51cb0ef41Sopenharmony_ci * deal in the Software without restriction, including without limitation the 61cb0ef41Sopenharmony_ci * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 71cb0ef41Sopenharmony_ci * sell copies of the Software, and to permit persons to whom the Software is 81cb0ef41Sopenharmony_ci * furnished to do so, subject to the following conditions: 91cb0ef41Sopenharmony_ci * 101cb0ef41Sopenharmony_ci * The above copyright notice and this permission notice shall be included in 111cb0ef41Sopenharmony_ci * all copies or substantial portions of the Software. 121cb0ef41Sopenharmony_ci * 131cb0ef41Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 141cb0ef41Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 151cb0ef41Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 161cb0ef41Sopenharmony_ci * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 171cb0ef41Sopenharmony_ci * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 181cb0ef41Sopenharmony_ci * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 191cb0ef41Sopenharmony_ci * IN THE SOFTWARE. 201cb0ef41Sopenharmony_ci */ 211cb0ef41Sopenharmony_ci 221cb0ef41Sopenharmony_ci#ifndef UV_LINUX_SYSCALL_H_ 231cb0ef41Sopenharmony_ci#define UV_LINUX_SYSCALL_H_ 241cb0ef41Sopenharmony_ci 251cb0ef41Sopenharmony_ci#include <stdint.h> 261cb0ef41Sopenharmony_ci#include <signal.h> 271cb0ef41Sopenharmony_ci#include <sys/types.h> 281cb0ef41Sopenharmony_ci#include <sys/time.h> 291cb0ef41Sopenharmony_ci#include <sys/socket.h> 301cb0ef41Sopenharmony_ci 311cb0ef41Sopenharmony_cistruct uv__statx_timestamp { 321cb0ef41Sopenharmony_ci int64_t tv_sec; 331cb0ef41Sopenharmony_ci uint32_t tv_nsec; 341cb0ef41Sopenharmony_ci int32_t unused0; 351cb0ef41Sopenharmony_ci}; 361cb0ef41Sopenharmony_ci 371cb0ef41Sopenharmony_cistruct uv__statx { 381cb0ef41Sopenharmony_ci uint32_t stx_mask; 391cb0ef41Sopenharmony_ci uint32_t stx_blksize; 401cb0ef41Sopenharmony_ci uint64_t stx_attributes; 411cb0ef41Sopenharmony_ci uint32_t stx_nlink; 421cb0ef41Sopenharmony_ci uint32_t stx_uid; 431cb0ef41Sopenharmony_ci uint32_t stx_gid; 441cb0ef41Sopenharmony_ci uint16_t stx_mode; 451cb0ef41Sopenharmony_ci uint16_t unused0; 461cb0ef41Sopenharmony_ci uint64_t stx_ino; 471cb0ef41Sopenharmony_ci uint64_t stx_size; 481cb0ef41Sopenharmony_ci uint64_t stx_blocks; 491cb0ef41Sopenharmony_ci uint64_t stx_attributes_mask; 501cb0ef41Sopenharmony_ci struct uv__statx_timestamp stx_atime; 511cb0ef41Sopenharmony_ci struct uv__statx_timestamp stx_btime; 521cb0ef41Sopenharmony_ci struct uv__statx_timestamp stx_ctime; 531cb0ef41Sopenharmony_ci struct uv__statx_timestamp stx_mtime; 541cb0ef41Sopenharmony_ci uint32_t stx_rdev_major; 551cb0ef41Sopenharmony_ci uint32_t stx_rdev_minor; 561cb0ef41Sopenharmony_ci uint32_t stx_dev_major; 571cb0ef41Sopenharmony_ci uint32_t stx_dev_minor; 581cb0ef41Sopenharmony_ci uint64_t unused1[14]; 591cb0ef41Sopenharmony_ci}; 601cb0ef41Sopenharmony_ci 611cb0ef41Sopenharmony_cissize_t uv__preadv(int fd, const struct iovec *iov, int iovcnt, int64_t offset); 621cb0ef41Sopenharmony_cissize_t uv__pwritev(int fd, const struct iovec *iov, int iovcnt, int64_t offset); 631cb0ef41Sopenharmony_ciint uv__dup3(int oldfd, int newfd, int flags); 641cb0ef41Sopenharmony_cissize_t 651cb0ef41Sopenharmony_ciuv__fs_copy_file_range(int fd_in, 661cb0ef41Sopenharmony_ci off_t* off_in, 671cb0ef41Sopenharmony_ci int fd_out, 681cb0ef41Sopenharmony_ci off_t* off_out, 691cb0ef41Sopenharmony_ci size_t len, 701cb0ef41Sopenharmony_ci unsigned int flags); 711cb0ef41Sopenharmony_ciint uv__statx(int dirfd, 721cb0ef41Sopenharmony_ci const char* path, 731cb0ef41Sopenharmony_ci int flags, 741cb0ef41Sopenharmony_ci unsigned int mask, 751cb0ef41Sopenharmony_ci struct uv__statx* statxbuf); 761cb0ef41Sopenharmony_cissize_t uv__getrandom(void* buf, size_t buflen, unsigned flags); 771cb0ef41Sopenharmony_ci 781cb0ef41Sopenharmony_ci#endif /* UV_LINUX_SYSCALL_H_ */ 79