kernel: use uintptr for ibrk() return value (for base >2GB) and clarify segbrk(2)
This commit is contained in:
parent
afe450d381
commit
7be7d0681f
2 changed files with 3 additions and 10 deletions
|
@ -24,8 +24,8 @@ A call to
|
||||||
.I segbrk
|
.I segbrk
|
||||||
with a zero
|
with a zero
|
||||||
.I addr
|
.I addr
|
||||||
argument returns the address
|
argument returns the base address of the segment without
|
||||||
of the top of bss.
|
altering its size.
|
||||||
.PP
|
.PP
|
||||||
The system will prevent segments from overlapping and will not allow the
|
The system will prevent segments from overlapping and will not allow the
|
||||||
length of the
|
length of the
|
||||||
|
@ -46,13 +46,6 @@ returns
|
||||||
.B (void*)-1
|
.B (void*)-1
|
||||||
on error.
|
on error.
|
||||||
.SH BUGS
|
.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
|
The
|
||||||
.I segbrk
|
.I segbrk
|
||||||
system call may go away or be re-implemented
|
system call may go away or be re-implemented
|
||||||
|
|
|
@ -376,7 +376,7 @@ putimage(Image *i)
|
||||||
ccloseq(c); /* does not block */
|
ccloseq(c); /* does not block */
|
||||||
}
|
}
|
||||||
|
|
||||||
long
|
uintptr
|
||||||
ibrk(uintptr addr, int seg)
|
ibrk(uintptr addr, int seg)
|
||||||
{
|
{
|
||||||
Segment *s, *ns;
|
Segment *s, *ns;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue