authorgravatar for ahwayakchih@noreply.codeberg.orgahwayakchih <ahwayakchih@noreply.codeberg.org> 2026-04-28 21:54:54+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-07 05:38:45+02:00
log0ec456c785aa2fe8fa686fd19282a887f3cbe8eb
treea859e1e95bea49cbabf03178883dec83b0f269bc
parent6d98649f68cd369376020733a691db5c4324130a

Add missing BPF.TAX and BPF.TXA declarations

As described in #32112, two instructions were missing from bpf.zig. They're declared in `linux/filter.h` (not in `linux/bpf.h`).

1 files changed, 6 insertions(+), 0 deletions(-)

lib/std/os/linux/bpf.zig+6
......@@ -58,6 +58,12 @@ pub const JGT = 0x20;
5858pub const JGE = 0x30;
5959pub const JSET = 0x40;
6060
61// misc fields
62/// copy A into X
63pub const TAX = 0x00;
64/// copy X into A
65pub const TXA = 0x80;
66
6167//#define BPF_SRC(code) ((code) & 0x08)
6268pub const K = 0x00;
6369pub const X = 0x08;