| Age | Commit message (Collapse) | Author |
|
Starting from Windows 10 build 17063.
|
|
The overlap between files and sockets is minimal and lumping them
together means supporting only a small subset of the functionalities
provided by the OS.
Moreover the socket and file handles are not always interchangeable: on
Windows one should use Winsock's close() call rather than the one used
for common files.
|
|
Related: #4917
|
|
|
|
|
|
|
|
|
|
* std: always return loopback address when looking up localhost
* std: also return Ipv6 loopback
* std: remove commented out obsolete code
|
|
POSIX compliant fnctl cannot return EPERM when getting/setting the given
flags. See the specification here:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html
|
|
|
|
|
|
|
|
* Use closeSocket on sockets instead of plain old close, the latter
doesn't work on them.
* Use winsocket2 everywhere, mingw has no BSD sockets.
|
|
|
|
Parameter in std.os.listen is u31.
Fixes ziglang#6775
|
|
The event loop constant was missing.
|
|
Signed-off-by: Loris Cro <kappaloris@gmail.com>
|
|
Signed-off-by: Loris Cro <kappaloris@gmail.com>
|
|
Signed-off-by: Loris Cro <kappaloris@gmail.com>
|
|
Signed-off-by: Loris Cro <kappaloris@gmail.com>
|
|
|
|
Spotted thanks to the stricter conversion rules.
|
|
add SPDX license identifier
copyright ownership is zig contributors
|
|
|
|
|
|
|
|
Replaced all occurences of std.mem.dupe in stdlib with
Allocator.dupe/std.mem.dupeZ -> Allocator.dupeZ
|
|
|
|
The AddressList returned can contain more than one item
e.g. the ipv4 and ipv6 addresses for a given hostname.
Previously if a server had multiple addresses but
was not listening on one of them Zig would give up
immediately.
Now on std.os.ConnectError.ConnectionRefused Zig will
try the next address in the list. Zig still gives up on
all other errors as they are related to the system and
system resources rather than whether the remote server
is listening on a particular address.
|
|
* improve docs
* add TODO comments for things that don't have open issues
* remove redundant namespacing of struct fields
* guard against ioctl returning EINTR
* remove the general std.os.ioctl function in favor of the specific
ioctl_SIOCGIFINDEX function. This allows us to have a more precise
error set, and more type-safe API.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Instead of streaming the scope id digits to an u32, we keep a [32]u8 in
the stack and fill it up with the characters we get for scope id.
|
|
* support posix SOCK_NONBLOCK and SOCK_CLOEXEC flags on windows
* fix bugs in os.socket and os.connect to return at the correct place
|
|
|
|
|
|
Remove the constants that assume a base unit in favor of explicit
x_per_y constants.
nanosecond calendar timestamps now use i128 for the type. This affects
fs.File.Stat, std.time.nanoTimestamp, and fs.File.updateTimes.
calendar timestamps are now signed, because the value can be less than
the epoch (the user can set their computer time to whatever they wish).
implement std.os.clock_gettime for Windows when clock id is
CLOCK_CALENDAR.
|
|
|
|
|