[klibc] [klibc:master] sys/sysmacros.h: match glibc and define non-__ macros

H. Peter Anvin hpa at zytor.com
Thu May 24 07:50:42 PDT 2012


On 05/24/2012 07:48 AM, klibc-bot for H. Peter Anvin wrote:
> Commit-ID:  c3110b853f667d544717a9cdd6d96b1a2a7365bf
> Gitweb:     http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=c3110b853f667d544717a9cdd6d96b1a2a7365bf
> Author:     H. Peter Anvin <hpa at zytor.com>
> AuthorDate: Thu, 24 May 2012 07:43:31 -0700
> Committer:  H. Peter Anvin <hpa at zytor.com>
> CommitDate: Thu, 24 May 2012 07:43:31 -0700
> 
> [klibc] sys/sysmacros.h: match glibc and define non-__ macros
> 
> Match glibc and define non-double-underscore versions of the dev_t
> accessors as macros.
> 
> Signed-off-by: H. Peter Anvin <hpa at zytor.com>
> 
> ---
>  usr/include/sys/sysmacros.h |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/usr/include/sys/sysmacros.h b/usr/include/sys/sysmacros.h
> index c344339..4f0b12a 100644
> --- a/usr/include/sys/sysmacros.h
> +++ b/usr/include/sys/sysmacros.h
> @@ -31,4 +31,8 @@ static __inline__ dev_t makedev(int __ma, int __mi)
>  	return __makedev(__ma, __mi);
>  }
>  
> +#define major(d)	__major(d)
> +#define minor(d)	__minor(d)
> +#define makedev(ma,mi)	__makedev(ma,mi)
> +
>  #endif				/* _SYS_SYSMACROS_H */

This is a bogus patch; I just reverted it.

	-hpa


-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.



More information about the klibc mailing list