File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 2626 Stderr = NewFile (uintptr (syscall .Stderr ), "/dev/stderr" )
2727)
2828
29- const DevNull = "/dev/null"
30-
3129// isOS indicates whether we're running on a real operating system with
3230// filesystem support.
3331const isOS = true
Original file line number Diff line number Diff line change 1515 Stderr = NewFile (2 , "/dev/stderr" )
1616)
1717
18+ const DevNull = "/dev/null"
19+
1820// isOS indicates whether we're running on a real operating system with
1921// filesystem support.
2022const isOS = false
Original file line number Diff line number Diff line change 11//go:build darwin || (linux && !baremetal)
22// +build darwin linux,!baremetal
33
4+ // target wasi sets GOOS=linux and thus the +linux build tag,
5+ // even though it doesn't show up in "tinygo info target -wasi
6+
47// Portions copyright 2009 The Go Authors. All rights reserved.
58// Use of this source code is governed by a BSD-style
69// license that can be found in the LICENSE file.
@@ -12,6 +15,8 @@ import (
1215 "syscall"
1316)
1417
18+ const DevNull = "/dev/null"
19+
1520type syscallFd = int
1621
1722// fixLongPath is a noop on non-Windows platforms.
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ import (
1313 "unicode/utf16"
1414)
1515
16+ const DevNull = "NUL"
17+
1618type syscallFd = syscall.Handle
1719
1820// Symlink is a stub, it is not implemented.
You can’t perform that action at this time.
0 commit comments