devel/libmemmgr 1.04 NetBSD
Simple memory manager library
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Categories
- devel
- Package size
- 5.9 KiB, 21.3 KiB installed
Description
MemMgr is a fairly trivial memory management library. There is little it does that cannot be done using routines in the C library. (In fact, allocation and disposal is implemented using C library routines.) The purposes of MemMgr are two- fold.
(i) Minimize configuration burden on applications that dynamically allocate memory. For instance, malloc() on some systems returns a char pointer; on others it returns a void pointer. The MemMgr library routines encapsulate system-specific configuration differences and exports a fixed interface which is system-indepen- dent. Once you compile and install it, you just use it without thinking about whether your UNIX is System V or BSD inspired.
(ii) Provide two parallel sets of allocation routines which either return NULL (for applications which want to check) or panic (for applications which simply want to die) on allocation failures. Panicking is implemented using the ETM library, which introduces a dependency on the ETM distribution. So be it. I use ETM for all my programs anyway
Install
Binary package:
pkgin install libmemmgr
From pkgsrc:
cd /usr/pkgsrc/devel/libmemmgr && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 1.04 |
| NetBSD 10.1 aarch64 | 1.04 |
| SmartOS / illumos x86_64 | 1.04 |
| macOS 15 arm64 | - |
Dependencies
No port depends on this one.