0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std
Ryan Liptak efd227eca2 File.Reader.seekBy: Fix erroneously tossing the buffer in streaming mode
The discard already handles updating the state, so the toss was redundant in the best case and would erroneously drop data in the worst case.

Closes #36568
History 2026-08-20 08:29:34 +02:00
..
Build wasm: add --growable-table 2026-08-18 17:43:59 +02:00
c std.Io.Threaded: implement park and unpark for haiku 2026-08-03 11:52:08 +01:00
compress flate.Decompress: Fix potential infinite loop when using limits 2026-08-14 12:26:14 +02:00
crypto asn1: replace use of deprecated lang.Type.Enum API 2026-08-15 06:19:09 +02:00
debug std.debug.cpu_context.X86_16: fix register number for ip to match eip on X86 2026-08-09 17:53:04 +02:00
dwarf fix compiler ftbfs from std.macho and std.dwarf changes 2025-09-30 13:44:51 +01:00
fmt cbe: update for compiler_rt abi changes 2026-07-27 14:35:12 -04:00
fs File.Reader.seekBy: Fix erroneously tossing the buffer in streaming mode 2026-08-20 08:29:34 +02:00
hash std.hash: fix inconsistent spacing 2026-08-04 16:11:48 +02:00
heap Update usages of most deprecated APIs 2026-08-05 03:40:30 +02:00
http Update usages of most deprecated APIs 2026-08-05 03:40:30 +02:00
Io File.Reader.seekBy: Fix erroneously tossing the buffer in streaming mode 2026-08-20 08:29:34 +02:00
json std.lang: rename OptimizeMode to Optimize 2026-07-20 17:26:50 -07:00
lang std: add basic target information for m88k-openbsd 2026-05-23 11:02:55 +02:00
math std.math.float: evaluate some constants at comptime 2026-08-03 21:04:04 -04:00
mem Merge pull request 'fix: Allocator contract should allow *[len]T in more places' (#36113) from robbielyman/zig:push-oxmuzrvppsyx into master 2026-08-08 09:43:59 +02:00
meta Remove pub modifier from const Self = @This() expressions 2026-07-22 20:37:12 +02:00
os std.os.linux: Elf_Symndx is u64 on alpha like s390x 2026-08-16 10:37:20 +01:00
posix std.posix.test: fix dl_iterate_phdr test 2026-08-16 10:37:20 +01:00
process Remove pub modifier from const Self = @This() expressions 2026-07-22 20:37:12 +02:00
Random cbe: update for compiler_rt abi changes 2026-07-27 14:35:12 -04:00
sort std.lang: rename OptimizeMode to Optimize 2026-07-20 17:26:50 -07:00
tar Update usages of most deprecated APIs 2026-08-05 03:40:30 +02:00
Target zig fmt 2026-07-17 23:30:26 +02:00
testing Update usages of most deprecated APIs 2026-08-05 03:40:30 +02:00
time zig fmt 2026-07-17 23:30:26 +02:00
tz Support legacy TZ format, expose header struct to a potential writer 2022-01-01 12:47:08 +00:00
unicode remove uses of array multiplication 2026-04-30 08:57:51 +01:00
valgrind zig fmt 2026-07-17 23:30:26 +02:00
zig std.zig.system.x86: deal with lying hypervisors 2026-08-16 07:25:03 +02:00
zip/testdata Add zip.extractTo test cases (#35748) 2026-06-17 23:22:55 +02:00
zon std.zon serialize: make escaping non-ascii optional, defaulting to false (#30710) 2026-08-12 23:43:31 +02:00
array_hash_map.zig Update usages of most deprecated APIs 2026-08-05 03:40:30 +02:00
array_list.zig std.ArrayListUnmanaged: last and lastPtr methods (#36318) 2026-08-07 07:30:10 +02:00
ascii.zig Simplify return type of hexEscape 2026-07-31 16:19:58 -04:00
atomic.zig std.atomic: fix conditions for using yield on arm/thumb in spinLoopHint 2026-08-09 17:53:04 +02:00
base64.zig remove uses of array multiplication 2026-04-30 08:57:51 +01:00
bit_set.zig cbe: update for compiler_rt abi changes 2026-07-27 14:35:12 -04:00
BitStack.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
buf_map.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
buf_set.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
Build.zig build system: rework user input options 2026-08-13 23:40:03 -07:00
c.zig std.c: Fix tc_lflag_t definition for serenity 2026-08-10 20:34:35 +01:00
coff.zig zig fmt 2026-07-17 23:30:26 +02:00
compress.zig std.compress: rework flate to new I/O API 2025-07-31 22:10:11 -07:00
crypto.zig crypto.aes_ccm: fix the IEEE 802.15.4 test vector 2026-07-05 12:25:21 +02:00
debug.zig sema: improve @errorCast safety check message 2026-08-05 03:29:37 +02:00
deque.zig std.ArrayListUnmanaged: last and lastPtr methods (#36318) 2026-08-07 07:30:10 +02:00
DoublyLinkedList.zig std.DoublyLinkedList: rename pop to popLast (#35692) 2026-06-11 05:43:57 +02:00
dwarf.zig Dwarf: cleanup emitted debug info 2024-08-22 08:44:08 +02:00
dynamic_library.zig elf: remove usages of deprecated elf.Phdr 2026-07-30 21:23:58 +02:00
elf.zig std.elf: update hash structures for the 64-bit variant 2026-08-16 10:37:20 +01:00
enums.zig std.meta: deprecate fieldInfo, fieldNames, fieldTypes 2026-08-08 19:15:10 +02:00
fmt.zig cbe: update for compiler_rt abi changes 2026-07-27 14:35:12 -04:00
fs.zig std: find a better home for the "preopens" concept 2026-01-08 05:06:31 +01:00
hash.zig std.hash.crc: embrace standard names 2026-06-26 16:07:53 -07:00
hash_map.zig InternPool: update Tag.encodings to fix lldb pretty printing 2026-07-27 14:35:12 -04:00
heap.zig zig fmt 2026-07-17 23:30:26 +02:00
http.zig std.http: add QUERY method (#35956) 2026-08-07 16:45:28 +02:00
Io.zig std.Io: add error.ConnectionTimedOut for net read/write/send/receive 2026-08-15 10:46:35 +02:00
json.zig rename std.Io.GenericReader to std.Io.Reader in outdated doc comment 2026-05-17 19:48:12 +03:00
lang.zig remove bad advice from @import("builtin") 2026-08-11 20:51:12 -07:00
leb128.zig std.meta: Remove Int in favor of @Int 2026-05-03 21:42:06 +01:00
log.zig std.lang: rename OptimizeMode to Optimize 2026-07-20 17:26:50 -07:00
macho.zig std.macho: add encryption_info_command[_64] 2026-07-25 01:17:21 +02:00
math.zig llvm: enable passing tests 2026-07-27 14:44:41 -04:00
mem.zig feat(mem): allow absorbSentinel on *[n]T 2026-08-06 21:42:17 -04:00
meta.zig std.meta: deprecate fieldInfo, fieldNames, fieldTypes 2026-08-08 19:15:10 +02:00
multi_array_list.zig InternPool: update Tag.encodings to fix lldb pretty printing 2026-07-27 14:35:12 -04:00
os.zig std.os: no longer require libc for sh(eb)-linux 2026-06-04 17:05:00 +02:00
pdb.zig Removes dead code, updates some tests, fixes typos in comments, formats 2026-04-12 04:01:30 -07:00
pie.zig std.pie: fix calculation of _DYNAMIC's offset 2026-08-11 01:02:54 +02:00
posix.zig zig fmt 2026-07-17 23:30:26 +02:00
priority_dequeue.zig priority queue and dequeue: use *const Self in read-only methods and fix deinit (#31712) 2026-04-03 22:20:46 +02:00
priority_queue.zig priority queue and dequeue: use *const Self in read-only methods and fix deinit (#31712) 2026-04-03 22:20:46 +02:00
process.zig std.process: add missing io parameters in getUserInfo 2026-07-26 12:46:18 +10:00
Progress.zig std.Progress: fix assertion failure when IPC slots are exhausted 2026-07-21 10:44:45 +02:00
Random.zig lib: use @divCeil 2026-07-06 20:49:09 +02:00
SemanticVersion.zig Prefer <err> => |e| return e over <err> => return <err> 2026-04-20 18:03:14 -07:00
simd.zig zig fmt 2026-07-17 23:30:26 +02:00
SinglyLinkedList.zig SinglyLinkedList.remove docs: Assumes -> asserts 2025-10-25 21:28:54 -07:00
sort.zig std.sort: clarify description of equalRange 2026-04-16 19:42:00 +02:00
spirv.zig Remove erroneous quote in std.spirv.specConst inline asm (#36230) 2026-07-21 19:54:03 +02:00
start.zig std.start: simplify sh _start assembly a bit 2026-08-09 16:56:23 +02:00
static_string_map.zig zig fmt 2026-07-17 23:30:26 +02:00
std.zig std.lang: rename OptimizeMode to Optimize 2026-07-20 17:26:50 -07:00
tar.zig zig fmt 2026-07-17 23:30:26 +02:00
Target.zig std.Target: update max Linux version to 7.2 2026-08-18 12:28:52 +02:00
testing.zig Update usages of most deprecated APIs 2026-08-05 03:40:30 +02:00
Thread.zig std.Thread: remove pointless clobbers in LinuxThreadImpl.freeAndExit() 2026-08-09 17:53:04 +02:00
time.zig std: finish moving time to Io interface 2026-02-02 23:02:31 -08:00
treap.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
tz.zig std.tz: fix redundant endian handling 2025-08-28 18:30:57 -07:00
unicode.zig std.unicode: add peekCodepoint (#31038) 2026-07-28 21:01:34 +02:00
Uri.zig Update usages of most deprecated APIs 2026-08-05 03:40:30 +02:00
valgrind.zig zig fmt 2026-07-17 23:30:26 +02:00
wasm.zig zig fmt 2026-07-17 23:30:26 +02:00
zig.zig compiler: eliminate ZIG_DEBUG_MAKER 2026-08-05 18:43:50 +02:00
zip.zig Update usages of most deprecated APIs 2026-08-05 03:40:30 +02:00
zon.zig zon: add fmt function 2026-08-02 21:40:32 +02:00