kernel: add #0/brk and move brk_() to libc

This commit is contained in:
2016-12-31 00:43:02 +01:00
parent 0bbd79e0a5
commit 37541724d0
10 changed files with 173 additions and 157 deletions

View File

@ -1025,12 +1025,13 @@ sysunmount(char* name, char* old)
}
int
syscreate(char* aname, uint32_t omode, uint32_t perm)
syscreate(char* aname, long omode, long perm)
{
int fd;
Chan *c;
openmode(omode); /* error check only; OEXCL okay here */
if(omode >= 0)
openmode(omode); /* error check only */
c = nil;
if(waserror()) {
if(c != nil)