You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`HostPrint`|`String`|`Int`| Used by the `write()` stub. Only stdout (fd 1) and stderr (fd 2) are supported; both delegate to this single host function. Other file descriptors return `EBADF`. |
33
+
|`HostRead`|`ULong` (byte count) |`VecBytes`| Used by the `read()` stub. Only stdin (fd 0) is supported; other file descriptors return `EBADF`. |
34
+
|`CurrentTime`|_(none)_|`VecBytes`| Used by `clock_gettime()` and `gettimeofday()`. Should return 16 bytes: 8 bytes of seconds + 8 bytes of nanoseconds. If not provided, a monotonic fallback starting at Unix timestamp `1609459200` (2021-01-01) is used. |
35
+
36
+
## Build Configuration
37
+
38
+
The build script (`build.rs`) generates a `picolibc.h` configuration header
39
+
that controls which picolibc features are enabled. Key features:
40
+
41
+
- Single-threaded: no locking or TLS support
42
+
- Global errno: uses a single global `errno` variable
43
+
- Tiny stdio: minimal stdio implementation
44
+
- No malloc: memory allocation is handled by the Rust global allocator
45
+
- IEEE math: math library without errno side effects
46
+
47
+
For full details on available picolibc build options, see the
0 commit comments