|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Anonymous raw-fd scratch artifacts for portable format verification. More...
Go to the source code of this file.
Data Structures | |
| struct | ra8_fmt_host_spool_t |
| Caller-owned state for one unlinked scratch file. More... | |
Functions | |
| ra8_err_t | priv_fmt_host_spool_open (const char *anchor_path, ra8_fmt_host_spool_t *state, ra8_fmt_spool_t *out) |
| Create an anonymous scratch file beside an anchored input path. | |
| void | priv_fmt_host_spool_close (ra8_fmt_host_spool_t *state) |
| Close an anonymous scratch artifact. | |
Anonymous raw-fd scratch artifacts for portable format verification.
Defines composition-edge ownership for immediately unlinked scratch descriptors while portable engines depend only on injected spool callbacks.
Definition in file ra8_fmt_host_spool_internal.h.
| void priv_fmt_host_spool_close | ( | ra8_fmt_host_spool_t * | state | ) |
Close an anonymous scratch artifact.
Releases the only owner of an already-unlinked raw descriptor.
| [in,out] | state | Possibly open spool state. |
state is null or was initialized by the spool-open operation. state. Definition at line 333 of file ra8_fmt_host_spool.c.
References ra8_fmt_host_spool_t::fd, and RA8_PRIV.
Referenced by internal_cleanup().
|
nodiscard |
Create an anonymous scratch file beside an anchored input path.
| [in] | anchor_path | Existing input spelling used only to select its parent. |
| [out] | state | Receives owned raw-fd state. |
| [out] | out | Receives portable append, seal, and positioned-read callbacks. |
anchor_path is NUL-terminated. state owns the descriptor. Definition at line 302 of file ra8_fmt_host_spool.c.
References internal_append(), internal_create(), internal_parent(), internal_read(), internal_seal(), k_ra8_err_null_ptr, k_ra8_fail, k_ra8_fmt_host_path_cap, k_ra8_ok, O_CLOEXEC, O_DIRECTORY, O_NOFOLLOW, and RA8_PRIV.
Referenced by internal_execute().