diff options
Diffstat (limited to 'lang/picoc/files')
-rw-r--r-- | lang/picoc/files/patch-cstdlib__stdio.c | 14 | ||||
-rw-r--r-- | lang/picoc/files/patch-cstdlib__unistd.c | 34 |
2 files changed, 21 insertions, 27 deletions
diff --git a/lang/picoc/files/patch-cstdlib__stdio.c b/lang/picoc/files/patch-cstdlib__stdio.c index 69197e88ccf3..f11d1278e976 100644 --- a/lang/picoc/files/patch-cstdlib__stdio.c +++ b/lang/picoc/files/patch-cstdlib__stdio.c @@ -1,11 +1,11 @@ ---- ./cstdlib/stdio.c.orig 2011-02-21 06:22:13.000000000 +0100 -+++ ./cstdlib/stdio.c 2011-03-11 08:08:19.710970864 +0100 -@@ -414,7 +414,7 @@ - +--- cstdlib/stdio.c.orig 2017-03-22 14:37:13.263703000 -0700 ++++ cstdlib/stdio.c 2017-03-22 14:41:07.228360000 -0700 +@@ -428,7 +428,7 @@ void StdioFileno(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) { + #ifndef WIN32 - ReturnValue->Val->Integer = fileno(Param[0]->Val->Pointer); + ReturnValue->Val->Integer = fileno((FILE *)Param[0]->Val->Pointer); - } - - void StdioFflush(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) + #else + ReturnValue->Val->Integer = _fileno(Param[0]->Val->Pointer); + #endif diff --git a/lang/picoc/files/patch-cstdlib__unistd.c b/lang/picoc/files/patch-cstdlib__unistd.c index 0813c1cb36b5..72bbbf765236 100644 --- a/lang/picoc/files/patch-cstdlib__unistd.c +++ b/lang/picoc/files/patch-cstdlib__unistd.c @@ -1,19 +1,23 @@ ---- ./cstdlib/unistd.c.orig 2011-02-21 06:22:13.000000000 +0100 -+++ ./cstdlib/unistd.c 2011-03-11 08:09:48.884688383 +0100 -@@ -80,10 +80,10 @@ +--- cstdlib/unistd.c.orig 2017-03-22 14:01:43.750834000 -0700 ++++ cstdlib/unistd.c 2017-03-22 14:08:17.778456000 -0700 +@@ -81,16 +81,6 @@ ReturnValue->Val->Integer = fchdir(Param[0]->Val->Integer); } -void UnistdFdatasync(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) -+/*void UnistdFdatasync(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) - { - ReturnValue->Val->Integer = fdatasync(Param[0]->Val->Integer); +-{ +-#ifndef F_FULLSYNC +- ReturnValue->Val->Integer = fdatasync(Param[0]->Val->Integer); +-#else +- /* Mac OS X equivalent */ +- ReturnValue->Val->Integer = fcntl(Param[0]->Val->Integer, F_FULLFSYNC); +-#endif -} -+}*/ - +- void UnistdFork(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) { -@@ -278,7 +278,7 @@ + ReturnValue->Val->Integer = fork(); +@@ -284,7 +274,7 @@ void UnistdSetpgrp(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) { @@ -22,21 +26,11 @@ } void UnistdSetregid(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) -@@ -416,7 +416,7 @@ +@@ -422,7 +412,6 @@ { Unistd_Exit, "void _exit(int);" }, { UnistdFchown, "int fchown(int, uid_t, gid_t);" }, { UnistdFchdir, "int fchdir(int);" }, - { UnistdFdatasync, "int fdatasync(int);" }, -+/* { UnistdFdatasync, "int fdatasync(int);" },*/ { UnistdFork, "pid_t fork(void);" }, { UnistdFpathconf, "long fpathconf(int, int);" }, { UnistdFsync, "int fsync(int);" }, -@@ -458,7 +458,7 @@ - { UnistdSbrk, "void *sbrk(intptr_t);" }, - { UnistdSetgid, "int setgid(gid_t);" }, - { UnistdSetpgid, "int setpgid(pid_t, pid_t);" }, -- { UnistdSetpgrp, "pid_t setpgrp(void);" }, -+ { UnistdSetpgrp, "pid_t setpgrp(pid_t, pid_t);" }, - { UnistdSetregid, "int setregid(gid_t, gid_t);" }, - { UnistdSetreuid, "int setreuid(uid_t, uid_t);" }, - { UnistdSetsid, "pid_t setsid(void);" }, |