There are four categories of headers: system, global, library, and implementation.
These headers define the interface between the kernel and userspace, also known as the vDSO interface. These headers define system calls, included related types and structures. These headers also define some basic C and C++ machinery, for example for crashing in a well-defined sequence.
zircon/, rather than
zx, are not considered system headers. They are library headers (see below) that depend on the system headers..
These headers define system-wide contracts between userspace components. These headers are generated from FIDL definitions of these contracts.
Library headers are hand-written code that are used by applications. The interfaces they define are local to that application. Some libraries are Fuchsia-specific and provide an ergonomic wrapper around some lower-level system facilities. Some libraries might not be tied directly to Fuchsia.
lib/directory to help avoid collisions with other header used by applications.
lib/. Subdirectories (
lib/foo/) are mandatory.
Implementation headers are internal to the Fuchsia Platform Source Tree. They are never included in SDKs and are referenced by absolute path from the root of the source tree.
<to indicate that the path is relative to the root of the source tree.