//go:build !linux && !darwin && !windows package proc // evtfdCreate:Windows 不支持 eventfd 和 pipe 事件环(§9.2)。 func evtfdCreate() (int, error) { return -1, errPlatformNotSupported("eventfd") } func EvtfdNotify(efd int) {} func evtfdReadFile(efd int) interface{} { return nil } type errPlatformNotSupported string func (e errPlatformNotSupported) Error() string { return "当前平台尚未支持事件环通知(" + string(e) + ",§9.2)" } // evtfdClose 关闭通知句柄。Unix 侧由 *os.File.Close 负责,此处为跨平台签名占位。 func evtfdClose(efd int) {}