Seccomp.SeccompAction.clip: def of bend-osdev-bpf@0.1.0.0 Import: import bend-osdev-bpf@0.1.0.0/seccomp.bend as Seccomp Lines 128-138 of bend-osdev-bpf@0.1.0.0/seccomp.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-bpf@0.1.0.0/seccomp.bend&start_line=128&end_line=138 import Base # the same action with its data cut to the 16 bits a return value holds def SeccompAction.clip(a: SeccompAction) -> SeccompAction: match a: case SeccompTrap{d}: SeccompTrap{U32.and(65535, d)} case SeccompErrno{d}: SeccompErrno{U32.and(65535, d)} case SeccompTrace{d}: SeccompTrace{U32.and(65535, d)} case other: other Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/seccomp.bend&name=SeccompAction