[PATCH] support kernels without __ARCH_WANT_SYSCALL_NO_AT

Mike Frysinger vapier at gentoo.org
Fri Apr 27 05:49:12 UTC 2012


On Thursday 26 April 2012 10:18:54 Mark Salter wrote:
> --- a/ldso/include/dl-syscall.h
> +++ b/ldso/include/dl-syscall.h
> 
> +#if defined(__NR_open)
>  #define __NR__dl_open __NR_open
>  static __always_inline _syscall3(int, _dl_open, const char *, fn, int,
> flags, __kernel_mode_t, mode)
> +#elif defined(__NR_openat)
> +#define __NR__dl_openat __NR_openat
> +static __always_inline _syscall4(int, _dl_openat, int, dirfd, const char
> *, fn, +				 int, flags, __kernel_mode_t, mode)
> +static __always_inline ssize_t
> +_dl_open(const char *fn, int flags, __kernel_mode_t mode)
> +{
> +	return _dl_openat(AT_FDCWD, fn, flags, mode);
> +}

INLINE_SYSCALL() here and elsewhere please.  i'll wait for a respin to look at 
the rest ;).
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120427/03b74fe0/attachment.asc>


More information about the uClibc mailing list