]> sourceware.org Git - newlib-cygwin.git/blame - winsup/cygwin/cygmalloc.h
* environ.cc (environ_init): Avoid a compiler warning.
[newlib-cygwin.git] / winsup / cygwin / cygmalloc.h
CommitLineData
c7e2187a
CF
1/* cygmalloc.h: cygwin DLL malloc stuff
2
3 Copyright 2002 Red Hat, Inc.
4
5This file is part of Cygwin.
6
7This software is a copyrighted work licensed under the terms of the
8Cygwin license. Please consult the file "CYGWIN_LICENSE" for
9details. */
10
11extern "C" void dlfree (void *p) __attribute__ ((regparm (1)));
12extern "C" void *dlmalloc (unsigned size) __attribute__ ((regparm (1)));
13extern "C" void *dlrealloc (void *p, unsigned size) __attribute__ ((regparm (2)));
14extern "C" void *dlcalloc (size_t nmemb, size_t size) __attribute__ ((regparm (2)));
15extern "C" void *dlmemalign (size_t alignment, size_t bytes) __attribute__ ((regparm (2)));
16extern "C" void *dlvalloc (size_t bytes) __attribute__ ((regparm (1)));
17extern "C" size_t dlmalloc_usable_size (void *p) __attribute__ ((regparm (1)));
18extern "C" int dlmalloc_trim (size_t) __attribute__ ((regparm (1)));
19extern "C" int dlmallopt (int p, int v) __attribute__ ((regparm (2)));
20extern "C" void dlmalloc_stats ();
21
22#ifndef __INSIDE_CYGWIN__
0428827b
CF
23# define USE_DL_PREFIX 1
24# define MORECORE_CANNOT_TRIM 1
c7e2187a
CF
25#else
26# define __malloc_lock() mallock->acquire ()
27# define __malloc_unlock() mallock->release ()
28extern muto *mallock;
29#endif
This page took 0.023792 seconds and 5 git commands to generate.