Skip to content

freopen() appears to be unusable (No stdin/stdout/stderr consts) #7

@withoutboats

Description

@withoutboats

freopen() is the POSIX libc function for redirecting stdin, stdout & stderr. The libc function takes a value of libc::FILE for the file field. libc::FILE is an empty enum, and there are no consts for stdin/stdout/stderr as there are in C. I cannot figure out how to call freopen() correctly.

Is this a genuine bug or am I missing the correct way to do this?

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