github.com/Ptt-official-app/go-bbs@v0.12.0/cache/systemvshm_windows.go (about) 1 // +build windows 2 3 package cache 4 5 import ( 6 "fmt" 7 ) 8 9 type sizeT uint64 10 11 type ShmidDs struct { 12 ShmSegsz sizeT 13 } 14 15 func shmget(key int, size int, flag int) (int, error) { 16 return 0, fmt.Errorf("windows do not implement shmget") 17 } 18 19 func shmat(shmid int, shmaddr uintptr, shmflg int) (uintptr, error) { 20 return 0, fmt.Errorf("windows do not implement shmat") 21 } 22 23 func shmdt(shmaddr uintptr) (int, error) { 24 return 0, fmt.Errorf("windows do not implement shmdt") 25 } 26 27 func shmctl(shmid int, cmd int, buf *ShmidDs) (int, error) { 28 return 0, fmt.Errorf("windows do not implement shmctl") 29 }