all: basic support for the os package

The resulting binary is pretty big due to lacking optimizations
(probably because of interfaces), so that should be fixed.
This commit is contained in:
Ayke van Laethem
2018-09-15 18:54:36 +02:00
parent c237633d34
commit 1484bb5c2c
6 changed files with 141 additions and 3 deletions
+23
View File
@@ -0,0 +1,23 @@
package runtime
// This file implements stub functions for internal/poll.
//go:linkname poll_runtime_pollServerInit internal/poll.runtime_pollServerInit
func poll_runtime_pollServerInit(ctx *uint8) {
panic("todo: runtime_pollServerInit")
}
//go:linkname poll_runtime_pollOpen internal/poll.runtime_pollOpen
func poll_runtime_pollOpen(fd uintptr) (uintptr, int) {
panic("todo: runtime_pollOpen")
}
//go:linkname poll_runtime_pollClose internal/poll.runtime_pollClose
func poll_runtime_pollClose(ctx uintptr) {
panic("todo: runtime_pollClose")
}
//go:linkname poll_runtime_pollUnblock internal/poll.runtime_pollUnblock
func poll_runtime_pollUnblock(ctx uintptr) {
panic("todo: runtime_pollUnblock")
}