libc: use usize for sbrk() increment
This commit is contained in:
parent
e4b5f170cf
commit
1ec44ec77c
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -23,7 +23,7 @@ brk(void *p)
|
|||
}
|
||||
|
||||
void*
|
||||
sbrk(ulong n)
|
||||
sbrk(usize n)
|
||||
{
|
||||
uintptr bl;
|
||||
|
||||
|
|
Loading…
Reference in a new issue