File:  [MW Coherent from dump] / coherent / f / usr / include / sys / alloc.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:40 2019 UTC (7 years, 1 month ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/* (-lgl
 * 	COHERENT Version 3.0
 * 	Copyright (c) 1982, 1990 by Mark Williams Company.
 * 	All rights reserved. May not be copied without permission.
 -lgl) */
/*
 * Kernel memory allocator.
 */

#ifndef	 __SYS_ALLOC_H__
#define	 __SYS_ALLOC_H__

#include <common/feature.h>
#include <common/ccompat.h>
#include <common/__size.h>
#include <common/__parith.h>

#if	! __KERNEL__
# error	You must be compiling the kernel to use this header
#endif

#define	NEXT_FIT	1

/*
 * Structure for allocator.
 */

#if	NEXT_FIT

typedef	struct _heap	heap_t;

#else

typedef	__VOID__      *	heap_t;

#endif


__EXTERN_C_BEGIN__

heap_t	      *	setarena	__PROTO ((__VOID__ * _base, __size_t _size));
__VOID__      *	alloc		__PROTO ((heap_t * _arena, __size_t _size));

__EXTERN_C_END__

#endif	/* ! defined (__SYS_ALLOC_H__) */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.