[Toybox] [PATCH] Android moved the scheduler policy functions in Q.
Rob Landley
rob at landley.net
Thu May 2 09:35:21 PDT 2019
On 5/1/19 5:40 PM, enh via Toybox wrote:
> They're forwarded to libprocessgroup, but we may as well go straight to
> the source since neither library is in the NDK anyway.
>
> This code is unfortunate because it means that even `toybox true` ends
> up pulling in a JSON parser at runtime, because ps might call
> get_sched_policy/get_sched_policy_name. I'll experiment with
> dlopen-on-demand in portability.c and see whether the savings are
> worthwhile, but for now at least use the current library directly so we
> can save *one* dlopen!
I'm as-needed in the linker but glibc defeated that by having librt pull in
libpthread when clock_gettime() has been part of glibc proper since the 2.17
release ~7 years ago.
Meanwhile, Android seem to have reinvented the microkernel again and turned
everything in the world into message passing:
https://security.googleblog.com/2019/03/open-sourcing-sandboxed-api.html
But then as far as I could tell flatpak and friends mostly exist because people
forgot about static linking. (A shared library to fake a mount point from a
statically linked zipfile could be fun, and sounds less complicated than
fakeroot or crunchgen were, but no: we have this new container infrastructure so
everything looks like a nail...)
https://www.youtube.com/watch?v=ePcDSutt_Ww
Anyway, applied.
Rob
More information about the Toybox
mailing list