Age | Commit message (Collapse) | Author |
|
See https://pkg.go.dev/os#Truncate
|
|
|
|
os: implement os.(*File).WriteAt
Signed-off-by: Achille Roussel <[email protected]>
|
|
Signed-off-by: Achille Roussel <[email protected]>
|
|
Signed-off-by: Achille Roussel <[email protected]>
|
|
|
|
This commit introduces `os.DevNull` exports for all supported OS
targets.
|
|
This appears to have been how it is upstream for about 10 years. Using
an interface breaks if a file descriptor number is passed directly to
`NewFile`, e.g., `NewFile(3, "fuzz_in")` as used in Go 1.18 fuzzing
code.
|
|
readdir is disabled on linux for 386 and arm until syscall.seek is implemented there.
windows is hard, so leaving that for later.
File src/os/dir_other_go115.go can be deleted when we drop support for go 1.15.
Also adds TestReadNonDir, which was helpful while debugging.
|
|
This reverts commit 60b483bd3b63653ddff715bf2fa8a293ad998972.
|
|
Revert this once syscall.seek is implemented
cf. https://github.com/tinygo-org/tinygo/issues/1906
|
|
|
|
|
|
Skip part of the test on Windows because of https://github.com/tinygo-org/tinygo/issues/2480
TODO: fix 2480 and unskip test
TODO: pull in rest of upstream tests, fix problems they find
Requested in https://github.com/tinygo-org/tinygo/issues/2109
|
|
File.Stat is left as a stub for now.
Tests are a bit stubbed down because os.ReadDir, os.Symlink, and t.TempDir are not yet (fully) implemented.
TODO: reimport tests from upstream as those materialize.
|
|
Uses upstream go code, lightly adjusted.
Adds smoke test.
|
|
Windows will take more work, so test is skipped there.
|
|
This is necessary for the following:
- to make sure os/exec can be imported
- to make sure internal/testenv can be imported
The internal/testenv package (which imports os/exec) is used by a lot of
tests. By adding support for it, more tests can be run.
This commit adds a bunch of new packages that now pass all tests.
|
|
This uses Mingw-w64, which seems to be the de facto standard for porting
Unixy programs to Windows.
|