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

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 59 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 32 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 44 of file libc.c.