auxv.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* Copyright (C) 1995-2013 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3. The GNU C Library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public
  5. License as published by the Free Software Foundation; either
  6. version 2.1 of the License, or (at your option) any later version.
  7. The GNU C Library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with the GNU C Library; if not, see
  13. <http://www.gnu.org/licenses/>. */
  14. /* Legal values for a_type (entry type). */
  15. #define AT_NULL 0 /* End of vector */
  16. #define AT_IGNORE 1 /* Entry should be ignored */
  17. #define AT_EXECFD 2 /* File descriptor of program */
  18. #define AT_PHDR 3 /* Program headers for program */
  19. #define AT_PHENT 4 /* Size of program header entry */
  20. #define AT_PHNUM 5 /* Number of program headers */
  21. #define AT_PAGESZ 6 /* System page size */
  22. #define AT_BASE 7 /* Base address of interpreter */
  23. #define AT_FLAGS 8 /* Flags */
  24. #define AT_ENTRY 9 /* Entry point of program */
  25. #define AT_NOTELF 10 /* Program is not ELF */
  26. #define AT_UID 11 /* Real uid */
  27. #define AT_EUID 12 /* Effective uid */
  28. #define AT_GID 13 /* Real gid */
  29. #define AT_EGID 14 /* Effective gid */
  30. #define AT_CLKTCK 17 /* Frequency of times() */
  31. /* Some more special a_type values describing the hardware. */
  32. #define AT_PLATFORM 15 /* String identifying platform. */
  33. #define AT_HWCAP 16 /* Machine-dependent hints about
  34. processor capabilities. */
  35. /* This entry gives some information about the FPU initialization
  36. performed by the kernel. */
  37. #define AT_FPUCW 18 /* Used FPU control word. */
  38. /* Cache block sizes. */
  39. #define AT_DCACHEBSIZE 19 /* Data cache block size. */
  40. #define AT_ICACHEBSIZE 20 /* Instruction cache block size. */
  41. #define AT_UCACHEBSIZE 21 /* Unified cache block size. */
  42. /* A special ignored value for PPC, used by the kernel to control the
  43. interpretation of the AUXV. Must be > 16. */
  44. #define AT_IGNOREPPC 22 /* Entry should be ignored. */
  45. #define AT_SECURE 23 /* Boolean, was exec setuid-like? */
  46. #define AT_BASE_PLATFORM 24 /* String identifying real platforms.*/
  47. #define AT_RANDOM 25 /* Address of 16 random bytes. */
  48. #define AT_HWCAP2 26 /* More machine-dependent hints about
  49. processor capabilities. */
  50. #define AT_EXECFN 31 /* Filename of executable. */
  51. /* Pointer to the global system page used for system calls and other
  52. nice things. */
  53. #define AT_SYSINFO 32
  54. #define AT_SYSINFO_EHDR 33
  55. /* Shapes of the caches. Bits 0-3 contains associativity; bits 4-7 contains
  56. log2 of line size; mask those to get cache size. */
  57. #define AT_L1I_CACHESHAPE 34
  58. #define AT_L1D_CACHESHAPE 35
  59. #define AT_L2_CACHESHAPE 36
  60. #define AT_L3_CACHESHAPE 37