OSDN Git Service

syscall: Portability code for epoll_event on GNU/Linux.
[pf3gnuchains/gcc-fork.git] / libgo / go / syscall / socket_linux.go
index 20a37f7..49aac87 100644 (file)
@@ -1,4 +1,4 @@
-// socket_linux.go -- Socket handling specific to Linux.
+// socket_linux.go -- Socket handling specific to GNU/Linux.
 
 // Copyright 2010 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
 
 // Copyright 2010 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
@@ -98,7 +98,7 @@ func (sa *RawSockaddrUnix) getLen() (int, int) {
        }
 
        // Assume path ends at NUL.
        }
 
        // Assume path ends at NUL.
-       // This is not technically the Linux semantics for
+       // This is not technically the GNU/Linux semantics for
        // abstract Unix domain sockets--they are supposed
        // to be uninterpreted fixed-size binary blobs--but
        // everyone uses this convention.
        // abstract Unix domain sockets--they are supposed
        // to be uninterpreted fixed-size binary blobs--but
        // everyone uses this convention.
@@ -164,15 +164,6 @@ func anyToSockaddrOS(rsa *RawSockaddrAny) (Sockaddr, int) {
        return nil, EAFNOSUPPORT
 }
 
        return nil, EAFNOSUPPORT
 }
 
-// We don't take this type directly from the header file because it
-// uses a union.  FIXME.
-
-type EpollEvent struct {
-       Events uint32
-       Fd int32
-       Pad int32
-}
-
 //sysnb        EpollCreate(size int) (fd int, errno int)
 //epoll_create(size int) int
 
 //sysnb        EpollCreate(size int) (fd int, errno int)
 //epoll_create(size int) int