Skip to content

RTEMS: dirfd is not declared #5655

Open

Description

@physwkim

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.

Activity

  1. rizzabhdwaj commented on Oct 25, 2026

    @rizzabhdwaj

    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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions