Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions plan9/asm_plan9_amd64.s

This file was deleted.

9 changes: 5 additions & 4 deletions plan9/syscall_plan9.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ package plan9

import (
"bytes"
"os"
"syscall"
"unsafe"
)
Expand Down Expand Up @@ -61,10 +62,10 @@ func errstr() string {
return cstring(buf[:])
}

// Implemented in assembly to import from runtime.
func exit(code int)

func Exit(code int) { exit(code) }
// Exit causes the current process to exit with the given status code.
// Previously implemented in assembly referencing syscall.exit, which does
// not exist on Plan 9, causing build failures on plan9/amd64.
func Exit(code int) { os.Exit(code) }

func readnum(path string) (uint, error) {
var b [12]byte
Expand Down