VirtualBox

source: kBuild/trunk/src/kash/shheap.h@ 2386

Last change on this file since 2386 was 2293, checked in by bird, 16 years ago

kash: forking on windows (almost there).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1/* $Id: shheap.h 2293 2009-02-28 07:25:12Z bird $ */
2/** @file
3 * The shell memory heap methods.
4 */
5
6/*
7 * Copyright (c) 2009 knut st. osmundsen <[email protected]>
8 *
9 *
10 * This file is part of kBuild.
11 *
12 * kBuild is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * kBuild is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with kBuild; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 */
27
28#ifndef ___shheap_h
29#define ___shheap_h
30
31#include "shtypes.h"
32
33/* heap */
34int shheap_init(void);
35int shheap_fork_copy_to_child(void *);
36
37void *sh_malloc(shinstance *, size_t);
38void *sh_calloc(shinstance *, size_t, size_t);
39void *sh_realloc(shinstance *, void *, size_t);
40char *sh_strdup(shinstance *, const char *);
41void sh_free(shinstance *, void *);
42
43#endif
44
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette