Skip to content
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

implement freopen for mem_file #848

Open
no92 opened this issue Apr 10, 2023 · 0 comments
Open

implement freopen for mem_file #848

no92 opened this issue Apr 10, 2023 · 0 comments

Comments

@no92
Copy link
Member

no92 commented Apr 10, 2023

For this, the definition of FILE would need to change. A proposed solution is to typedef it to void *, while having it actually be a unique_ptr<abstract_file> underneath. This would allow us to switch a mem_file out for a fd_file when freopening a mem_file-based stream.

Broken out from #837.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant