ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
fw_if_fs_posix_stream_contracts_internal.h
Go to the documentation of this file.
1
17#pragma once
18
19#ifndef RA8_OFF_TARGET
20#error "port/posix is host-only and must never be compiled or linked into target firmware."
21#endif
22
24#include "ra8_attributes.h"
25
42static ra8_err_t internal_open_flags(fw_fs_open_mode_t mode, int* out_flags);
43
63static ra8_err_t
64internal_read(void* ctx, void* file_state, uint8_t* dst, uint32_t cap, uint32_t* out_read);
65
82static ra8_err_t internal_tell(void* ctx, void* file_state, uint64_t* out_offset);
static uint32_t internal_read(void)
Read current GPT counter ticks, or return UINT32_MAX on err.
Definition main.c:150
Shared errno/descriptor helpers for the POSIX filesystem port.
static ra8_err_t internal_tell(void *ctx, void *file_state, uint64_t *out_offset)
Report the current POSIX descriptor offset.
static ra8_err_t internal_open_flags(fw_fs_open_mode_t mode, int *out_flags)
Map a portable open mode to confined no-follow openat flags.
fw_fs_open_mode_t
Open intent for fw_fs_open.
Annotation-attribute framework macros for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546