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

Use magic_file() to read from stdin #10

Open
robo9k opened this issue Dec 22, 2014 · 1 comment
Open

Use magic_file() to read from stdin #10

robo9k opened this issue Dec 22, 2014 · 1 comment
Assignees

Comments

@robo9k
Copy link
Owner

robo9k commented Dec 22, 2014

When passing NULL as filename to magic_file() it will read from stdin instead.
The crate should support that usage.

@robo9k
Copy link
Owner Author

robo9k commented Aug 11, 2022

https://blog.rust-lang.org/2022/08/11/Rust-1.63.0.html#rust-ownership-for-raw-file-descriptorshandles-io-safety might be of interest for working with other, explicit file descriptors.

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

No branches or pull requests

1 participant