Blame src/unix/linux-syscalls.h

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