Skip to content

Better handling of unix file types #92

@markus-bauer

Description

@markus-bauer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions