aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/linux/bpf.zig
AgeCommit message (Collapse)Author
2022-08-19std.os.linux.bpf: fix compile errorAndrew Kelley
2021-09-01std, compiler-rt: remove test names where applicableAndrew Kelley
Tests with no names are executed when using `zig test` regardless of the `--test-filter` used. Non-named tests should be used when simply importing unit tests from another file. This allows `zig test` to find all the appropriate tests, even when using `--test-filter`.
2021-09-01std.os.linux: remove the "bits" namespace altogetherAndrew Kelley
Now there is only 1 architecture-specific file for Linux kernel bits.
2021-08-24remove redundant license headers from zig standard libraryAndrew Kelley
We already have a LICENSE file that covers the Zig Standard Library. We no longer need to remind everyone that the license is MIT in every single file. Previously this was introduced to clarify the situation for a fork of Zig that made Zig's LICENSE file harder to find, and replaced it with their own license that required annual payments to their company. However that fork now appears to be dead. So there is no need to reinforce the copyright notice in every single file.
2021-08-24std: [breaking] move errno to become an nonexhaustive enumAndrew Kelley
The primary purpose of this change is to eliminate one usage of `usingnamespace` in the standard library - specifically the usage for errno values in `std.os.linux`. This is accomplished by truncating the `E` prefix from error values, and making errno a proper enum. A similar strategy can be used to eliminate some other `usingnamespace` sites in the std lib.
2021-06-21std.os.linux.bpf: fix incorrect usage of unexpectedErrnoAndrew Kelley
2021-06-21fix code broken from previous commitJacob G-W
2021-05-08Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgenAndrew Kelley
Conflicts: * doc/langref.html.in * lib/std/enums.zig * lib/std/fmt.zig * lib/std/hash/auto_hash.zig * lib/std/math.zig * lib/std/mem.zig * lib/std/meta.zig * test/behavior/alignof.zig * test/behavior/bitcast.zig * test/behavior/bugs/1421.zig * test/behavior/cast.zig * test/behavior/ptrcast.zig * test/behavior/type_info.zig * test/behavior/vector.zig Master branch added `try` to a bunch of testing function calls, and some lines also had changed how to refer to the native architecture and other `@import("builtin")` stuff.
2021-05-08std: update usage of std.testingVeikka Tuominen
2021-04-22std: fix compile errors caught by stage2 AstGenAndrew Kelley
Follow-up from 507a8096d2f9624bafaf963c3e189a477ef6b7bf
2021-04-22delete packed enums from the languageAndrew Kelley
No need for any such thing. Instead, provide an integer tag type for the enum.
2020-12-31Year++Frank Denis
2020-09-12added helper definitionsMatt Knight
2020-09-08Merge pull request #6267 from mattnite/btfAndrew Kelley
BPF: add BTF
2020-09-07added map create, update, delete, and prog loadMatt Knight
2020-09-07BPF: add some more documentation (#6268)Matthew Knight
* added documentation for ringbuffers, which context type maps to which program type, and added some formatting
2020-09-06added btfMatt Knight
2020-09-06fixed improper builtin importMatt Knight
2020-09-06improved compile error messageMatt Knight
2020-09-06removed redundant pseudo insnMatt Knight
2020-09-06implemented and testing op codes for instructions documented in the ↵Matt Knight
unofficial bpf insn reference
2020-08-22Bpf: move under os/linux instead of bits (#6126)Matthew Knight
* moved bpf syscall, added some bpf instructions and tests * had to move bpf out of bits so that a freestanding target could import it * removed line * fixed imports