From d87d25fedead30bf81f6279c80288d433c6f679d Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Wed, 21 Jul 2010 05:47:43 +0000 Subject: [PATCH] Removed unistd brk() support - it's pretty useless here anyway. git-svn-id: http://picoc.googlecode.com/svn/trunk@469 21eae674-98b7-11dd-bd71-f92a316d2d60 --- cstdlib/unistd.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cstdlib/unistd.c b/cstdlib/unistd.c index 7a076f5..33b0076 100644 --- a/cstdlib/unistd.c +++ b/cstdlib/unistd.c @@ -18,11 +18,6 @@ void UnistdAlarm(struct ParseState *Parser, struct Value *ReturnValue, struct Va ReturnValue->Val->Integer = alarm(Param[0]->Val->Integer); } -void UnistdBrk(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) -{ - ReturnValue->Val->Integer = brk(Param[0]->Val->Pointer); -} - void UnistdChdir(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) { ReturnValue->Val->Integer = chdir(Param[0]->Val->Pointer); @@ -401,7 +396,7 @@ struct LibraryFunction UnistdFunctions[] = { { UnistdAccess, "int access(char *, int);" }, { UnistdAlarm, "unsigned int alarm(unsigned int);" }, - { UnistdBrk, "int brk(void *);" }, +/* { UnistdBrk, "int brk(void *);" }, */ { UnistdChdir, "int chdir(char *);" }, { UnistdChroot, "int chroot(char *);" }, { UnistdChown, "int chown(char *, uid_t, gid_t);" },