NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dlmalloc-config.h File Reference
#include <nul/compiler.h>
#include <nul/types.h>
#include <service/string.h>

Macros

#define USE_DL_PREFIX   /* Use dl prefix for all exports */
#define MALLOC_FAILURE_ACTION   /* empty */
#define USE_LOCKS   2
#define HAVE_MORECORE   0
#define HAVE_MMAP   1
#define HAVE_MREMAP   0
#define LACKS_UNISTD_H
#define LACKS_FCNTL_H
#define LACKS_SYS_PARAM_H
#define LACKS_SYS_MMAN_H
#define LACKS_SYS_TYPES_H
#define LACKS_ERRNO_H
#define LACKS_SCHED_H
#define LACKS_TIME_H
#define DEFAULT_GRANULARITY   (128 * 1024) /* 128K */
#define MALLOC_ALIGNMENT   16 /* important for SSE */
#define MAP_ANONYMOUS   0
#define MAP_PRIVATE   0
#define PROT_READ   0
#define PROT_WRITE   0
#define fprintf(f,...)   printf(__VA_ARGS__)
#define mmap(start, length, prot, flags, fd, offset)   mmap_simple(start, length)
#define assert(x)   do {if (!(x)) abort(); } while (0) /* XXX */
#define EINVAL   -1
#define ENOMEM   -1
#define DLMALLOC_EXPORT   EXTERN_C

Functions

EXTERN_C int printf (const char *msg,...)
EXTERN_C void abort () NORETURN
EXTERN_C void * mmap_simple (void *start, size_t size)
EXTERN_C int munmap (void *start, size_t size)
EXTERN_C void semaphore_init (cap_sel *lk, unsigned initial)
EXTERN_C void semaphore_destroy (cap_sel *lk)
EXTERN_C void semaphore_down (cap_sel *lk)
EXTERN_C void semaphore_up (cap_sel *lk)

Macro Definition Documentation

#define assert (   x)    do {if (!(x)) abort(); } while (0) /* XXX */
#define DEFAULT_GRANULARITY   (128 * 1024) /* 128K */
#define DLMALLOC_EXPORT   EXTERN_C
#define EINVAL   -1
#define ENOMEM   -1
#define fprintf (   f,
  ... 
)    printf(__VA_ARGS__)
#define HAVE_MMAP   1
#define HAVE_MORECORE   0
#define HAVE_MREMAP   0
#define LACKS_ERRNO_H
#define LACKS_FCNTL_H
#define LACKS_SCHED_H
#define LACKS_SYS_MMAN_H
#define LACKS_SYS_PARAM_H
#define LACKS_SYS_TYPES_H
#define LACKS_TIME_H
#define LACKS_UNISTD_H
#define MALLOC_ALIGNMENT   16 /* important for SSE */
#define MALLOC_FAILURE_ACTION   /* empty */
#define MAP_ANONYMOUS   0
#define MAP_PRIVATE   0
#define mmap (   start,
  length,
  prot,
  flags,
  fd,
  offset 
)    mmap_simple(start, length)
#define PROT_READ   0
#define PROT_WRITE   0
#define USE_DL_PREFIX   /* Use dl prefix for all exports */
#define USE_LOCKS   2

Function Documentation

EXTERN_C void abort ( )
EXTERN_C void* mmap_simple ( void *  start,
size_t  size 
)
EXTERN_C int munmap ( void *  start,
size_t  size 
)
EXTERN_C int printf ( const char *  msg,
  ... 
)
EXTERN_C void semaphore_destroy ( cap_sel lk)
EXTERN_C void semaphore_down ( cap_sel lk)
EXTERN_C void semaphore_init ( cap_sel lk,
unsigned  initial 
)
EXTERN_C void semaphore_up ( cap_sel lk)