Re: [PATCH 3/4] clock_getres.2, clock_nanosleep.2, io_getevents.2, nanosleep.2, poll.2, sched_rr_get_interval.2, select.2, sigwaitinfo.2, timer_settime.2, timerfd_create.2, utimensat.2, mq_receive.3, mq_send.3, pthread_tryjoin_np.3, system_data_types.7: correct struct timespec::tv_nsec type for x32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* наб <nabijaczleweli@xxxxxxxxxxxxxxxxxx>, 2021-11-28, 19:17:
This means, that the simplified
 struct timespec {
     time_t  tv_sec;  /* Seconds */
     long    tv_nsec; /* Nanoseconds [0 .. 999999999] */
 };
declaration is *invalid* for x32,
where struct timespec::tv_nsec is an int64_t (long long).

Indeed, it's a long standing bug in glibc (or in the kernel, depending on your point of view):
https://sourceware.org/bugzilla/show_bug.cgi?id=16437

It's worth documenting, but IMHO this information should be in the BUGS sections.

--
Jakub Wilk



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux