Debian Codegraph @

shiny/driver/x11driver/shm_other.go

raw symbols SCIP
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 //go:build !linux && !dragonfly && !openbsd
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 }