⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bget.h

📁 COS 0.0.1.rar Cos操作系统源代码
💻 H
字号:
/*	Interface definitions for bget.c, the memory management package.02/09/04:	Slightly trimmed down for cos by Paul Barker		(should have done this a *long* time ago)*/// protect from multiple inclusion#ifndef _BGET_H_#define _BGET_H_// All compilers should understand prototypestypedef long bufsize;void	bpool	    (void *buffer, bufsize len);void*	bget	    (bufsize size);void*	bgetz	    (bufsize size);void*	bgetr	    (void *buffer, bufsize newsize);void	brel	    (void *buf);void	bectl	    (int (*compact)(bufsize sizereq, int sequence),		       void *(*acquire)(bufsize size),		       void (*release)(void *buf), bufsize pool_incr);void	bstats	    (bufsize *curalloc, bufsize *totfree, bufsize *maxfree,		       long *nget, long *nrel);void	bstatse     (bufsize *pool_incr, long *npool, long *npget,		       long *nprel, long *ndget, long *ndrel);void	bufdump     (void *buf);void	bpoold	    (void *pool, int dumpalloc, int dumpfree);int	bpoolv	    (void *pool);#endif // !_BGET_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -