github.com/as/shiny@v0.8.2/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
     6  // +build !dragonfly
     7  
     8  package x11driver
     9  
    10  import (
    11  	"fmt"
    12  	"runtime"
    13  	"unsafe"
    14  )
    15  
    16  func shmOpen(size int) (shmid uintptr, addr unsafe.Pointer, err error) {
    17  	return 0, unsafe.Pointer(uintptr(0)),
    18  		fmt.Errorf("unsupported GOOS/GOARCH %s/%s", runtime.GOOS, runtime.GOARCH)
    19  }
    20  
    21  func shmClose(p unsafe.Pointer) error {
    22  	return fmt.Errorf("unsupported GOOS/GOARCH %s/%s", runtime.GOOS, runtime.GOARCH)
    23  }