103 const char *peekaboo = (!strncmp(
filename,
"nocache://", 10))
106 return (!peekaboo || (peekaboo -
filename) > 10);
190 return ((
buf.st_mode & S_IFBLK) == S_IFBLK);
202 .desc =
"Open local files",
204 .uris =
"file://,nocache://",
213 .is_blockdevice = __is_blockdevice,
218 #ifndef RZ_PLUGIN_INCORE
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags fcntl
RZ_API void Ht_() free(HtName_(Ht) *ht)
static int rz_io_def_mmap_close(RzIODesc *fd)
static RzIODesc * __open_default(RzIO *io, const char *file, int perm, int mode)
static ut64 rz_io_def_mmap_seek(RzIO *io, RzIOMMapFileObj *mmo, ut64 offset, int whence)
static bool __plugin_open_default(RzIO *io, const char *file, bool many)
static ut64 rz_io_def_mmap_lseek(RzIO *io, RzIODesc *fd, ut64 offset, int whence)
struct rz_io_mmo_t RzIOMMapFileObj
static int __write(RzIO *io, RzIODesc *fd, const ut8 *buf, int len)
static int rz_io_def_mmap_write(RzIO *io, RzIODesc *fd, const ut8 *buf, int count)
static bool __resize(RzIO *io, RzIODesc *fd, ut64 size)
RZ_API RzLibStruct rizin_plugin
static int iowhence2buf(int whence)
static void disable_fd_cache(int fd)
RzIOPlugin rz_io_plugin_default
static void rz_io_def_mmap_free(RzIOMMapFileObj *mmo)
static int rz_io_def_mmap_read(RzIO *io, RzIODesc *fd, ut8 *buf, int count)
static bool rz_io_def_mmap_check_default(const char *filename)
static int __read(RzIO *io, RzIODesc *fd, ut8 *buf, int len)
static ut64 __lseek(RzIO *io, RzIODesc *fd, ut64 offset, int whence)
static int __close(RzIODesc *fd)
RzIOMMapFileObj * rz_io_def_mmap_create_new_file(RzIO *io, const char *filename, int perm, int mode)
static int rz_io_def_mmap_truncate(RzIOMMapFileObj *mmo, ut64 size)
static ut8 * io_default_get_buf(RzIODesc *desc, ut64 *size)
static RzIODesc * rz_io_def_mmap_open(RzIO *io, const char *file, int perm, int mode)
return strdup("=SP r13\n" "=LR r14\n" "=PC r15\n" "=A0 r0\n" "=A1 r1\n" "=A2 r2\n" "=A3 r3\n" "=ZF zf\n" "=SF nf\n" "=OF vf\n" "=CF cf\n" "=SN or0\n" "gpr lr .32 56 0\n" "gpr pc .32 60 0\n" "gpr cpsr .32 64 0 ____tfiae_________________qvczn\n" "gpr or0 .32 68 0\n" "gpr tf .1 64.5 0 thumb\n" "gpr ef .1 64.9 0 endian\n" "gpr jf .1 64.24 0 java\n" "gpr qf .1 64.27 0 sticky_overflow\n" "gpr vf .1 64.28 0 overflow\n" "gpr cf .1 64.29 0 carry\n" "gpr zf .1 64.30 0 zero\n" "gpr nf .1 64.31 0 negative\n" "gpr itc .4 64.10 0 if_then_count\n" "gpr gef .4 64.16 0 great_or_equal\n" "gpr r0 .32 0 0\n" "gpr r1 .32 4 0\n" "gpr r2 .32 8 0\n" "gpr r3 .32 12 0\n" "gpr r4 .32 16 0\n" "gpr r5 .32 20 0\n" "gpr r6 .32 24 0\n" "gpr r7 .32 28 0\n" "gpr r8 .32 32 0\n" "gpr r9 .32 36 0\n" "gpr r10 .32 40 0\n" "gpr r11 .32 44 0\n" "gpr r12 .32 48 0\n" "gpr r13 .32 52 0\n" "gpr r14 .32 56 0\n" "gpr r15 .32 60 0\n" "gpr r16 .32 64 0\n" "gpr r17 .32 68 0\n")
#define rz_warn_if_reached()
#define rz_return_val_if_fail(expr, val)
RZ_API bool rz_buf_resize(RZ_NONNULL RzBuffer *b, ut64 newsize)
Resize the buffer size.
RZ_API st64 rz_buf_seek(RZ_NONNULL RzBuffer *b, st64 addr, int whence)
Modify the current cursor position in the buffer.
RZ_API RZ_OWN RzBuffer * rz_buf_new_mmap(const char *file, int flags, int mode)
Creates a new buffer from a file using rz_file_mmap.
RZ_API st64 rz_buf_write(RZ_NONNULL RzBuffer *b, RZ_NONNULL const ut8 *buf, ut64 len)
Write len bytes of the buffer at the cursor.
RZ_API void rz_buf_free(RzBuffer *b)
Free all internal data hold by the buffer and the buffer.
RZ_API st64 rz_buf_read(RZ_NONNULL RzBuffer *b, RZ_NONNULL RZ_OUT ut8 *buf, ut64 len)
RZ_DEPRECATE RZ_API RZ_BORROW ut8 * rz_buf_data(RZ_NONNULL RzBuffer *b, RZ_NONNULL RZ_OUT ut64 *size)
Return a borrowed array of bytes representing the buffer data.
RZ_API RZ_OWN RzBuffer * rz_buf_new_file(const char *file, int perm, int mode)
Creates a new buffer from a file.
RZ_API RzIODesc * rz_io_desc_new(RzIO *io, RzIOPlugin *plugin, const char *uri, int flags, int mode, void *data)
RZ_API bool rz_str_startswith(RZ_NONNULL const char *str, RZ_NONNULL const char *needle)
Checks if a string starts with a specifc sequence of characters (case sensitive)
RZ_API int rz_sys_open_perms(int rizin_perms)
Convert rizin permissions (RZ_PERM_*) to posix permissions that can be passed to rz_sys_open .
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
static const z80_opcode fd[]