memalloc.h (151795) | memalloc.h (193221) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 16 unchanged lines hidden (view full) --- 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)memalloc.h 8.2 (Berkeley) 5/4/95 | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 16 unchanged lines hidden (view full) --- 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)memalloc.h 8.2 (Berkeley) 5/4/95 |
33 * $FreeBSD: head/bin/sh/memalloc.h 151795 2005-10-28 10:45:19Z stefanf $ | 33 * $FreeBSD: head/bin/sh/memalloc.h 193221 2009-06-01 10:50:17Z rse $ |
34 */ 35 | 34 */ 35 |
36#include <string.h> 37 |
|
36struct stackmark { 37 struct stack_block *stackp; 38 char *stacknxt; 39 int stacknleft; 40 struct stackmark *marknext; 41}; 42 43 44extern char *stacknxt; 45extern int stacknleft; 46extern int sstrnleft; 47extern int herefd; 48 | 38struct stackmark { 39 struct stack_block *stackp; 40 char *stacknxt; 41 int stacknleft; 42 struct stackmark *marknext; 43}; 44 45 46extern char *stacknxt; 47extern int stacknleft; 48extern int sstrnleft; 49extern int herefd; 50 |
49pointer ckmalloc(int); | 51pointer ckmalloc(size_t); |
50pointer ckrealloc(pointer, int); 51void ckfree(pointer); 52char *savestr(char *); 53pointer stalloc(int); 54void stunalloc(pointer); 55void setstackmark(struct stackmark *); 56void popstackmark(struct stackmark *); 57void growstackblock(void); --- 18 unchanged lines hidden --- | 52pointer ckrealloc(pointer, int); 53void ckfree(pointer); 54char *savestr(char *); 55pointer stalloc(int); 56void stunalloc(pointer); 57void setstackmark(struct stackmark *); 58void popstackmark(struct stackmark *); 59void growstackblock(void); --- 18 unchanged lines hidden --- |