Tor  0.4.7.0-alpha-dev
Functions | Variables
uname.c File Reference

Look up a description of the operating system. More...

#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

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

◆ get_uname()

const char* get_uname ( void  )

Return a pointer to a description of our platform.

Definition at line 67 of file uname.c.

Referenced by get_platform_str(), and options_init_from_torrc().

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 get_uname().