Blame src/unix/linux-syscalls.h

Packit Service 7c31a4
/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
Packit Service 7c31a4
 *
Packit Service 7c31a4
 * Permission is hereby granted, free of charge, to any person obtaining a copy
Packit Service 7c31a4
 * of this software and associated documentation files (the "Software"), to
Packit Service 7c31a4
 * deal in the Software without restriction, including without limitation the
Packit Service 7c31a4
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
Packit Service 7c31a4
 * sell copies of the Software, and to permit persons to whom the Software is
Packit Service 7c31a4
 * furnished to do so, subject to the following conditions:
Packit Service 7c31a4
 *
Packit Service 7c31a4
 * The above copyright notice and this permission notice shall be included in
Packit Service 7c31a4
 * all copies or substantial portions of the Software.
Packit Service 7c31a4
 *
Packit Service 7c31a4
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Packit Service 7c31a4
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Packit Service 7c31a4
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Packit Service 7c31a4
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Packit Service 7c31a4
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
Packit Service 7c31a4
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
Packit Service 7c31a4
 * IN THE SOFTWARE.
Packit Service 7c31a4
 */
Packit Service 7c31a4
Packit Service 7c31a4
#ifndef UV_LINUX_SYSCALL_H_
Packit Service 7c31a4
#define UV_LINUX_SYSCALL_H_
Packit Service 7c31a4
Packit Service 7c31a4
#undef  _GNU_SOURCE
Packit Service 7c31a4
#define _GNU_SOURCE
Packit Service 7c31a4
Packit Service 7c31a4
#include <stdint.h>
Packit Service 7c31a4
#include <signal.h>
Packit Service 7c31a4
#include <sys/types.h>
Packit Service 7c31a4
#include <sys/time.h>
Packit Service 7c31a4
#include <sys/socket.h>
Packit Service 7c31a4
Packit Service 7c31a4
struct uv__statx_timestamp {
Packit Service 7c31a4
  int64_t tv_sec;
Packit Service 7c31a4
  uint32_t tv_nsec;
Packit Service 7c31a4
  int32_t unused0;
Packit Service 7c31a4
};
Packit Service 7c31a4
Packit Service 7c31a4
struct uv__statx {
Packit Service 7c31a4
  uint32_t stx_mask;
Packit Service 7c31a4
  uint32_t stx_blksize;
Packit Service 7c31a4
  uint64_t stx_attributes;
Packit Service 7c31a4
  uint32_t stx_nlink;
Packit Service 7c31a4
  uint32_t stx_uid;
Packit Service 7c31a4
  uint32_t stx_gid;
Packit Service 7c31a4
  uint16_t stx_mode;
Packit Service 7c31a4
  uint16_t unused0;
Packit Service 7c31a4
  uint64_t stx_ino;
Packit Service 7c31a4
  uint64_t stx_size;
Packit Service 7c31a4
  uint64_t stx_blocks;
Packit Service 7c31a4
  uint64_t stx_attributes_mask;
Packit Service 7c31a4
  struct uv__statx_timestamp stx_atime;
Packit Service 7c31a4
  struct uv__statx_timestamp stx_btime;
Packit Service 7c31a4
  struct uv__statx_timestamp stx_ctime;
Packit Service 7c31a4
  struct uv__statx_timestamp stx_mtime;
Packit Service 7c31a4
  uint32_t stx_rdev_major;
Packit Service 7c31a4
  uint32_t stx_rdev_minor;
Packit Service 7c31a4
  uint32_t stx_dev_major;
Packit Service 7c31a4
  uint32_t stx_dev_minor;
Packit Service 7c31a4
  uint64_t unused1[14];
Packit Service 7c31a4
};
Packit Service 7c31a4
Packit Service 7c31a4
ssize_t uv__preadv(int fd, const struct iovec *iov, int iovcnt, int64_t offset);
Packit Service 7c31a4
ssize_t uv__pwritev(int fd, const struct iovec *iov, int iovcnt, int64_t offset);
Packit Service 7c31a4
int uv__dup3(int oldfd, int newfd, int flags);
Packit Service e2ebee
ssize_t
Packit Service e2ebee
uv__fs_copy_file_range(int fd_in,
Packit Service e2ebee
                       ssize_t* off_in,
Packit Service e2ebee
                       int fd_out,
Packit Service e2ebee
                       ssize_t* off_out,
Packit Service e2ebee
                       size_t len,
Packit Service e2ebee
                       unsigned int flags);
Packit Service 7c31a4
int uv__statx(int dirfd,
Packit Service 7c31a4
              const char* path,
Packit Service 7c31a4
              int flags,
Packit Service 7c31a4
              unsigned int mask,
Packit Service 7c31a4
              struct uv__statx* statxbuf);
Packit Service 7c31a4
ssize_t uv__getrandom(void* buf, size_t buflen, unsigned flags);
Packit Service 7c31a4
Packit Service 7c31a4
#endif /* UV_LINUX_SYSCALL_H_ */