summaryrefslogtreecommitdiff
path: root/lang/modula-3-lib/files/patch-bs
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1998-04-28 22:20:55 +0000
committerJohn Polstra <jdp@FreeBSD.org>1998-04-28 22:20:55 +0000
commitc4aeb1a8b7537b061fdf6c12ee7d4bc1d490c6ec (patch)
tree03722dd7daa2e58a98c9a0e716ee24db5e8a59a2 /lang/modula-3-lib/files/patch-bs
parentFix missing "=" in BUILD_DEPENDS line, ruined gd dependency. (diff)
Fix an old bug in the runtime system which very rarely could cause
EFAULT to be generated on calls to open(2) or fcntl(2). Bump the shared libraries' major version numbers to guard against possible binary incompatibilities introduced by this fix.
Diffstat (limited to 'lang/modula-3-lib/files/patch-bs')
-rw-r--r--lang/modula-3-lib/files/patch-bs18
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/modula-3-lib/files/patch-bs b/lang/modula-3-lib/files/patch-bs
new file mode 100644
index 000000000000..a58a5f7de94c
--- /dev/null
+++ b/lang/modula-3-lib/files/patch-bs
@@ -0,0 +1,18 @@
+--- m3/m3core/src/unix/freebsd-2/off_t_wrap.c.orig Thu Jan 12 09:28:20 1995
++++ m3/m3core/src/unix/freebsd-2/off_t_wrap.c Thu Apr 23 22:08:58 1998
+@@ -33,15 +33,3 @@
+ off_t len = (off_t) length;
+ return ftruncate(fd, length);
+ }
+-
+-/* added to avoid problems with the ellipsis... */
+-
+-int m3_fcntl(int fd, int cmd, int arg)
+-{
+- return fcntl(fd, cmd, arg);
+-}
+-
+-int m3_open(const char *path, int flags, mode_t mode)
+-{
+- return open(path, flags, mode);
+-}