kernel: use uintptr for ibrk() return value (for base >2GB) and clarify segbrk(2)

This commit is contained in:
cinap_lenrek 2015-12-16 21:06:51 +01:00
parent afe450d381
commit 7be7d0681f
2 changed files with 3 additions and 10 deletions

View file

@ -24,8 +24,8 @@ A call to
.I segbrk
with a zero
.I addr
argument returns the address
of the top of bss.
argument returns the base address of the segment without
altering its size.
.PP
The system will prevent segments from overlapping and will not allow the
length of the
@ -46,13 +46,6 @@ returns
.B (void*)-1
on error.
.SH BUGS
.I Segbrk
is not fully defined or implemented.
In particular,
it cannot always return the top of bss
when called with a zero
.I addr
argument.
The
.I segbrk
system call may go away or be re-implemented

View file

@ -376,7 +376,7 @@ putimage(Image *i)
ccloseq(c); /* does not block */
}
long
uintptr
ibrk(uintptr addr, int seg)
{
Segment *s, *ns;