aboutsummaryrefslogtreecommitdiff
path: root/lib/std
AgeCommit message (Collapse)Author
2020-06-16Overhauled leb128:tgschultz
handles integers < 8 bits incorrect overflow bugs fixed simplified *mem implementations added wrte* functions added thurough write/read testing
2020-06-16Code cleanup, documentation added, read*Mem functions now take *[]const u8tgschultz
2020-06-16Overhauled leb128:tgschultz
handles integers < 8 bits incorrect overflow bugs fixed simplified *mem implementations added wrte* functions added thurough write/read testing
2020-06-14add workaround for #5599Vexu
2020-06-12Add strict_align to pre-v6 ARM targetsCarter Sande
This matches GCC's and Clang's default behavior for these targets.
2020-06-12Merge pull request #5589 from kubkon/preopens-exampleAndrew Kelley
Add doc example for extracting WASI preopens
2020-06-12Fix formatting of floating point values with the B and Bi specifiersAlexandros Naskos
2020-06-12Fix a few std.sort.sort invocationsCassidy Dingenskirchen
2020-06-11Add unit test for std.fs.wasi.PreopenListJakub Konka
2020-06-11Add custom format method for Preopen structJakub Konka
2020-06-09Support Reader for InStreamJonathan Marler
2020-06-09Expose full llvm intrinsicJakub Konka
2020-06-09Use builtins in std.heap.WasmAllocatorJakub Konka
2020-06-09fix memory errorsJonathan Marler
2020-06-08support Writer instead of OutStreamJonathan Marler
Start implementing https://github.com/ziglang/zig/issues/4917 which is to rename instream/outstream to reader/writer. This first change allows code to use Writer/writer instead of OutStream/outStream, but still maintains the old outstream names with "Deprecated" comments.
2020-06-08update sort callsite to new APIAndrew Kelley
2020-06-08std.sort: give comparator functions a context parameterAndrew Kelley
2020-06-07tcpConnectToHost try all addresses in AddressListIan 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-07Test case for tcpConnectToHost fixIan Simonson
2020-06-04std.os.windows.OpenFile: Handle FILE_IS_A_DIRECTORY statusRyan Liptak
Fixes #5533
2020-06-04Windows: Handle ERROR_DIRECTORY in std.fs.deleteDirAbsolute when called on a ↵Ryan Liptak
file path ERROR_DIRECTORY (267) is returned from kernel32.RemoveDirectoryW if the path is not a directory. Note also that os.DirectDirError already includes NotDir Before: error.Unexpected: GetLastError(267): The directory name is invalid. After: error: NotDir
2020-06-04Windows: Fix std.fs.Dir.deleteDir() deleting filesRyan Liptak
Would previously delete files, now correctly returns error.NotDir. Fixes #5536
2020-06-04add workaround for #5525Vexu
2020-06-02cleanupsAndrew 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-02Replace os.linux to os.systemLuna
2020-06-02Change ioctl's request type to i32Luna
2020-06-02Add declaration for libc ioctlLuna
2020-06-02Replace syscall3 to os.ioctlLuna
2020-06-02Use resolveIp when looking up addresses on linuxLuna
2020-06-02Add std.os.ioctlLuna
2020-06-02net.test: only call resolveIp6 when os is linuxLuna
2020-06-02Add tests for overflowLuna
2020-06-02Use IFNAMESIZE for scope id valueLuna
2020-06-02Make ifru fields sentinel-terminatedLuna
2020-06-02Replace C types in declarationsLuna
2020-06-02Plug resolveIp6 into IPv6 testsLuna
2020-06-02Add validation for scope idsLuna
2020-06-02Replace C shorts by integer typesLuna
2020-06-02Remove warn() callsLuna
2020-06-02Fix ifreq definitionLuna
2020-06-02Change Unsupported to InterfaceNotFoundLuna
2020-06-02Make interface name null-terminated before syscallLuna
2020-06-02Stop using mem.len on arrayLuna
2020-06-02Add ioctl errorsLuna
2020-06-02Only resolve scope id when neededLuna
2020-06-02Fix typo and add if_nametoindexLuna
2020-06-02Add some interface structs to linux bitsLuna
2020-06-02Add basics of resolveIp6Luna
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.
2020-06-02std.HashMap: allow ensureCapacity with a zero parameterAndrew Kelley
2020-06-02pass allocator to self.resize() in appendNTimes()Jesse Rudolph