libc icon indicating copy to clipboard operation
libc copied to clipboard

RTEMS: `dirfd` is not declared

Open physwkim opened this issue 1 month ago • 1 comments

std calls libc::dirfd on RTEMS since rust-lang/rust#163701, but libc does not declare it for target_os = "rtems", so std no longer builds for armv7-rtems-eabihf (see also rust-lang/rust#164719). RTEMS has it: dirent.h#L48.

physwkim avatar Oct 22 '26 02:10 physwkim

For RTEMS, dirfd exists in the RTEMS header, but this repository does not declare it under the target_os = "rtems" configuration. Therefore compilation fails with an error like: cannot find function dirfd in crate libc

I'm working on the fix rn .

rizzabhdwaj avatar Oct 25 '26 11:10 rizzabhdwaj