Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_util.h>
Go to the source code of this file.
Classes | |
struct | RZARFP |
Typedefs | |
typedef struct RZARFP | RzArFp |
Functions | |
RZ_API RzArFp * | ar_open_file (const char *arname, int perm, const char *filename) |
Open specific file withen a ar/lib file. More... | |
RZ_API RzList * | ar_open_all (const char *arname, int perm) |
Open specific file withen a ar/lib file. More... | |
RZ_API void | ar_close (RzArFp *f) |
RZ_API int | ar_read_at (RzArFp *f, ut64 off, void *buf, int count) |
RZ_API int | ar_write_at (RzArFp *f, ut64 off, void *buf, int count) |
Definition at line 338 of file ar.c.
References f, free(), and rz_buf_free().
Referenced by ar_open_all(), ar_open_file(), and rz_io_ar_close().
Open specific file withen a ar/lib file.
arname | the name of the .a file |
Open an ar/lib and returns all the object files inside it.
Definition at line 218 of file ar.c.
References ar_check_magic(), ar_close(), ar_parse_header(), arfp_new(), b, Filetable::data, files, free(), NULL, rz_buf_free(), rz_buf_new_file(), rz_buf_size(), rz_list_append(), rz_list_free(), rz_list_newf(), rz_sys_perror, and ut64().
Referenced by rz_io_ar_open_many().
Open specific file withen a ar/lib file.
arname | the name of the .a file |
filename | the name of file in the .a file that you wish to open |
Open an ar/lib file by name.
Definition at line 286 of file ar.c.
References ar_check_magic(), ar_close(), ar_parse_header(), arf_clean_name(), arfp_new(), b, Filetable::data, free(), RZARFP::name, NULL, r, rz_buf_free(), rz_buf_new_file(), rz_buf_size(), RZ_LOG_ERROR, rz_sys_perror, and ut64().
Referenced by rz_io_ar_open().
Definition at line 349 of file ar.c.
References count, f, off, and rz_buf_read_at().
Referenced by rz_io_ar_read().
Definition at line 360 of file ar.c.
References count, f, off, and rz_buf_write_at().
Referenced by rz_io_ar_write().