[PATCH 38/46] llseek: Use the llseek system call if defined
Markos Chandras
markos.chandras at gmail.com
Mon Nov 26 10:14:42 UTC 2012
On 19 November 2012 09:51, Markos Chandras <markos.chandras at gmail.com> wrote:
> On Sat, Nov 17, 2012 at 8:37 PM, Mike Frysinger <vapier at gentoo.org> wrote:
>> On Tuesday 13 November 2012 06:31:47 Markos Chandras wrote:
>>> -#if defined __NR__llseek && defined __UCLIBC_HAS_LFS__
>>> +#if (defined __NR__llseek ||defined __NR_llseek) && defined
>>
>> needs a space after that ||
>>
>>> loff_t lseek64(int fd, loff_t offset, int whence)
>>> {
>>> loff_t result;
>>> +#if defined(__NR_llseek)
>>> + return (loff_t)(INLINE_SYSCALL(llseek, 5, fd, (off_t)(offset >> 32),
>>> + (off_t)(offset & 0xffffffff), &result, whence) ? : result);
>>> +#else
>>> return (loff_t)(INLINE_SYSCALL(_llseek, 5, fd, (off_t) (offset >> 32),
>>> (off_t) (offset & 0xffffffff), &result, whence) ?: result);
>>> +#endif
>>> }
>>
>> only difference is first arg ? so rather than this, put above the func:
>> # ifndef __NR__llseek
>> # define __NR__llseek __NR_llseek
>> # endif
>> -mike
>
> Thanks Mike. I'll do that
>
> --
> Regards,
> Markos
I see this is already fixed in 0.9.33[1]. I guess I overlooked that
http://git.uclibc.org/uClibc/commit/?h=0.9.33&id=db27d2f961cfd0838144bdcbc9b30b6ad22950c3
--
Regards,
Markos
More information about the uClibc
mailing list