| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-08-09 | Ip4Address parser: reject 0-prefixed components (#9538) | Frank Denis | |
| Some parsers interpret these as octal, some don't, and the confusion can lead to vulnerabilities. Return error.NonCanonical when parsing IPv4 addresses with 0 prefixes. | |||
| 2021-08-06 | Update all usages of mem.split/mem.tokenize for generic version | Ryan Liptak | |
| 2021-06-21 | fix code broken from previous commit | Jacob G-W | |
| 2021-05-17 | std: update regarding std.builtin reorganization | Andrew Kelley | |
| There are also some regressed std.fmt tests here and I haven't figured out what's wrong yet. | |||
| 2021-04-15 | std: change `@import("builtin")` to `std.builtin` | Andrew Kelley | |
| 2021-02-21 | replace ArrayList.shrinkAndFree by ArrayList.shrinkRetainingCapacity | Benjamin Graf | |
| 2021-02-16 | std.fs.net.Stream: add writev and writevAll | Andrew Kelley | |
| I noticed that the write function does not properly use non-blocking I/O. This file needs to be reworked for evented I/O to properly take advantage of non-blocking writes to network sockets. | |||
| 2021-01-22 | std: Update `test ""` to `test` where it makes sense | LemonBoy | |
| 2021-01-11 | Apparently unix sockets are supported on Windows | LemonBoy | |
| Starting from Windows 10 build 17063. | |||
| 2021-01-11 | std: Decouple network streams from fs.File | LemonBoy | |
| 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. | |||
| 2021-01-07 | Reduce use of deprecated IO types | Jay Petacat | |
| Related: #4917 | |||
| 2021-01-06 | std: Rename ArrayList shrink => shrinkAndFree | Alex Cameron | |
| 2021-01-02 | std: Use {s} instead of {} when printing strings | LemonBoy | |
| 2020-12-31 | Year++ | Frank Denis | |
| 2020-12-23 | move ArrayListSentineled to std lib orphanage | Veikka Tuominen | |
| 2020-12-01 | Localhost is special (#6955) | daurnimator | |
| * std: always return loopback address when looking up localhost * std: also return Ipv6 loopback * std: remove commented out obsolete code | |||
| 2020-11-30 | std/os: remove unneeded error from accept errorset | Isaac Freund | |
| 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 | |||
| 2020-11-29 | std.meta: add assumeSentinel | Jonathan Marler | |
| 2020-11-25 | std: use mem.asBytes in Ip4Address.parse so it works at comptime | daurnimator | |
| 2020-11-07 | remove deprecated uses of ArrayList.span | Josh Holland | |
| 2020-10-28 | More fixups for Windows targets | LemonBoy | |
| * Use closeSocket on sockets instead of plain old close, the latter doesn't work on them. * Use winsocket2 everywhere, mingw has no BSD sockets. | |||
| 2020-10-27 | std: Add basic smoke test for net functionality | LemonBoy | |
| 2020-10-25 | fix type mismatch in std.net.StreamServer | johnLate | |
| Parameter in std.os.listen is u31. Fixes ziglang#6775 | |||
| 2020-10-21 | Fix std.net.connectUnixSocket in evented I/O mode | heidezomp | |
| The event loop constant was missing. | |||
| 2020-09-24 | recvfrom | Loris Cro | |
| Signed-off-by: Loris Cro <kappaloris@gmail.com> | |||
| 2020-09-24 | sendto | Loris Cro | |
| Signed-off-by: Loris Cro <kappaloris@gmail.com> | |||
| 2020-09-24 | connect | Loris Cro | |
| Signed-off-by: Loris Cro <kappaloris@gmail.com> | |||
| 2020-09-24 | accept | Loris Cro | |
| Signed-off-by: Loris Cro <kappaloris@gmail.com> | |||
| 2020-09-03 | os: return error.SocketNotListening for EINVAL on accept (#6226) | Kenta Iwasaki | |
| 2020-09-01 | std: Fix C-string with missing NUL terminator | LemonBoy | |
| Spotted thanks to the stricter conversion rules. | |||
| 2020-08-20 | add license header to all std lib files | Andrew Kelley | |
| add SPDX license identifier copyright ownership is zig contributors | |||
| 2020-08-04 | zig fmt | Andrew Kelley | |
| 2020-07-27 | Provide Ip4Address and Ip6Address in addition to Address | Jonathan Marler | |
| 2020-07-11 | run zig fmt on std lib and self hosted | Vexu | |
| 2020-07-04 | std.mem.dupe is deprecated, move all references in std | joachimschmidt557 | |
| Replaced all occurences of std.mem.dupe in stdlib with Allocator.dupe/std.mem.dupeZ -> Allocator.dupeZ | |||
| 2020-06-08 | std.sort: give comparator functions a context parameter | Andrew Kelley | |
| 2020-06-07 | tcpConnectToHost try all addresses in AddressList | Ian Simonson | |
| 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. | |||
| 2020-06-02 | cleanups | Andrew Kelley | |
| * 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. | |||
| 2020-06-02 | Replace os.linux to os.system | Luna | |
| 2020-06-02 | Use resolveIp when looking up addresses on linux | Luna | |
| 2020-06-02 | Add std.os.ioctl | Luna | |
| 2020-06-02 | Use IFNAMESIZE for scope id value | Luna | |
| 2020-06-02 | Add validation for scope ids | Luna | |
| 2020-06-02 | Remove warn() calls | Luna | |
| 2020-06-02 | Fix ifreq definition | Luna | |
| 2020-06-02 | Change Unsupported to InterfaceNotFound | Luna | |
| 2020-06-02 | Make interface name null-terminated before syscall | Luna | |
| 2020-06-02 | Stop using mem.len on array | Luna | |
| 2020-06-02 | Add ioctl errors | Luna | |
| 2020-06-02 | Only resolve scope id when needed | Luna | |
