libgo: update to Go 1.11
[official-gcc.git] / libgo / go / net / unixsock_plan9.go
blob6ebd4d7d3b46ca3d74bbd619375e54286b7ad1a6
1 // Copyright 2009 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.
5 package net
7 import (
8 "context"
9 "os"
10 "syscall"
13 func (c *UnixConn) readFrom(b []byte) (int, *UnixAddr, error) {
14 return 0, nil, syscall.EPLAN9
17 func (c *UnixConn) readMsg(b, oob []byte) (n, oobn, flags int, addr *UnixAddr, err error) {
18 return 0, 0, 0, nil, syscall.EPLAN9
21 func (c *UnixConn) writeTo(b []byte, addr *UnixAddr) (int, error) {
22 return 0, syscall.EPLAN9
25 func (c *UnixConn) writeMsg(b, oob []byte, addr *UnixAddr) (n, oobn int, err error) {
26 return 0, 0, syscall.EPLAN9
29 func (sd *sysDialer) dialUnix(ctx context.Context, laddr, raddr *UnixAddr) (*UnixConn, error) {
30 return nil, syscall.EPLAN9
33 func (ln *UnixListener) accept() (*UnixConn, error) {
34 return nil, syscall.EPLAN9
37 func (ln *UnixListener) close() error {
38 return syscall.EPLAN9
41 func (ln *UnixListener) file() (*os.File, error) {
42 return nil, syscall.EPLAN9
45 func (sl *sysListener) listenUnix(ctx context.Context, laddr *UnixAddr) (*UnixListener, error) {
46 return nil, syscall.EPLAN9
49 func (sl *sysListener) listenUnixgram(ctx context.Context, laddr *UnixAddr) (*UnixConn, error) {
50 return nil, syscall.EPLAN9