Migrate to span-based overload of base::ReadFromFD, part 1

The one taking char* and size_t will be removed, see
https://chromium-review.googlesource.com/c/chromium/src/+/5604926.

BUG=b:348072164
TEST=cq

Change-Id: I34f44e9c7acf70e1ec4b97205cbd049b1bbacea9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/5647249
Auto-Submit: Georg Neis <neis@chromium.org>
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Tested-by: Georg Neis <neis@chromium.org>
NOKEYCHECK=True
GitOrigin-RevId: c71115c0aafd036e3400aabba6014e0d72c7f239
5 files changed
tree: 1f07b93ca38b906339747fabd152af2c6c676031
  1. brillo/
  2. install_attributes/
  3. policy/
  4. testdata/
  5. BUILD.gn
  6. libpolicy.ver
  7. OWNERS
  8. README.md
  9. testrunner.cc
README.md

libbrillo: platform utility library

libbrillo is a shared library meant to hold common utility code that we deem useful for platform projects. It supplements the functionality provided by libbase/libchrome since that project, by design, only holds functionality that Chromium (the browser) needs. As a result, this tends to be more OS-centric code.

AOSP Usage

This project is also used by Update Engine which is maintained in AOSP. However, AOSP doesn't use this codebase directly, it maintains its own libbrillo fork.

To help keep the projects in sync, we have a gsubtree set up on our GoB: https://chromium.googlesource.com/chromiumos/platform2/libbrillo/

This allows AOSP to cherry pick or merge changes directly back into their fork.