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] | |
On 8/30/19 11:59 AM, Zack Weinberg wrote:
(Do we still have to pretend that using bare 'long' for the type of tv_nsec isn't a defect in the relevant standards?)It's not a defect. There's no reason for a special typedef for this field because long can necessarily represent the range of nanoseconds, [0,999999999].It's a defect!
+1. 'long' causes problems in practice and POSIX should be fixed. It's not just the problem Zack mentioned; I have application code where the build broke because the app unwisely trusted the POSIX spec's saying 'long' and assigned the address of tv_nsec to a long * pointer, something that doesn't work on x32.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |