aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2011-03-11 07:11:26 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2011-03-11 07:11:26 +0000
commit54eaefebf1fc335e733d2ad7784fa8de442d79f3 (patch)
tree6d12a4c92f5f468f05a4d8d7d3a9d51f057a3d14 /lang
parentcfeac48c166217b0a31692f431a758c33b3ecc88 (diff)
downloadports-54eaefebf1fc335e733d2ad7784fa8de442d79f3.tar.gz
ports-54eaefebf1fc335e733d2ad7784fa8de442d79f3.zip
Notes
Diffstat (limited to 'lang')
-rw-r--r--lang/picoc/files/patch-cstdlib__stdio.c11
-rw-r--r--lang/picoc/files/patch-cstdlib__unistd.c42
2 files changed, 53 insertions, 0 deletions
diff --git a/lang/picoc/files/patch-cstdlib__stdio.c b/lang/picoc/files/patch-cstdlib__stdio.c
new file mode 100644
index 000000000000..69197e88ccf3
--- /dev/null
+++ b/lang/picoc/files/patch-cstdlib__stdio.c
@@ -0,0 +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 @@
+
+ void StdioFileno(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs)
+ {
+- 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)
diff --git a/lang/picoc/files/patch-cstdlib__unistd.c b/lang/picoc/files/patch-cstdlib__unistd.c
new file mode 100644
index 000000000000..0813c1cb36b5
--- /dev/null
+++ b/lang/picoc/files/patch-cstdlib__unistd.c
@@ -0,0 +1,42 @@
+--- ./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 @@
+ 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);
+-}
++}*/
+
+ void UnistdFork(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs)
+ {
+@@ -278,7 +278,7 @@
+
+ void UnistdSetpgrp(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs)
+ {
+- ReturnValue->Val->Integer = setpgrp();
++ ReturnValue->Val->Integer = setpgrp(Param[0]->Val->Integer, Param[1]->Val->Integer);
+ }
+
+ void UnistdSetregid(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs)
+@@ -416,7 +416,7 @@
+ { 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);" },