diff --git a/c/libuv/libuv.go b/c/libuv/libuv.go index 47ae2573..9465f00e 100644 --- a/c/libuv/libuv.go +++ b/c/libuv/libuv.go @@ -101,46 +101,14 @@ type Handle struct { Unused [96]byte } -type Dir struct { - Unused [0]byte -} - type Stream struct { Unused [264]byte } -type Pipe struct { - Unused [0]byte -} - -type Tty struct { - Unused [0]byte -} - type Poll struct { Unused [0]byte } -type Prepare struct { - Unused [0]byte -} - -type Check struct { - Unused [0]byte -} - -type Idle struct { - Unused [0]byte -} - -type Async struct { - Unused [0]byte -} - -type Process struct { - Unused [0]byte -} - /* Request types. */ type Req struct { @@ -296,8 +264,8 @@ func (handle *Handle) Fileno(fd *OsFd) c.Int { return 0 } -//go:linkname UvPipe C.uv_pipe -func UvPipe(fds [2]File, readFlags c.Int, writeFlags c.Int) c.Int { +//go:linkname Pipe C.uv_pipe +func Pipe(fds [2]File, readFlags c.Int, writeFlags c.Int) c.Int { return 0 }