Rizin
unix-like reverse engineering framework and cli tools
linux-syscalls.h
Go to the documentation of this file.
1 /* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
2  *
3  * Permission is hereby granted, free of charge, to any person obtaining a copy
4  * of this software and associated documentation files (the "Software"), to
5  * deal in the Software without restriction, including without limitation the
6  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7  * sell copies of the Software, and to permit persons to whom the Software is
8  * furnished to do so, subject to the following conditions:
9  *
10  * The above copyright notice and this permission notice shall be included in
11  * all copies or substantial portions of the Software.
12  *
13  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19  * IN THE SOFTWARE.
20  */
21 
22 #ifndef UV_LINUX_SYSCALL_H_
23 #define UV_LINUX_SYSCALL_H_
24 
25 #undef _GNU_SOURCE
26 #define _GNU_SOURCE
27 
28 #include <stdint.h>
29 #include <signal.h>
30 #include <sys/types.h>
31 #include <sys/time.h>
32 #include <sys/socket.h>
33 
38 };
39 
40 struct uv__statx {
62 };
63 
64 ssize_t uv__preadv(int fd, const struct iovec *iov, int iovcnt, int64_t offset);
65 ssize_t uv__pwritev(int fd, const struct iovec *iov, int iovcnt, int64_t offset);
66 int uv__dup3(int oldfd, int newfd, int flags);
67 ssize_t
68 uv__fs_copy_file_range(int fd_in,
69  ssize_t* off_in,
70  int fd_out,
71  ssize_t* off_out,
72  size_t len,
73  unsigned int flags);
74 int uv__statx(int dirfd,
75  const char* path,
76  int flags,
77  unsigned int mask,
78  struct uv__statx* statxbuf);
79 ssize_t uv__getrandom(void* buf, size_t buflen, unsigned flags);
80 
81 #endif /* UV_LINUX_SYSCALL_H_ */
size_t len
Definition: 6502dis.c:15
#define mask()
static static fork const void static count static fd const char const char static newpath const char static path const char path
Definition: sflib.h:35
voidpf uLong offset
Definition: ioapi.h:144
voidpf void * buf
Definition: ioapi.h:138
ssize_t uv__pwritev(int fd, const struct iovec *iov, int iovcnt, int64_t offset)
ssize_t uv__preadv(int fd, const struct iovec *iov, int iovcnt, int64_t offset)
int uv__dup3(int oldfd, int newfd, int flags)
ssize_t uv__fs_copy_file_range(int fd_in, ssize_t *off_in, int fd_out, ssize_t *off_out, size_t len, unsigned int flags)
int uv__statx(int dirfd, const char *path, int flags, unsigned int mask, struct uv__statx *statxbuf)
ssize_t uv__getrandom(void *buf, size_t buflen, unsigned flags)
static static fork const void static count static fd const char static mode const char static pathname const char static path const char static dev const char static group static getpid static getuid void void static data static pause const char static mode static sync const char const char static newpath const char static pathname unsigned long static filedes void static end_data_segment static handler static getegid char static len static pgid const char static path oldfd
Definition: sflib.h:94
static struct sockaddr static addrlen static backlog const void static flags void flags
Definition: sfsocketcall.h:123
unsigned short uint16_t
Definition: sftypes.h:30
long int64_t
Definition: sftypes.h:32
int int32_t
Definition: sftypes.h:33
unsigned int uint32_t
Definition: sftypes.h:29
unsigned long uint64_t
Definition: sftypes.h:28
int ssize_t
Definition: sftypes.h:39
Definition: sftypes.h:73
uint32_t stx_mask
uint16_t stx_mode
struct uv__statx_timestamp stx_mtime
uint32_t stx_uid
uint32_t stx_rdev_major
struct uv__statx_timestamp stx_btime
struct uv__statx_timestamp stx_atime
uint32_t stx_dev_major
uint64_t unused1[14]
uint64_t stx_attributes_mask
uint64_t stx_attributes
uint32_t stx_blksize
uint16_t unused0
uint64_t stx_blocks
uint32_t stx_gid
uint32_t stx_dev_minor
uint64_t stx_ino
uint32_t stx_nlink
struct uv__statx_timestamp stx_ctime
uint64_t stx_size
uint32_t stx_rdev_minor
static uv_buf_t iov
Definition: main.c:15
ut64 buflen
Definition: core.c:76
static const z80_opcode fd[]
Definition: z80_tab.h:997