Tor 0.4.9.0-alpha-dev
Macros
torint.h File Reference

Integer definitions used throughout Tor. More...

#include "orconfig.h"
#include <stdint.h>
#include <stdbool.h>
#include <limits.h>

Go to the source code of this file.

Macros

#define TIME_MAX   ((time_t)INT_MAX)
 
#define TIME_MIN   ((time_t)INT_MIN)
 
#define TOR_PRIuSZ   "zu"
 
#define TOR_PRIdSZ   "zd"
 
#define SSIZE_T_CEILING   ((ssize_t)(SSIZE_MAX-16))
 
#define SIZE_T_CEILING   ((size_t)(SSIZE_MAX-16))
 

Detailed Description

Integer definitions used throughout Tor.

Definition in file torint.h.

Macro Definition Documentation

◆ SIZE_T_CEILING

#define SIZE_T_CEILING   ((size_t)(SSIZE_MAX-16))

Any size_t larger than this amount is likely to be an underflow.

Definition at line 126 of file torint.h.

◆ SSIZE_T_CEILING

#define SSIZE_T_CEILING   ((ssize_t)(SSIZE_MAX-16))

Any ssize_t larger than this amount is likely to be an underflow.

Definition at line 124 of file torint.h.

◆ TIME_MAX

#define TIME_MAX   ((time_t)INT_MAX)

Definition at line 58 of file torint.h.

◆ TIME_MIN

#define TIME_MIN   ((time_t)INT_MIN)

Definition at line 72 of file torint.h.

◆ TOR_PRIdSZ

#define TOR_PRIdSZ   "zd"

Definition at line 110 of file torint.h.

◆ TOR_PRIuSZ

#define TOR_PRIuSZ   "zu"

Definition at line 100 of file torint.h.