glibc 2.21 - Machine maintainers, please test your machines.
Andreas Schwab
schwab@suse.de
Mon Jan 26 23:31:00 GMT 2015
Torvald Riegel <triegel@redhat.com> writes:
> I don't think so, because in a badly 4B-aligned (ie, no 8B-aligned) use,
> struct new_sem is at offset 4 of the semaphore. If you copy that to a
> 8B-aligned semaphore just bit-by-bit, then the actual data will still
> start at offset 4, but to_new_sem will assume offset 0.
It is undefined to use a copy of a sem_t in any of the semaphore calls.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-alpha
mailing list