H. J. Lu | 36d57ac | 2005-09-06 15:16:49 -0700 | [diff] [blame] | 1 | #ifndef _LINUX_AUXVEC_H |
| 2 | #define _LINUX_AUXVEC_H |
| 3 | |
| 4 | #include <asm/auxvec.h> |
| 5 | |
| 6 | /* Symbolic values for the entries in the auxiliary table |
| 7 | put on the initial stack */ |
| 8 | #define AT_NULL 0 /* end of vector */ |
| 9 | #define AT_IGNORE 1 /* entry should be ignored */ |
| 10 | #define AT_EXECFD 2 /* file descriptor of program */ |
| 11 | #define AT_PHDR 3 /* program headers for program */ |
| 12 | #define AT_PHENT 4 /* size of program header entry */ |
| 13 | #define AT_PHNUM 5 /* number of program headers */ |
| 14 | #define AT_PAGESZ 6 /* system page size */ |
| 15 | #define AT_BASE 7 /* base address of interpreter */ |
| 16 | #define AT_FLAGS 8 /* flags */ |
| 17 | #define AT_ENTRY 9 /* entry point of program */ |
| 18 | #define AT_NOTELF 10 /* program is not ELF */ |
| 19 | #define AT_UID 11 /* real uid */ |
| 20 | #define AT_EUID 12 /* effective uid */ |
| 21 | #define AT_GID 13 /* real gid */ |
| 22 | #define AT_EGID 14 /* effective gid */ |
| 23 | #define AT_PLATFORM 15 /* string identifying CPU for optimizations */ |
| 24 | #define AT_HWCAP 16 /* arch dependent hints at CPU capabilities */ |
| 25 | #define AT_CLKTCK 17 /* frequency at which times() increments */ |
Kees Cook | f06295b | 2009-01-07 18:08:52 -0800 | [diff] [blame] | 26 | /* AT_* values 18 through 22 are reserved */ |
H. J. Lu | 36d57ac | 2005-09-06 15:16:49 -0700 | [diff] [blame] | 27 | #define AT_SECURE 23 /* secure mode boolean */ |
Nathan Lynch | 483fad1 | 2008-07-22 04:48:46 +1000 | [diff] [blame] | 28 | #define AT_BASE_PLATFORM 24 /* string identifying real platform, may |
| 29 | * differ from AT_PLATFORM. */ |
Kees Cook | f06295b | 2009-01-07 18:08:52 -0800 | [diff] [blame] | 30 | #define AT_RANDOM 25 /* address of 16 random bytes */ |
Nathan Lynch | 483fad1 | 2008-07-22 04:48:46 +1000 | [diff] [blame] | 31 | |
John Reiser | 6519108 | 2008-07-21 14:21:32 -0700 | [diff] [blame] | 32 | #define AT_EXECFN 31 /* filename of program */ |
Nathan Lynch | 483fad1 | 2008-07-22 04:48:46 +1000 | [diff] [blame] | 33 | |
Olaf Hering | 4f9a58d | 2007-10-16 23:30:12 -0700 | [diff] [blame] | 34 | #ifdef __KERNEL__ |
Kees Cook | f06295b | 2009-01-07 18:08:52 -0800 | [diff] [blame] | 35 | #define AT_VECTOR_SIZE_BASE 19 /* NEW_AUX_ENT entries in auxiliary table */ |
John Reiser | 6519108 | 2008-07-21 14:21:32 -0700 | [diff] [blame] | 36 | /* number of "#define AT_.*" above, minus {AT_NULL, AT_IGNORE, AT_NOTELF} */ |
Olaf Hering | 4f9a58d | 2007-10-16 23:30:12 -0700 | [diff] [blame] | 37 | #endif |
H. J. Lu | 36d57ac | 2005-09-06 15:16:49 -0700 | [diff] [blame] | 38 | |
| 39 | #endif /* _LINUX_AUXVEC_H */ |