Rizin
unix-like reverse engineering framework and cli tools
|
#include "uv.h"
#include "internal.h"
#include <errno.h>
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/uio.h>
#include <pthread.h>
#include <unistd.h>
#include <fcntl.h>
#include <poll.h>
#include <sys/statfs.h>
Go to the source code of this file.
Macros | |
#define | HAVE_PREADV 0 |
#define | INIT(subtype) |
#define | PATH |
#define | PATH2 |
#define | POST |
#define | UV_CONST_DIRENT const uv__dirent_t |
#define | X(type, action) |
Variables | |
static int(* | uv__mkostemp )(char *, int) |
#define INIT | ( | subtype | ) |
#define PATH |
#define PATH2 |
#define POST |
#define UV_CONST_DIRENT const uv__dirent_t |
Definition at line 164 of file fs.c.
References EINPROGRESS, EINTR, fd, and uv__close_nocancel().
Referenced by uv__fs_work().
Definition at line 619 of file fs.c.
References NULL, req, and uv__free().
Referenced by uv__fs_work().
Definition at line 1136 of file fs.c.
References err, fchmod, fstat, fstatfs, ftruncate, ioctl, NULL, O_CREAT, O_EXCL, O_RDONLY, O_WRONLY, out, req, uv_fs_s::result, s, SSIZE_MAX, uv__close_nocheckstdio(), UV__ERR, UV_FS_COPYFILE_EXCL, UV_FS_COPYFILE_FICLONE, UV_FS_COPYFILE_FICLONE_FORCE, uv_fs_open(), uv_fs_req_cleanup(), uv_fs_sendfile(), and uv_fs_unlink().
Referenced by uv__fs_work().
Definition at line 1644 of file fs.c.
References assert(), container_of, req, status, uv__req_unregister, and w.
Definition at line 200 of file fs.c.
References fdatasync, fsync, req, and uv__fs_fsync().
Referenced by uv__fs_work().
Definition at line 1497 of file fs.c.
References fd, fstat, uv__fs_statx(), and uv__to_stat().
Referenced by uv__fs_work().
Definition at line 176 of file fs.c.
References fcntl, fsync, r, and req.
Referenced by uv__fs_fdatasync(), and uv__fs_work().
Definition at line 226 of file fs.c.
References memset(), NULL, req, and tv.
Referenced by uv__fs_work().
Definition at line 1481 of file fs.c.
References path, uv__fs_statx(), and uv__to_stat().
Referenced by uv__fs_work().
Definition at line 291 of file fs.c.
References EINVAL, NULL, O_CLOEXEC, once, path, r, req, uv__cloexec, uv__close(), uv__load_relaxed, uv__mkostemp, uv__mkostemp_initonce(), uv__store_relaxed, uv_once(), UV_ONCE_INIT, uv_rwlock_rdlock(), and uv_rwlock_rdunlock().
Referenced by uv__fs_work().
Definition at line 362 of file fs.c.
References NULL, O_CLOEXEC, r, req, uv__cloexec, uv__close(), uv_rwlock_rdlock(), and uv_rwlock_rdunlock().
Referenced by uv__fs_work().
Definition at line 553 of file fs.c.
References error(), NULL, req, uv__free(), and uv__malloc().
Referenced by uv__fs_work().
Definition at line 677 of file fs.c.
References path, and UV__PATH_MAX.
Referenced by uv__fs_readlink(), and uv__fs_realpath().
Definition at line 392 of file fs.c.
References assert(), bufs, EINTR, test_evm::end, fd, len, off, pos, pread, and UV__ERR.
Referenced by uv__fs_read().
Definition at line 441 of file fs.c.
References done, EISDIR, EOPNOTSUPP, fstat, NULL, pread, read(), readv, req, S_ISDIR, uv__free(), uv__fs_preadv(), uv__getiovmax(), uv__load_relaxed, uv__preadv(), and uv__store_relaxed.
Referenced by uv__fs_work().
Definition at line 573 of file fs.c.
References dirent::d_name, uv_dir_s::dirents, error(), i, uv_dirent_s::name, NULL, readdir, req, uv__free(), uv__fs_get_dirent_type(), and uv__strdup().
Referenced by uv__fs_work().
Definition at line 688 of file fs.c.
References EINVAL, ENOMEM, len, maxlen, NULL, os390_readlink(), readlink, req, uv__free(), uv__fs_pathmax_size(), uv__malloc(), and uv__reallocf().
Referenced by uv__fs_work().
Definition at line 747 of file fs.c.
References ENOMEM, len, NULL, req, uv__free(), uv__fs_pathmax_size(), and uv__malloc().
Referenced by uv__fs_work().
Definition at line 528 of file fs.c.
References free(), n, NULL, req, scandir(), uv__fs_scandir_filter(), and uv__fs_scandir_sort().
Referenced by uv__fs_work().
|
static |
Definition at line 518 of file fs.c.
Referenced by uv__fs_scandir().
|
static |
Definition at line 523 of file fs.c.
Referenced by uv__fs_scandir().
Definition at line 890 of file fs.c.
References EAGAIN, EINTR, EINVAL, EIO, ENOTSOCK, EXDEV, len, NULL, off, ok, r, req, uv__fs_copy_file_range(), and uv__fs_sendfile_emul().
Referenced by uv__fs_work().
Definition at line 776 of file fs.c.
References buflen, EAGAIN, EINTR, EIO, ESPIPE, len, n, out, poll, pread, read(), req, and write.
Referenced by uv__fs_sendfile().
Definition at line 1465 of file fs.c.
References path, stat, uv__fs_statx(), and uv__to_stat().
Referenced by uv__fs_work().
Definition at line 634 of file fs.c.
References ENOMEM, uv_statfs_s::f_bavail, uv_statfs_s::f_bfree, uv_statfs_s::f_blocks, uv_statfs_s::f_bsize, uv_statfs_s::f_ffree, uv_statfs_s::f_files, uv_statfs_s::f_type, NULL, req, statfs, and uv__malloc().
Referenced by uv__fs_work().
|
static |
Definition at line 1386 of file fs.c.
References EINVAL, EPERM, fd, flags, path, STATIC_ASSERT, uv__statx::stx_atime, uv__statx::stx_blksize, uv__statx::stx_blocks, uv__statx::stx_btime, uv__statx::stx_ctime, uv__statx::stx_dev_major, uv__statx::stx_dev_minor, uv__statx::stx_gid, uv__statx::stx_ino, uv__statx::stx_mode, uv__statx::stx_mtime, uv__statx::stx_nlink, uv__statx::stx_rdev_major, uv__statx::stx_size, uv__statx::stx_uid, uv__statx_timestamp::tv_nsec, uv__statx_timestamp::tv_sec, uv__load_relaxed, uv__statx(), and uv__store_relaxed.
Referenced by uv__fs_fstat(), uv__fs_lstat(), and uv__fs_stat().
Definition at line 1008 of file fs.c.
References memset(), req, tv, and utime.
Referenced by uv__fs_work().
|
static |
Definition at line 1572 of file fs.c.
References access, chmod, chown, container_of, EINTR, fchmod, ftruncate, lchown, link, mkdir, r, READ, rename, req, rmdir, symlink, unlink, UV__ERR, uv__fs_close(), uv__fs_closedir(), uv__fs_copyfile(), uv__fs_fdatasync(), uv__fs_fstat(), uv__fs_fsync(), uv__fs_futime(), uv__fs_lstat(), uv__fs_lutime(), uv__fs_mkdtemp(), uv__fs_mkstemp(), uv__fs_open(), uv__fs_opendir(), uv__fs_read(), uv__fs_readdir(), uv__fs_readlink(), uv__fs_realpath(), uv__fs_scandir(), uv__fs_sendfile(), uv__fs_stat(), uv__fs_statfs(), uv__fs_utime(), uv__fs_write_all(), UV_FS_CLOSE, UV_FS_FSTAT, UV_FS_LSTAT, UV_FS_READ, UV_FS_STAT, w, and X.
Definition at line 1076 of file fs.c.
References done, lock(), r, req, uv__pwritev(), write, and writev.
Referenced by uv__fs_write_all().
Definition at line 1526 of file fs.c.
References bufs, EINTR, NULL, req, uv__free(), uv__fs_buf_offset(), uv__fs_write(), and uv__getiovmax().
Referenced by uv__fs_work().
|
static |
Definition at line 275 of file fs.c.
References int, and uv__mkostemp.
Referenced by uv__fs_mkstemp().
Definition at line 1309 of file fs.c.
Referenced by uv__fs_fstat(), uv__fs_lstat(), and uv__fs_stat().
int uv_fs_copyfile | ( | uv_loop_t * | loop, |
uv_fs_t * | req, | ||
const char * | path, | ||
const char * | new_path, | ||
int | flags, | ||
uv_fs_cb | cb | ||
) |
int uv_fs_read | ( | uv_loop_t * | loop, |
uv_fs_t * | req, | ||
uv_file | file, | ||
const uv_buf_t | bufs[], | ||
unsigned int | nbufs, | ||
int64_t | off, | ||
uv_fs_cb | cb | ||
) |
void uv_fs_req_cleanup | ( | uv_fs_t * | req | ) |
int uv_fs_write | ( | uv_loop_t * | loop, |
uv_fs_t * | req, | ||
uv_file | file, | ||
const uv_buf_t | bufs[], | ||
unsigned int | nbufs, | ||
int64_t | off, | ||
uv_fs_cb | cb | ||
) |
UV_UNUSED | ( | static struct timespec | uv__fs_to_timespecdouble time | ) |
Definition at line 212 of file fs.c.
References time, timespec::tv_nsec, and timespec::tv_sec.
UV_UNUSED | ( | static struct timeval | uv__fs_to_timevaldouble time | ) |
Definition at line 272 of file fs.c.
Referenced by uv__fs_mkstemp(), and uv__mkostemp_initonce().