vendor: Mega update all dependencies

This commit is contained in:
Jakob Borg
2017-04-05 16:21:57 +02:00
parent 49c1527724
commit 36b8833441
1358 changed files with 55045 additions and 798287 deletions
+4
View File
@@ -54,6 +54,10 @@ func Map(f *os.File, prot, flags int) (MMap, error) {
// If length < 0, the entire file will be mapped.
// If ANON is set in flags, f is ignored.
func MapRegion(f *os.File, length int, prot, flags int, offset int64) (MMap, error) {
if offset%int64(os.Getpagesize()) != 0 {
return nil, errors.New("offset parameter must be a multiple of the system's page size")
}
var fd uintptr
if flags&ANON == 0 {
fd = uintptr(f.Fd())