6389305e33
Submitted by: jkoshy
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
--- libs/m3core/src/runtime/FBSD_AMD64/RTHeapDepC.c.orig 2008-08-18 16:13:42.000000000 +0530
|
|
+++ libs/m3core/src/runtime/FBSD_AMD64/RTHeapDepC.c 2008-08-18 16:14:20.000000000 +0530
|
|
@@ -1,2 +1,13 @@
|
|
+#include <fcntl.h>
|
|
+
|
|
void (*RTHeapRep_Fault)(char*);
|
|
void (*RTCSRC_FinishVM)();
|
|
+
|
|
+/*
|
|
+ * Translate between non-varargs and varargs calling conventions.
|
|
+ */
|
|
+int
|
|
+ufcntl(int fd, int cmd, long arg)
|
|
+{
|
|
+ return (fcntl(fd, cmd, arg));
|
|
+}
|
|
--- libs/m3core/src/unix/freebsd-4.amd64/Unix.i3.orig 2008-08-18 16:13:42.000000000 +0530
|
|
+++ libs/m3core/src/unix/freebsd-4.amd64/Unix.i3 2008-08-18 16:15:09.000000000 +0530
|
|
@@ -147,6 +147,7 @@
|
|
l_pid: pid_t := 0;
|
|
l_type: short; (* see below *)
|
|
l_whence: short;
|
|
+ l_sysid: int := 0;
|
|
END;
|
|
(* ok *)
|
|
|
|
@@ -155,7 +156,7 @@
|
|
F_WRLCK = 3; (* Write lock *)
|
|
F_UNLCK = 2; (* Remove lock(s) *)
|
|
|
|
-<*EXTERNAL*> PROCEDURE fcntl (fd, request: int; arg: long): int;
|
|
+<*EXTERNAL "ufcntl"*> PROCEDURE fcntl (fd, request: int; arg: long): int;
|
|
(* ok *)
|
|
|
|
(*** flock - apply or remove an advisory lock on an open file ***)
|