Tor 0.4.9.0-alpha-dev
Macros | Functions
libc.c File Reference

Functions to get the name and version of the system libc. More...

#include "orconfig.h"
#include "lib/osinfo/libc.h"
#include <stdlib.h>

Go to the source code of this file.

Macros

#define STR_IMPL(x)   #x
 
#define STR(x)   STR_IMPL(x)
 

Functions

const char * tor_libc_get_name (void)
 
const char * tor_libc_get_version_str (void)
 
const char * tor_libc_get_header_version_str (void)
 

Detailed Description

Functions to get the name and version of the system libc.

Definition in file libc.c.

Macro Definition Documentation

◆ STR

#define STR (   x)    STR_IMPL(x)

Definition at line 27 of file libc.c.

◆ STR_IMPL

#define STR_IMPL (   x)    #x

Definition at line 26 of file libc.c.

Function Documentation

◆ tor_libc_get_header_version_str()

const char * tor_libc_get_header_version_str ( void  )

Return a string representation of the version of Glibc that was used at compilation time.

Definition at line 78 of file libc.c.

◆ tor_libc_get_name()

const char * tor_libc_get_name ( void  )

Return the name of the compile time libc. Returns NULL if we cannot identify the libc.

Definition at line 36 of file libc.c.

◆ tor_libc_get_version_str()

const char * tor_libc_get_version_str ( void  )

Return a string representation of the version of the currently running version of Glibc.

Definition at line 51 of file libc.c.