You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.3 KiB
24 lines
1.3 KiB
Index: src/github.com/liftbridge-io/liftbridge/vendor/github.com/tysontate/gommap/mmap_freebsd_amd64.go |
|
--- src/github.com/liftbridge-io/liftbridge/vendor/github.com/tysontate/gommap/mmap_freebsd_amd64.go.orig 2018-09-01 13:03:17.177406000 +0200 |
|
+++ src/github.com/liftbridge-io/liftbridge/vendor/github.com/tysontate/gommap/mmap_freebsd_amd64.go 2018-09-01 13:02:36.430300000 +0200 |
|
@@ -0,0 +1,8 @@ |
|
+package gommap |
|
+ |
|
+import "syscall" |
|
+ |
|
+func mmap_syscall(addr, length, prot, flags, fd uintptr, offset int64) (uintptr, error) { |
|
+ addr, _, err := syscall.Syscall6(syscall.SYS_MMAP, addr, length, prot, flags, fd, uintptr(offset)) |
|
+ return addr, err |
|
+} |
|
Index: src/github.com/liftbridge-io/liftbridge/vendor/github.com/nsip/gommap/mmap_freebsd_amd64.go |
|
--- src/github.com/liftbridge-io/liftbridge/vendor/github.com/nsip/gommap/mmap_freebsd_amd64.go.orig 2018-09-01 13:03:17.177406000 +0200 |
|
+++ src/github.com/liftbridge-io/liftbridge/vendor/github.com/nsip/gommap/mmap_freebsd_amd64.go 2018-09-01 13:02:36.430300000 +0200 |
|
@@ -0,0 +1,8 @@ |
|
+package gommap |
|
+ |
|
+import "syscall" |
|
+ |
|
+func mmap_syscall(addr, length, prot, flags, fd uintptr, offset int64) (uintptr, error) { |
|
+ addr, _, err := syscall.Syscall6(syscall.SYS_MMAP, addr, length, prot, flags, fd, uintptr(offset)) |
|
+ return addr, err |
|
+}
|
|
|