Rizin
unix-like reverse engineering framework and cli tools
ar.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2017 xarkes <antide.petit@gmail.com>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 #ifndef _AR_H
4 #define _AR_H
5 #include <rz_util.h>
6 
7 typedef struct RZARFP {
8  char *name;
12  bool shared_buf;
14 
15 /* Offset passed is always the real io->off of the inspected file,
16  * the functions automatically translate it to relative offset within the archive */
17 RZ_API RzArFp *ar_open_file(const char *arname, int perm, const char *filename);
18 RZ_API RzList *ar_open_all(const char *arname, int perm);
19 RZ_API void ar_close(RzArFp *f);
20 RZ_API int ar_read_at(RzArFp *f, ut64 off, void *buf, int count);
21 RZ_API int ar_write_at(RzArFp *f, ut64 off, void *buf, int count);
22 #endif // _AR_H
RZ_API RzList * ar_open_all(const char *arname, int perm)
Open specific file withen a ar/lib file.
Definition: ar.c:218
RZ_API int ar_write_at(RzArFp *f, ut64 off, void *buf, int count)
Definition: ar.c:360
struct RZARFP RzArFp
RZ_API int ar_read_at(RzArFp *f, ut64 off, void *buf, int count)
Definition: ar.c:349
RZ_API RzArFp * ar_open_file(const char *arname, int perm, const char *filename)
Open specific file withen a ar/lib file.
Definition: ar.c:286
RZ_API void ar_close(RzArFp *f)
Definition: ar.c:338
#define RZ_API
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
Definition: sflib.h:98
const char * filename
Definition: ioapi.h:137
voidpf void * buf
Definition: ioapi.h:138
int off
Definition: pal.c:13
#define f(i)
Definition: sha256.c:46
Definition: ar.h:7
ut64 start
Definition: ar.h:9
char * name
Definition: ar.h:8
ut64 end
Definition: ar.h:10
bool shared_buf
Definition: ar.h:12
RzBuffer * buf
Definition: ar.h:11
ut64(WINAPI *w32_GetEnabledXStateFeatures)()