clsync
Functions
malloc.c File Reference
#include "macros.h"
#include <stdlib.h>
#include <string.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include "malloc.h"
#include "error.h"
#include "configuration.h"
Include dependency graph for malloc.c:

Go to the source code of this file.

Functions

char * xstrncpy (char *dest, const char *src, size_t n)
 
int memory_init ()
 
void * shm_malloc_try (size_t size)
 
void * shm_malloc (size_t size)
 
void * shm_calloc (size_t nmemb, size_t size)
 
void shm_free (void *ptr)
 

Function Documentation

◆ memory_init()

int memory_init ( )

Definition at line 177 of file malloc.c.

◆ shm_calloc()

void* shm_calloc ( size_t  nmemb,
size_t  size 
)

Definition at line 236 of file malloc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shm_free()

void shm_free ( void *  ptr)

Definition at line 251 of file malloc.c.

Here is the caller graph for this function:

◆ shm_malloc()

void* shm_malloc ( size_t  size)

Definition at line 228 of file malloc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shm_malloc_try()

void* shm_malloc_try ( size_t  size)

Definition at line 196 of file malloc.c.

Here is the caller graph for this function:

◆ xstrncpy()

char* xstrncpy ( char *  dest,
const char *  src,
size_t  n 
)

Definition at line 94 of file malloc.c.