platform_hardware_tequila_c.../libc
Nich 33327b651f compat: libc: Bring libc hax inline with the latest sources
-> [1] added tests to ensure nano timespecs are below 1000000000
-> Legacy blobs before N were able to use tv_nsec > 100000000
-> One such example would be our libmmcamera2_sensor_modules.so, which
have instances of timeouts of 5000000000 nsecs.
-> The previous workaround was to shim the old libc functions to
skip these tests, but that was really ugly since we leave out bug fixes
and security patches introduced from MM up till Oreo.
-> Current workaround is applied on the latest bionic code by correcting
the invalid timespecs, taking out each second from tv_nsec, and then
adding them to tv_sec, until tv_nsec goes below 1 second.
-> Due to bionic's tight security, we've got no choice but to copy-paste
its functions here.

[1]: https://android.googlesource.com/platform/bionic/+/c9a659c

Change-Id: I271f2899db54a252d0d2a018cf4eb7877b97a02a
2023-09-25 16:58:50 +00:00
..
bionic compat: libc: Bring libc hax inline with the latest sources 2023-09-25 16:58:50 +00:00
private compat: libc: Bring libc hax inline with the latest sources 2023-09-25 16:58:50 +00:00
Android.mk compat: libc: Transition to OSS libc shim 2023-09-25 16:58:50 +00:00