summaryrefslogtreecommitdiff
path: root/lang/modula-3-lib
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1999-03-14 14:00:07 +0000
committerJohn Polstra <jdp@FreeBSD.org>1999-03-14 14:00:07 +0000
commit6c506ecf0acc7125f9033102eb8583470312af29 (patch)
tree69f60adf2d1ab52a84d317d1e56b351095f610cf /lang/modula-3-lib
parentActivate dejasearch. (diff)
Update the wrapper for quotactl() to reflect a change in its
prototype in 4.0-current on 5 March 1999. The value of __FreeBSD_version wasn't bumped until 13 March, so the port is broken for versions of -current between those dates.
Diffstat (limited to 'lang/modula-3-lib')
-rw-r--r--lang/modula-3-lib/files/patch-ab51
1 files changed, 34 insertions, 17 deletions
diff --git a/lang/modula-3-lib/files/patch-ab b/lang/modula-3-lib/files/patch-ab
index 455dbd56f087..b8d0fef0daba 100644
--- a/lang/modula-3-lib/files/patch-ab
+++ b/lang/modula-3-lib/files/patch-ab
@@ -7,7 +7,7 @@ Fix the wrapper for ftruncate so that it deals properly with the 64-bit
arguments.
--- m3/m3core/src/runtime/FreeBSD2/RTHeapDepC.c.orig Sat Mar 23 14:52:21 1996
-+++ m3/m3core/src/runtime/FreeBSD2/RTHeapDepC.c Mon Oct 5 19:56:27 1998
++++ m3/m3core/src/runtime/FreeBSD2/RTHeapDepC.c Sun Mar 14 05:43:53 1999
@@ -80,7 +80,8 @@
#include <sys/file.h>
#include <sys/param.h>
@@ -358,7 +358,24 @@ arguments.
int msgctl(msqid, cmd, buf) /* ok */
int msqid, cmd;
-@@ -821,21 +844,8 @@
+@@ -793,9 +816,13 @@
+ }
+
+ int quotactl(path, cmd, uid, addr) /* ok */
+-const char *path;
+-int cmd, uid;
+-char *addr;
++ const char *path;
++ int cmd, uid;
++#if __FreeBSD_version >= 400002
++ void *addr;
++#else
++ char *addr;
++#endif
+ { int result;
+
+ ENTER_CRITICAL;
+@@ -821,21 +848,8 @@
return result;
}
@@ -381,7 +398,7 @@ arguments.
char *buf;
int bufsiz;
{ int result;
-@@ -865,46 +875,6 @@
+@@ -865,46 +879,6 @@
return result;
}
@@ -428,7 +445,7 @@ arguments.
int recvmsg(s, msg, flags) /* ok */
int s;
struct msghdr msg[];
-@@ -940,7 +910,7 @@
+@@ -940,7 +914,7 @@
}
int rmdir(path) /* ok */
@@ -437,7 +454,7 @@ arguments.
{ int result;
ENTER_CRITICAL;
-@@ -950,44 +920,42 @@
+@@ -950,44 +924,42 @@
return result;
}
@@ -509,7 +526,7 @@ arguments.
break;
}
result = syscall(SYS_semsys, 0, semid, semnum, cmd, arg);
-@@ -1012,24 +980,6 @@
+@@ -1012,24 +984,6 @@
return result;
}
@@ -534,7 +551,7 @@ arguments.
int sendmsg(s, msg, flags) /* ok */
int s;
const struct msghdr msg[];
-@@ -1051,29 +1001,8 @@
+@@ -1051,29 +1005,8 @@
return result;
}
@@ -565,7 +582,7 @@ arguments.
int namelen;
{ int result;
-@@ -1086,7 +1015,7 @@
+@@ -1086,7 +1019,7 @@
int setgroups(ngroups, gidset) /* ok */
int ngroups;
@@ -574,7 +591,7 @@ arguments.
{ int result;
ENTER_CRITICAL;
-@@ -1097,7 +1026,7 @@
+@@ -1097,7 +1030,7 @@
}
int sethostname(name, namelen) /* ok */
@@ -583,7 +600,7 @@ arguments.
int namelen;
{ int result;
#if __FreeBSD__ >= 2
-@@ -1213,20 +1142,20 @@
+@@ -1213,20 +1146,20 @@
return result;
}
@@ -611,7 +628,7 @@ arguments.
int sigaltstack(ss, oss) /* ok */
const struct sigaltstack *ss;
struct sigaltstack *oss;
-@@ -1239,20 +1168,6 @@
+@@ -1239,20 +1172,6 @@
EXIT_CRITICAL;
return result;
}
@@ -632,7 +649,7 @@ arguments.
int socketpair(d, type, protocol, sv) /* ok */
int d, type, protocol;
-@@ -1267,7 +1182,7 @@
+@@ -1267,7 +1186,7 @@
}
int stat(path, buf) /* ok */
@@ -641,7 +658,7 @@ arguments.
struct stat *buf;
{ int result;
-@@ -1280,7 +1195,7 @@
+@@ -1280,7 +1199,7 @@
}
int swapon(special) /* ok */
@@ -650,7 +667,7 @@ arguments.
{ int result;
ENTER_CRITICAL;
-@@ -1291,8 +1206,8 @@
+@@ -1291,8 +1210,8 @@
}
int symlink(name1, name2) /* ok */
@@ -661,7 +678,7 @@ arguments.
{ int result;
ENTER_CRITICAL;
-@@ -1304,14 +1219,14 @@
+@@ -1304,14 +1223,14 @@
}
int truncate(path, length) /* ok */
@@ -680,7 +697,7 @@ arguments.
EXIT_CRITICAL;
return result;
}
-@@ -1328,7 +1243,7 @@
+@@ -1328,7 +1247,7 @@
}
int unlink(path) /* ok */
@@ -689,7 +706,7 @@ arguments.
{ int result;
ENTER_CRITICAL;
-@@ -1414,19 +1329,6 @@
+@@ -1414,19 +1333,6 @@
ENTER_CRITICAL;
MAKE_WRITABLE(status);
result = syscall(SYS_wait4, pid, status, options, NULL);