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

Better handling of unix file types #92

Open
markus-bauer opened this issue Dec 19, 2023 · 1 comment
Open

Better handling of unix file types #92

markus-bauer opened this issue Dec 19, 2023 · 1 comment

Comments

@markus-bauer
Copy link

I'm going to refer to file (https://www.darwinsys.com/file/) as a reference.
See also: https://en.wikipedia.org/wiki/File_(command)#Specification

I'm using infer like this:

infer::get_from_path(path_to_a_file);

Issues

  1. Directories produce an error, whereas file reports inode/directory.

  2. For other special unix files, file reports inode/chardevice, inode/fifo, etc.

  3. Infer is blocking/waiting, when get_from_path is called with the path to a special file, like a fifo, or /dev/tty.

@mcamou
Copy link

mcamou commented Oct 23, 2024

@bojand I'd like to try my hand at this as part of Hacktoberfest, could you please assign me?

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

2 participants