mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-07 04:23:41 +00:00
1545659817
The upstream one assumes it's running on a Unix system (which makes sense), but this package is also used on baremetal. So replace it on systems that need a replaced syscall package.
11 lines
265 B
Go
11 lines
265 B
Go
package unix
|
|
|
|
import "syscall"
|
|
|
|
func Eaccess(path string, mode uint32) error {
|
|
// We don't support this syscall on baremetal or wasm.
|
|
// Callers are generally able to deal with this since unix.Eaccess also
|
|
// isn't available on Android.
|
|
return syscall.ENOSYS
|
|
}
|