Skip to content

confused by libc::stat #403

Closed
Closed
@portaloffreedom

Description

@portaloffreedom

I'm trying to call the stat function for a personal project. As far as I understood I need to call the libc::stat function on the libc::stat struct. I can understand how it works, but since struct and function are in the same module, the rust compiler is quite confused.

I've searched online and found nothing that tells me how to use libc::<stat as struct> or <stat as fn>(path, &mut stat_struct) or similar combinations.

How am I supposed to fix this? Is this a bug in the library? Or is it me that is missing something about the language?

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