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.


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


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 ( const char *  ,
get_uname  ,

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]

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

True iff uname_result is set.

Definition at line 28 of file uname.c.

Referenced by MOCK_IMPL().