tor  0.4.2.0-alpha-dev
Functions | Variables
uname.c File Reference
#include "orconfig.h"
#include "lib/osinfo/uname.h"
#include "lib/string/compat_string.h"
#include "lib/string/printf.h"
#include <string.h>

Go to the source code of this file.

Functions

 MOCK_IMPL (const char *, get_uname,(void))
 

Variables

static char uname_result [256]
 
static int uname_result_is_set = 0
 

Detailed Description

Look up a description of the operating system.

Definition in file uname.c.

Function Documentation

◆ MOCK_IMPL()

MOCK_IMPL ( const char *  ,
get_uname  ,
(void)   
)

Return a pointer to a description of our platform.

Definition at line 32 of file uname.c.

References uname_result_is_set.

Variable Documentation

◆ uname_result

char uname_result[256]
static

Hold the result of our call to uname.

Definition at line 26 of file uname.c.

◆ uname_result_is_set

int uname_result_is_set = 0
static

True iff uname_result is set.

Definition at line 28 of file uname.c.

Referenced by MOCK_IMPL().