github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/exp/shiny/driver/x11driver/shm_other.go (about) 1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build !linux !amd64 6 7 package x11driver 8 9 import ( 10 "fmt" 11 "runtime" 12 "unsafe" 13 ) 14 15 func shmOpen(size int) (shmid uintptr, addr unsafe.Pointer, err error) { 16 return 0, unsafe.Pointer(uintptr(0)), 17 fmt.Errorf("unsupported GOOS/GOARCH %s/%s", runtime.GOOS, runtime.GOARCH) 18 } 19 20 func shmClose(p unsafe.Pointer) error { 21 return fmt.Errorf("unsupported GOOS/GOARCH %s/%s", runtime.GOOS, runtime.GOARCH) 22 }