Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
ELF_AUX_INFO(3)	       FreeBSD Library Functions Manual	       ELF_AUX_INFO(3)

NAME
     elf_aux_info -- extract data from the elf auxiliary vector	of the current
     process

LIBRARY
     Standard C	Library	(libc, -lc)

SYNOPSIS
     #include <sys/auxv.h>

     int
     elf_aux_info(int aux, void	*buf, int buflen);

DESCRIPTION
     The elf_aux_info()	function retrieves the auxiliary info vector requested
     in	aux.  The information is stored	into the provided buffer if it will
     fit.  The following values, defined in <sys/elf_common.h> can be re-
     quested:

     AT_CANARY	   The canary value for	SSP.

     AT_HWCAP	   CPU / hardware feature flags.

     AT_HWCAP2	   CPU / hardware feature flags.

     AT_NCPUS	   Number of CPUs.

     AT_OSRELDATE  Kernel OSRELDATE.

     AT_PAGESIZES  Vector of page sizes.

     AT_PAGESZ	   Page	size in	bytes.

     AT_TIMEKEEP   Pointer to VDSO timehands (for library internal use).

RETURN VALUES
     Returns zero on success, or an error number on failure.

ERRORS
     [EINVAL]		An unknown item	was requested.

     [EINVAL]		The provided buffer was	not the	right size for the re-
			quested	item.

     [ENOENT]		The requested item is not available.

HISTORY
     The elf_aux_info()	function appeared in FreeBSD 12.0.

BUGS
     Only a small subset of available auxiliary	info vector items are accessi-
     ble with this function.  Some items require a "right-sized" buffer	while
     others just require a "big	enough"	buffer.

FreeBSD	13.0			April 25, 2019			  FreeBSD 13.0

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUES | ERRORS | HISTORY | BUGS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=elf_aux_info&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help