#elf #auxiliary #vector #auxv #auxval

auxv

Access the ELF auxiliary vector (aka auxv or auxval)

5 unstable releases

0.3.3 Jan 20, 2017
0.3.2 Jan 16, 2017
0.3.1 Jan 16, 2017
0.2.0 Jan 11, 2017
0.1.0 Jan 9, 2017

#9 in Unix APIs

Download history 309/week @ 2018-05-05 97/week @ 2018-05-12 530/week @ 2018-05-19 380/week @ 2018-05-26 243/week @ 2018-06-02 315/week @ 2018-06-09 357/week @ 2018-06-16 486/week @ 2018-06-23 1132/week @ 2018-06-30 379/week @ 2018-07-07 327/week @ 2018-07-14 662/week @ 2018-07-21 678/week @ 2018-07-28

1,778 downloads per month

Build Status

Add the dependency to your Cargo.toml:

auxv = "0.3.2"

See the documentation.

Running tests

Because the width of unsigned long varies between architectures, some tests are only run on 64-bit systems and others are only run on 32-bit systems. On a typical x64 Linux system with glibc, the default toolchain will be x86_64-unknown-linux-gnu, but you can run the 32-bit tests by installing the 32-bit glibc toolchain:

rustup target add i686-unknown-linux-gnu

To run tests for both 32bit and 64bit c_ulong on a 64-bit host:

cargo test
cargo test --target i686-unknown-linux-gnu

You should see different tests running in each case.

Testing other OSs

There are various vagrant boxes defined in the Vagrantfile. Windows and macOS are a pain to set up build tools on, but eventually the code will compile there, though of course it won't work properly. It should work fine on all Linux boxes and the FreeBSD one.

Custom license

Dependencies

  • build build.rs
  • build gcc 0.3.41
  • dev libc 0.2.19

Reverse deps