I tripped over a librt test that exercises this under qemu-bsd-user, and was quite confused for a solid minute.
This clever technique to get a time remaining back was added to support sem_clockwait_np.
Differential D27160
_umtx_op: document UMTX_OP_SEM2_WAIT copyout behavior kevans on Nov 10 2020, 4:48 AM. Authored by Tags None Referenced Files
Details I tripped over a librt test that exercises this under qemu-bsd-user, and was quite confused for a solid minute. This clever technique to get a time remaining back was added to support sem_clockwait_np.
Diff Detail
Event TimelineComment Actions I do not like how this description is structured. The block of UMTX_OP_SEM2_WAIT starts with explanation of arguments, and currently it only mentions obj. I suggest to add that uaddr1 can take size of memory pointed to by uaddr2, and uaddr2 points to struct umtx_time32 followed by struct timespec. Then if UMTX_ABSTIME is not set, <follow your description>. |