aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/os/file_windows.go
AgeCommit message (Collapse)Author
2024-08-11add os.Truncate(name, size) (see #4209)Roger Standridge
See https://pkg.go.dev/os#Truncate
2024-08-02os: add file.Truncateleongross
2023-05-05os: implement os.(*File).WriteAt (#3697)Achille
os: implement os.(*File).WriteAt Signed-off-by: Achille Roussel <[email protected]>
2023-05-03os: add os.(*File).SyncAchille Roussel
Signed-off-by: Achille Roussel <[email protected]>
2023-03-28fix resource leak in os.(*File).CloseAchille Roussel
Signed-off-by: Achille Roussel <[email protected]>
2022-12-19build: drop deprecated build tagsYurii Soldak
2022-03-08src/os: export correct values for os.DevNull for each OSZauberNerd
This commit introduces `os.DevNull` exports for all supported OS targets.
2022-03-01os: Use a uintptr for NewFileElliott Sales de Andrade
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.
2022-02-02os: implement readdir for darwin and linuxDan Kegel
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.
2022-01-24Revert "Kludge: work around lack of syscall.seek on 386 and arm, #1906"Dan Kegel
This reverts commit 60b483bd3b63653ddff715bf2fa8a293ad998972.
2022-01-20Kludge: work around lack of syscall.seek on 386 and arm, #1906Dan Kegel
Revert this once syscall.seek is implemented cf. https://github.com/tinygo-org/tinygo/issues/1906
2022-01-18os: implement os.Symlink and os.ReadlinkDan Kegel
2022-01-11os: implement file.Seek, add smoke testDan Kegel
2022-01-11os: pull in os.Rename and some of its tests from upstreamDan Kegel
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
2021-12-01os, syscall: implement Stat and LstatDan Kegel
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.
2021-11-30os: TempDir(): obey TMPDIR on unix, TMP on win, etcDan Kegel
Uses upstream go code, lightly adjusted. Adds smoke test.
2021-11-29os, syscall: implement ReadAt for unixDan Kegel
Windows will take more work, so test is skipped there.
2021-11-26os: stub out support for some more featuresAyke van Laethem
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.
2021-11-16all: add support for windows/amd64Ayke van Laethem
This uses Mingw-w64, which seems to be the de facto standard for porting Unixy programs to Windows.