Blender  V2.93
Functions
system.c File Reference
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include "BLI_math_base.h"
#include "BLI_string.h"
#include "BLI_system.h"
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
#include <execinfo.h>
#include <unistd.h>

Go to the source code of this file.

Functions

int BLI_cpu_support_sse2 (void)
 
void BLI_system_backtrace (FILE *fp)
 
static void __cpuid (int data[4], int selector)
 
char * BLI_cpu_brand_string (void)
 
int BLI_cpu_support_sse41 (void)
 
void BLI_hostname_get (char *buffer, size_t bufsize)
 
size_t BLI_system_memory_max_in_megabytes (void)
 
int BLI_system_memory_max_in_megabytes_int (void)
 

Function Documentation

◆ __cpuid()

static void __cpuid ( int  data[4],
int  selector 
)
static

◆ BLI_cpu_brand_string()

char* BLI_cpu_brand_string ( void  )

Definition at line 137 of file system.c.

References __cpuid(), BLI_strdup(), NULL, and result.

◆ BLI_cpu_support_sse2()

int BLI_cpu_support_sse2 ( void  )

Definition at line 42 of file system.c.

◆ BLI_cpu_support_sse41()

int BLI_cpu_support_sse41 ( void  )

◆ BLI_hostname_get()

void BLI_hostname_get ( char *  buffer,
size_t  bufsize 
)

Obtain the hostname from the system.

This simply determines the host's name, and doesn't do any DNS lookup of any IP address of the machine. As such, it's only usable for identification purposes, and not for reachability over a network.

Parameters
bufferCharacter buffer to write the hostname into.
bufsizeSize of the character buffer, including trailing '\0'.

Definition at line 166 of file system.c.

References BLI_strncpy(), and buffer.

Referenced by stampdata().

◆ BLI_system_backtrace()

void BLI_system_backtrace ( FILE *  fp)

Write a backtrace into a file for systems which support it.

Definition at line 79 of file system.c.

◆ BLI_system_memory_max_in_megabytes()

size_t BLI_system_memory_max_in_megabytes ( void  )

Definition at line 182 of file system.c.

Referenced by BLI_system_memory_max_in_megabytes_int().

◆ BLI_system_memory_max_in_megabytes_int()

int BLI_system_memory_max_in_megabytes_int ( void  )

Definition at line 192 of file system.c.

References BLI_system_memory_max_in_megabytes(), and min_zz().

Referenced by BKE_blendfile_userdef_from_defaults().