Tor  0.4.7.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.