[PATCH v2 35/46] stat: Use fstatat64 if arch does not have the stat syscall

Markos Chandras markos.chandras at gmail.com
Mon Dec 3 15:43:11 UTC 2012


On 28 November 2012 13:03, Markos Chandras <markos.chandras at gmail.com> wrote:
> On 28 November 2012 13:01, Vineet Gupta <Vineet.Gupta1 at synopsys.com> wrote:
>> On Monday 26 November 2012 07:54 PM, Markos Chandras wrote:
>>> From: Markos Chandras <markos.chandras at imgtec.com>
>>>
>>> Signed-off-by: Markos Chandras <markos.chandras at imgtec.com>
>>> ---
>>>  libc/sysdeps/linux/common/stat.c | 17 ++++++++++++++---
>>>  1 file changed, 14 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/libc/sysdeps/linux/common/stat.c b/libc/sysdeps/linux/common/stat.c
>>> index 829f35a..038e0c0 100644
>>> --- a/libc/sysdeps/linux/common/stat.c
>>> +++ b/libc/sysdeps/linux/common/stat.c
>>> @@ -8,12 +8,21 @@
>>>   */
>>>
>>>  #include <sys/syscall.h>
>>> +#include <fcntl.h>
>>>  #include <unistd.h>
>>>  #include <sys/stat.h>
>>>  #include "xstatconv.h"
>>>
>>>  #undef stat
>>>
>>> +#if defined(__NR_fstat64) && !defined(__NR_stat)
>>
>> Nit - to be consistent with other changes this needs to be __NR_fstatat64.
>>
>>
>
> Yes,
>
> Thanks for reviewing this patch
>
> --
> Regards,
> Markos

Actually it needs to be __NR_fstatat instead of __NR_fstatat64 but
that's a minor issue ;-)

-- 
Regards,
Markos


More information about the uClibc mailing list