shithub: mc

Download patch

ref: 46d314b6a9301cf48b66a9e1a6db16a1a0f22fce
parent: 764fd41f08380207107ec05f65d0d0bf5b76797c
author: Ori Bernstein <ori@markovcorp.com>
date: Tue May 16 08:30:23 EDT 2017

Missing offset argument on FreeBSD.

	Need a way of testing from one machine on all systems :/

--- a/lib/sys/sys+freebsd-x64.myr
+++ b/lib/sys/sys+freebsd-x64.myr
@@ -828,10 +828,10 @@
 	const creat	: (path:byte[:], mode:int64 -> fd)
 	const unlink	: (path:byte[:] -> int)
 	const read	: (fd:fd, buf:byte[:] -> size)
-	const pread	: (fd:fd, buf:byte[:] -> size)
+	const pread	: (fd:fd, buf:byte[:], off : off -> size)
 	const readv	: (fd:fd, iov:byte[:][:] -> size)
 	const write	: (fd:fd, buf:byte[:] -> size)
-	const pwrite	: (fd:fd, buf:byte[:] -> size)
+	const pwrite	: (fd:fd, buf:byte[:], off : off -> size)
 	const writev	: (fd:fd, iov : byte[:][:] -> size)
 	const lseek	: (fd:fd, off : off, whence : whence -> int64)
 	const stat	: (path:byte[:], sb:statbuf# -> int64)