fails:File.chardev? returns true/false depending if the named file is a char device
fails:File.chardev? accepts an object that has a #to_path method
