Llijunrumerge porting files
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
chore: isolate modifications into the porting folder isolate changes, keep orignal musl sources clean. Signed-off-by: Caoruihong <crh.cao@huawei.com> Change-Id: Id7f3a5109771f93d397e30febba36e09ddaf4f36 | 5 年前 | |
update openharmony 1.0.1 | 5 年前 | |
merge porting files Signed-off-by: liujia178 <liujia178@huawei.com> Change-Id: I692137fea27076ba8c9a9df2cf64e596dc637f6f | 2 年前 | |
merge porting files Signed-off-by: liujia178 <liujia178@huawei.com> Change-Id: I692137fea27076ba8c9a9df2cf64e596dc637f6f | 2 年前 | |
merge porting files Signed-off-by: liujia178 <liujia178@huawei.com> Change-Id: I692137fea27076ba8c9a9df2cf64e596dc637f6f | 2 年前 | |
merge porting files Signed-off-by: liujia178 <liujia178@huawei.com> Change-Id: I692137fea27076ba8c9a9df2cf64e596dc637f6f | 2 年前 | |
merge porting files Signed-off-by: liujia178 <liujia178@huawei.com> Change-Id: I692137fea27076ba8c9a9df2cf64e596dc637f6f | 2 年前 | |
merge porting files Signed-off-by: liujia178 <liujia178@huawei.com> Change-Id: I692137fea27076ba8c9a9df2cf64e596dc637f6f | 2 年前 | |
merge porting files Signed-off-by: liujia178 <liujia178@huawei.com> Change-Id: I692137fea27076ba8c9a9df2cf64e596dc637f6f | 2 年前 | |
semtimedop: fix timespec kernel ABI mismatch for 32-bit timeouts on x32 For time64 support, musl normally defines SYS_foo to the time32 variant of that syscall on arches that have it, and to the time64 variant otherwise, so that "SYS_foo == SYS_foo_time64" implies that the arch is time64-only. However, SYS_semtimedop is an odd case: some arches define only SYS_semtimedop_time64, yet they are not time64-only, because the time32 variant is provided via SYS_ipc instead. For such arches, defining SYS_semtimedop to SYS_semtimedop_time64 would break the implication above, so commit 4bbd7baea7c8538b3fb8e30f7b022a1eee071450 doesn't do this. Commit eb2e298cdc814493a6ced8c05cf0d0f5cccc8b63 attempts to detect time64-only arches by checking that both SYS_semtimedop and SYS_ipc are undefined, but this doesn't work for x32, because it's a time64-only arch that does define SYS_semtimedop. As a result, 32-bit timeouts trigger the fallback path that passes a 32-bit timespec to the kernel while it expects a 64-bit one, so the effective tv_sec is formed by interpreting 32-bit tv_sec and tv_nsec as a single long long, and the effective tv_nsec is whatever is located in the next 64 bits of the stack. Fix this by expanding the time64-only check to include arches where SYS_semtimedop is the time64 variant of the syscall. | 3 年前 | |
update openharmony 1.0.1 | 5 年前 | |
fix corrupt sysvipc timestamps on 32-bit archs with old kernels kernel commit 4693916846269d633a3664586650dbfac2c5562f (first included in release v4.14) silently fixed a bug whereby the reserved space (which was later used for high bits of time) in IPC_STAT structures was left untouched rather than zeroed. this means that a caller that wants to read the high bits needs to pre-zero the memory. since it's not clear that these operations are permitted to modify the destination buffer on failure, use a temp buffer and copy back to the caller's buffer on success. | 6 年前 | |
update openharmony 1.0.1 | 5 年前 | |
update openharmony 1.0.1 | 5 年前 |