diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-07-25 16:03:14 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-07-25 16:03:14 +0000 |
commit | 1ec44ec77cfde746dc734a3921ec8fbeb6c743ce (patch) | |
tree | dc8924d2cd143c916918c02c33d8762f92f8fa4c | |
parent | e4b5f170cffd0d5e788d9090f8f2a9802fe267e9 (diff) | |
download | plan9front-1ec44ec77cfde746dc734a3921ec8fbeb6c743ce.tar.xz |
libc: use usize for sbrk() increment
-rw-r--r-- | sys/include/libc.h | 2 | ||||
-rw-r--r-- | sys/man/2/brk | 2 | ||||
-rw-r--r-- | sys/src/libc/9sys/sbrk.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/include/libc.h b/sys/include/libc.h index 27c45207d..a6b268322 100644 --- a/sys/include/libc.h +++ b/sys/include/libc.h @@ -714,7 +714,7 @@ extern long read(int, void*, long); extern long readn(int, void*, long); extern long readv(int, IOchunk*, int); extern int remove(char*); -extern void* sbrk(ulong); +extern void* sbrk(usize); extern long oseek(int, long, int); extern vlong seek(int, vlong, int); extern void* segattach(int, char*, void*, ulong); diff --git a/sys/man/2/brk b/sys/man/2/brk index 92bd89396..94024058f 100644 --- a/sys/man/2/brk +++ b/sys/man/2/brk @@ -11,7 +11,7 @@ brk, sbrk \- change memory allocation int brk(void *addr) .PP .B -void* sbrk(ulong incr) +void* sbrk(usize incr) .SH DESCRIPTION .I Brk sets the system's idea of the lowest bss location not used by the program diff --git a/sys/src/libc/9sys/sbrk.c b/sys/src/libc/9sys/sbrk.c index 88b593e11..bdb0df47b 100644 --- a/sys/src/libc/9sys/sbrk.c +++ b/sys/src/libc/9sys/sbrk.c @@ -23,7 +23,7 @@ brk(void *p) } void* -sbrk(ulong n) +sbrk(usize n) { uintptr bl; |