Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | semtimedop: add time64 syscall support, decouple 32-bit time_t | Rich Felker | 2019-07-28 | 1 | -2/+24 |
| | | | | | | | | | | | | | | | | | | | | time64 syscall is used only if it's the only one defined for the arch, or if the requested timeout does not fit in 32 bits. on current 32-bit archs where time_t is a 32-bit type, this makes it statically unreachable. on 64-bit archs, there is no change to the code after preprocessing. on current 32-bit archs, the time is passed via an intermediate copy to remove the assumption that time_t is a 32-bit type. to avoid duplicating SYS_ipc/SYS_semtimedop choice logic, the code for 32-bit archs "falls through" after updating the timeout argument ts to point to a [compound literal] array of longs. in preparation for "time64-only" 32-bit archs, an extra case is added for neither SYS_ipc nor the non-time64 SYS_semtimedop existing; the ENOSYS failure path here should never be reachable, and is added just in case a compiler can't see that it's not reachable, to avoid spurious static analysis complaints. | ||||
* | ipc: prefer SYS_ipc when it is defined | Szabolcs Nagy | 2019-07-01 | 1 | -1/+1 |
| | | | | | | | | | Linux v5.1 introduced ipc syscalls on targets where previously only SYS_ipc was available, change the logic such that the ipc code keeps using SYS_ipc which works backward compatibly on older kernels. This changes behaviour on microblaze which had both mechanisms, now SYS_ipc will be used instead of separate syscalls. | ||||
* | fix harmless inconsistency in semtimedop | Rich Felker | 2013-11-09 | 1 | -1/+1 |
| | | | | | | | this should not matter since the reality is that either all the sysv sem syscalls are individual syscalls, or all of them are multiplexed on the SYS_ipc syscall (depending on arch). but best to be consistent anyway. | ||||
* | implement semtimedop | Rich Felker | 2013-11-09 | 1 | -0/+13 |
this is a Linux-specific extension to the sysv semaphore api. |