Rizin
unix-like reverse engineering framework and cli tools
compat.h File Reference
#include "zipconf.h"
#include "config.h"
#include <errno.h>
#include <limits.h>

Go to the source code of this file.

Macros

#define __STDC_LIMIT_MACROS
 
#define true   1
 
#define false   0
 
#define EOPNOTSUPP   EINVAL
 
#define EOVERFLOW   EFBIG
 
#define O_CLOEXEC   0
 
#define fseeko(s, o, w)   (fseek((s), (long int)(o), (w)))
 
#define ftello(s)   ((long)ftell((s)))
 
#define ZIP_FSEEK_MAX   LONG_MAX
 
#define ZIP_FSEEK_MIN   LONG_MIN
 
#define PRId64   "lld"
 
#define PRIu64   "llu"
 
#define S_ISDIR(mode)   (((mode)&S_IFMT) == S_IFDIR)
 
#define S_ISREG(mode)   (((mode)&S_IFMT) == S_IFREG)
 

Typedefs

typedef char bool
 

Macro Definition Documentation

◆ __STDC_LIMIT_MACROS

#define __STDC_LIMIT_MACROS

Definition at line 42 of file compat.h.

◆ EOPNOTSUPP

#define EOPNOTSUPP   EINVAL

Definition at line 68 of file compat.h.

◆ EOVERFLOW

#define EOVERFLOW   EFBIG

Definition at line 75 of file compat.h.

◆ false

#define false   0

Definition at line 59 of file compat.h.

◆ fseeko

#define fseeko (   s,
  o,
  w 
)    (fseek((s), (long int)(o), (w)))

Definition at line 121 of file compat.h.

◆ ftello

#define ftello (   s)    ((long)ftell((s)))

Definition at line 125 of file compat.h.

◆ O_CLOEXEC

#define O_CLOEXEC   0

Definition at line 80 of file compat.h.

◆ PRId64

#define PRId64   "lld"

Definition at line 174 of file compat.h.

◆ PRIu64

#define PRIu64   "llu"

Definition at line 182 of file compat.h.

◆ S_ISDIR

#define S_ISDIR (   mode)    (((mode)&S_IFMT) == S_IFDIR)

Definition at line 187 of file compat.h.

◆ S_ISREG

#define S_ISREG (   mode)    (((mode)&S_IFMT) == S_IFREG)

Definition at line 191 of file compat.h.

◆ true

#define true   1

Definition at line 58 of file compat.h.

◆ ZIP_FSEEK_MAX

#define ZIP_FSEEK_MAX   LONG_MAX

Definition at line 154 of file compat.h.

◆ ZIP_FSEEK_MIN

#define ZIP_FSEEK_MIN   LONG_MIN

Definition at line 155 of file compat.h.

Typedef Documentation

◆ bool

typedef char bool

Definition at line 57 of file compat.h.