mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
* misc/getauxval.c (__getauxval): Use unsigned long int.
* misc/sys/auxv.h: Include <sys/cdefs.h>. (getauxval): Use unsigned long int.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2012-05-21 Richard Henderson <rth@twiddle.net>
|
||||||
|
|
||||||
|
* misc/getauxval.c (__getauxval): Use unsigned long int.
|
||||||
|
* misc/sys/auxv.h: Include <sys/cdefs.h>.
|
||||||
|
(getauxval): Use unsigned long int.
|
||||||
|
|
||||||
2012-05-21 Roland McGrath <roland@hack.frob.com>
|
2012-05-21 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
* malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
|
* malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
|
||||||
|
@@ -19,8 +19,8 @@
|
|||||||
#include <ldsodefs.h>
|
#include <ldsodefs.h>
|
||||||
|
|
||||||
|
|
||||||
unsigned long
|
unsigned long int
|
||||||
__getauxval (unsigned long type)
|
__getauxval (unsigned long int type)
|
||||||
{
|
{
|
||||||
ElfW(auxv_t) *p;
|
ElfW(auxv_t) *p;
|
||||||
|
|
||||||
|
@@ -20,14 +20,15 @@
|
|||||||
#define _SYS_AUXV_H 1
|
#define _SYS_AUXV_H 1
|
||||||
|
|
||||||
#include <elf.h>
|
#include <elf.h>
|
||||||
|
#include <sys/cdefs.h>
|
||||||
#include <bits/hwcap.h>
|
#include <bits/hwcap.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
/* Return the value associated with an Elf*_auxv_t type from the auxv list
|
/* Return the value associated with an Elf*_auxv_t type from the auxv list
|
||||||
passed to the program on startup. If __type was not present in the auxv
|
passed to the program on startup. If TYPE was not present in the auxv
|
||||||
list, returns zero. */
|
list, returns zero. */
|
||||||
extern unsigned long getauxval (unsigned long __type)
|
extern unsigned long int getauxval (unsigned long int __type)
|
||||||
__THROW __attribute_const__;
|
__THROW __attribute_const__;
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
Reference in New Issue
Block a user