auxv_defs.rs 1.9 KB

123456789101112131415161718192021222324252627282930313233
  1. pub const AT_NULL: usize = 0; /* End of vector */
  2. pub const AT_IGNORE: usize = 1; /* Entry should be ignored */
  3. pub const AT_EXECFD: usize = 2; /* File descriptor of program */
  4. pub const AT_PHDR: usize = 3; /* Program headers for program */
  5. pub const AT_PHENT: usize = 4; /* Size of program header entry */
  6. pub const AT_PHNUM: usize = 5; /* Number of program headers */
  7. pub const AT_PAGESZ: usize = 6; /* System page size */
  8. pub const AT_BASE: usize = 7; /* Base address of interpreter */
  9. pub const AT_FLAGS: usize = 8; /* Flags */
  10. pub const AT_ENTRY: usize = 9; /* Entry point of program */
  11. pub const AT_NOTELF: usize = 10; /* Program is not ELF */
  12. pub const AT_UID: usize = 11; /* Real uid */
  13. pub const AT_EUID: usize = 12; /* Effective uid */
  14. pub const AT_GID: usize = 13; /* Real gid */
  15. pub const AT_EGID: usize = 14; /* Effective gid */
  16. pub const AT_CLKTCK: usize = 17; /* Frequency of times() */
  17. pub const AT_PLATFORM: usize = 15; /* String identifying platform. */
  18. pub const AT_HWCAP: usize = 16; /* Machine-dependent hints about */
  19. pub const AT_FPUCW: usize = 18; /* Used FPU control word. */
  20. pub const AT_DCACHEBSIZE: usize = 19; /* Data cache block size. */
  21. pub const AT_ICACHEBSIZE: usize = 20; /* Instruction cache block size. */
  22. pub const AT_UCACHEBSIZE: usize = 21; /* Unified cache block size. */
  23. pub const AT_IGNOREPPC: usize = 22; /* Entry should be ignored. */
  24. pub const AT_BASE_PLATFORM: usize = 24; /* String identifying real platforms.*/
  25. pub const AT_RANDOM: usize = 25; /* Address of 16 random bytes. */
  26. pub const AT_HWCAP2: usize = 26; /* More machine-dependent hints about*/
  27. pub const AT_EXECFN: usize = 31; /* Filename of executable. */
  28. #[cfg(target_os = "redox")]
  29. // XXX: The name AT_CWD is already used in openat... for a completely different purpose.
  30. pub const AT_REDOX_INITIALCWD_PTR: usize = 32;
  31. #[cfg(target_os = "redox")]
  32. pub const AT_REDOX_INITIALCWD_LEN: usize = 33;