#include "rz_io.h"
#include "rz_lib.h"
#include <stdio.h>
#include <stdlib.h>
#include <rz_cons.h>
#include <sys/types.h>
Go to the source code of this file.
|
static int | __write (RzIO *io, RzIODesc *desc, const ut8 *buf, int count) |
|
static bool | __resize (RzIO *io, RzIODesc *desc, ut64 count) |
|
static int | __read (RzIO *io, RzIODesc *desc, ut8 *buf, int count) |
|
static int | __close (RzIODesc *desc) |
|
static ut64 | __lseek (RzIO *io, RzIODesc *desc, ut64 offset, int whence) |
|
static bool | __check (RzIO *io, const char *pathname, bool many) |
|
static RzIODesc * | __open (RzIO *io, const char *pathname, int rw, int mode) |
|
◆ FDURI
◆ __check()
Definition at line 61 of file io_fd.c.
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc static sig const char pathname
References FDURI, and pathname.
Referenced by __open().
◆ __close()
◆ __lseek()
Definition at line 53 of file io_fd.c.
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 static offset struct stat static buf void long static basep lseek
if(dbg->bits==RZ_SYS_BITS_64)
References desc, RzIOFdata::fd, if(), and lseek.
◆ __open()
Definition at line 65 of file io_fd.c.
73 fdd->
fd = _open_osfhandle(fdd->
fd, 0);
77 eprintf(
"Invalid filedescriptor.\n");
RZ_API void Ht_() free(HtName_(Ht) *ht)
static bool __check(RzIO *io, const char *pathname, bool many)
RzIOPlugin rz_io_plugin_fd
RZ_API RzIODesc * rz_io_desc_new(RzIO *io, RzIOPlugin *plugin, const char *uri, int flags, int mode, void *data)
RZ_API ut64 rz_num_math(RzNum *num, const char *str)
References __check(), eprintf, RzIOFdata::fd, FDURI, free(), NULL, pathname, rz_io_desc_new(), rz_io_plugin_fd, RZ_NEW0, rz_num_math(), and RZ_PERM_RW.
◆ __read()
Definition at line 37 of file io_fd.c.
RZ_API void rz_cons_break_pop(void)
RZ_API void rz_cons_break_push(RzConsBreak cb, void *user)
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
int read(izstream &zs, T *x, Items items)
References count, desc, RzIOFdata::fd, if(), NULL, read(), rz_cons_break_pop(), and rz_cons_break_push().
◆ __resize()
Definition at line 29 of file io_fd.c.
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 static offset struct stat static buf void long static basep static whence ftruncate
References count, desc, RzIOFdata::fd, ftruncate, and if().
◆ __write()
◆ rizin_plugin
Initial value:
Definition at line 104 of file io_fd.c.
◆ rz_io_plugin_fd
Initial value:= {
.name = "fd",
.desc = "Local process filedescriptor IO",
.license = "MIT",
}
static int __close(RzIODesc *desc)
static RzIODesc * __open(RzIO *io, const char *pathname, int rw, int mode)
static bool __resize(RzIO *io, RzIODesc *desc, ut64 count)
static int __read(RzIO *io, RzIODesc *desc, ut8 *buf, int count)
static ut64 __lseek(RzIO *io, RzIODesc *desc, ut64 offset, int whence)
static int __write(RzIO *io, RzIODesc *desc, const ut8 *buf, int count)
Definition at line 84 of file io_fd.c.
Referenced by __open().