zig/lib/std
Pat Tullmann cf47d283d1 lib/std/posix/test.zig: don't compare blksize in "fstatat"
In trying to reproduce the race in #24380, my system tripped over the stat
"blocks" field changing in this test.  The value was almost always 8
(effectively 4k) or very infrequently 0 (I saw the 0 from both `fstat` and
`fstatat`).  I believe the underlying filesystem is free to asynchronously
change this value. For example, if it migrates a file between some
"inline" or maybe journal storage, and actual on-disk blocks.  So it seems
plausible that its allowed to change between stat calls.

Breaking up the struct comparison this way means we also don't compare any
of the padding or "reserved" fields, too.  And we can narrow down the
s390x-linux work-around.
2025-08-06 22:12:42 -07:00
..
Build std.Build: keep compiler alive under -fincremental --webui 2025-08-02 08:56:19 +01:00
builtin add lr register to mips 2025-07-16 10:27:40 -07:00
c enable pwd.h functions for other OSes 2025-08-01 04:34:45 +02:00
compress flate zlib fix end of block reading 2025-08-05 17:09:41 -07:00
crypto crypto: fix typo in ecdsa comment 2025-08-05 07:51:39 +01:00
debug std.debug.Dwarf: work around API deficiency 2025-07-31 22:10:11 -07:00
dwarf
fmt std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
fs std.Io.Reader: use readVec for fill functions 2025-08-06 21:23:06 -07:00
hash simplify std.hash.Adler32 2025-07-31 22:10:11 -07:00
heap Merge pull request #24387 from ziglang/std.log.default_level 2025-07-10 14:56:33 +02:00
http Merge pull request #24614 from ziglang/flate 2025-08-01 16:34:43 -07:00
Io std.Io.Reader: use readVec for fill functions 2025-08-06 21:23:06 -07:00
json std.json: update to new I/O API 2025-07-19 16:05:01 -07:00
math std: replace various mem copies with @memmove 2025-08-05 09:56:02 -07:00
mem std: refactor to use Alignment.of 2025-07-09 23:07:18 -07:00
meta std: eradicate u29 and embrace std.mem.Alignment 2025-04-13 02:20:32 -04:00
net std.net: update to new I/O API 2025-07-14 00:16:49 -07:00
os linux/mips.zig: Use i32 for stat nsec fields 2025-08-06 22:12:41 -07:00
posix lib/std/posix/test.zig: don't compare blksize in "fstatat" 2025-08-06 22:12:42 -07:00
process std.process.Child: fix double path normalization in spawnWindows 2025-07-26 01:34:19 -04:00
Random std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
sort
tar std.tar: delete function redundant with std.mem 2025-07-22 17:40:12 -07:00
Target std.Target.Query: fix WindowsVersion format in zigTriple() 2025-08-05 06:08:42 +02:00
testing FailingAllocator: remove outdated doc comments, move doc comment example to decltest 2025-04-23 19:28:28 -04:00
Thread Remove numerous things deprecated during the 0.14 release cycle 2025-07-11 08:17:43 +02:00
time std.time.epoch: change getDaysInMonth to accept the year as an argument 2025-03-08 14:25:28 -05:00
tz
unicode std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
valgrind Remove numerous things deprecated during the 0.14 release cycle 2025-07-11 08:17:43 +02:00
zig Merge pull request #22997 from Rexicon226/align-0-reify 2025-08-03 09:58:23 +01:00
zon std: stop relying on precision-losing coercions 2025-07-31 10:57:04 +01:00
array_hash_map.zig Legalize: implement scalarization of @shuffle 2025-06-01 08:24:01 +01:00
array_list.zig std: remove BoundedArray 2025-08-05 09:56:02 -07:00
ascii.zig Remove numerous things deprecated during the 0.14 release cycle 2025-07-11 08:17:43 +02:00
atomic.zig Remove numerous things deprecated during the 0.14 release cycle 2025-07-11 08:17:43 +02:00
base64.zig std.base64: delete encodeFromReaderToWriter 2025-08-05 09:56:02 -07:00
bit_set.zig std.bit_set: Disable IntegerBitSet decltest on RISC-V with vector support 2025-07-01 23:03:15 +02:00
BitStack.zig
buf_map.zig
buf_set.zig
Build.zig build system: replace fuzzing UI with build UI, add time report 2025-08-01 23:48:21 +01:00
builtin.zig aarch64: workaround some optional/union issues 2025-07-28 09:03:17 -07:00
c.zig std.c: fix utsname array sizes 2025-08-05 00:18:14 -07:00
coff.zig
compress.zig std.compress: rework flate to new I/O API 2025-07-31 22:10:11 -07:00
crypto.zig std.crypto: fix Sha1 namespace 2025-07-14 00:14:21 -07:00
debug.zig std.debug: add assertAligned 2025-07-19 19:57:37 -07:00
DoublyLinkedList.zig std.DoublyLinkedList: remove length tracking 2025-04-03 15:57:35 -07:00
dwarf.zig
dynamic_library.zig x86_64: add support for pie executables 2025-06-06 23:42:14 -07:00
elf.zig std.elf: buffer header iterator API (#24691) 2025-08-05 10:00:33 -07:00
enums.zig std.enums: fix EnumIndexer branch quota 2025-07-31 22:10:22 +01:00
fifo.zig std.io: deprecated Reader/Writer; introduce new API 2025-07-07 22:43:51 -07:00
fmt.zig disable more failing tests 2025-07-29 22:44:01 +01:00
fs.zig Remove numerous things deprecated during the 0.14 release cycle 2025-07-11 08:17:43 +02:00
gpu.zig spirv: error when execution mode is set more than once 2025-05-21 13:01:21 +03:30
hash.zig simplify std.hash.Adler32 2025-07-31 22:10:11 -07:00
hash_map.zig std: eradicate u29 and embrace std.mem.Alignment 2025-04-13 02:20:32 -04:00
heap.zig std: Add serenity to more OS checks 2025-07-30 23:28:58 +01:00
http.zig std.fmt: fully remove format string from format methods 2025-07-07 22:43:53 -07:00
Io.zig std: remove BoundedArray 2025-08-05 09:56:02 -07:00
json.zig std.json: delete dead API 2025-07-21 12:32:37 -07:00
leb128.zig Remove numerous things deprecated during the 0.14 release cycle 2025-07-11 08:17:43 +02:00
log.zig std.log.defaultLog: provide a small buffer 2025-07-10 16:52:29 -07:00
macho.zig
math.zig std: stop relying on precision-losing coercions 2025-07-31 10:57:04 +01:00
mem.zig aarch64: add new from scratch self-hosted backend 2025-07-22 19:43:47 -07:00
meta.zig remove usages of .alignment = 0 2025-08-01 14:57:16 -07:00
multi_array_list.zig std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
net.zig Merge pull request #24614 from ziglang/flate 2025-08-01 16:34:43 -07:00
once.zig
os.zig std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
pdb.zig
pie.zig zig fmt 2025-07-16 10:27:39 -07:00
posix.zig std: Add serenity to more OS checks 2025-07-30 23:28:58 +01:00
priority_dequeue.zig
priority_queue.zig
process.zig std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
Progress.zig std: replace various mem copies with @memmove 2025-08-05 09:56:02 -07:00
Random.zig
segmented_list.zig
SemanticVersion.zig std.fmt: fully remove format string from format methods 2025-07-07 22:43:53 -07:00
simd.zig std.simd: Increase branch quota in suggestVectorLengthForCpu() 2025-06-30 08:01:27 +02:00
SinglyLinkedList.zig de-genericify SinglyLinkedList 2025-04-03 14:55:04 -07:00
sort.zig
start.zig std: Add serenity to more OS checks 2025-07-30 23:28:58 +01:00
static_string_map.zig
std.zig std: delete RingBuffer 2025-08-05 09:56:02 -07:00
tar.zig std.tar: update to new I/O API 2025-07-22 09:41:44 -07:00
Target.zig Merge pull request #24629 from alexrp/android-requires-libc 2025-08-04 17:59:47 +02:00
testing.zig aarch64: add new from scratch self-hosted backend 2025-07-22 19:43:47 -07:00
Thread.zig std.Thread: don't spin 2025-07-21 05:37:51 +02:00
time.zig std.os.uefi.tables: ziggify boot and runtime services (#23441) 2025-07-12 17:18:53 +00:00
treap.zig
tz.zig
unicode.zig Remove numerous things deprecated during the 0.14 release cycle 2025-07-11 08:17:43 +02:00
Uri.zig std.io.Writer.printValue: rework logic 2025-07-07 22:43:53 -07:00
valgrind.zig remove condition codes 2025-07-16 10:27:39 -07:00
wasm.zig
zig.zig std.zig: fmtId returns a FormatId 2025-07-26 21:53:23 -07:00
zip.zig compiler: fix unit test compile errors 2025-07-31 22:10:11 -07:00
zon.zig std.zon: better namespace for Serializer 2025-07-19 18:27:09 -07:00