libc: use usize for sbrk() increment

cinap_lenrek 2021-07-25 16:03:14 +00:00
parent e4b5f170cf
commit 1ec44ec77c
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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

View File

@ -23,7 +23,7 @@ brk(void *p)
}
void*
sbrk(ulong n)
sbrk(usize n)
{
uintptr bl;