Andrew Kelley
4ed74a9f8a
std.Io.Threaded: implement netConnectIp for Windows
2025-10-29 06:20:50 -07:00
Andrew Kelley
76107e9e65
std.Io.Threaded: implement netBindIp for Windows
2025-10-29 06:20:50 -07:00
Andrew Kelley
0b5179a231
std.Io.Threaded: implement netAccept for Windows
2025-10-29 06:20:50 -07:00
Andrew Kelley
34891b528e
std.Io.Threaded: implement netListen for Windows
2025-10-29 06:20:50 -07:00
Andrew Kelley
62c0496d0a
std.Io.Threaded: implement dirOpenDir
2025-10-29 06:20:50 -07:00
Andrew Kelley
dc6a4f3bf1
std.Io: add dirMakePath and dirMakeOpenPath
2025-10-29 06:20:50 -07:00
Andrew Kelley
6d1b2c7f64
std.Io: introduce openSelfExe
2025-10-29 06:20:50 -07:00
Andrew Kelley
1c67607397
std.Io.Threaded: implement dirOpenFile for Windows
2025-10-29 06:20:50 -07:00
Andrew Kelley
b561d5f3fe
std.Io.Threaded: implement dirCreateFile for Windows
2025-10-29 06:20:50 -07:00
Andrew Kelley
aa6e8eff40
std.Io.Threaded: implement dirAccess for Windows
2025-10-29 06:20:50 -07:00
Andrew Kelley
482343f2e2
std.Io.Threaded: implement dirStatPath for Windows
2025-10-29 06:20:50 -07:00
Andrew Kelley
ed7747e90f
std.Io.Threaded: add dirMake for Windows
2025-10-29 06:20:50 -07:00
Andrew Kelley
10b1eef2d3
std: fix compilation errors on Windows
2025-10-29 06:20:50 -07:00
Andrew Kelley
83e4ff6f4c
std.Io: add dirClose
2025-10-29 06:20:50 -07:00
Andrew Kelley
752d38612f
std.Io.Threaded: fix -fsingle-threaded build
2025-10-29 06:20:50 -07:00
Andrew Kelley
81e7e9fdbb
std.Io: add dirOpenDir and WASI impl
2025-10-29 06:20:50 -07:00
Andrew Kelley
da6b959f64
std.Io.Threaded: implement dirOpenFile for WASI
2025-10-29 06:20:50 -07:00
Andrew Kelley
e87ceb76c2
std.Io.net.Server: refine AcceptError set
2025-10-29 06:20:50 -07:00
Andrew Kelley
cf6fa219fd
std.Io.Threaded: fix netWrite cancellation
...
Move std.posix logic over rather than calling into it.
2025-10-29 06:20:50 -07:00
Andrew Kelley
d4215ffaa0
std.Io.Threaded: implement dirCreateFile for WASI
2025-10-29 06:20:50 -07:00
Andrew Kelley
143127529b
std.Io.Threaded: implement dirMake for WASI
2025-10-29 06:20:50 -07:00
Andrew Kelley
ec9dfc540b
std.Io.Threaded: handle ECANCELED
...
none of these APIs are documented to return this error code, but it
would be cool if they did.
2025-10-29 06:20:50 -07:00
Andrew Kelley
f8ea00bd6d
std.Io: add dirAccess
2025-10-29 06:20:50 -07:00
Andrew Kelley
3bf0ce65a5
fix miscellaneous compilation errors
...
- ILSEQ -> error.BadPathName
- implement dirStatPath for WASI
2025-10-29 06:20:50 -07:00
Andrew Kelley
6336d58661
std.Io.Threaded: fix getaddrinfo usage
2025-10-29 06:20:50 -07:00
Andrew Kelley
f7bbcb4a4b
fix miscellaneous compilation failures
2025-10-29 06:20:50 -07:00
Andrew Kelley
90fdd21df6
std: move DNS record enum to a better namespace
2025-10-29 06:20:50 -07:00
Andrew Kelley
bf841bb4ae
std.Io.Threaded: implement futexes on darwin
2025-10-29 06:20:50 -07:00
Andrew Kelley
18ec9685fb
std.Io.Threaded: add support for getaddrinfo
...
this API sucks but it's the best we've got on some operating systems
2025-10-29 06:20:49 -07:00
Andrew Kelley
031044b399
std: fix macos compilation errors
2025-10-29 06:20:49 -07:00
Andrew Kelley
bb1bf5b96f
std.Io: stub file writing rather than incorrect impl
2025-10-29 06:20:49 -07:00
Andrew Kelley
81b1bfbfbb
std.Io.Threaded: wrangle TODOs
2025-10-29 06:20:49 -07:00
Andrew Kelley
060fd975d9
std.Io.Group: add cancellation support to "wait"
2025-10-29 06:20:49 -07:00
Andrew Kelley
10bfbd7d60
std.Io.Threaded: rename from "pool"
2025-10-29 06:20:49 -07:00
Andrew Kelley
d3c4158a10
std.Io: implement Select
...
and finish implementation of HostName.connect
2025-10-29 06:20:49 -07:00
Andrew Kelley
35ce907c06
std.Io.net.HostName: move lookup to the interface
...
Unfortunately this can't be implemented "above the vtable" because
various operating systems don't provide low level DNS resolution
primitives such as just putting the list of nameservers in a file.
Without libc on Linux it works great though!
Anyway this also changes the API to be based on Io.Queue. By using a
large enough buffer, reusable code can be written that does not require
concurrent, yet takes advantage of responding to DNS queries as they
come in. I sketched out a new implementation of `HostName.connect` to
demonstrate this, but it will require an additional API (`Io.Select`) to
be implemented in a future commit.
This commit also introduces "uncancelable" variants for mutex locking,
waiting on a condition, and putting items into a queue.
2025-10-29 06:20:49 -07:00
Andrew Kelley
1382e41226
std.Io.Threaded: import std.Io.net
2025-10-29 06:20:49 -07:00
Andrew Kelley
2bcdde2985
compiler: update for introduction of std.Io
...
only thing remaining is using libc dns resolution when linking libc
2025-10-29 06:20:49 -07:00
Andrew Kelley
0732ff2263
std.Io.Threaded: implement connecting to unix sockets
2025-10-29 06:20:49 -07:00
Andrew Kelley
e8cea8accb
std.Io.Threaded: implement netListenUnix
2025-10-29 06:20:49 -07:00
Andrew Kelley
d680b9e9b2
std.Io.File: add WouldBlock to the error set
...
Even in an asynchronous world, the concept of a non-blocking flag is
useful because it determines under what conditions the operation
completes.
2025-10-29 06:20:49 -07:00
Andrew Kelley
e0e463bcf7
std.Io.net.Stream.Reader: fix not using buffer
2025-10-29 06:20:49 -07:00
Andrew Kelley
be1ae430a1
std.Io.Threaded.netReadPosix: support cancelation
2025-10-29 06:20:49 -07:00
Andrew Kelley
71ff6e0ef7
std: fix seekBy unit test
2025-10-29 06:20:49 -07:00
Andrew Kelley
3b34622368
std.Io: add unix domain sockets API
...
note that "reuseaddr" does nothing for these
2025-10-29 06:20:49 -07:00
Andrew Kelley
b1733b7bce
std.Io: implement dirOpenFile
2025-10-29 06:20:49 -07:00
Andrew Kelley
8a1e6c8c39
std.Io: implement dirStatPath
2025-10-29 06:20:49 -07:00
Andrew Kelley
eadfefa002
std.Io: implement dirMake
...
In the future, it might be nice to introduce a type for file system path
names. This would be a way to avoid having InvalidFileName in the error
set, since construction of such type could validate it above the
interface.
2025-10-29 06:20:49 -07:00
Andrew Kelley
ebcc6f166c
std.Io: bring back Timestamp but also keep Clock.Timestamp
...
this feels better
2025-10-29 06:20:49 -07:00
Andrew Kelley
89412fda77
std.Io: implement fileStat
2025-10-29 06:20:48 -07:00