On Thursday 02 February 2012 19:12:00 Khem Raj wrote:
> --- a/libc/sysdeps/linux/common/stat.c
> +++ b/libc/sysdeps/linux/common/stat.c
> 
>  int stat(const char *file_name, struct stat *buf)
>  {
>       int result;
> +#ifdef __NR_stat64
> +     struct kernel_stat64 kbuf;
> +     result = INLINE_SYSCALL(stat64, 2, file_name, &kbuf);
> +     if (result == 0) {
> +             __xstat32_conv(&kbuf, buf);
> +     }
> +#else
>       struct kernel_stat kbuf;
> 
> -     result = __syscall_stat(file_name, &kbuf);
> +     result = INLINE_SYSCALL(stat, 2, file_name, &kbuf);
>       if (result == 0) {
>               __xstat_conv(&kbuf, buf);
>       }
> +#endif
>       return result;
>  }

might be useful to add a comment why you're calling stat64 ... because that 
fills out more fields than stat does typically
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to