-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
freopen() appears to be unusable (No stdin/stdout/stderr consts) #7
Comments
Yeah currently these constants are not bound, but it should be fine to add them at any time basically! Otherwise though I'd recommend just making a C shim which returns the values so you can use them. We generally don't keep track of issues like this though, so I'm going to close it, but feel free to make a PR against rust-lang/rust at any time! |
dlrobertson
pushed a commit
to dlrobertson/libc
that referenced
this issue
Oct 31, 2017
tbu-
added a commit
to tbu-/rust-libc
that referenced
this issue
Sep 3, 2018
Also make the `FILE` type inhabitable though still opaque. CC rust-lang#7.
tbu-
added a commit
to tbu-/rust-libc
that referenced
this issue
Sep 3, 2018
This was referenced Sep 3, 2018
lvllvl
added a commit
to lvllvl/libc
that referenced
this issue
Jan 7, 2025
# This is the 1st commit message: chore: add labels to FIXMEs # This is the commit message rust-lang#2: change label for .field FIXMEs # This is the commit message rust-lang#3: add fixme csv # This is the commit message rust-lang#4: Update fixmes.csv # This is the commit message rust-lang#5: Update fixmes.csv # This is the commit message rust-lang#6: Update fixmes.csv # This is the commit message rust-lang#7: Update fixmes.csv # This is the commit message rust-lang#8: Update fixmes.csv # This is the commit message rust-lang#9: Update fixmes.csv # This is the commit message rust-lang#10: Update fixmes.csv # This is the commit message rust-lang#11: Update fixmes.csv # This is the commit message rust-lang#12: Update fixmes.csv # This is the commit message rust-lang#13: Update fixmes.csv # This is the commit message rust-lang#14: Update fixmes.csv # This is the commit message rust-lang#15: Update fixmes.csv # This is the commit message rust-lang#16: Update fixmes.csv # This is the commit message rust-lang#17: Update fixmes.csv # This is the commit message rust-lang#18: updates to csv # This is the commit message rust-lang#19: Update fixmes.csv # This is the commit message rust-lang#20: Update fixmes.csv # This is the commit message rust-lang#21: Update fixmes.csv # This is the commit message rust-lang#22: Update fixmes.csv remove hurd" # This is the commit message rust-lang#23: Update fixmes.csv remove "'s
tgross35
pushed a commit
to tgross35/rust-libc
that referenced
this issue
Feb 22, 2025
Allow user-specified flags override default
tgross35
pushed a commit
to tgross35/rust-libc
that referenced
this issue
Feb 22, 2025
Use fork syntex to compile fine
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
The text was updated successfully, but these errors were encountered: