repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
sys
/
arch
/
acorn32
/
stand
/
nbfs
/
rmalloc.c
blob
f37d758c63e98068e090f42f78f776d1a7bd4e45
1
/* $NetBSD$ */
2
3
#include <lib/libsa/stand.h>
4
#include <riscoscalls.h>
5
6
void
*
7
alloc
(
size_t
size
)
8
{
9
void
*
ret
;
10
11
if
(
xosmodule_alloc
(
size
, &
ret
) !=
NULL
)
12
return
NULL
;
13
return
ret
;
14
}
15
16
void
dealloc
(
void
*
ptr
,
size_t
size
)
17
{
18
19
xosmodule_free
(
ptr
);
20
}