Russell Harmon

Results 45 issues of Russell Harmon

Per https://doc.rust-lang.org/book/first-edition/error-handling.html#the-error-trait, `treexml::Error` should implement `std::error::Error`, but it does not. This prevents converting a `treexml::Error` into a `Box`, which is useful as a generic return type from a method that...

The current code is written as follows: ``` bool faulting_disabled; if ((faulting_disabled = arch_prctl(ARCH_GET_CPUID, 0)) < 0) secure_err(1, "CPUID faulting feature inaccessible"); ``` `arch_prctl` will return -1 on failure, however...

Unlike the rest of the code, lcd_mask/ is licensed under the Apache license, but currently only in the code's headers. This change adds the full text of the Apache license...

In some circumstances (e.g. under higher optimization modes when compiled with LLVM), `dlsym` gets inlined into `libvirtcpuid_init_dso`. When this happens, dlsym's use of `__builtin_return_address(0)` no longer returns the address of...

The Linux man page for syscall(2) documents it as: ``` #define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include /* For SYS_xxx definitions */ long syscall(long number, ...); ``` Therefore unistd.h...