]> git.lizzy.rs Git - plan9front.git/commitdiff
libc: use usize for sbrk() increment
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sun, 25 Jul 2021 16:03:14 +0000 (16:03 +0000)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sun, 25 Jul 2021 16:03:14 +0000 (16:03 +0000)
sys/include/libc.h
sys/man/2/brk
sys/src/libc/9sys/sbrk.c

index 27c45207d153e337050bc75100dcddc87c591bc0..a6b268322a2d3fcc11ddf0c1d5a947fc3ce11b7d 100644 (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);
index 92bd893962c50e661801bb7113b49c155d8f70bd..94024058f2e907bd84abb62f1dcf7ce1fb8c975c 100644 (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
index 88b593e11e2f13803eb41fd76751f8b583fb5fb2..bdb0df47be0f7afeb7b3ac3bdf68ff90e38c324e 100644 (file)
@@ -23,7 +23,7 @@ brk(void *p)
 }
 
 void*
-sbrk(ulong n)
+sbrk(usize n)
 {
        uintptr bl;