runtime: add several os package stubs

This commit is contained in:
Justin Clift
2019-06-30 05:28:07 +10:00
committed by Ayke van Laethem
parent 66d8899aa7
commit 847681457f
2 changed files with 163 additions and 4 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ import (
// Read is unsupported on this system.
func (f *File) Read(b []byte) (n int, err error) {
return 0, ErrUnsupported
return 0, errUnsupported
}
// Write writes len(b) bytes to the output. It returns the number of bytes
@@ -21,13 +21,13 @@ func (f *File) Write(b []byte) (n int, err error) {
}
return len(b), nil
default:
return 0, ErrUnsupported
return 0, errUnsupported
}
}
// Close is unsupported on this system.
func (f *File) Close() error {
return ErrUnsupported
return errUnsupported
}
//go:linkname putchar runtime.putchar