]> git.ipfire.org Git - thirdparty/man-pages.git/commit
getauxval.3: Correct AT_HWCAP result description
authorCownie, James H <james.h.cownie@intel.com>
Tue, 12 Jul 2016 16:35:43 +0000 (16:35 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 12 Jul 2016 20:23:29 +0000 (22:23 +0200)
commit063bf5a7770f2f94abd28ba65b0c1723bd6fd027
tree1b0f9ed3e3a4e062c3699c01cfb019b0e8bb26b6
parent8c74a1cea4959a2fc0210b6b2bec0a0b531ea06c
getauxval.3: Correct AT_HWCAP result description

The getauxval(3) man page describes the result for AT_HWCAP as
"A pointer to a multibyte mask of bits", however the actual value
returned is not a pointer, but simply the first 32 bits of the
capabilities mask.

This can be observed directly. Note the value shown for AT_HWCAP
is a 32 bit value that is not a pointer (see AT_PHDR or AT_RANDOM
for how pointers are shown).

% LD_SHOW_AUXV=1 cat < /dev/null
AT_SYSINFO_EHDR: 0x7fffe89fe000
AT_HWCAP:        bfebfbff
AT_PAGESZ:       4096
AT_CLKTCK:       100
AT_PHDR:         0x400040
AT_PHENT:        56
AT_PHNUM:        9
AT_BASE:         0x0
AT_FLAGS:        0x0
AT_ENTRY:        0x402634
AT_UID:          515
AT_EUID:         515
AT_GID:          114
AT_EGID:         114
AT_SECURE:       0
AT_RANDOM:       0x7fffe8917be9
AT_EXECFN:       /usr/bin/cat
AT_PLATFORM:     x86_64
man3/getauxval.3