This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [BZ #19363] Use INTERNAL_SYSCALL_TIMES for Linux times


On Wed, Dec 16, 2015 at 5:35 AM, Andreas Schwab <schwab@suse.de> wrote:
> "H.J. Lu" <hjl.tools@gmail.com> writes:
>
>> Since syscall instruction isn't used directly, It is correct for x32 to
>> use/return long int in INTERNAL_SYSCALL* macros.
>
> They use whatever is needed to do the syscall, which then returns a
> 64-bit value to user space.
>

Then they have to use proper type to hold the return from "syscall".
In most cases, long works for x32.  Only lseek, time and times need
long long.

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]