Last change
on this file since 151 was 142, checked in by ktk, 25 years ago |
Import
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.7 KB
|
Line | |
---|
1 | /* $Id: malloc.h 142 2000-04-23 14:55:46Z ktk $ */
|
---|
2 |
|
---|
3 | /* SCCSID = %W% %E% */
|
---|
4 | /****************************************************************************
|
---|
5 | * *
|
---|
6 | * Copyright (c) IBM Corporation 1994 - 1997. *
|
---|
7 | * *
|
---|
8 | * The following IBM OS/2 source code is provided to you solely for the *
|
---|
9 | * the purpose of assisting you in your development of OS/2 device drivers. *
|
---|
10 | * You may use this code in accordance with the IBM License Agreement *
|
---|
11 | * provided in the IBM Device Driver Source Kit for OS/2. *
|
---|
12 | * *
|
---|
13 | ****************************************************************************/
|
---|
14 | /**@internal %W%
|
---|
15 | * Interfaces to the driver's built in memory management.
|
---|
16 | * @version %I%
|
---|
17 | * @context
|
---|
18 | * Unless otherwise noted, all interfaces are Ring-3 and Ring-0, 16-bit,
|
---|
19 | * kernel stack.
|
---|
20 | * @notes
|
---|
21 | * @history
|
---|
22 | * 01-Jul-95 Timur Tabi Creation
|
---|
23 | */
|
---|
24 |
|
---|
25 | #ifndef MALLOC_INCLUDED
|
---|
26 | #define MALLOC_INCLUDED
|
---|
27 |
|
---|
28 | #ifdef __cplusplus
|
---|
29 | extern "C" {
|
---|
30 | #endif
|
---|
31 |
|
---|
32 | // Standard malloc.h functions
|
---|
33 |
|
---|
34 | void __near *malloc(unsigned);
|
---|
35 | void free(void __near *);
|
---|
36 | void __near *realloc(void __near *, unsigned);
|
---|
37 | unsigned _msize(void __near *);
|
---|
38 |
|
---|
39 |
|
---|
40 | // // Traditional 'C' library memset() -- don't need, intrinsic function !!!
|
---|
41 | // PVOID memset ( PVOID p, int c, USHORT len );
|
---|
42 |
|
---|
43 | // Some extensions
|
---|
44 | unsigned _memfree(void); // returns available space
|
---|
45 |
|
---|
46 | // Specialized routines
|
---|
47 | unsigned HeapInit(unsigned); // initializes the heap manager
|
---|
48 | void dumpheap(void);
|
---|
49 |
|
---|
50 |
|
---|
51 | #ifdef __cplusplus
|
---|
52 | }
|
---|
53 | #endif
|
---|
54 |
|
---|
55 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.