[PATCH 1/7] Add <sys/auxv.h> and gethwcap function.

Andreas Jaeger aj@suse.com
Mon May 14 17:44:00 GMT 2012


On 05/14/2012 06:40 PM, Richard Henderson wrote:
>  [...]

  --- /dev/null
> +++ b/misc/sys/auxv.h
> @@ -0,0 +1,31 @@
> +/* Access to the auxiliary vector.
> +   Copyright (C) 2012 Free Software Foundation, Inc.
> +   This file is part of the GNU C Library.
> +
> +   The GNU C Library is free software; you can redistribute it and/or
> +   modify it under the terms of the GNU Lesser General Public
> +   License as published by the Free Software Foundation; either
> +   version 2.1 of the License, or (at your option) any later version.
> +
> +   The GNU C Library is distributed in the hope that it will be useful,
> +   but WITHOUT ANY WARRANTY; without even the implied warranty of
> +   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
> +   Lesser General Public License for more details.
> +
> +   You should have received a copy of the GNU Lesser General Public
> +   License along with the GNU C Library; if not, see
> +<http://www.gnu.org/licenses/>.  */
> +
> +#ifndef _SYS_AUXV_H
> +#define _SYS_AUXV_H 1
> +
> +#include<elf.h>
> +#include<bits/hwcap.h>
> +
> +__BEGIN_DECLS
> +
> +extern uint64_t gethwcap (void) __THROW;

Please add a comment explaining what the function does.


-- 
  Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
   SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
    GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
     GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126



More information about the Libc-alpha mailing list