refactor(c/libuv): Rename UvPipe & remove unused structs

Signed-off-by: hackerchai <i@hackerchai.com>
This commit is contained in:
hackerchai
2024-07-29 09:59:46 +08:00
parent bc93bda1b7
commit b1cc732cb2

View File

@@ -101,46 +101,14 @@ type Handle struct {
Unused [96]byte Unused [96]byte
} }
type Dir struct {
Unused [0]byte
}
type Stream struct { type Stream struct {
Unused [264]byte Unused [264]byte
} }
type Pipe struct {
Unused [0]byte
}
type Tty struct {
Unused [0]byte
}
type Poll struct { type Poll struct {
Unused [0]byte 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. */ /* Request types. */
type Req struct { type Req struct {
@@ -296,8 +264,8 @@ func (handle *Handle) Fileno(fd *OsFd) c.Int {
return 0 return 0
} }
//go:linkname UvPipe C.uv_pipe //go:linkname Pipe C.uv_pipe
func UvPipe(fds [2]File, readFlags c.Int, writeFlags c.Int) c.Int { func Pipe(fds [2]File, readFlags c.Int, writeFlags c.Int) c.Int {
return 0 return 0
} }