Rizin
unix-like reverse engineering framework and cli tools
zip_stat.c File Reference
#include "zipint.h"

Go to the source code of this file.

Functions

ZIP_EXTERN int zip_stat (zip_t *za, const char *fname, zip_flags_t flags, zip_stat_t *st)
 

Function Documentation

◆ zip_stat()

ZIP_EXTERN int zip_stat ( zip_t za,
const char *  fname,
zip_flags_t  flags,
zip_stat_t st 
)

Definition at line 39 of file zip_stat.c.

39  {
41 
42  if ((idx = zip_name_locate(za, fname, flags)) < 0)
43  return -1;
44 
45  return zip_stat_index(za, (zip_uint64_t)idx, flags, st);
46 }
ZIP_EXTERN zip_int64_t zip_name_locate(zip_t *_Nonnull, const char *_Nonnull, zip_flags_t)
ZIP_EXTERN int zip_stat_index(zip_t *_Nonnull, zip_uint64_t, zip_flags_t, zip_stat_t *_Nonnull)
int idx
Definition: setup.py:197
static struct sockaddr static addrlen static backlog const void static flags void flags
Definition: sfsocketcall.h:123
uint64_t zip_uint64_t
Definition: zipconf.h:39
int64_t zip_int64_t
Definition: zipconf.h:38
zip_t * za
Definition: ziptool.c:79

References flags, create_tags_rz::fname, setup::idx, za, zip_name_locate(), and zip_stat_index().