Bug 241884 - elf_aux_info(3) return types are not documented
Summary: elf_aux_info(3) return types are not documented
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2019-11-11 18:19 UTC by Jan Beich
Modified: 2019-11-17 14:11 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2019-11-11 18:19:43 UTC
elf_aux_info() unlike getauxval() requires passing correct size of the return buffer. As the manpage only documents the 1st argument it's not possible to use elf_aux_info() without looking and relying on libc guts.
Comment 1 Konstantin Belousov freebsd_committer 2019-11-15 09:52:04 UTC
https://reviews.freebsd.org/D22380
Comment 2 commit-hook freebsd_committer 2019-11-17 14:11:45 UTC
A commit references this bug:

Author: kib
Date: Sun Nov 17 14:11:08 UTC 2019
New revision: 354787
URL: https://svnweb.freebsd.org/changeset/base/354787

Log:
  Document required size of buffer for elf_aux_info(3).

  PR:	241884
  Reported by:	jbeich
  Reviewed by:	brooks
  Sponsored by:	The FreeBSD Foundation
  MFC after:	3 days
  Differential revision:	https://reviews.freebsd.org/D22380

Changes:
  head/lib/libc/gen/auxv.3